Professional Documents
Culture Documents
EXPORT
______
1. Loging into the source database as user system useing SQLPlus, SQL Developer or
another client tool of your choice.
14 rows selected.
3. Create the OS directory in which you wish to place the export dump file in. e.g.
D:\datapump
4.a. While logged into the source database as user system, create a database
directory linked to the path to the directory created in step 3 above as follows:
Directory created.
Grant succeeded.
(User scott shall export his own full schema and save the export dump file in the
above directory)
15 rows selected
5. TAKE THE EXPORT BACKUP FOR THE SCHOTT SCHEMA AS FOLLOWS (ASSUMING YOU WANT TO
BACKUP/EXPORT THE SCHEMA FOR SCOTT):
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing
options
Starting "SCOTT"."SYS_EXPORT_SCHEMA_01": scott/********@pdborcl schemas=SCOTT
directory=EXP_DIR dumpfile=SCOTT.dmp logfile=expSCOTT.log
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 192 KB
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
. . exported "SCOTT"."DEPT" 6.007 KB 4 rows
. . exported "SCOTT"."EMP" 8.757 KB 14 rows
. . exported "SCOTT"."SALGRADE" 5.937 KB 5 rows
. . exported "SCOTT"."BONUS" 0 KB 0 rows
Master table "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SCOTT.SYS_EXPORT_SCHEMA_01 is:
D:\DATAPUMP\SCOTT.DMP
Job "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully completed at Thu Jun 23 23:23:53
2016 elapsed 0 00:01:19
6.b.TAKE A FULL DATABASE BACK WHILE SPLITING THE DUMP FILE INTO SMALLER SIZED DUMP
FILES [FOR LARGE DATABASES] WITH COMPRESSION ENABLED AS FOLLOWS
FOR A SCHEMA:
FOR FULL DB
7. Use WinSCP to securely transfer/FTP the export dump file to your cloud database
virtual machine (VM)
IMPORT
______
8. In your cloud database VM, create a database directory in a similar way to the
way you created the database directory on the export database.
9. Place/copy/move the export dump file in the cloud VM to the directory in step 8
above
10. Import the database export dump file contents into the cloud database as
follows:
NB: The impdb is able to read directly from a compressed expdp during an import
operation
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing
options
Master table "SCOTT"."SYS_IMPORT_SCHEMA_01" successfully loaded/unloaded
Starting "SCOTT"."SYS_IMPORT_SCHEMA_01": scott/********@pdborcl schemas=SCOTT
directory=EXP_DIR dumpfile=scott.dmp logfile=impSCOT.log
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
. . imported "SCOTT"."DEPT" 6.007 KB 4 rows
. . imported "SCOTT"."EMP" 8.757 KB 14 rows
. . imported "SCOTT"."SALGRADE" 5.937 KB 5 rows
. . imported "SCOTT"."BONUS" 0 KB 0 rows
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
Job "SCOTT"."SYS_IMPORT_SCHEMA_01" successfully completed at Thu Jun 23 23:59:57
2016 elapsed 0 00:00:33
C:\Users\user>