表空間及用戶的建立

1.建立一個名爲data的表空間: ide

create tablespace data spa

logging ip

datafile 'data.dbf' size 5000m autoextend on next 50m it

extent management local segment space management auto; pip

2.建立一個用戶 用戶名和密碼都爲test 默認表空間爲data table

create user test identified by "test" defualt tablespace data test

temporary tablespace temp; file

3.給新建的用戶test受權 密碼

grant dba to test; im

grant create view to test;

grant unlimited tablespce to test;

grant connect,resource to test;

grant execute on dbms_pipe to test;

相關文章
相關標籤/搜索