permaculture playing cards*
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 Murach's Java Servlets and JSP this week in the Servlets 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

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: 17249

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
It is sorta covered in the JavaRanch Style Guide.
subject: How can i imp to remote oracle database
Similar Threads
Accessing external DataSource
Re: Connecting to an orcle data base. EJB with BMP.
oracle 9i client for 8i database
"oracle 9i Client" and "Oracle 9i personal edition"
how to use policy tool for Applets in java ?