Oracle11g create tablespace statement

 

/*Step 1: Create a temporary tablespace */
create temporary tablespace yuhang_temp 
tempfile 'D:\oracledata\yuhang_temp.dbf' 
size 50m  
autoextend on  
next 50m maxsize 20480m  
extent management local;   /*Step 2: Create a data tablespace* / create tablespace yuhang_data   logging   datafile 'D:\oracledata\yuhang_data.dbf'  size 50m   autoextend on   next 50m maxsize 20480m   extent management local;   /*Step 3: Create a user and specify a tablespace */ create user yuhang identified by yuhang   default tablespace yuhang_data   temporary tablespace yuhang_temp;   /*Step 4: Grant permission to the user */ grant connect,resource,dba to yuhang;
 








 




 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326919075&siteId=291194637