ORA-12913: 無(wú)法創(chuàng)建字典管理的表空間 |
發(fā)布時(shí)間: 2012/9/12 17:11:52 |
jcq0>show user create tablespace dictionary_t 查看錯(cuò)誤解釋 ORA-12913 Cannot create dictionary managed tablespace Cause: An attempt was made to create a dictionary managed tablespace in a database whose SYSTEM tablespace is locally managed. Action: Create a locally managed tablespace. 該信息告訴我們只能在SYSTEM表空間為字典管理時(shí)才能用以上語(yǔ)句創(chuàng)建字典管理的表空間 3.峰回路轉(zhuǎn) 突然想到不是有個(gè)包可以在本地管理的表空間和字典管理的表空間之間遷移么,之后找到該包 DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_FROM_LOCAL 看來(lái)果然可以,于是馬上動(dòng)手 jcq0>execute DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_FROM_LOCAL('TEST10'); * ORA-12914 Cannot migrate tablespace to dictionary managed type Cause: An attempt was made to migrate a locally managed tablespace to dictionary managed type when the database has a locally managed SYSTEM tablespace. Action: Such an operation cannot be issued. 同樣的提示,所以先遷移SYSTEM表空間 jcq0>execute DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_FROM_LOCAL('SYSTEM'); * ORA-03251 Cannot issue this command on SYSTEM tablespace Cause: It is not permitted to migrate SYSTEM tablespace from locally managed format to dictionarymanaged format or relocate bitmaps. Action: Check the tablespace name and procedure name. 4.回到原點(diǎn) 翻到doc對(duì)該過(guò)程的說(shuō)明可以得到同樣的解釋 The tablespace must be kept online and read/write during migration. Migration of temporarytablespaces and migration of SYSTEM tablespaces are not supported. 5.結(jié)論 如果你想在SYSTEM為本地管理表空間的數(shù)據(jù)庫(kù)上建立字典管理的表空間,那么答案是 no way!!!
本文出自:億恩科技【mszdt.com】 服務(wù)器租用/服務(wù)器托管中國(guó)五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM] |