|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
曾经的功能列表可能会迅速变得过时了。而且,有些功能对有的应用程序非常重要,但是对别的应用程序则不一定。办理|成绩ORA-01157成绩怎样办理?
情况:redhat9+oracle817
成绩:今天俄然失落电以后数据库启动以后就提醒这个毛病。数据长短回档形式,并且这个数据文件另有用。怎样恢复。
[oracle@ccdevsvrroot]$svrmgrl
OracleServerManagerRelease3.1.7.0.0-Production
Copyright(c)1997,1999,OracleCorporation.AllRightsReserved.
Oracle8iEnterpriseEditionRelease8.1.7.4.0-Production
WiththePartitioningoption
JServerRelease8.1.7.4.0-Production
SVRMGR>connectsystem/managerassysdba
Connected.
SVRMGR>show
Instancelocal
SpoolOFF
TimingOFF
TermoutON
EchoOFF
StoponerrorOFF
AutorecoveryOFF
Logsource<default>
Maxdata20480
Numwidth10
Charwidth80
Longwidth80
Datewidth9
Labwidth32
CompatibilityNATIVE
Retriesinfinite
ServerOutputOFF
AutoprintOFF
Fetchrowsinfinite
AppinfoOFF(USERTEXT:OracleServerManager)
SVRMGR>startup
ORA-01081:cannotstartalready-runningORACLE-shutitdownfirst
SVRMGR>shutdownimmediate
ORA-01109:databasenotopen
Databasedismounted.
ORACLEinstanceshutdown.
SVRMGR>startup
ORACLEinstancestarted.
TotalSystemGlobalArea73109664bytes
FixedSize73888bytes
VariableSize56086528bytes
DatabaseBuffers16777216bytes
RedoBuffers172032bytes
Databasemounted.
ORA-01157:cannotidentify/lockdatafile10-seeDBWRtracefile
ORA-01110:datafile10:/home/oracle/dwbx_wmstat.dbf
SVRMGR>
[oracle@ccdevsvroracle]$pwd
/home/oracle
[oracle@ccdevsvroracle]$ll*.dbf
-rwxrwxrwx1oracledba209723392Nov2911:47iwbx_wmindx.dbf
-rwxrwxrwx1oracledba104865792Dec109:35test.dbf
[oracle@ccdevsvroracle]$
数据库是不是回档形式?
在mount形态:
回档的话:
SQL>alterdatabasedatafileI:ORADATAEXAMORATEST01.DBFoffline;
非回档的话:
SQL>alterdatabasedatafileI:ORADATAEXAMORATEST01.DBFofflinedrop;
然后在
SQL>alterdatabaseopen;
[oracle@ccdevsvrroot]$cd/home/oracle
[oracle@ccdevsvroracle]$ll*.dbf
-rwxrwxrwx1oracledba209723392Nov2911:47iwbx_wmindx.dbf
-rwxrwxrwx1oracledba104865792Dec109:35test.dbf
[oracle@ccdevsvroracle]$exit
exit
SVRMGR>selectsysdatefromdual;
SYSDATE
---------
01-DEC-04
1rowselected.
SVRMGR>alterdatabaseopen
2>;
alterdatabaseopen
*
ORA-01157:cannotidentify/lockdatafile10-seeDBWRtracefile
ORA-01110:datafile10:/home/oracle/dwbx_wmstat.dbf
SVRMGR>alterdatabasedatafile/home/oracle/dwbx_wmstat.dbfofflinedrop;
Statementprocessed.
SVRMGR>alterdatabaseopen;
Statementprocessed.
SVRMGR>
到2009年,甲骨文的数据库Oracle已经诞生了30周年,而MySQL却连它的一半时间都没有。微软的SQLServer仅仅比MySQL大两年,但是SQLServer的发布是建立在Sybase的基础上。 |
|