Question : Linking with Oracle: Table or view does not exist

SQL Server 2000
Oracle 8i

I am executing the below query in Query Analyzer, trying to access the Oracle view TEST_LISTS.

---[query]---
SELECT *
FROM OPENQUERY(ORASVRTEST, 'SELECT * FROM TEST_LISTS')
---[query]---

---[error]---
Server: Msg 7321, Level 16, State 2, Line 6
An error occurred while preparing a query for execution against OLE DB provider 'OraOLEDB.Oracle'.
[OLE/DB provider returned message: ORA-00942: table or view does not exist]
OLE DB error trace [OLE/DB Provider 'OraOLEDB.Oracle' ICommandPrepare::Prepare returned 0x80040e14].
---[error]---

Any suggestions?

In Enterprise Manager I get the following table list (first -> last) for ORASVRTEST
AUDIT_ACTIONS
...
TABLE_PRIVILEGE_MAP

And the following views:
ALL_ALL_TABLES
...
V_$VERSION

I am no Oracle expert, so are these the normal lists I should be getting for a particular quite restricted user?

Answer : Linking with Oracle: Table or view does not exist

Prefix TEST_LISTS with its schema id, you will get this from the schema column in EM.

SELECT *
FROM OPENQUERY(ORASVRTEST, 'SELECT * FROM OWNER.TEST_LISTS')

 Also the other tables are   normally what you see.

Random Solutions  
 
programming4us programming4us