oracle create new users and grant permissions

 

1, while pressing WIN + R key to open the key "run", type cmd, and enter into the command prompt

 

 

 

2, the input "sqlplus" Press Enter to prompt for a user name, enter "sys as sysdba", press enter, enter the password, sys i.e. the password provided four -13 (123456)

 

 

 

More than a little tedious steps, or you can open SQL Plus from the Start menu:

 

 

 

After starting the SQL Plus, you will be prompted to enter a user name and password. According to the above steps to enter the login user name and password

C:\Users\Administrator>sqlplus

 

SQL * Plus: Release 11.2.0.1.0 Production on Friday November 10 2017 04:32:17

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

 

Please enter your user name: sys as sysdba

Password:

3, create a new user with the following CREATE USER statement: HHZDH, may be used to create the sample database into the database:

SQL> CREATE USER HHZDH IDENTIFIED BY 123456;

 

User created.

4, use the following GRANT statement HHZDH user rights:

SQL> GRANT CONNECT, RESOURCE, DBA TO HHZDH;

 

Grant succeeded.

5, register a new account to verify whether the user is created successfully

Connect to the database (ORCL) using HHZDH user account. When SQL Plus prompted for a user name and password, enter: HHZDH and 123456.

For Oracle 11g / 12c, the following command:

SQL> CONNECT hhzdh@orcl

Password:

connected.

 

Creating this database user to complete.

Guess you like

Origin www.cnblogs.com/luodaxia/p/12021141.html