Export Command
expdp system/manager schemas=PMS
directory=DATA_PUMP_DIR dumpfile=13JUL17PMS_SCHEMA.dmp
logfile=13JUL17PMS_SCHEMA.log
Import Command
impdp system/clonemanager
schemas=PMS directory=DATA_PUMP_DIR dumpfile=13JUL17PMS_SCHEMA.dmp
logfile=13JUL17PMS_SCHEMA.log remap_schema=PMS:PMS
Source : CRP1
Destination : GST
I am Having PMS Schema in CRP1
Instance.
I need the same schema in GST
Instance.
So First I am going to Export PMS
schema
Step 1:
Connect as system/manager
desc ALL_DIRECTORIES;
select
OWNER,DIRECTORY_NAME,DIRECTORY_PATH from ALL_DIRECTORIES;
Find the DATA_PUMP_DIR Location
Step 2:
If You Want to create New
DATAPUMP_DIR DIRECTORY
CREATE OR REPLACE DIRECTORY
DATA_PUMP_DIR AS '/u01/backup/DATAPUMP_DIR';
Step 3:
expdp system/manager schemas=PMS
directory=DATA_PUMP_DIR dumpfile=13JUL17PMS_SCHEMA.dmp logfile=test.log
----------------------------------------------------------------------------------------------------------
Once PMS Schema Exported need to be
import in GST instance.
Import the same schema in GST
instance.
Step to remember,
In GST instance there is no schema
available with name of PMS.
Now only i am going to Import.
Step 1:
desc ALL_DIRECTORIES;
select
OWNER,DIRECTORY_NAME,DIRECTORY_PATH from ALL_DIRECTORIES;
CREATE OR REPLACE DIRECTORY
DATA_PUMP_DIR AS '/u03/CRP1GST/DATA_PUMP_DIR';
commit;
Before Import Schema Need to create
the same TABLESPACE which exist in CRP1 instance for default PMS schema.
Step 2 :
CREATE TABLESPACE TBZ_CUSTOM
DATAFILE '/u03/CRP1GST/db/apps_st/data/tbz_custom01.dbf' SIZE 2G;
CREATE TEMPORARY TABLESPACE
TEMP_CUSTOM TEMPFILE '/u03/CRP1GST/db/apps_st/data/tbz_temp01.dbf' SIZE 500M
AUTOEXTEND ON;
Step 3 :
impdp system/clonemanager
schemas=PMS directory=DATA_PUMP_DIR dumpfile=13JUL17PMS_SCHEMA.dmp
logfile=13JUL17PMS_SCHEMA.log remap_schema=PMS:PMS
No comments:
Post a Comment