DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: View over table in different schema

  1. #1
    Join Date
    Aug 2001
    Posts
    1

    Angry

    Now here's a description.
    I am connected to schema S_A and want a view V_B over table B in schema S_B. I am able to "SELECT COL1 FROM S_B.B" but get an error when "CREATE OR REPLACE VIEW (COL1) AS SELECT COL1 FROM S_B.B", the error is "ORA-00942: table or view does not exist".
    Can anyone provide me an idea of what's wrong, please?!
    Thanks a lot
    André

  2. #2
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    Issue

    GRANT SELECT ANY TABLE TO user;

    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


  3. #3
    Join Date
    May 2001
    Location
    San Francisco, California
    Posts
    511
    Do you have a synonym in S_A for S_B.table_B?

    create synonym S_A.table_B for S_B.table_B;

    In addition, ask S_B to grant all object privileges on table B to S_A such as:

    grant all on S_B.table_B to S_A;

    [Edited by kris109 on 09-03-2001 at 04:44 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
  •  


Click Here to Expand Forum to Full Width