|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Yesterday @ 5:32 PM
Points: 306,
Visits: 1,013
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 12:01 PM
Points: 2,677,
Visits: 2,273
|
|
| In the definition of the linked server, is 'ORACLESP' the resolved name from tnsnames, or is it the actual server name? Or either?
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 3:34 PM
Points: 2,170,
Visits: 3,582
|
|
Thank you Rudy, nice article
Mohammed Moinudheen
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Yesterday @ 5:32 PM
Points: 306,
Visits: 1,013
|
|
kevriley (6/6/2011) In the definition of the linked server, is 'ORACLESP' the resolved name from tnsnames, or is it the actual server name? Or either?
This is the serivce name which is located in the TNSNAMES.
Hope this helps,
Rudy
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 12:01 PM
Points: 2,677,
Visits: 2,273
|
|
Thought it was, still doesn't help me.
I have the error
Cannot initialize the data source object of OLE DB provider "OraOLEDB.Oracle" for linked server "ORACLESRV1". OLE DB provider "OraOLEDB.Oracle" for linked server "ORACLESRV1" returned message "ORA-12541: TNS:no listener". (.Net SqlClient Data Provider)
I think there must be something else preventing me from making the connection.
As an aside I can connect fine to this Oracle instance using TOAD/ Oracle SQL Developer, so I know that I am not 'blocked' as such.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Yesterday @ 5:32 PM
Points: 306,
Visits: 1,013
|
|
You need to change the "ORACLESRV1" parameter to your server name. Verify all your setting and try again. If you have an Oracle DBA than ask them for some help.
Do you installl the Oracle client on your SQL server? I had lots of issues until I installed it. The installation must be on your server not your workstation.
Rudy
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 12:01 PM
Points: 2,677,
Visits: 2,273
|
|
Rudy,
the ORACLESRV1 is just the name of the linked server, that you can then reference in SQL - that shouldn't have any effect?
Yes I have the Oracle client installed
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Yesterday @ 5:32 PM
Points: 306,
Visits: 1,013
|
|
In my article ORACLESRV1 is the server name. Maybe you should first try to setup the link connection with the GUI. Once you see it working then you can modify the script to fit your needs.
Please verify:
@server = your oracle server name and @datasrc = service name located in your tnsnames
One last thing, did you install the Oracle client onto the SQL server that you connected to?
If you are still having issues you may have to talk to your Oracle DBA as I'm not sure what else to say.
Thanks,
Rudy
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Thursday, February 21, 2013 12:54 PM
Points: 18,
Visits: 31
|
|
| Great article. It's so much easier to gather Oracle information from SQL Server than Oracle itself.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Friday, November 11, 2011 11:22 AM
Points: 100,
Visits: 236
|
|
| if you installed oracle client on sql server ,then what is the use of if.u need to create linked server to oracle client and then oracle client make connection to oracle server
|
|
|
|