Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
sowmyav
Starting Member
34 Posts |
Posted - 2009-02-26 : 01:22:30
|
| Hi,I created a new linked server named TEST_SQL.And the properties are as followsIn the General TabLinked server-> TEST_SQLSErver type-> Other data sourceProvider-> Oracle Provider for OLE DBProduct Name -> OracleDatasource -> PASDWProvider string ->Microsoft OLE DBAnd Security Tabdetails are given for local login/ Remoteruser/pwd and the be madeusing the login's current security contextand the SErver options tabthe first 5 are set to true and last 2 are set to 0.And When I tried to EXEC the same as follows, I am getting the Errorselect * from [TEST_SQL].[ASUP_HDD].[dbo].[t_scsi_cmd_checkCondition] ERR:OLE DB provider "OraOLEDB.Oracle" for linked server "TEST_SQL" returned message "ORA-01017: invalid username/password; logon denied".Msg 7303, Level 16, State 1, Line 1Cannot initialize the data source object of OLE DB provider "OraOLEDB.Oracle" for linked server "TEST_SQL".AS I am new to sql server, I am not able to make out the Err cause.Could anyone please help me on the same.Thanks,Sowmya |
|
|
ashishashish
Constraint Violating Yak Guru
408 Posts |
|
|
sowmyav
Starting Member
34 Posts |
Posted - 2009-02-26 : 02:16:20
|
| Thanks!I looked the same.It was helpful.I created the Linked server through the GUI instead of EXec....statementsanyway it is created as TEST_SQLNow I wanted to fetch the data in the oracle db through linked server.as select * from openquery (TEST_SQL,'select * from [ASUP_HDD].[dbo].[t_scsi_cmd_checkCondition]')but I am getting the error msgOLE DB provider "OraOLEDB.Oracle" for linked server "TEST_SQL" returned message "ORA-01017: invalid username/password; logon denied".Msg 7303, Level 16, State 1, Line 1Cannot initialize the data source object of OLE DB provider "OraOLEDB.Oracle" for linked server "TEST_SQL".please let me know what should be done now? |
 |
|
|
sowmyav
Starting Member
34 Posts |
Posted - 2009-02-26 : 03:41:18
|
| Hi, I Checked out the Err.And i tried by creating another linked server for which I got the Err msg for the query asselect * from openquery (TEST_LNK,'select * from [ASUP_HDD].[dbo].[t_scsi_cmd_checkCondition]')ERR:OLE DB provider "MSDAORA" for linked server "TEST_LNK" returned message "ORA-12154: TNS:could not resolve the connect identifier specified".Msg 7303, Level 16, State 1, Line 1Cannot initialize the data source object of OLE DB provider "MSDAORA" for linked server "TEST_LNK".It could me helpful for me if somebody help to fetch the needed table through linked server. |
 |
|
|
|
|
|
|
|