Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Q:Copy production database to Q/A or test environment
Amihay,
It is easy if you need to copy whole database.
If the requirements are to copy just DB structure with empty (SMALL) tables + some data, then it can be bit complex. I would like to highlight requirement so have SMALL tables. Using suggested exp/imp (rows=3Dn) method, Oracle creates initial extend for each segment within export file. If objects sized properly in production, initial extend for BIG tables can be 10-100-500MB. Imp for such DB creates not really SMALL empty tables.
If you would like to get really small copy of production DB, you have to use method which allows you to set initial extend for segments. There are couple of methods you can use to achieve this goal:
Extracting segments definitions not trivial. You have tree options here:
1. Try to extract DDLs from binary DMP file 2. Try to extract DDLs from imp log files created by imp show=3Dy 3. Try to extract DDLs from imp log files created by imp indexfile=3D<file =name>.
May be you have to don't care how much takes you target database, then will forget all I described above and use just exp rows=3Dn + imp full=3Dy
Jurijs
+371 9268222 (+2 GMT)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Thank you for teaching me.
http://otn.oracle.com/ocm/jvelikanovs.html
On 4/18/05, Amihay Gonen <AmihayG_at_ectel.com> wrote:
> Hi ,
>=20
> I've a requirement to develop a process to copy production database (3Tb =
and
> above) at customer site to QA or test environment (Vendor side).
>=20> (package,trigger ...) , views ...(select count(*) from DBA_objects =3D 15=
> The requirements are :
> * Database structures - This include tables,indexes , code
>=20
>=20
>=20
>=20
>=20
-- http://www.freelists.org/webpage/oracle-lReceived on Mon Apr 18 2005 - 15:49:49 CDT
![]() |
![]() |