Results 1 to 4 of 4
  1. #1
    djo2237 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    2

    Ora-00942 Error on PTQ

    I'm attempting to create a pass-through query (PTQ) to my local Oracle XE instance via OBDC. When I run my PTQ I get an Ora-00942 error "table or view doesn't exist". I have ensured that the table does exist and the user I'm connecting as can Select data from the table using SQL-Plus. The statement I'm using in the PTQ runs fine in Sql-Plus.



    I have verified my connection string is correct by successfully running:

    SELECT sysdate from dual;

    If I try to link the table, I can browse to it and create the link. When I try to open it I get an Ora-00942 error again.

    I'm thinking it is a security issue on the database side but I'm not certain. I would appreciate any and all help

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    When you link the table into access can you open the table with no trouble?

    If you can it *may* be a problem with reserved words

    Try linking your table but giving it a different name like tblDual and when you reference your field do something like [tblDual]![sysDate] as SD.

    I don't use oracle so I'm afraid I'm not much help but it seems odd that you can link the table but not get a query run on it.

  3. #3
    djo2237 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    2
    I can create a linked table but cannot open it to view the data. Just like the PTQ it returns the Ora-00942 error.

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I think you're right that it's a security issue. I know when you link a SQL table you can choose to use windows authentication which requires you to have a user set up on the SQL server with the exact same login name/password and also have that user set up with the permission to modify/view the database within SQL itself. I haven't used orcale links but if it's similar you may have to follow the same sort of procedure.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Error 2501 displays with Error handling
    By agent- in forum Programming
    Replies: 13
    Last Post: 08-05-2011, 02:20 PM
  2. Error 3464 Reserved Error
    By e.badin in forum Reports
    Replies: 6
    Last Post: 07-18-2011, 02:47 PM
  3. Error 13 Type Mismatch error
    By GlennBurg in forum Programming
    Replies: 1
    Last Post: 06-21-2011, 03:05 AM
  4. Replies: 8
    Last Post: 05-16-2011, 06:01 PM
  5. Replies: 2
    Last Post: 12-02-2010, 02:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums