Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: JAGANNADHPosted on 2000-10-04 at 12:51:47ID: 4583710
Here you go:
Let us assume:
your 1st database name : prod
user name: scott
table name: emp
Your 2nd database name: rep
username:scott
At first database:
Run this script at $ prompt (if it is a unix box) or at C:\> prompt if it is a PC or NT
exp scott/tiger file=emp.dmp log=emp.log indexes=y rows=y tables=EMP
This will create emp.dmp file, which us the export file for that table.
Now copy this file to other location where 2nd database is located.
At second database:
run this script at $ prompt or at c:\>
imp scott/tiger file=emp.dmp log=emp.log rows=y ignore=y
This will import the table into the 2nd database. If you aleady have the same table in the 2nd database, with the above option of ignore=y, it will ignore the objects existance.
Hope this answers your question.