Strechged Infgtrdswe MNGGTRSG
Strechged Infgtrdswe MNGGTRSG
Strechged Infgtrdswe MNGGTRSG
Installation Instructions
Requirement.
Software Requirement:
JDK 6
Database:
PostgreSQL 9.2+ (required for testing, other runtime databases are supported)
OR
MySQL 5.1.68
OR
Oracle 11g
Hardware Requirements:
Processor
: 1 GHz x86-64 processor
Memory (RAM) : 2 GB
HDD
: 160 GB
Operating System:
Windows XP, Windows 7, Ubuntu 10.04, red hat Linux.
Browsers:
Mozilla Firefox 18.0.1 and above
Internet Explorer 9
Google Chrome 26.0.1410.64
127.0.0.1/32
trust
::1/128
trust
5. After that restart the PostgresSQL service from Start >> type services in Search
Programs and files or type services.msc in run >> open Services Window
>> search PostgresSQL and restart it.
CREATE ROLE jbilling WITH LOGIN SUPERUSER CREATEDB CREATEROLE PASSWORD 'mypassword';
CREATE DATABASE jbilling_test WITH OWNER jbilling;
Download the jbilling binary zip file on you local machine and Unzip.
Create jbilling_test database.
Please note, in order to run a new or updated zip file, if you have already done a database build
you need to drop it.
a) Go to your Start Menu >> All Programs >> PostgresSQL 9.2 >> SQL Shell
b) Press the 'Enter' key five (5) times.
c) In the SQL Shell enter:
DROP DATABASE jBilling_test;
d) Press the 'Enter' key. You should see the text: DROP DATABASE.
e) Create a new database by entering:
f) In the SQL Shell enter:
CREATE DATABASE jbilling_test WITH OWNER jbilling;
g) Press the 'Enter' key. You should see the text: CREATE DATABASE
h) In case of windows if binary zip is unpacked in C drive, then open a command prompt
i) window. Run all commands one by one, The commands should use paths as below:
cd C:\Program Files\PostgreSQL\9.2\bin
psql jbilling_test jbilling -U jbilling < C:[enter the path to find the file here]\jbilling-enterprise-3.2.0\db- scripts\postgres\jbilling-changelog-table-psql.sql
psql jbilling_test jbilling -U jbilling < C:[enter the path to find the file here]\jbilling-enterprise-3.2.0\db-scripts\postgres\jbilling-schema-base-psql.sql
psql jbilling_test jbilling -U jbilling < C:[enter the path to find the file here]\jbilling-enterprise-3.2.0\db-scripts\postgres\jbilling-init_data-psql.sql
psql jbilling_test jbilling -U jbilling < C:[enter the path to find the file here]\jbilling-enterprise-3.2.0\db-scripts\postgres\jbilling-schema-FKs-psql.sql
psql jbilling_test jbilling -U jbilling < C:[enter the path to find the file here]\jbilling-enterprise-3.2.0\db-scripts\postgres\jbilling-upgrade-3.2-psql.sql
Ubuntu / Debian
sudo apt-get install postgresql postgresql-client
pg_hba.conf:
# "local" is for Unix domain socket connections only
local
all
all
trust
trust
127.0.0.1/32
Change the PostgresSQL listener to allow connections via TCP. The client should review this
later; It might not be necessary to listen on all addresses if the machine has a static IP.
sudo vim /var/lib/pgsql/data/postgresql.conf
sudo vim /etc/postgresql/8.4/main/postgresql.conf
postgresql.conf:
listen_addresses = '*'
port = 5432
References:
https://help.ubuntu.com/community/PostgreSQL
http://bytes.com/topic/postgresql/answers/779001-how-run-postgresql-debian-terminal
- or
sudo -u postgres createuser --superuser jbilling -P
sudo -u postgres createdb jbilling_test
Oracle Installation
For Ubuntu: http://en.kioskea.net/faq/4405-linux-installing-oracle-11g-on-ubuntu#download-oracle
MySQL Installation
Go to this link to install MySQL http://www.tutorialspoint.com/mysql/mysql-installation.htm
3. Create jbilling_test database & run following commands as per your database to build
database.
2. If you are using mysql database then comment the following code from jbilling-enterprise3.2.0/jbilling/jbilling-DataSource.groovy
dialect = "org.hibernate.dialect.PostgreSQLDialect"
driverClassName = "org.postgresql.Driver"
username = "jbilling"
password = ""
url = "jdbc:postgresql://localhost:5432/jbilling_test"
3.
After that un-comment the following code from jbilling-enterprise-3.2.0/jbilling/jbillingDataSource.groovy to point to MySQL database.
dialect = "org.hibernate.dialect.MySQLDialect"
driverClassName = "com.mysql.jdbc.Driver"
username = "root"
password = "java"
url = "jdbc:mysql://localhost:3306/jbilling_test"
dialect = "org.hibernate.dialect.PostgreSQLDialect"
driverClassName = "org.postgresql.Driver"
username = "jbilling"
password = ""
url = "jdbc:postgresql://localhost:5432/jbilling_test"
3. After that un-comment the following code from jbilling-enterprise-3.2.0/jbilling/billingsDataSource.groovy to point to Oracle database.
dialect = "org.hibernate.dialect.Oracle10gDialect"
driverClassName = "oracle.jdbc.driver.OracleDriver"
username = "jbilling"
password = "java"
url = "jdbc:oracle:thin:@localhost:1521/xe"
Note: Oracle uses username as a database name, so you need to provide correct username &
password to point to oracle database.
2. Open command prompt window to start tomcat instance using following commands.
cd jbilling-enterprise-3.2.0/bin/startup.bat