-- 1:創(chuàng)建表空間;創(chuàng)建用戶;分配用戶到表空間 http://blog.itpub.net/750660/viewspace-1114985/ 授權(quán):http://www.cnblogs.com/xmaomao/p/3273102.html
create tablespace CBL_OA_DATAlogging datafile 'D:/CBL_OA_DATA2.dbf'size 50mautoextend onnext 50m maxsize 20480mextent management local;ALTER USER CBL_OA DEFAULT TABLESPACE CBL_OA_DATA;-- 2:刪除所有的表:通過刪除表空間實現(xiàn) http://blog.csdn.net/oscar999/article/details/7468153 刪除用戶表空間
DROP TABLESPACE tablespace_name INCLUDING CONTENTS AND DATAFILES;-- 3:查看數(shù)據(jù)庫版本
要dba用戶才行
select * from v$instance;-- 4:oracle不能使用系統(tǒng)關(guān)鍵字,使用關(guān)鍵字都要用"",加了雙引號之后是嚴(yán)格區(qū)分大小的DROP TABLE "table"; SELECT * FROM "table";
新聞熱點
疑難解答
圖片精選