Oracle建立表空間建立使用者授權

2022-02-07 10:44:01 字數 849 閱讀 5737

注意:sys使用者下執行。sys登入必須為sysdba身份。

檢視資料檔案存放位置。

select

*from dba_data_files;

1、建立表空間

create

tablespace tp_lp

datafile

'd:\data\tp_lp01.dbf

'size 10m

autoextend

off;--

是否自動擴充套件

不建議使用自動擴充套件

2、查詢表空間

select

file_name

,tablespace_name,bytes,autoextensible

from

dba_data_files

where tablespace_name=

'tp_lp

';

3、建立使用者

create

user bigroc identified by

bigroc

default

tablespace tp_lp;

--password expire;

4、授權(角色)

grant connect, resource to bigroc; --

授予connect和resource兩個角色

5、撤銷許可權

revoke connect , resource from bigroc;--

撤銷connect和resource兩個角色

oracle建立表空間,建立使用者

建立臨時表空間 create temporary tablespace test temp tempfile e oracle product 10.2.0 oradata testserver test temp01.dbf size 32m autoextend on next 32m maxs...

oracle建立表空間,建立使用者

建立臨時表空間 create temporary tablespace test temp tempfile e oracle product 10.2.0 oradata testserver test temp01.dbf size 32m autoextend onnext 32m maxsi...

oracle建立表空間,建立使用者

建立臨時表空間 create temporary tablespace test temp tempfile e oracle product 10.2.0 oradata testserver test temp01.dbf size 32m autoextend on next 32m maxs...