Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Recipe for test DB
Hi Richard,
My comments are inline
Richard D Core wrote in message ...
>I want to create a smaller version of my production DB for
testing some
>middleware.
>
>I have a full export of my production db (and a user export).
>
>Can I use crdb<newsid> scripts to create a small db then Import
into it?
Yes.
>
>What are the exact steps?
For tables that are to copied in full:
CREATE TABLE table_name AS SELECT * FROM table_name_at_production_database_name;
For tables for which you only want a subset
CREATE TABLE table_name AS SELECT * FROM table_name_at_production_database_name
WHERE condition;
>My process fails to give me any user tables and data.
Mine does, just created a test database and started
populating it last week. ;-)
>
>I found some rather complicated tech notes on the Oracle
Metalink site, but
>can't seem to end up with a working DB with the tables and data
I want in
>it.
>
>Rich
Regards
Jerry Gitomer
Received on Thu Aug 26 1999 - 09:01:22 CDT