Customizing developer toolkit for Oracle database
Before you begin
Ensure that you have configured the developer toolkit environment and the
docker_default network is created.
Procedure
-
Create the container by running the following command:
docker run -d -it --name oraserver -h oraserver --net=docker_default -p 1521:1521 store/oracle/database-enterprise:<oracle version> - Enter the Oracle database container by running the following command:
docker exec -it oraserver bashYou are now inside the Oracle database container that is running SQL plus.
- Start the SQL Plus batch query tool.
source /home/oracle/.bashrc; sqlplus sys/Oradoc_db1@ORCLCDB as sysdba - Run the following SQL query:
alter user sys identified by password; alter session set "_ORACLE_SCRIPT"=true; create user omdb identified by omdb; grant dba to omdb; - Enter the
om-runtimecontainer by running the following command:docker exec -it om-runtime /bin/bash - Copy the
ojdbc8.jarfile to yourom-runtimecontainer by running the following command:docker cp ojdbc8.jar om-runtime:/opt/ssfs/runtime/dbjar/jdbc/ORACLENote: By default, the Oracle directory is not created. To maintain a proper directory structure, it is recommended that you create the directory and copy theojdbc8.jarfile to that directory. - Install the jar by running the following command:
bin]$ ./install3rdParty.sh Oracle <oracle version> -d /opt/ssfs/runtime/dbjar/jdbc/ORACLE/ojdbc8.jar -targetJVM EVERYKnown issue: UpdateAGENTDynamicclasspath.cfg.inandAPPDynamicclasspath.cfg.inproperties to include the following Oracle variables:VENDOR_JAR=&INSTALL_DIR;/dbjar/jdbc/ORACLE/ojdbc8.jar-
DB_JAR=&INSTALL_DIR;/dbjar/jdbc/ORACLE/ojdbc8.jar
- Update Sandbox with the following ORA information.
ORA_HOST=om-oraserver ORACLE=true ORA_DATA=ORCLCDB ORA_USER=omdb ORA_PASS=omdb ORA_PORT=1521 ORACLE_NLS_LENGTH_SEMANTICS=BYTE ORA_TS=CTXCAT - Update
system_overrides.propertieswith the following information:jdbcService.oraclePool.dbvendor=oracle jdbcService.oraclePool.systemPool=true jdbcService.oraclePool.url=jdbc:oracle:thin:@oraserver:1521:ORCLCDB #jdbcService.oraclePool.url=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=<db_host>)(Port=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SID=ORCLCDB))) jdbcService.oraclePool.catalog=ORCLCDB jdbcService.oraclePool.dbname=ORCLCDB jdbcService.oraclePool.user=omdb jdbcService.oraclePool.password=omdb jdbcService.oraclePool.schema=omdb - Run the setup files by running the following command:
./setupfiles.sh - Run DB Verify by running the following command:
./dbverify.sh - Run the entity deployer to activate the changes by running the following command:
./deployer.sh -t entitydeployer - Add the factory setup data to the newly created tables by running the following
command:
./loadFactorySetup.sh - Build the EAR file by running the following command:
./buildear.sh -Dwarfiles=smcfs,sbc,sma -Dearfile=smcfs.ear -Dnowebservice=true -Dappserver=websphere -Ddevmode=true -Dvendor=shell create-ear - Restart the application server by running the following command:
docker exec -it om-appserver bash cd /opt/ibm/wlp/bin ./server stop ./server start