Solved

10g to 11g Schema Refresh

Posted on 2012-03-20
4
1,007 Views
Last Modified: 2012-03-27
Hello All,

Here is my scenario ..

I have a 10g (10.2.0.4) Database  - Database A and i have cloned the same Database and upgraded it to 11g R2 (11.2.1.0) Database - Database B.

DATABASE A and DATABASE B has same Schema structure also.

I need to refresh Database B Schemas from Database A schemas.

The following are my questions :

1.) Will this be compatible, since i am doing an export/import of schemas from 10g to 11g.
2.) Should i need to do additional operations like validations.
3.) Is there any other way to do this other than export/import or Materialized Views.

Thanks

Max
0
Comment
Question by:Max4rDBA
  • 3
4 Comments
 
LVL 73

Accepted Solution

by:
sdstuber earned 500 total points
ID: 37744210
create a database link from the 11g db to the 10g db and use dbms_datapump


declare
   v_handle NUMBER;
BEGIN
   v_handle:=
   DBMS_DATAPUMP.OPEN (operation   => 'IMPORT',
                       job_mode    => 'SCHEMA',
                       remote_link => 'YOUR_DB_LINK'
                               );

   DBMS_DATAPUMP.metadata_filter (handle => v_handle,
                                  NAME   => 'SCHEMA_LIST',
                                  VALUE  => '''SCHEMA1'',''SCHEMA2'''
                               );

   DBMS_DATAPUMP.set_parameter (handle => v_handle,
                                NAME   => 'TABLE_EXISTS_ACTION',
                                VALUE  => 'REPLACE'
                               );


   dbms_datapump.add_file(handle => v_handle,
                          filename => 'your_log_file_name_here.log',
                          directory => 'DATA_PUMP_DIR',
                          filetype=>3);


   DBMS_DATAPUMP.set_parallel(v_handle, 4);

   DBMS_DATAPUMP.start_job (v_handle);
END;
/
0
 
LVL 73

Assisted Solution

by:sdstuber
sdstuber earned 500 total points
ID: 37744215
for your export/import,  use expdp  and impdp.

if you must use exp/imp (can't think of reason why you would have to though)
then use 10g exp and 11g imp
0
 
LVL 73

Expert Comment

by:sdstuber
ID: 37745702
why the B?


penalty grades are not appropriate when you have not asked for additional information or explained any deficiency
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to recover a database from a user managed backup

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now