azure云迁移后expdp报错ORA-01110: data file 201: '/home/oradata/powerdes/temp01.dbf'
2016-02-06 21:12
459 查看
1,expdp的时候报错:
在idc的oracle服务器上正常导入导出都ok的,但是到了azure云上就出故障了:[code][oracle@pldb1 oracle]$ expdp \'powerdesk/testcrmfile\' directory=DIR_DUMP tables=bis_floor,bis_shop,bis_shop_conn,bis_store,bis_cont dumpfile=zhengyin.qu_bak_$(date +%Y%m%d)_02.dmp Export: Release 11.2.0.1.0 - Production on Sat Feb 6 20:00:00 2016 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options ORA-01187: cannot read from file because it failed verification tests ORA-01110: data file 201: '/home/oradata/powerdes/temp01.dbf' ORA-06512: at "SYS.DBMS_LOB", line 664 ORA-06512: at "SYS.DBMS_DATAPUMP", line 3901 ORA-06512: at line 1 [oracle@pldb1 oracle]$
查看temp01.dbf表空间,是online的,貌似没有坏:
[code]SQL> select name,bytes/1024/1024,status from v$tempfile; NAME -------------------------------------------------------------------------------- BYTES/1024/1024 STATUS --------------- ------- /home/oradata/powerdes/temp01.dbf 68 ONLINE SQL>
2,google说起是drop一个temp01.dbf
[code]SQL> alter tablespace tempfile "/home/oradata/powerdes/temp01.dbf" drop; alter tablespace tempfile "/home/oradata/powerdes/temp01.dbf" drop * ERROR at line 1: ORA-00972: identifier is too long SQL> SQL> ALTER TABLESPACE tempfile '/home/oradata/powerdes/temp01.dbf' drop; ALTER TABLESPACE tempfile '/home/oradata/powerdes/temp01.dbf' drop * ERROR at line 1: ORA-02142: missing or invalid ALTER TABLESPACE option SQL>
删除报错了,无效,google不出来比较有效的解决方案
3,尝试添加新的temp02.dbf,这样试试看。
[code]SQL> SQL> SQL> alter tablespace temp add tempfile '/home/oradata/powerdes/temp02.dbf' size 60M reuse; Tablespace altered. SQL> [oracle@pldb1 oracle]$ expdp \'powerdesk/testcrmfile\' directory=DIR_DUMP tables=bis_floor,bis_shop,bis_shop_conn,bis_store,bis_cont dumpfile=zhengyin.qu_bak_$(date +%Y%m%d)_02.dmp Export: Release 11.2.0.1.0 - Production on Sat Feb 6 20:00:00 2016 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options ORA-01187: cannot read from file because it failed verification tests ORA-01110: data file 201: '/home/oradata/powerdes/temp01.dbf' ORA-06512: at "SYS.DBMS_LOB", line 664 ORA-06512: at "SYS.DBMS_DATAPUMP", line 3901 ORA-06512: at line 1 [oracle@pldb1 oracle]$
添加之后还是报错,所以这种方案没有生效。
4,尝试offline离线temp01.dbf,让expdp走temp02.dbf试试,结果成功了
设置离线状态:[code]SQL> alter database tempfile '/home/oradata/powerdes/temp01.dbf' offline; Database altered. SQL> SQL> select name,bytes/1024/1024,status from v$tempfile; NAME -------------------------------------------------------------------------------- BYTES/1024/1024 STATUS --------------- ------- /home/oradata/powerdes/temp01.dbf 0 OFFLINE /home/oradata/powerdes/temp02.dbf 60 ONLINE SQL>
再执行expdp成功导出备份结果集:
[code][oracle@pldb1 oracle]$ expdp \'powerdesk/testcrmfile\' directory=DIR_DUMP tables=bis_floor,bis_shop,bis_shop_conn,bis_store,bis_cont dumpfile=zhengyin.qu_bak_$(date +%Y%m%d)_02.dmp Export: Release 11.2.0.1.0 - Production on Sat Feb 6 20:13:00 2016 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options Starting "POWERDESK"."SYS_EXPORT_TABLE_01": "powerdesk/********" directory=DIR_DUMP tables=bis_floor,bis_shop,bis_shop_conn,bis_store,bis_cont dumpfile=zhengyin.qu_bak_20160206_02.dmp Estimate in progress using BLOCKS method... Processing object type TABLE_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 76.25 MB Processing object type TABLE_EXPORT/TABLE/TABLE Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS Processing object type TABLE_EXPORT/TABLE/COMMENT Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT Processing object type TABLE_EXPORT/TABLE/TRIGGER Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS . . exported "POWERDESK"."BIS_SHOP" 25.62 MB 49633 rows . . exported "POWERDESK"."BIS_CONT" 17.53 MB 19836 rows . . exported "POWERDESK"."BIS_STORE" 9.833 MB 25941 rows . . exported "POWERDESK"."BIS_SHOP_CONN" 5.708 MB 30758 rows . . exported "POWERDESK"."BIS_FLOOR" 186.6 KB 1082 rows Master table "POWERDESK"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded ****************************************************************************** Dump file set for POWERDESK.SYS_EXPORT_TABLE_01 is: /oracle/dump/zhengyin.qu_bak_20160206_02.dmp Job "POWERDESK"."SYS_EXPORT_TABLE_01" successfully completed at 20:13:14 [oracle@pldb1 oracle]$
OK,最终导入成功了。
相关文章推荐
- Spider 之 深入解析 Python 正则表达式
- 1.Django开发环境搭建
- Struts学习的总结
- linux安装卸载rpm包
- python中的闭包
- 蓝桥杯 数字三角形(简单DP)
- 小蚂蚁学习数据结构(31)——折半查找法
- ENISA CCSM
- python学习资源
- hdoj 2048 神、上帝以及老天爷
- 1013. 数素数 (20)
- ACM 计算几何中的精度问题(转)
- VB 获取系统内存信息
- 1012. 数字分类 (20)
- ZwQuerySymbolicLinkObject routine
- web应用性能测试-Tomcat 7 连接数和线程数配置
- 1011. A+B和C (15)
- C#正则分组实例
- jQuery14(表单过滤器及注意事项)
- vim中编码方式---不完整总结