Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2010
    Posts
    40

    Unanswered: help with dbadm privilege

    Hi All,

    I have my database on 9.5.8 aix 6.4. I have the database instance user that seem to have connect privilege to the database only. If I try to grant dbadm authority to it, I get the following error

    SQL0554N An authorization ID cannot grant a privilege or authority to itself.
    SQLSTATE=42502

    The problem is I am running the dbadm authority to another userid as the database instance. the command runs successfully without any error but doesnot take into effect. when I check the dbauth view it says

    db2 "select dbadmauth,connectauth,grantee from syscat.dbauth"
    DBADMAUTH CONNECTAUTH GRANTEE
    --------- ----------- --------------------------------------------------------------------------------------------------------------------------------

    N Y XXXXX
    Y Y XXXXX

    when I connect to the database with this userid and run db2 get authorizations it does show

    Direct DBADM authority = YES
    Indirect DBADM authority = YES

    but it doesnot allow me to run anything that needs dbadm authority like alter a sequence

    Can somebody please help,

    thank you

    Smriti

  2. #2
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    dbadm should do for alter sequence
    and the error code ?
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

Posting Permissions

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