Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export Oracle Table from One Server to Other

Status
Not open for further replies.

saw15

Technical User
Jan 24, 2001
468
US
I need to export an Oracle table from the production server to our test server.

Table name is: i_history

Looking for the best way to accomplish this.

Any help is appreciated.
 
Hi how many rows the table has?

there are differents was to do it.
 

You can use export utility. For help on this tool type;

exp help=y

or read about this in your Oracle Utilities manual.
Robbie

"The rule is, not to besiege walled cities if it can possibly be avoided" -- Art of War
 
If it is a big transfer then export/import is your best bet.

If you want a flexible (i.e. unplanned) method for small tables (and you can live with the default allocations) you can do it by a db link:

1) use Net8 assistant on the test machine so that it can be a client of the prod db

in test db

2) create database link remote_db
connect to <user> identified by <password>
using '<prod-db>';

3) create mytable as select * from mytable@remote_db;

 
Hi,for single table transfers I find nothing
beats the COPY command in SqlPlus - you can pre-set the COMMIT size and keep rollback segment use minimal (using SET COPYCOMMIT=n ), it gives immediate feedback and runs quite fast..Syntax, in general is:

Code:
COPY from username/password@thisdatabase to username/password@thatdatabase 
CREATE ( or INSERT, APPEND, REPLACE) 
Table_name_at_thatdatabase
Using Select * from ......

[profile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top