Install JDE Platform Pack on PDB

With Oracle 12C, we have concept of Multitenant DB where we have a CDB and multiple PDBs
What is a PDB and CDB?
Below are the high level details for PDB and CDB, please check on Google for more information on CDB and PDBs.

A Container database (CDB) is made up of the following containers:

There is one root container which stores the Oracle supplied metadata like the PL/SQL data dictionary packages and the common users. This root container is referred to as CDB$ROOT.

One seed Pluggable Database (PDB) which is a system supplied template which can be used to create new PDB’s. This seed PDB is called PDB$SEED.

Some of the characteristics of a CDB


  • There is a separate SYSTEM and SYSAUX tablespace for the root container of the CDB and each PDB
  • Thee is only one UNDO tablespace for the entire CDB
  • There is only one set of control files and online redo logs files for the entire CDB. Individual PDB’s have their own data files (which contain the user data), but do not have distinct redo log or control files.
  • We can create on default temporary tablespace for the entire CDB or each PDB can have its own additional temporary tablespaces
  • There is single network administration files like listener.ora, tnsnames.ora, and sqlnet.ora file for an entire CDB. All of the PDBs in the CDB use the same files.
  • There is only one set of background processes shared by the root and all PDBs
  • There is a single SGA shared by all  PDB’s
  • When the CDB is shut down then all PDB’s are also automatically shut down
  • When the CDB is open then we can change the open mode of individual PDBs via the ALTER PLUGGABLE DATABASE SQL statement.


PDB is a portable collection of schemas, schema objects, and non schema objects that appears to an Oracle client as a non-CDB.

The following steps are required for installation of EnterpriseOne into pluggable database in Oracle 12cR1 and higher:

Before starting to install JDE Platform Pack the following steps are required in order Oracle Database creation scripts to work. In the below steps "jdepdb" is the PDB db we created during the Oracle DB install.


  1. Have the CDB and PDB entries in all instances of tnsnames.ora files (located in the 12C client and 12 database install paths). 
  2. Connect using SQLPlus to Oracle database issuing the "sqlplus /nolog" command. Then the SQL> prompt will appear.
  3. Connect as sysdba to Oracle Database issuing "connect / as sysdba" command
  4. Check if jdepdb database is mounted by issuing "select name, open_mode from v$pdbs;
  5. If the pluggable database is not mounted then issue "STARTUP MOUNT
  6. Open the jdepdb instance by issuing "alter pluggable database jdepdb open;"
  7. Check if the pdborcl pluggable database is open in read write status by issuing again "select name, open_mode from v$pdbs;
  8. Now the jdepdb pluggable database is accepting standard sql commands, but it will not be open automatically after an Oracle database service restart. In order pdborcl pluggable database to be automatically opened after the Oracle database start, we need to define a trigger to open the pluggable database. The following lines will define a trigger to open the pluggable database every time the Oracle database service is started (the trigger will be defined at the consolidated database level):


        create or replace trigger Sys.After_Startup after startup on database
        begin
            execute immediate 'alter pluggable database pdborcl open';
        end;
         /

Note: Please pay attention to the slash sign ("/") which is terminating long line input at the SQL prompt.

     8. After this step, you may continue to install the JDE Platform Pack in the same manner as with Oracle Database 11g.


Reference: Oracle Documentation

Comments

Popular posts from this blog

Oracle Cloud Infrastructure(OCI) - Part2

Script to display the SQL text for a specific SQL_ID

How to Change Your EnterpriseOne Environment Color