Capture
Creation - Using add_schema_rules procedure
At the source database, find the SCN value
by using the following SQL statement and record the SCN values:
SELECT
DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER FROM DUAL;
Then, create the directory object where the
data pump export dump file will be written.
CREATE DIRECTORY DPUMP_DIR AS
'/app/home/oracle/work'
/
The data pump export is then performed by
using the expdp command, which creates the NY2_SCHEMA.dmp
file. Executing the following command at the operating system
level on the source database hosts performs the data pump
export:
>expdp strmadm/strmadm SCHEMAS=NY2
DIRECTORY=DPUMP_DIR DUMPFILE=NY2_SCHEMA.dmp
FLASHBACK_SCN=11638722
The SCN value obtained from the
get_system_change_number procedure has been specified to the
data pump export parameter of flashback_scn.
The log file of the data pump export
process looks like:
Export: Release 10.1.0.2.0 - 64bit
Production on Thursday, 30 September, 2004 23:54
Copyright (c) 2003, Oracle. All rights
reserved.