0% found this document useful (0 votes)
9 views1 page

Installation Code

The document outlines a series of SQL commands for managing a pluggable database in Oracle. It includes steps to open the database, create a directory for importing schemas, and import multiple schemas using Data Pump Import (impdp) with specified parameters. Additionally, it details unlocking user accounts for the imported schemas with new passwords.

Uploaded by

kelvinl
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Installation Code

The document outlines a series of SQL commands for managing a pluggable database in Oracle. It includes steps to open the database, create a directory for importing schemas, and import multiple schemas using Data Pump Import (impdp) with specified parameters. Additionally, it details unlocking user accounts for the imported schemas with new passwords.

Uploaded by

kelvinl
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

sqlplus sys/root@localhost:1521/orclpdb as sysdba;

alter pluggable database open;


alter pluggable database orclpdb save state;
create or replace directory import_dir as 'C:\SAMPLE_SCHEMAS';
exit
impdp system/root@localhost:1521/orclpdb schemas=hr directory=import_dir
dumpfile=EXPORTED_SAMPLE_SCHEMAS.dmp logfile=import.log
remap_tablespace=EXAMPLE:USERS
impdp system/root@localhost:1521/orclpdb schemas=sh directory=import_dir
dumpfile=EXPORTED_SAMPLE_SCHEMAS.dmp logfile=import.log
remap_tablespace=EXAMPLE:USERS
impdp system/root@localhost:1521/orclpdb schemas=oe directory=import_dir
dumpfile=EXPORTED_SAMPLE_SCHEMAS.dmp logfile=import.log
remap_tablespace=EXAMPLE:USERS
impdp system/root@localhost:1521/orclpdb schemas=pm directory=import_dir
dumpfile=EXPORTED_SAMPLE_SCHEMAS.dmp logfile=import.log
remap_tablespace=EXAMPLE:USERS
impdp system/root@localhost:1521/orclpdb schemas=ix directory=import_dir
dumpfile=EXPORTED_SAMPLE_SCHEMAS.dmp logfile=import.log
remap_tablespace=EXAMPLE:USERS
sqlplus sys/root@localhost:1521/orclpdb as sysdba;
alter user hr identified by hr account unlock;
alter user sh identified by root account unlock;
alter user oe identified by root account unlock;
alter user pm identified by root account unlock;
alter user ix identified by root account unlock;
/

You might also like