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

Thread: grant for package

  1. #1
    Join Date
    Jan 2001
    Posts
    153
    hi

    i have 2 users USERA and USERB. I have a package called INTEG in USERA !! i wanted to create a public synonym on INTEG to USERB !! i ve connected as system and gave the following command

    create public synonym INTEGRAT for INTEG;
    grant execute on integrat to USERB..

    But is giving error !! can somebody suggest how do go abt this..

  2. #2
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    Why don't you just give

    from userA
    GRANT EXECUTE ON integ TO userb;


    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


  3. #3
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    Your public synonym points to a nonexisting object. You created the public synonym with user SYSTEM without specifying the owner of the package INTEG. So unless user SYSTEM has some kind of object with this same name in his schema the synonym points nowhere! What you should do now is:

    CONNECT SYSTEM;
    DROP PUBLIC SYNONYM integrat;
    CREATE PUBLIC SYNONYM integrat FOR userA.integ;

    CONNECT userA;
    GRANT EXECUTE ON integ TO userB;

    HTH,
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

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