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 -> Re: Cloning Subset of PROD data to DEV

Re: Cloning Subset of PROD data to DEV

From: Chris ( Val ) <chrisval_at_bigpond.com.au>
Date: 27 Jul 2005 15:54:29 -0700
Message-ID: <1122504869.625988.261320@z14g2000cwz.googlegroups.com>

mccmx_at_hotmail.com wrote:
> Oracle 9.2.0.6 EE on HP-UX 11.11
>
> I'm putting together a solution to copy the contents of 30+ tables from
> our PROD database to our DEV database. My strategy is as follows:
>
> 1. Drop the existing subset of tables from DEV
> 2. Create snapshots in the DEV database with the same names as the
> dropped tables using the following syntax:
>
> create snapshot TABLENAME
> build immediate
> refresh complete on demand
> with rowid
> for update
> as
> select * from TABLENAME_at_PRODDB
> nologging
> /
>
> 3. Build the indexes on these snapshots to match what we had on the
> dropped tables
>
> 4. Gather stats on the snapshots
>
> 5. Create a snapshot refresh group which does a complete refresh of
> the snapshots from the associated master table in PRODDB.
>
> These snapshots need to be updateable in DEV so that they act as
> regular tables, but I want to overwrite any DEV changes when we refresh
> the snapshots from the PROD data. My concern is that I want to make
> sure that no changes from the snapshots in DEV are ever replicated back
> to the master tables in PROD.
>
> In particular this parameter bothers me (from DBMS_REFRESH.MAKE):
>
> 'push_deferred_rpc' (used to control whether updateable snapshots
> replicate their changes back to master tables during a refresh).
>
> Does this sound like the correct approach to this problem..?

I am still learning about Oracle, and I'm curious ;-)

Would the Oracle IMP and EXP utilities be sufficient for (at least) most of this task?

Cheers,
Chris Val Received on Wed Jul 27 2005 - 17:54:29 CDT

Original text of this message

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