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

Thread: Can not create table using Procedure

  1. #1
    Join Date
    Sep 2005
    Posts
    21

    Can not create table using Procedure

    I have created one procedure which creates a table in ohter schema.
    Tablename,schema name and tablespace name i m passing through dynamically.(actually I stored those value in table and i am passing this value while creating table). It is executing successfully on my development environment but when i ran same procedure on test environment (other server) than it is giving me error of insufficient previleges. I have made replica of devlopment environment to test environment .

    I have given both users dba role. But still it shows me insufficient previleges error.

  2. #2
    Join Date
    Nov 2002
    Location
    New Delhi, INDIA
    Posts
    1,796
    Does user A who is executing the procedure have quota on user B's tablespace? If yes then try giving 'create any table' grant to user A.
    Amar
    "There is a difference between knowing the path and walking the path."

    Amar's Blog  Get Firefox!

  3. #3
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    obviously a role is not enough for stored procedures, you must grant the privilege directly and not through a role

  4. #4
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,684
    This is one of those things that comes up time and time again. Perhaps Oracle should put a slight enhancement into the database, whereby when an insufficient privileges error is detected the server checks if the permission is granted via a role. If it is it displays a different message like,

    "insufficient privileges - Your privileges on this object are granted via a role, not directly"

    That way the cause of the issue would be more obvious.

    Just a thought...

    Cheers

    Tim...
    Tim...
    OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
    OCA PL/SQL Developer
    Oracle ACE Director
    My website: oracle-base.com
    My blog: oracle-base.com/blog

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