Aug 23, 2021

ORA-47400: Command Rule violation

 If you are facing below error while creating user or Profile in Oracle database even after connecting SYS / SYSTEM user, then you don't have grants / privileges to do so in Data Vault enabled environment.

                   ORA-47400: Command Rule violation


e.g,

SQL> connect sys as sysdba

SQL> CREATE PROFILE C##TEST LIMIT PASSWORD_LIFE_TIME UNLIMITED PASSWORD_VERIFY_FUNCTION verify_function;

CREATE PROFILE C##TEST LIMIT PASSWORD_LIFE_TIME UNLIMITED PASSWORD_VERIFY_FUNCTION verify_function

*

ERROR at line 1:

ORA-47400: Command Rule violation for CREATE PROFILE on C##TEST


How to fix:

DV_ACCTMGR or DV_ADMIN grant will not help. Use DV_PATCH_ADMIN  grant to sys account from DV user. In DV enabled environment sys / system both are not super users.

e.g.,

SQL> conn C##DVADMIN
Enter password:
Connected.
SQL> ALTER SESSION SET CONTAINER=CDB$ROOT;
Session altered.SQL> grant DV_PATCH_ADMIN to sys;Grant succeeded.


Now tested:
SQL> connect sys as sysdba
SQL>  ALTER SESSION SET CONTAINER=CDB$ROOT;Session altered.SQL> CREATE PROFILE C##TEST LIMIT PASSWORD_LIFE_TIME UNLIMITED PASSWORD_VERIFY_FUNCTION verify_function;Profile created.


12 comments:

  1. Nice post. It is really interesting. Thanks for sharing the post!
    Oracle Database Certification

    ReplyDelete
    Replies
    1. This comment has been removed by a blog administrator.

      Delete
    2. This comment has been removed by a blog administrator.

      Delete
  2. A few months ago, I felt so depressed, I got frustrated with bad credits, but then I contacted HACK VANISH by phone: +1 (747) 293-8514 and email: HACK VANISH (@) GMAIL. COM. I found out about hack vanish services through positive reviews read on some credit blogs, in a blink of an eye this great hacker restored my credit score from 509 to 784 in all 3 major credit bureaus, they got removed evictions and foreclosures, my LexisNexis and Chex system was repaired respectively, a few days later I received an email confirming the approval of my mortgage loan, it was quite surprising because I never thought it was possible. Today, I can confidently say that 2021 was a banner year for my husband and I as we now own a new house and a new SUV courtesy of HACK VANISH, I would definitely recommend him to anyone in need of a genuine Hacker.

    ReplyDelete
  3. Hello everyone my name is lucky Clark i am from U.K i'm giving a testimony on how I joined the illuminati brotherhood, I was trying to join this organization for so many years now, I was scammed by fake agent in south Africa and Nigeria, I was down i could not feed my self and my family anymore and I tried to make money by all means but all in vain, I was afraid to contact any illuminati agent because they have eat my money, one day I came across a post of someone giving a testimony thanking a man called Charles Anthony for helping him to join the illuminati brotherhood, then I looked at the man's email and the phone number that was written there, I was afraid to contact him because i was scammed a lot of times by scammers who ate my 5000,000 and went away with the money then I was very confused so I decided to contact the person that was given the testimony and i called him and I communicated with him on phone calls before he started telling me his own story about when he wanted to join he told me everything to do, then I made up my mind and called the agent called Charles Anthony and he told me everything to do and I was initiated, surprisingly I was given my benefit of being a new member of the great illuminati brotherhood I was so happy, for those of you trying to join this organization this is your opportunity for you to join CONTACT MR Charles Anthony call .(+2348119132137) or WhatsApp him (+2348119132137) or Email johnwilliam22131@gmail.com

    ReplyDelete
  4. All thanks to Mr Anderson for helping with my profits and making my fifth withdrawal possible. I'm here to share an amazing life changing opportunity with you. its called Bitcoin / Forex trading options. it is a highly lucrative business which can earn you as much as $2,570 in a week from an initial investment of just $200. I am living proof of this great business opportunity. If anyone is interested in trading on bitcoin or any cryptocurrency and want a successful trade without losing notify Mr Anderson now.Whatsapp: (+447883246472 )
    Email: tdameritrade077@gmail.com

    ReplyDelete
  5. This comment has been removed by a blog administrator.

    ReplyDelete
  6. I lost my job few months back and there was no way to get income for my family, things was so tough and I couldn't get anything for my children, not until a met a recommendation on a page writing how Mr Bernie Wilfred helped a lady in getting a huge amount of profit every 6 working days on trading with his management on the cryptocurrency Market, to be honest I never believe it but I took the risk to take a loan of $1000. and I contacted him unbelievable and I was so happy I earn $12,500 in 6 working days, the most joy is that I can now take care of my family I don't know how to appreciate your good work Mr. Bernie Doran God will continue to bless you for being a life saver I have no way to appreciate you than to tell people about your good services.
For a perfect investment and good strategies contact Mr Bernie Doran via WhatsApp :+1(424)285-0682 or Telegram : @Bernie_doran_fx or Email : Bernie.doranfx01@gmail.com

    ReplyDelete
  7. This comment has been removed by a blog administrator.

    ReplyDelete
  8. This comment has been removed by a blog administrator.

    ReplyDelete
  9. This comment has been removed by a blog administrator.

    ReplyDelete
  10. This comment has been removed by a blog administrator.

    ReplyDelete

Translate >>