ORA-12913: 无法创建字典管理的表空间 |
发布时间: 2012/9/12 17:11:52 |
jcq0>show user create tablespace dictionary_t 查看错误解释 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表空间为字典管理时才能用以上语句创建字典管理的表空间 3.峰回路转 突然想到不是有个包可以在本地管理的表空间和字典管理的表空间之间迁移么,之后找到该包 DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_FROM_LOCAL 看来果然可以,于是马上动手 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.回到原点 翻到doc对该过程的说明可以得到同样的解释 The tablespace must be kept online and read/write during migration. Migration of temporarytablespaces and migration of SYSTEM tablespaces are not supported. 5.结论 如果你想在SYSTEM为本地管理表空间的数据库上建立字典管理的表空间,那么答案是 no way!!!
本文出自:亿恩科技【www.enkj.com】 |