Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2004
    Posts
    43

    Unanswered: cross-schema reference

    hi all
    a new with oracle
    I have user Util and table Util.Users with primary key "ID"
    I have user Org and user Util have rights to create tables in schema Org
    then i try to do this:
    Code:
    create table org.tt1(id integer references Util.users(id))
    i get
    Code:
    create table org.tt1(id integer references util.users(id))
    
    ошибка в строке 1:
    ORA-00942: таблица или представление пользователя не существует
    what's wrong?
    PS if I create this table in schema "Util" then all OK
    Last edited by nelapsi; 01-18-06 at 11:03.

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool


    Does org schema have select privileges on util.users table?
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

  3. #3
    Join Date
    Dec 2004
    Posts
    43
    Quote Originally Posted by LKBrwn_DBA

    Does org schema have select privileges on util.users table?
    user Util and Org have role S_USER, which have "SELECT ANY TABLE" right

  4. #4
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool


    May be that org schema must have direct select privileges on util.users table (not through role)
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

  5. #5
    Join Date
    Jan 2004
    Posts
    370
    grant references(id) on util.users to org;


    hth
    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •