This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

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

How can i imp to remote oracle database

David Rocks
Ranch Hand

Joined: Apr 24, 2001
Posts: 162
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

Joined: Feb 05, 2001
Posts: 17271

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
(ADDRESS = (PROTOCOL = TCP)(HOST = <<ip address here>> (PORT = 1521))
(SERVICE_NAME = <<database service name here>>
then you use:
imp user/password@<<TNS_NAME HERE>>

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: How can i imp to remote oracle database
jQuery in Action, 3rd edition