Create a new management user in Ilma!

Source: Internet
Author: User

Prerequisites:

1. Oracle Database 11g R2 database has been installed.

2. Oracle Application Express has been installed.

We can use the following two steps to create an ilm_admin user.
Sqlplus/As sysdba
Create user ilm_admin identified by ilm_admin default tablespace ILM;

SQL> @ grant_privs ilm_admin

Session altered.

Session altered.

Old 1: grant manage tablespace to & ilm_user
New 1: grant manage tablespace to ilm_admin

Grant succeeded.

Old 1: grant alter tablespace to & ilm_user
New 1: grant alter tablespace to ilm_admin

Grant succeeded.

Old 1: grant alter any table to & ilm_user
New 1: grant alter any table to ilm_admin

Grant succeeded.

Old 1: grant drop any table to & ilm_user
New 1: grant drop any table to ilm_admin

Grant succeeded.

PL/SQL procedure successfully completed.

 

 

Old 1: grant advisor to & ilm_user
New 1: grant advisor to ilm_admin

Grant succeeded.

Old 1: grant alter any table to & ilm_user
New 1: grant alter any table to ilm_admin

Grant succeeded.

Old 1: grant drop any table to & ilm_user
New 1: grant drop any table to ilm_admin

Grant succeeded.

Old 1: grant manage tablespace to & ilm_user
New 1: grant manage tablespace to ilm_admin

Grant succeeded.

Old 1: grant alter tablespace to & ilm_user
New 1: grant alter tablespace to ilm_admin

Grant succeeded.

Old 1: grant execute on ilm_toolkit.ilm_toolkit to & ilm_user
New 1: grant execute on ilm_toolkit.ilm_toolkit to ilm_admin

Grant succeeded.

Creating the ILM $ user package for immutability features...

Old 2: l_username varchar2 (30): = '& ilm_user ';
New 2: l_username varchar2 (30): = 'ilm _ admin ';
Declare
*
Error at line 1:
ORA-01435: user does not exist
ORA-06512: At line 51

--- Pay attention to this place. The username must be capitalized.
SQL> @ grant_privs ilm_admin

Session altered.

Session altered.

Old 1: grant manage tablespace to & ilm_user
New 1: grant manage tablespace to ilm_admin

Grant succeeded.

Old 1: grant alter tablespace to & ilm_user
New 1: grant alter tablespace to ilm_admin

Grant succeeded.

Old 1: grant alter any table to & ilm_user
New 1: grant alter any table to ilm_admin

Grant succeeded.

Old 1: grant drop any table to & ilm_user
New 1: grant drop any table to ilm_admin

Grant succeeded.

PL/SQL procedure successfully completed.

 

 

Old 1: grant advisor to & ilm_user
New 1: grant advisor to ilm_admin

Grant succeeded.

Old 1: grant alter any table to & ilm_user
New 1: grant alter any table to ilm_admin

Grant succeeded.

Old 1: grant drop any table to & ilm_user
New 1: grant drop any table to ilm_admin

Grant succeeded.

Old 1: grant manage tablespace to & ilm_user
New 1: grant manage tablespace to ilm_admin

Grant succeeded.

Old 1: grant alter tablespace to & ilm_user
New 1: grant alter tablespace to ilm_admin

Grant succeeded.

Old 1: grant execute on ilm_toolkit.ilm_toolkit to & ilm_user
New 1: grant execute on ilm_toolkit.ilm_toolkit to ilm_admin

Grant succeeded.

Creating the ILM $ user package for immutability features...

Old 2: l_username varchar2 (30): = '& ilm_user ';
New 2: l_username varchar2 (30): = 'ilm _ admin ';

PL/SQL procedure successfully completed.

Test: Use the ilm_admin user to log on to the system.

Enter the following address in the browser:

Http: // localhost: 8081/apex/F? P = 737677

Enter ilm_admin and password:

If it is correct, the following interface should be returned:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.