Oracle新建表空間、新建使用者、授權
阿新 • • 發佈:2018-11-15
新建臨時表空間
create temporary tablespace test_temp
tempfile 'C:/oracle/oradata/TFServer/test_temp.dbf'
size 500m
autoextend on
extent management local;
新建表空間
create tablespace test
logging
datafile 'C:/oracle/oradata/TFServer/test.dbf'
size 10000m
autoextend on
extent management local;
新建使用者
create user sam identified by 123456 default tablespace TEST temporary tablespace TEST_TEMP quota unlimited on TEST;
授權
GRANT CREATE ANY VIEW,DROP ANY VIEW,
EXP_FULL_DATABASE,IMP_FULL_DATABASE,
CONNECT,RESOURCE,CREATE SESSION TO sam;