| In Oracle : Schema refresh using Data Pump in 10g | |||
|
|
|||
| |||
|
|
|||
|
-> Schema refresh using Data Pump in 10g
Schema refresh using Data Pump in 10g
Here are the steps for implementing a schema refresh using Data Pump:
1. Create a new user on the target database with DBA role granted 2. Create a DBlink in the new schema to point to the source schema 3. Create the procedure which will refresh the data 5. Known error: ORA-31626: job does not exist, ORA-39001: invalid argument value
1. Create a new user on the target database with DBA role granted
connected as sys run the following commands: CREATE USER DBA_TOOLS identified by <password>; grant DBA to DBA_TOOLS;
2. Create a DBlink in the new schema to point to the source schema
CREATE DATABASE LINK "db_LINK_NAME" connect to source_schema identified by password using 'DB_alias';
3. Create the procedure which will refresh the data
begin DBA_TOOLS.copy_schema(‘SOURCE_SCHEMA’,'DESTINATION_SCHEMA'); end; /
Note: On a production database, in 1h:08 min 24.14 Gb were transferred.
NOTE: You may receive:
ORA-31626: job does not exist
Check:
1) the DBA_TOOLS (who run the code, the owner of the code) has the "create table" privilege
ORA-39001: invalid argument value
Check:
the DBA_TOOLS see the DB_LINK (You can create a public DB_LINK for testing this.).
-> Schema refresh using Data Pump in 10g |
||
|
|||
|
|
Find related information on Google:
Custom Search
|
Copyright (c) 2011-2012 www.in-oracle.com | Disclaimer: The views expressed on this web site are my own and do not reflect the views of Oracle Corporation. You may use the information from this site only at your risk.