1)
NET WORK LINK PARAMETER USED FOR IMPORT TABLES FROM REMOTE DATABASE TO LOCAL DATABASE WITHOUT USING
ANY DUMP FILES, FOR DETAILS CHECK BELLOW COMMAND . I AM IMPORTING TWO TABLES FROM PRASAD DATABASE TO MY LOCAL DATABASE.
DBLINK "PRASAD" IS CREATE FROM MY LOCAL DATABASE TO PRASAD DATABASE
---------------
C:\Documents and Settings\radha>IMPDP SCOTT/TIGER DIRECTORY=MISDIR TABLES=(CMTOFFICE_M,CMTOFFICE_M_1) NETWORK_LINK=PRASAD
Import: Release 11.1.0.6.0 - Production on Saturday, 01 October, 2011 11:28:18
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SCOTT"."SYS_IMPORT_TABLE_01": SCOTT/******** DIRECTORY=MISDIR TABLES=(CMTOFFICE_M,CMTOFFICE_M_1) NETWORK_LINK=PRASAD
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 384 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
. . imported "SCOTT"."CMTOFFICE_M" 500 rows
. . imported "SCOTT"."CMTOFFICE_M_1" 500 rows
Job "SCOTT"."SYS_IMPORT_TABLE_01" successfully completed at 11:28:36
------------------------------------------------------------------------------
2)
IN BELLOW COMMAND EXPORTING TABLES FROM REMOTE DATABASE USING DBLINK PRASAD AND DUMPFILE IS CREATED IN MY LOCAL MACHINE
-------------------------------------------------------------------------------------
C:\Documents and Settings\radha>EXPDP SCOTT/TIGER DUMPFILE=SCOTTSAMP.DMP DIRECTORY=MISDIR TABLES=(SAMPLE_OFFICE) NETWORK_LINK=PRASAD
Export: Release 11.1.0.6.0 - Production on Saturday, 01 October, 2011 12:28:39
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SCOTT"."SYS_EXPORT_TABLE_01": SCOTT/******** DUMPFILE=SCOTTSAMP.DMP DIRECTORY=MISDIR TABLES=(SAMPLE_OFFICE) NETWORK_LINK=PRASAD
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 192 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
. . exported "SCOTT"."SAMPLE_OFFICE" 118.4 KB 500 rows
Master table "SCOTT"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SCOTT.SYS_EXPORT_TABLE_01 is:
D:\BACKUPS\MISBACKUP\SCOTTSAMP.DMP
Job "SCOTT"."SYS_EXPORT_TABLE_01" successfully completed at 12:28:54
----------------------------------------------------------------------------------------
3)
IN BELLOW COMMAND EXPORT TABLES FROM REMOTE DATABASE AND FAILED TO EXPORT BECAUSE THERE IS NO DIRECTORY WITH NAME MISDIR .
IN THIS CASE DUMP FILE WILL BE CREATED IN REMOTE SERVER ONLY
--------------------------------------------------------------------------------------------------------------
C:\Documents and Settings\radha>EXPDP SCOTT/TIGER@PRASAD DUMPFILE=SCOTTSAMP.DMP DIRECTORY=MISDIR TABLES=(SAMPLE_OFFICE)
Export: Release 11.1.0.6.0 - Production on Saturday, 01 October, 2011 12:29:18
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-39087: directory name MISDIR is invalid
C:\Documents and Settings\radha>
------------------------------------------------------------------------------------------------------
4)
TO EXPROT ONLY STRUCTURE
--------------------------------
C:\Documents and Settings\radha>EXPDP SCOTT/TIGER DIRECTORY=MISDIR DUMPFILE=SCOTSTRUCT.DMP CONTENT=METADATA_ONLY
Export: Release 11.1.0.6.0 - Production on Saturday, 01 October, 2011 12:19:52
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SCOTT"."SYS_EXPORT_SCHEMA_01": SCOTT/******** DIRECTORY=MISDIR DUMPFILE=SCOTSTRUCT.DMP CONTENT=METADATA_ONLY
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
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/COMMENT
Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE
Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/TRIGGER
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
Master table "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SCOTT.SYS_EXPORT_SCHEMA_01 is:
D:\BACKUPS\MISBACKUP\SCOTSTRUCT.DMP
Job "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully completed at 12:20:24
------------------------------------------------------------------------------------------
No comments:
Post a Comment