Link to home
Start Free TrialLog in
Avatar of 66chawger
66chawgerFlag for United States of America

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=abcdefg;PWD=12345678"
sDestConn = "Provider=SQLOLEDB;Server=SERVER01;Database=Stat;UID=;Trusted_Connection=yes"
   
Set oCOM = CreateObject("StatEmp.Emp")

oCOM.LoadCatalogData sSrcConn, sDestConn
   
Set oCOM = Nothing
Set sSrcConn= Nothing
Set sDestConn= Nothing
Avatar of Haris Dulic
Haris Dulic
Flag of Austria image

Hi,

can you confirm that this user has the appropriate rights? Maybe someone revoked the right or removed the synonym?
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
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 66chawger

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.
Ultimately this was the best solution.  The proprietary Oracle native drivers are more reliable.