Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> refresh data in another schema

refresh data in another schema

From: Linda Lee <goforticket_at_yahoo.com>
Date: 29 May 2002 17:22:50 -0700
Message-ID: <f901fb80.0205291622.7030cb55@posting.google.com>


In the same database, there are two user accounts: Production and Test. We need to refresh Test's data by using data in Production. 99% of the table structures and indexes are same in both accounts, but they are in different tablespaces and some objects in two accounts may not be identical. All Test's objects are in tablespace T1 (for tables) and tablespace TI1 (for indexes), and all Production's objects are in tablespaces P1, P2 and P2 (for tables) and tablespace PI1 (for indexes).

  1. What's the best way to load Production's data into Test's tables and keep all objects Test has? if export/import is the best mothod, what options should I use to do that (since their tablespaces are different)?
  2. If I can overwrite everythings in Test account, what options should I choose in doing Export and Import?
  3. I think use of loop to "TRUNCATE test.table1 reuse; INSERT into test.table1 select * from production.table1;" over all tables will also work. Is it true? Will it keep all Test's indexes valid?

Thank you very much. Received on Wed May 29 2002 - 19:22:50 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US