Oracle create table space create user authorization

Note: the next SYS user. sys must login as sysdba.
View the data files.

select * from dba_data_files;

 

1, create a table space

CREATE TABLESPACE tp_lp
DATAFILE 
'd:\data\tp_lp01.dbf' SIZE 10M
AUTOEXTEND OFF ; - whether automatic extension

We do not recommend the use of an automatic extension

2, look-up table space

SELECT file_name,tablespace_name,bytes,autoextensible 
FROM dba_data_files 
WHERE tablespace_name='tp_lp';

3. Create user

CREATE USER bigroc IDENTIFIED BY bigroc
DEFAULT TABLESPACE tp_lp;
--PASSWORD EXPIRE;

4, authorization (role)

GRANT Connect, Resource the TO bigroc; - granted two roles CONNECT and RESOURCE

5, revoke privileges

REVOKE CONNECT, RESOURCE the FROM bigroc; - revocation of two roles CONNECT and RESOURCE

 

Guess you like

Origin www.cnblogs.com/bigroc/p/11136774.html