imp 遇到 ORACLE 错误 1536

本文记录了在进行数据库表空间迁移过程中遇到的问题及解决方案,包括表空间不存在时的处理方法、表空间配额限制等问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在尝试exp/imp操作时遇到转换表空间的一些问题,在网上搜了些帖子,

值得参考:

http://blog.youkuaiyun.com/shashawang/archive/2009/04/09/4059807.aspx

 

 

测试:

表spm_sp_info_t在源数据库上是存在TS_TAB_BASE表空间里

而目的数据库上是没有TS_TAB_BASE表空间,smp_owner_user用户默认表空间是cl

imp smp_owner_user/smp_product_user@orcl file=e:/spm_sp_info_t.dmp

SQL> select table_name,tablespace_name from tabs where table_name='SPM_SP_INFO_T';

TABLE_NAME                     TABLESPACE_NAME
------------------------------ ------------------------------
SPM_SP_INFO_T                  CL

 

SQL> drop table spm_sp_info_t;

表已删除。

 

在目的数据库上新建TS_TAB_BASE表空间(直接通过Oracle 10g Database Control 在页面上配置)

重新imp smp_owner_user/smp_product_user@orcl file=e:/spm_sp_info_t.dmp

SQL> select table_name,tablespace_name from tabs where table_name='SPM_SP_INFO_T';

TABLE_NAME                     TABLESPACE_NAME
------------------------------ ------------------------------
SPM_SP_INFO_T                  TS_TAB_BASE

 

 

SQL> drop table spm_sp_info_t;

表已删除。

 

SQL> conn /as sysdba
已连接。
SQL> revoke unlimited tablespace from smp_owner_user ;

撤销成功。

 

 

再imp smp_owner_user/smp_product_user@orcl file=e:/spm_sp_info_t.dmp时提示错误:

IMP-00003: 遇到 ORACLE 错误 1536
ORA-01536: 超出表空间 'CL' 的空间限额
成功终止导入, 但出现警告。

 

 

SQL> alter user smp_owner_user quota unlimited on cl;

用户已更改。

 

 

重新imp smp_owner_user/smp_product_user@orcl file=e:/spm_sp_info_t.dmp

SQL> select table_name,tablespace_name from tabs where table_name='SPM_SP_INFO_T';

TABLE_NAME                     TABLESPACE_NAME
------------------------------ ------------------------------
SPM_SP_INFO_T                  CL

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值