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

Thread: admin procedures

  1. #1
    Join Date
    Nov 2000
    Posts
    175
    Hi everyone,

    I am wanting to create a package with several procedures using the execute immediate for user administration. The package would contain: create user, drop user, grant, revoke statements with the variables passed in when executed.

    Question:

    Who should own a package like this? I would probably run this as SYS, but should I create a package in the SYS schema?

    Does or has anyone else done this before? What are the pros and cons of creating as SYS?

    Thanks
    Kathy

  2. #2
    Join Date
    Aug 2001
    Location
    chennai,bangalore
    Posts
    840
    its better to create under a user who has dba previleges.Not the sys or system user.

    cheese
    anandkl
    anandkl

  3. #3
    Join Date
    Jan 2001
    Posts
    2,828

    Talking

    Hi

    I suggest you not to craete any objects in the sys schema as it a dangerous to do so from a security perspective.It might bring down your system or corrupt your database.

    regards
    Hrishy

  4. #4
    Join Date
    Aug 2001
    Location
    Waterloo, On
    Posts
    547
    Apart from very real danger of damaging SYS owned objects, there is the question of performance. The SYSTEM tablespace already has a lot of I/O activity going on when the database is in use. You don't want to increase the I/O in that tablespace further.

    Raminder Singh

    Oracle Certified DBA: Oracle 8i, 9i


    Mail me at raminderahluwalia@rediffmail.com.

  5. #5
    Join Date
    May 2001
    Location
    San Francisco, California
    Posts
    511
    My suggestion is to create separate scripts in a directory such as /dba as opposed to a package in the database. We do like that. When I need to create a new user I just do @create_user. Any DBA with create user privileges can use these scripts.
    Remember the Golden Rule - He who has the gold makes the rules!
    ===================
    Kris109
    Ph.D., OCP 8i, 9i, 10g, 11g DBA

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