Sunteți pe pagina 1din 9

Oracle installation: Goto: \\10.240.21.

127\softwares\oracle Open Oracle 10g Release 2 Server folder and click the setup Follow the docs 1. Oracle_Software_Installation 2. Oracle_SoftwareInstallation_DatabaseCreation Follow the above both docs for Oracle installation and database creation. Oracle JDBC driver: Copy ojdbc14.jar into the following directory Goto : \\10.240.21.127\softwares\SQL Workbench Copy the SQL Workbench to your system and click on (SQLWorkbench) Icon to run it. jboss-5.1.0.GA\server\default\lib

Open the SQL workbench. 1.Create a new account : test 2.Select Driver as Oracle(oracle.jdbc.OracleDriver)

3.URL : jdbc:oracle:thin:@localhost:1521:UB15ACT 4.Provide username and password which you have selected during oracle installation.

Click on Manage Drivers at the bottom and select oracle from the popup left pane and provide the below details, Name : Oracle ClassName : oracle.jdbc.OracleDriver Library : D:\bfub162\jboss\server\default\lib\ojdbc14.jar (select from your server location path) Sample URL : jdbc:oracle:thin:@hostname:port:sid Save the settings to open it. To create & import DB
1. Create a database.

Run the points 2 & 3 on SQL WorkBench : 2. To create User/Schema. Connect system/system@mbtdb drop user wasadmin cascade; drop user bankfusion cascade; drop user cbs cascade; drop user ubinterface cascade;

drop user loanorg cascade; drop user branch cascade; drop user actinver cascade; drop user mexico cascade; drop role UB_App_Role; drop role UB_READ_Role; drop role UBRONLYROLE; create user wasadmin identified by wasadmin; create user bankfusion identified by bankfusion; create user cbs identified by cbs; create user ubinterface identified by ubinterface; create user branch identified by branch; create user loanorg identified by loanorg; create user actinver identified by actinver; create user mexico identified by mexico; grant connect,resource,dba to bankfusion identified by bankfusion; grant connect,resource,dba to wasadmin identified by wasadmin; grant connect,resource,dba to CBS identified by cbs; grant connect,resource,dba to UBINTERFACE identified by ubinterface; grant connect,resource,dba to branch identified by branch; grant connect,resource,dba to loanorg identified by loanorg; grant connect,resource,dba to actinver identified by actinver; grant connect,resource,dba to mexico identified by mexico;

CREATE role UB_App_Role; CREATE role UB_READ_Role; CREATE role UBRONLYROLE; GRANT connect TO UB_App_role, UB_READ_Role,UBRONLYROLE; GRANT create procedure, create sequence, create table, create trigger, create type, create view, create indextype TO UB_App_role; GRANT create procedure, create sequence, create table, create trigger, create type, create view, create indextype TO UB_READ_Role; GRANT create procedure, create sequence, create table, create trigger, create type, create view, create indextype TO UBRONLYROLE; grant UB_App_role, UNLIMITED TABLESPACE, exp_full_database, imp_full_database to wasadmin; grant UB_App_role, UNLIMITED TABLESPACE,exp_full_database, imp_full_database to bankfusion; grant UB_App_role, UNLIMITED TABLESPACE to ubinterface; grant UB_App_role, UNLIMITED TABLESPACE to cbs; grant UB_App_role, UNLIMITED TABLESPACE to branch; grant UB_App_role, UNLIMITED TABLESPACE to loanorg; grant UB_App_role, UNLIMITED TABLESPACE to actinver; grant UB_App_role, UNLIMITED TABLESPACE to mexico;

grant UB_READ_Role, UNLIMITED TABLESPACE, exp_full_database, imp_full_database to wasadmin; grant UB_READ_Role, UNLIMITED TABLESPACE,exp_full_database, imp_full_database to bankfusion; grant UB_READ_Role, UNLIMITED TABLESPACE to ubinterface; grant UB_READ_Role, UNLIMITED TABLESPACE to cbs; grant UB_READ_Role, UNLIMITED TABLESPACE to branch; grant UB_READ_Role, UNLIMITED TABLESPACE to loanorg; grant UB_READ_Role, UNLIMITED TABLESPACE to actinver; grant UB_READ_Role, UNLIMITED TABLESPACE to mexico;

