Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

10g to 11g Schema Refresh

Posted on 2012-03-20
4
Medium Priority
?
1,066 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 74

Accepted Solution

by:
sdstuber earned 2000 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 74

Assisted Solution

by:sdstuber
sdstuber earned 2000 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 74

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and theā€¦
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to recover a database from a user managed backup
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

916 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