Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Integration Service and Oracle 8 whit ODBC connection Expand / Collapse
Author
Message
Posted Wednesday, January 12, 2011 2:57 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, January 12, 2011 9:13 AM
Points: 4, Visits: 3

Integration Service and Oracle 8 whit ODBC connection Work on Integration Service but does not work on Sql Server Agent inside a "Job".


I need to move some information from Oracle 8 to Sql Server 2008. I dont have the way to connect other way but only "ODBC". For that matter i created a DSN using

%SystemRoot%\SysWOW64\odbcad32.exe

Them on the Integration Service package i used

uid=gai_hseq;pwd=passw012;Dsn=Oracle;

When i run the packaged inside Integration Server it runs fine.

But i need to created a Job to Execute everyday. I change the connection on DataSource inside the Step job like this uid=gai_hseq;pwd=passw012;Dsn=Oracle; . But when i execute the job. i got this error

Source: Incidentes Connection manager "Oracle" Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D. An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server" Hresult: 0x80040E4D Description: "Login failed for user 'gai_hseq'.". An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server" Hresult: 0x80040E4D Description: [color=#666]"Invalid connection string attribute". [/color]End Error

Post #1046340
Posted Wednesday, January 12, 2011 3:10 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Yesterday @ 10:25 AM
Points: 40,385, Visits: 36,827
Source: Incidentes Connection manager "Oracle" Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D. An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server" Hresult: 0x80040E4D Description: "Login failed for user 'gai_hseq'.". An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server" Hresult: 0x80040E4D Description: [color=#666]"Invalid connection string attribute".


From the error message, the login gai_hseq doesn't exist in SQL Server or the password is wrong.

The connection manager is named 'Oracle', but it's connecting to SQL server (Microsoft OLE DB Provider for SQL Server). Are you sure the connection string is correct?



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1046348
Posted Wednesday, January 12, 2011 7:07 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, January 12, 2011 9:13 AM
Points: 4, Visits: 3
When i run the package inside Integration Service runs fine... I changed the way i connect and now i get this error. (The error it is only when i run the package inside a Job on Sql Server Agent)

Source: Inserta Horas Hombre Empleados ADO NET Source [337] Description: System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle<c/> RetCode retcode) at System.Data.Odbc.OdbcConnectionHandle..ctor(OdbcConnection connection<c/> OdbcConnectionString constr<c/> OdbcEnvironmentHandle environmentHandle) at System.Data.Odbc.OdbcConnectionOpen..ctor(OdbcConnection outerConnection<c/> OdbcConnectionString connectionOptions) at System.Data.Odbc.OdbcConnectionFactory.CreateConnection(DbConnectionOptions options<c/> Object poolGroupProviderInfo<c/> DbConnectionPool pool<c/> DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection<c/> DbConnectionPoolGroup poolGroup) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
Post #1046463
Posted Wednesday, January 12, 2011 8:10 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Yesterday @ 10:25 AM
Points: 40,385, Visits: 36,827
Source: Inserta Horas Hombre Empleados ADO NET Source [337] Description: System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle<c/> RetCode retcode)


Looks like the DSN you specified doesn't exist or cannot be found due to permissions.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1046515
Posted Wednesday, January 12, 2011 9:16 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, January 12, 2011 9:13 AM
Points: 4, Visits: 3
Thanks. I was creating the DSN as user. So the solution was create it as "System DSN". Integration service can run but Service Job is execute whit this user NETWORKSERVICE.

Thanks.
Post #1046570
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse