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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL*Loader and Multiple Instances on a Server 2

Status
Not open for further replies.

THoey

IS-IT--Management
Jun 21, 2000
2,142
US
I have created two different instances of a database on one server. Both instances have a user created with several objects (same user name). How can I specify whichinstance I want to load the data into? Terry M. Hoey
 
Don't you have to provide a tns alias to indicate which instance you want to log into? You would use the same tns aliases to start your sql*loader run.
 
You are correct. I tried it before, but it came down to I had a problem with server. Rebooted and then did the following:

SQLLDR login/password@instance controlfilename

But thanks for the mental kick Carp... Terry M. Hoey
 
I think maybe this is what you mean? I put this at the top of my ctl file and copy and paste it (minus the "--") into my dos window (by right-clicking on the window's title bar and choosing "paste")

-- sqlldr73 username/password@sid control=E:\path\file.ctl log=E:\path\file.log

The username/password@sid indicates which instance.

Hope this is what you were after.
John Hoarty
jhoarty@quickestore.com
 

or, you can set or export ORACLE_SID to the instance of your preference.

if you have a Unix backend, include in your script the following line. Better approach is to parameterize the sid:

export ORACLE_SID=$sid1

...

sqlldr user/pwd controlfile

Just an idea...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top