SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Agent Unable to Initiate Linked Server without User Logged on


SQL Agent Unable to Initiate Linked Server without User Logged on

Author
Message
YCH
YCH
SSC Journeyman
SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)

Group: General Forum Members
Points: 83 Visits: 47
I admit that this is new to me.

I have a SQL Server 2005, where I created a linked server to an Oracle database(Remote). I can view the catalogs on the remote. I have a job set up, to initiate the linked server, to download certain records at night.

While I am logged onto the server, sometimes even if I am "disconnected", the jobs just fine.

However, If I log off the server, the job will launch, but within 1 second, it fails, with error message saying
"Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server..."

The SQL Agent is running as a domain user account.

Never seen this before. Any help you can offer is appreciated.



Bhuvnesh
Bhuvnesh
SSCertifiable
SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)

Group: General Forum Members
Points: 5312 Visits: 4076
YCH (4/1/2010)
"Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server..."
post the complete error and query you are using in job.

-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
YCH
YCH
SSC Journeyman
SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)

Group: General Forum Members
Points: 83 Visits: 47
Ok. Here's the complete error message. Remember, if I am logged onto the job as the jobs starts, the job would finish fine, without any error at all.

Date 4/1/2010 4:00:00 AM
Log Job History (DownloadUpdates)

Step ID 1
Server S-SQL
Job Name DownloadUpdates
Step Name DownloadFromMAX
Duration 00:00:01
Sql Severity 16
Sql Message ID 7412
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0

Message
Executed as user: PNPS\sqlservice. Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "MAX". [SQLSTATE 42000] (Error 7303) OLE DB provider "MSDASQL" for linked server "MAX" returned message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed". [SQLSTATE 01000] (Error 7412) OLE DB provider "MSDASQL" for linked server "MAX" returned message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed". [SQLSTATE 01000] (Error 7412) OLE DB provider "MSDASQL" for linked server "MAX" returned message "[Microsoft][ODBC driver for Oracle][Oracle]ORA-12541: TNS:no listener". [SQLSTATE 01000] (Error 7412). The step failed.



YCH
YCH
SSC Journeyman
SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)SSC Journeyman (83 reputation)

Group: General Forum Members
Points: 83 Visits: 47
Correction - I meant to say that "When I logged onto the server as the job starts."



Bhuvnesh
Bhuvnesh
SSCertifiable
SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)

Group: General Forum Members
Points: 5312 Visits: 4076
I havent got much help from these deatils but it looks like the agent user doen't have access to the linked server.
Also refer this http://support.microsoft.com/default.aspx?scid=kb;en-us;906954

-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search