Académique Documents
Professionnel Documents
Culture Documents
Over View
To copy all the SOURCE schema objects to
respective TARGET schema based on the
client’s request. We perform Schema
Refreshes only if Schema is less than 10 Gb.
From one schema to same schema on the same
database.
From one schema to another schema in the same
Database.
From one schema in one database to another schema
of a database on the same machine.
From one schema of a database to another schema of
a database on a separate machine
1 Refresh Process
1.1 Source
Server name, Database name, and SOURCE Schema
1.2 Target
Server name, Database name and TARGET Schema
1.3 Steps
The following are the sequence of steps to be followed to complete the
task :-
Pre Export tasks on the Source Schema
• Review the source & target DB Tablespace Sizes prior starting compare if
they are near each other in size
• If not similar in size add additional space for Tablespace Target
Export of the Source Schema
Backup of the Target Schema
Pre Import tasks on Target Schema
Dropping of objects in Target Schema
Import into Target Schema
Post Import tasks (recompiling , statistics etc).
2 Detailed Process
(FORMAT : exp_dbname_schema_ddMMMyy.dmp
exp_gemsora15d_PRD_07june05.dmp)
Log file: exp_gemsora15d_PRD_07june05.log
$ exp file= exp_dbname_schema_ddMMMyy.dmp
log=exp_dbname_schema_ddMMMyy.log owner=SOURCE- schema
Compress=n buffer=1024000 consistent=y statistics=y
$ mknod pipe.dmp p
$ nohup /usr/bin/gzip -cNf < pipe.dmp > filename.gz &
$ nohup exp userid=system/paswd file= pipe.dmp
log= filename.log owner=SOURCE schema(s)
compress=n buffer=10240000 recordlength= 65535 direct=y statistics=y
10. Import into the target schema using the export dump taken at Step 3
above.
$ mknod /tmp/imp_pipe.dmp p
$ gunzip -c <filename.dmp.gz > /tmp/imp_pipe.dmp &
$ nohup imp userid=system/paswd file=/tmp/imp_pipe.dmp
fromuser =S1,S2 touser =T1,T2 log =filename.log buffer =20480000
commit =y statistics=y resumable=y … (only Oracle 9i)
Important Note:
*
/servername/exp01/DBName (in general for all servers)
/oraexp01/DBName (for dog* servers).
Note: The export activity should be completed as normal and without any
warnings .
Copy the export dmp and log files to the above mentioned respective database
directory (through ftp / scp) to the target machine.
We do not perform Schema Refreshes over 10 Gb.