azure云迁移后expdp报错ORA-01110: data file 201: '/home/oradata/powerdes/temp01.dbf'

1,expdp的时候报错:

在idc的oracle服务器上正常导入导出都ok的,但是到了azure云上就出故障了:

[[email protected] 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

[[email protected] oracle]$

查看temp01.dbf表空间,是online的,貌似没有坏:

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

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,这样试试看。

SQL>
SQL>
SQL> alter tablespace temp add tempfile ‘/home/oradata/powerdes/temp02.dbf‘ size 60M reuse;

Tablespace altered.

SQL> 

[[email protected] 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
[[email protected] oracle]$ 

添加之后还是报错,所以这种方案没有生效。


4,尝试offline离线temp01.dbf,让expdp走temp02.dbf试试,结果成功了

设置离线状态:

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成功导出备份结果集:

[[email protected] 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

[[email protected] oracle]$ 

OK,最终导入成功了。

azure云迁移后expdp报错ORA-01110: data file 201: '/home/oradata/powerdes/temp01.dbf'

时间: 2024-10-25 18:28:15

azure云迁移后expdp报错ORA-01110: data file 201: '/home/oradata/powerdes/temp01.dbf'的相关文章

expdp报错ora 39126

11.2.0.2,expdp报错: ORA-39126: Worker unexpected fatal error in KUPW$WORKER.GET_TABLE_DATA_OBJECTS []ORA-31642: the following SQL statement fails:BEGIN "SYS"."DBMS_CUBE_EXP".SCHEMA_CALLOUT(:1,0,1,'11.02.00.00.00'); END;ORA-06512: at &quo

dialogic d300语音卡驱动重装后启动报错问题解决方法

dialogic d300 驱动重装后 dlstart  报错解决 问题描述:dlstart  后如下报错 [[email protected] data]#dlstop Stopping Dialogic Services... Stopping Clocking Daemon:[  纭畾  ] Stopping ClockingServer:[  纭畾  ] Stopping Telephony System Monitor:[  纭畾  ] Stopping Dialogic(R)

使用Entity Framework迁移完数据库后,每次修改代码(非模型代码)后都报错。

问题:使用Entity Framework迁移完数据库后,每次修改代码(非模型代码)后都报错: 支持“XXXDbContext”上下文的模型已在数据库创建后发生更改.请考虑使用 Code First 迁移更新数据库(http://go.microsoft.com/fwlink/?LinkId=238269). 这时如果执行 Add-Migration 生成的迁移代码是空的.于是重新Update-Database,结果却是No pending explicit migrations. 不过这时是不

解决Azure Stack App Service部署报错一例

解决Azure Stack App Service部署报错一例 Azure Stack是微软新一代的云基础架构,是Windows Server 2016.Azure Pack和Azure Service Fabric的组合,能够将Azure的IaaS和PaaS功能带到客户自己的数据中心里,微软希望所有用户都能体验到该项服务,近期Azure Stack发布了GA版本,小弟有幸对其进行部署测,和之前版本相比GA版本提供了GUI的部署界面,同时在稳定性上也大大有所提升!但小弟在部署App Servic

安装mongodb后启动报错libstdc++

安装mongo后启动报错如下图 显然说是libstdc++.so文件版本的问题,这种一般都是gcc版本太低了 接着查询gcc的版本    strings /usr/lib/libstdc++.so.6 | grep GLIBCXX 接着去找下libstdc++.so新点的版本,一定要根据自己的系统版本去找啊,由于我找错了版本报错系统位数不对 随后下载了一个64位的libstdc++.so.6.0.17的文件,然后软链成libstdc++.so.6 ln -s libstdc++.so.6.0.1

升级php7后的报错处理

*由于php7的出现带来大幅的性能提升,想体验下新版本带来的特性,因此做了升级. 发现在网站中请求接口时发生错误,排查后把解决方法记录下来 升级php后站点报错,提示如下: Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and willbe removed in a future version. To avoid this warning set'always_populate_raw_post_d

Maven项目下update maven后Eclipse报错:java.lang.ClassNotFoundException: ContextLoaderL

Maven项目下update maven后Eclipse报错:java.lang.ClassNotFoundException: ContextLoaderL     严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.co

安卓工作室 android studio 汉化后,报错。 设置界面打不开。Can't find resource for bundle java.util.PropertyResourceBundle, key emmet.bem.class.name.element.separator.label

安卓工作室 android studio 汉化后,报错. 设置界面打不开. Android studio has been sinified and reported wrong.The setup interface cannot be opened. 安卓工作室 android studio 版本 2.3.3 Android studio version 2.3.3 汉化包版本 AndroidStudio_v2.0.0.20_resources_cn-v0.2-20170414.jar Lo

导入别人工程后项目报错,有个小红叉

Target runtime com.genuitec.runtime.generic 系统加载工程后,报错Target runtime com.genuitec.runtime.generic.jee60 is not defined,在发布工程的同事电脑上正常 2 新导入的工程,出问题很大可能是jdk的版本问题导致,检查一下,发现jdk果然不一致,修改了jdk版本,但异常没有消除 3 网上查询下解决方案,原来在工程目录下的settings,有个文件也需要修改下 4 打开该文件,会发现<run