grant UBRONLYROLE, UNLIMITED TABLESPACE, exp_full_database, imp_full_database to wasadmin; grant UBRONLYROLE, UNLIMITED TABLESPACE,exp_full_database, imp_full_database to bankfusion; grant UBRONLYROLE, UNLIMITED TABLESPACE to ubinterface; grant UBRONLYROLE, UNLIMITED TABLESPACE to cbs; grant UBRONLYROLE, UNLIMITED TABLESPACE to branch; grant UBRONLYROLE, UNLIMITED TABLESPACE to loanorg; grant UBRONLYROLE, UNLIMITED TABLESPACE to actinver; grant UBRONLYROLE, UNLIMITED TABLESPACE to mexico;

3.

Create table spaces. (Check for the oracle location path on local systems)

create tablespace BF_DATA datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/bftab01.dbf' SIZE 10M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace BF_INDX datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/bfindx01.dbf' SIZE 10M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace BF_LOB datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/bflob01.dbf' SIZE 50M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace UB_SMALL_DATA datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/ubsmalltab01.dbf' SIZE 10M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace UB_SMALL_INDX datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/ubsmallidx01.dbf' SIZE 10M reuse autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace UB_medium_DATA datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/ubmedtab01.dbf' SIZE 10M reuse autoextend on next 100M maxsize unlimited

extent management local segment space management auto; create tablespace UB_medium_INDX datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/ubmedindx01.dbf' SIZE 10M reuse autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace UB_LARGE_DATA datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/ubbigtab01.dbf' SIZE 10M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace UB_LARGE_INDX datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/ubbigindx01.dbf' SIZE 10M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace UB_extra_data datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/ubextratab01.dbf' SIZE 10M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace UB_extra_indx datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/ubextraindx01.dbf' SIZE 10M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace UB_LOB_DATA datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/ublobtab01.dbf' SIZE 10M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace UB_TXN_DATA datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/ubtxntab1.dbf' SIZE 10M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace UB_TXN_INDX datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/ubtxnindx01.dbf' SIZE 10M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace CBS_DATA datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/cbstab01.dbf' SIZE 10M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace CBS_INDX datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/cbsindx01.dbf' SIZE 5M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace INF_DATA datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/inftab01.dbf' SIZE 10M REUSE autoextend on next 100M maxsize unlimited

extent management local segment space management auto; create tablespace INF_INDX datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/infindx01.dbf' SIZE 5M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace BT_DATA datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/bttab01.dbf' SIZE 5M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace BT_INDX datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/btindx01.dbf' SIZE 5M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace BT_LOB_DATA datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/btlob01.dbf' SIZE 5M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace LO_DATA datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/lotab01.dbf' SIZE 5M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto; create tablespace LO_INDX datafile 'e:/oracle/product/10.2.0/oradata/UB15ACT/loindx01.dbf' SIZE 5M REUSE autoextend on next 100M maxsize unlimited extent management local segment space management auto;

4.

Import the Dump

Get the db dump(UB15ACT1_B44_19APR.dmp) and copy to your local oracle directory, D:\oracle\product\10.2.0\admin\UB15ACT\dpdump 5. After that set the oracle path in your environment variable

Set ORACLE_HOME = D:\oracle\product\10.2.0\db_1 6. Execute to import db:

Open command prompt and run the below statement it will download all the table with data. impdp system/system@UB15ACT dumpfile=UB15ACT1_B44_19APR.dmp logfile=UB15ACT1_B44_19APR.log

