66chawger
asked on
Microsoft ODBC driver for Oracle ORA-00942: Table or view does not exist issue
I have a SQL 2005 job that runs some script to pull info from Oracle to SQL. The script is unchanged and executes once daily in the AM, however started receiving the error message on 2/19/2015. I just started with this company and am going through all the servers, DB's, etc...
I have verified that the connection criteria is working. The other possible issues I have found could be can't find the table or view, or possibly a schema definition in the script? I have included the error message below along with the the script from the first step (and error is occuring on first step.
Message
Executed as user: DOMAIN\SERVER$. Error Code: 0 Error Source= DBServer.Retrieve Error Description: [Microsoft][ODBC driver for Oracle][Oracle]ORA-00942: table or view does not exist Error on Line 9. The step failed.
VBScript:
Dim oCOM
Dim sSrcConn
Dim sDestConn
sSrcConn = "DRIVER={Microsoft ODBC For Oracle};SERVER=Alpha.Omega ;UID=abcde fg;PWD=123 45678"
sDestConn = "Provider=SQLOLEDB;Server= SERVER01;D atabase=St at;UID=;Tr usted_Conn ection=yes "
Set oCOM = CreateObject("StatEmp.Emp" )
oCOM.LoadCatalogData sSrcConn, sDestConn
Set oCOM = Nothing
Set sSrcConn= Nothing
Set sDestConn= Nothing
I have verified that the connection criteria is working. The other possible issues I have found could be can't find the table or view, or possibly a schema definition in the script? I have included the error message below along with the the script from the first step (and error is occuring on first step.
Message
Executed as user: DOMAIN\SERVER$. Error Code: 0 Error Source= DBServer.Retrieve Error Description: [Microsoft][ODBC driver for Oracle][Oracle]ORA-00942: table or view does not exist Error on Line 9. The step failed.
VBScript:
Dim oCOM
Dim sSrcConn
Dim sDestConn
sSrcConn = "DRIVER={Microsoft ODBC For Oracle};SERVER=Alpha.Omega
sDestConn = "Provider=SQLOLEDB;Server=
Set oCOM = CreateObject("StatEmp.Emp"
oCOM.LoadCatalogData sSrcConn, sDestConn
Set oCOM = Nothing
Set sSrcConn= Nothing
Set sDestConn= Nothing
Can you share the code that does the Select statement that is failing? But this seems to be permission issue on Oracle database.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The oracle DB is remote and am waiting on verification of the uid and pw being used. slightwv, I will look into downloading/setup for the Oracle Instant Client.
ASKER
Ultimately this was the best solution. The proprietary Oracle native drivers are more reliable.
can you confirm that this user has the appropriate rights? Maybe someone revoked the right or removed the synonym?