This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Oracle/OAS and the fly likes How can i imp to remote oracle database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "How can i imp to remote oracle database" Watch "How can i imp to remote oracle database" New topic
Author

How can i imp to remote oracle database

David Rocks
Ranch Hand

Joined: Apr 24, 2001
Posts: 162
Hi,
I am trying to import to a remote oracle database. I have a dmp file from my own database but i am sure that you can imp to a remote db by something like.
imp user/password@ipaddress:1521:instance
it does not work though i am sure i am close in my syntax. can anybody tell me what i am doing wrong?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17276
    
    6

Well if you have access to the remote database, you can have it in your tnsnames.ora file and then you connect exactly like you do to your local database.
For example
<<TNS_NAME HERE>> =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = <<ip address here>> (PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = <<database service name here>>
)
)
then you use:
imp user/password@<<TNS_NAME HERE>>
Mark


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can i imp to remote oracle database
 
It's not a secret anymore!