日韩黑丝制服一区视频播放|日韩欧美人妻丝袜视频在线观看|九九影院一级蜜桃|亚洲中文在线导航|青草草视频在线观看|婷婷五月色伊人网站|日本一区二区在线|国产AV一二三四区毛片|正在播放久草视频|亚洲色图精品一区

分享

oracle 創(chuàng)建表空間

 走墨 2014-04-23
oracle 創(chuàng)建表空間


選擇主備
/studio/SdStudioProject/selectMainPlUser.jspx

磨課保存
/studio/SdStudioProject/save.jspx


oracle 創(chuàng)建表空間

create tablespace dzzwpt datafile 'D:\oracle\product\10.2.0\oradata\orcl\dzzwpt.dbf' size 100m autoextend on next 50m;
/*分為四步 */
/*第1步:創(chuàng)建臨時表空間  */
D:\oracle\product\10.2.0\oradata\orcl\dzzwpt.dbf


create temporary tablespace user_temp  
tempfile 'D:\oracle\product\10.2.0\oradata\orcl\user_temp.dbf' 

size 50m  
autoextend on  
next 50m maxsize 20480m  
extent management local;  
 
/*第2步:創(chuàng)建數(shù)據(jù)表空間  */
create tablespace user_data  
logging  
datafile 'D:\oracle\product\10.2.0\oradata\orcl\user_data.dbf' 
size 50m  
autoextend on  
next 50m maxsize 20480m  
extent management local;  
 
/*第3步:創(chuàng)建用戶并指定表空間  */
create user username identified by password  
default tablespace user_data  
temporary tablespace user_temp;  
 
/*第4步:給用戶授予權(quán)限  */
grant connect,resource,dba to username;




該語句用于創(chuàng)建臨時表空間
create temporary tablespace user_temp1 tempfile 'D:\oracle\product\10.2.0\oradata\orcl\user_temp1.dbf' size 50m autoextend on  next 50m maxsize 20480m  extent management local;

用于創(chuàng)建數(shù)據(jù)表空間
create tablespace user_data1 logging datafile 'D:\oracle\product\10.2.0\oradata\orcl\user_data1.dbf' size 50m autoextend on next 50m maxsize 20480m  extent management local;


創(chuàng)建用戶并指定表空間
create user username identified by password  1121 tablespace user_data1 temporary tablespace user_temp1;  

給用戶授權(quán)
grant connect,resource,dba to username;



create temporary tablespace user_temp  

tempfile 'D:\oracle\product\10.2.0\oradata\orcl\user_temp1.dbf' 

size 50m  

autoextend on  

next 50m maxsize 20480m  ;


 create tablespace dzzwpt datafile 'D:\oracle\product\10.2.0\oradata\orcl\dzzwpt.dbf' size 100m autoextend on next 50m;


1
create temporary tablespace user_temp1 tempfile 'D:\oracle\product\10.2.0\oradata\orcl\user_temp1.dbf' size 50m autoextend on  next 50m maxsize 20480m  extent management local;
create tablespace user_data1 logging datafile 'D:\oracle\product\10.2.0\oradata\orcl\mis_base.dbf' size 50m autoextend on next 50m maxsize 20480m  extent management local;
create user mis_base identified by 123456  default tablespace mis_base temporary tablespace user_temp1; 
grant connect,resource,dba to mis_base;





    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多