oracle清理表空間的方法 oracle怎么刪除表空間的數(shù)據(jù)文件?
oracle怎么刪除表空間的數(shù)據(jù)文件?--刪除空表空間,但不包括物理文件droptable spaceuname--刪除非空表空間,但不包括物理文件droptable spaceuname inclu
oracle怎么刪除表空間的數(shù)據(jù)文件?
--刪除空表空間,但不包括物理文件droptable spaceuname--刪除非空表空間,但不包括物理文件droptable spaceuname including contents--刪除空表空間,如果其他表空間中的表具有與此表空間中表的字段相關(guān)聯(lián)的外鍵和其他約束,則包括物理文件放置表空間uuName(包含在文件中)刪除非空表空間,包括物理文件放置表空間uName(包含內(nèi)容和數(shù)據(jù)文件),應(yīng)添加級(jí)聯(lián)約束放置表空間uuuName包括內(nèi)容和數(shù)據(jù)文件級(jí)聯(lián)約束
具體來說,刪除表空間中的數(shù)據(jù)文件:alter table space table space uname drop datafile file uname
Oracle 11g delete table space語法描述:drop table space table space uname[包括內(nèi)容[和數(shù)據(jù)文件][級(jí)聯(lián)約束
無選項(xiàng)--表空間為空時(shí)刪除;including contents—?jiǎng)h除表空間和對(duì)象;including contents and datafiles—?jiǎng)h除表空間、對(duì)象和數(shù)據(jù)文件;including contents cascade constraint—?jiǎng)h除關(guān)聯(lián);including contents and datafiles cascade constraint—包括前兩項(xiàng)。你用了哪個(gè)選項(xiàng)?刪除表空間后,無法使用數(shù)據(jù)文件a.dbf。