Oracle> Roles & permissions to create a user & Empowerment

1, user permissions &

Role Permissions:

Sysdba: you can change the character set, create delete the database, after logging the user is SYS (you can start and shut down the database)
SYSOPER: can not change the character set, can not create, delete database, after landing the user is PUBLIC (you can start and shut down the database)
DBA: only to perform a variety of management jobs after starting the database.

(Login Oracle database has three forms, namely sysdba, sysoper and normal)

user:

Normally, after you create a database instance, by default there are two users: system, sys;

sys: has dba, sysdba, sysoper (system operator) role or privileges, is the highest authority of the user, can only sysdba or sysoper login, you can not log in normal form.

System: has dba, sysdba authority or role, you can log in as a normal user.

2. Create a user

Use system user (scott lack of user permissions, can not create other user) to log database using the connection string PLSQL Developer tools Log database is: system / passwd @ localhost: 1521 / dbname

After logging in, create a new database user with the following command:

create user 【username】 identified by 【passwd】; 

3, empowerment

grant create session to 【username】;  
grant create table to 【username】;  
grant create tablespace to  【username】;  
grant create view to  【username】;

In this case, the user can log database [username], [connection string for the username] / [passwd] @ [local host: 1521 / service_name];

At this time, the user [username] create table insert data, given: NO TABLESPACE privileges ON 'the USERS';

Solution:

With a system user login, then the user allocation table space for db001data:

alter user 【username】 quota unlimited on users;

or

grant unlimited tablespace to 【username】;

or

alter user 【username】 quota 4M on users;

 

Guess you like

Origin www.cnblogs.com/TyroneYang/p/12558106.html