数据文件丢失之后的恢复
来源:互联网 发布:阿里云网站设计 编辑:程序博客网 时间:2024/05/01 16:23
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
ORACLEinstancestarted.
TotalSystemGlobalArea 73109664bytes
FixedSize 73888bytes
VariableSize 56086528bytes
DatabaseBuffers 16777216bytes
RedoBuffers 172032bytes
Databasemounted.
ORA-03113:end-of-fileoncommunicationchannel
我的环境是linux9oracle8.1.7.4
出现问题的当时是,一台机器连到上面做insertinto操作,数据大概有63万条。
正在执行的过程中因为到了下班的时间,服务器设置的定时自动关机的功能,服务器
在五点半的时候关机,导致insertinto操作中断,等服务器起来之后,提示一个表数据文件有问题,我就执行了
shutdownimmediate
startupmount
recoverdatafile'/datafile.dbf'
提示恢复成功
startup
就出现上面的错误提示
终于搞定了,采取的步骤是把,受到影响的表空间何数据文件drop掉
SQL>startup
ORACLEinstancestarted.
TotalSystemGlobalArea 73109664bytes
FixedSize 73888bytes
VariableSize 56086528bytes
DatabaseBuffers 16777216bytes
RedoBuffers 172032bytes
Databasemounted.
ORA-03113:end-of-fileoncommunicationchannel
SQL>connsystem/managerassysdba
Connected.
SQL>selectnamefromdatafiles
2 ;
selectnamefromdatafiles
*
ERRORatline1:
ORA-01219:databasenotopen:queriesallowedonfixedtables/viewsonly
SQL>selectnamefromv$datafile
2 ;
NAME
--------------------------------------------------------------------------------
/u01/oradata/EMCDB/system01.dbf
/u01/oradata/EMCDB/tools01.dbf
/u01/oradata/EMCDB/rbs01.dbf
/u01/oradata/EMCDB/temp01.dbf
/u01/oradata/EMCDB/users01.dbf
/u01/oradata/EMCDB/indx01.dbf
/u01/oradata/EMCDB/drsys01.dbf
/u01/oradata/EMCDB/EMCBASE.dbf
/home/oracle/test.dbf
/home/adonis/dwbx_wmstat.dbf
//home/adonis/iwbx_wmindx.dbf
11rowsselected.
SQL>alterdatabasedatafile'//home/adonis/iwbx_wmindx.dbf'offline
2 ;
alterdatabasedatafile'//home/adonis/iwbx_wmindx.dbf'offline
*
ERRORatline1:
ORA-01145:offlineimmediatedisallowedunlessmediarecoveryenabled
SQL>alterdatabasedatafile'//home/adonis/iwbx_wmindx.dbf'offlinedrop;
Databasealtered.
SQL>alterdatabasedatafile'/home/adonis/dwbx_wmstat.dbf'offlinedrop;
Databasealtered.
SQL>alterdatabaseopen;
alterdatabaseopen
*
ERRORatline1:
ORA-03113:end-of-fileoncommunicationchannel
SQL>selectnamefromv$tablespace;
selectnamefromv$tablespace
*
ERRORatline1:
ORA-03114:notconnectedtoORACLE
SQL>connectsystem/managerassysdba;
Connected.
SQL> selectnamefromv$tablespace;1<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
SQL>startupORACLEinstancestarted.
TotalSystemGlobalArea 73109664bytes
FixedSize 73888bytes
VariableSize 56086528bytes
DatabaseBuffers 16777216bytes
RedoBuffers 172032bytes
Databasemounted.
ORA-03113:end-of-fileoncommunicationchannel
我的环境是linux9oracle8.1.7.4
出现问题的当时是,一台机器连到上面做insertinto操作,数据大概有63万条。
正在执行的过程中因为到了下班的时间,服务器设置的定时自动关机的功能,服务器
在五点半的时候关机,导致insertinto操作中断,等服务器起来之后,提示一个表数据文件有问题,我就执行了
shutdownimmediate
startupmount
recoverdatafile'/datafile.dbf'
提示恢复成功
startup
就出现上面的错误提示
终于搞定了,采取的步骤是把,受到影响的表空间何数据文件drop掉
SQL>startup
ORACLEinstancestarted.
TotalSystemGlobalArea 73109664bytes
FixedSize 73888bytes
VariableSize 56086528bytes
DatabaseBuffers 16777216bytes
RedoBuffers 172032bytes
Databasemounted.
ORA-03113:end-of-fileoncommunicationchannel
SQL>connsystem/managerassysdba
Connected.
SQL>selectnamefromdatafiles
2 ;
selectnamefromdatafiles
*
ERRORatline1:
ORA-01219:databasenotopen:queriesallowedonfixedtables/viewsonly
SQL>selectnamefromv$datafile
2 ;
NAME
--------------------------------------------------------------------------------
/u01/oradata/EMCDB/system01.dbf
/u01/oradata/EMCDB/tools01.dbf
/u01/oradata/EMCDB/rbs01.dbf
/u01/oradata/EMCDB/temp01.dbf
/u01/oradata/EMCDB/users01.dbf
/u01/oradata/EMCDB/indx01.dbf
/u01/oradata/EMCDB/drsys01.dbf
/u01/oradata/EMCDB/EMCBASE.dbf
/home/oracle/test.dbf
/home/adonis/dwbx_wmstat.dbf
//home/adonis/iwbx_wmindx.dbf
11rowsselected.
SQL>alterdatabasedatafile'//home/adonis/iwbx_wmindx.dbf'offline
2 ;
alterdatabasedatafile'//home/adonis/iwbx_wmindx.dbf'offline
*
ERRORatline1:
ORA-01145:offlineimmediatedisallowedunlessmediarecoveryenabled
SQL>alterdatabasedatafile'//home/adonis/iwbx_wmindx.dbf'offlinedrop;
Databasealtered.
SQL>alterdatabasedatafile'/home/adonis/dwbx_wmstat.dbf'offlinedrop;
Databasealtered.
SQL>alterdatabaseopen;
alterdatabaseopen
*
ERRORatline1:
ORA-03113:end-of-fileoncommunicationchannel
SQL>selectnamefromv$tablespace;
selectnamefromv$tablespace
*
ERRORatline1:
ORA-03114:notconnectedtoORACLE
SQL>connectsystem/managerassysdba;
Connected.
SQL> selectnamefromv$tablespace;1<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- 数据文件丢失之后的恢复
- undo数据文件丢失的恢复
- 数据文件丢失损坏的恢复--
- 用归档日志恢复丢失的数据文件
- 表空间数据文件丢失的恢复
- shutdown后丢失某数据文件的恢复
- oracle无备份丢失数据文件的恢复
- 丢失非关键数据文件的恢复
- 仅仅丢失一个普通用户数据文件的恢复A(联机恢复)
- 仅仅丢失一个普通用户数据文件的恢复B(脱机恢复)
- 数据库恢复,记录一次全量数据文件丢失的恢复
- /etc文件夹丢失之后的恢复过程
- 【非关键性数据文件丢失(可以脱机数据文件的丢失)-恢复-1】
- 丢失全部数据文件的恢复(不包括control和redo)
- RMAN恢复案例——丢失所有的数据文件
- Oracle 丢失数据文件和控制文件的恢复案例
- rman恢复案例——丢失所有的数据文件
- 拥有归档日志 如何恢复一个丢失的数据文件
- 存储过程---实践
- 9大数据仓库特点比较
- LETS START FROM HERE...
- windowsserver2003中2000分布式事务错误解决方法
- 标点及其他符号英文单词
- 数据文件丢失之后的恢复
- 利用存储过程得到某一指定的表与其它的表之间的外键关系2000
- 让你在谷歌搜索留下好声誉的五个步骤
- 日志问题普及篇
- 方法、规范与技巧
- :存储过程学习
- Winxp下kernel32.dll内部的函数集合和地址值(转)
- DeployEnvironmentofExtProconServe.
- 7.0入门(六)---建立存储过程体