schemas=(BANKFUSION,CBS,WASADMIN,BRANCH,LOANORG,UBINTER FACE) Client configuration: TO RUN CLIENT Goto : D:\bfub162\Client\UBClient Edit newbftc batch file. %JAVA_CMD%" %JAVA_OPTS% -DBFconfigLocation=D:\bfub162\Client\UBConf -Duser.timezone=Europe/Dublin -Dorg.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFact oryImpl -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger -Dlog4j.configuration=file:D:\bfub162\Client\UBConf\conf\messaging\bankfusion.log 4j.conf -classpath BFTC.jar;ClientResources.jar;BankFusionCommonSupport.jar;BankFusionMessaging.jar ;BankFusionEncryption.jar;BankFusionThreadEngine.jar;activation-1.1.jar;castor1.1.1.jar;jms.jar;jmxremote.jar;jmxremote_optional.jar;BF_rebuilt_uif-1.3.2.jar;binding1.0.3.jar;commons-codec-1.3.jar;commons-email-1.0.jar;commons-logging1.1.1.jar;EaSynthLookAndFeel.jar;forms-1.1.5.jar;jamon-2.7.jar;jmxtools-1.2.1.jar;log4j1.2.15.jar;looks-2.1.2.jar;spring-2.0.1.jar;wsdl4j-1.6.2.jar;xercesImpl-2.8.1.jar;wsif.jar com.trapedza.bankfusion.bftc.BankFusion Server Configuration: Goto: D:\bfub162\Server\UBConf\conf\persistence Edit hibernate_nonjta properties file
#For JBoss with DB2 #hibernate.connection.datasource java:/DB2DS #For JBoss with Oracle hibernate.connection.datasource java:/OracleDS ## DB2 #hibernate.dialect org.hibernate.dialect.DB2Dialect #hibernate.connection.driver_class com.ibm.db2.jcc.DB2Driver ## Oracle hibernate.dialect org.hibernate.dialect.Oracle10gDialect hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver if you are using oracle or db2 comment the other one which you are not using.

JBoss configuration:

1.Goto: D:\bfub162\jboss\server\default\deploy Edit oracle-ds file: Set your oracle details <local-tx-datasource> <jndi-name>OracleDS</jndi-name> <connectionurl>jdbc:oracle:thin:@10.240.21.127:1521:UB15ACT</connection-url> <driver-class>oracle.jdbc.driver.OracleDriver</driver-class> <user-name>system</user-name> <password>password</password> <min-pool-size>5</min-pool-size> <max-pool-size>100</max-pool-size> <blocking-timeout-millis>5000</blocking-timeout-millis> <idle-timeout-minutes>15</idle-timeout-minutes> <metadata> <type-mapping>Oracle</type-mapping> </metadata> </local-tx-datasource> 2.TO RUN JBOSS Server Goto : D:\bfub162\jboss\bin Edit run batch file set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_11 rem JVM memory allocation pool parameters. Modify as appropriate. set JAVA_OPTS=%JAVA_OPTS% -XX:PermSize=256m -XX:MaxPermSize=512m -XX: +CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -Xms768m -Xmx768m -DBFappServer=JBoss -DBFconfigLocation=D:/bfub162/Server/UBConf/ -DHBPersistenceProvider.TxnTimeoutInSec=3000 -Duser.timezone=Asia/Calcutta -Dlog4j.debug=true -Dorg.apache.commons.logging.LogFactory=org.apache.commons.logging.impl .LogFactoryImpl -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JL ogger -Dlog4j.configuration=file:D:/bfub162/Client/UBConf/conf/messaging/bank fusion.log4j.conf -Doverridenulldbstrings=false -DenableQueryParser=false 3.We need ApplicationJars and BFHelperJars, copy both from D:\softwares\jars for jboss and paste inside D:/bfub162 4.Goto : D:\bfub162\jboss\server\default\conf Edit : jboss-service.xml file Change the path as below, <classpath codebase="${jboss.server.lib.url:lib}" archives="*"/> <classpath codebase="file:/D:/bfub162/ApplicationJars/" archives="*"/> <classpath codebase="file:/D:/bfub162/BFHelperJars/" archives="*"/>

Start your jboss and client. Run the ldap

S-ar putea să vă placă și