Orcale表空间创建及用户授权

create temporary tablespace user_temp   
tempfile 'F:\oracle\product\10.2.0\oradata\orcl\user_temp.dbf'  
size 50m   
autoextend on   
next 50m maxsize 20480m   
extent management local;   

//创建数据表空间   
create tablespace user_data   
logging   
datafile 'F:\oracle\product\10.2.0\oradata\orcl\user_data.dbf'  
size 50m   
autoextend on   
next 50m maxsize 20480m   
extent management local;   

//创建用户并指定表空间   
create user username identified by password   
default tablespace user_data  
temporary tablespace user_temp;   

//给用户授予权限   
grant connect,resource,dba to username;

你可能感兴趣的:(oracle,sql,F#)