Multitenant : Remove APEX Installations from the CDB in Oracle Database 12c Release 1 (12.1)
This article describes how to remove APEX from the CDB so you can install it directly in a PDB.
oracle 12cconfigurationintermediate
by OracleDba
14 views
This article describes how to remove APEX from the CDB so you can install it directly in a PDB.
12345678910111213141516171819202122232425262728293031323334353637
$ export ORACLE_SID=cdb1
$ cd $ORACLE_HOME/apex
$ sqlplus / as sysdba
SQL> [email protected] --Later release of APEX.
SQL> @apxremov_con.sql
PL/SQL procedure successfully completed.
Performing installation in multitenant container database in the background.
The installation progress is spooled into apxremov*_con*.log files.
Please wait...
catcon: ALL catcon-related output will be written to apxremov1_con_catcon_22354.lst
catcon: See apxremov1_con*.log files for output generated by scripts
catcon: See apxremov1_con_*.lst files for spool files, if any
catcon.pl: completed successfully
catcon: ALL catcon-related output will be written to apxremov2_con_catcon_22436.lst
catcon: See apxremov2_con*.log files for output generated by scripts
catcon: See apxremov2_con_*.lst files for spool files, if any
catcon.pl: completed successfully
Installation completed. Log files for each container can be found in:
apxremov*_con*.log
You can quickly scan for ORA errors or compilation errors by using a utility
like grep:
grep ORA- *.log
grep PLS- *.log
SQL>1234567891011121314151617181920212223242526272829303132333435363738
CONN / AS SYSDBA
CREATE PLUGGABLE DATABASE pdb1 ADMIN USER pdb_adm IDENTIFIED BY Password1;
ALTER PLUGGABLE DATABASE pdb1 OPEN;
ALTER PLUGGABLE DATABASE pdb1 SAVE STATE;
-- Switch to the new PDB.
ALTER SESSION SET CONTAINER=pdb1;
-- For Oracle Managed Files (OMF).
CREATE TABLESPACE apex DATAFILE SIZE 100M AUTOEXTEND ON NEXT 1M;
-- For non-OMF.
CREATE TABLESPACE apex DATAFILE '/path/to/datafiles/apex01.dbf' SIZE 100M AUTOEXTEND ON NEXT 1M;
$ cd /home/oracle/apex
CONN / AS SYSDBA
ALTER SESSION SET CONTAINER=pdb1;
-- @apexins.sql tablespace_apex tablespace_files tablespace_temp images
@apexins.sql APEX APEX TEMP /i/
CONN / AS SYSDBA
ALTER SESSION SET CONTAINER=pdb1;
@apxchpwd.sql
CONN / AS SYSDBA
ALTER SESSION SET CONTAINER=pdb1;
@apex_rest_config.sql
CONN / AS SYSDBA
ALTER SESSION SET CONTAINER=pdb1;
ALTER USER APEX_PUBLIC_USER IDENTIFIED BY Password1 ACCOUNT UNLOCK;Please to add comments
No comments yet. Be the first to comment!