oracle数据库异常关闭之后恢复
oracle服务器重启之后无法启动,startup时报
ORA-03113: 通信通道的文件结尾shutdown 时报:ORA-27101: shared memory realm does not exist
su - oracle
sqlplus / as sysdba
SQL> startup mount;ORACLE 例程已经启动。Total System Global Area 835104768 bytesFixed Size 2217952 bytesVariable Size 637536288 bytesDatabase Buffers 188743680 bytesRedo Buffers 6606848 bytes数据库装载完毕。SQL> alter database open;alter database open*第 1 行出现错误:ORA-03113: 通信通道的文件结尾进程 ID: 4272会话 ID: 125 序列号: 5退出sqlplus : exitSQL> conn ' / as sysdba'已连接到空闲例程。SQL> startup mountORACLE 例程已经启动。Total System Global Area 835104768 bytesFixed Size 2217952 bytesVariable Size 637536288 bytesDatabase Buffers 188743680 bytesRedo Buffers 6606848 bytes数据库装载完毕。SQL> alter database open resetlogs;alter database open resetlogs*第 1 行出现错误:ORA-01139: RESETLOGS 选项仅在不完全数据库恢复后有效 SQL> select group#,to_char(next_time,'yyyy-MM-dd hh24:mi:ss') from v$log; GROUP# TO_CHAR(NEXT_TIME,'---------- ------------------- 1 2013-12-13 12:23:50 3 2 2013-12-13 12:23:54SQL> recover database until time '2013-12-13 12:23:50';完成介质恢复。SQL> alter database open resetlogs;数据库已更改。SQL> shutdown数据库已经关闭。已经卸载数据库。ORACLE 例程已经关闭。SQL> startupORACLE 例程已经启动。Total System Global Area 6413680640 bytesFixed Size 2213776 bytesVariable Size 4898949232 bytesDatabase Buffers 1476395008 bytesRedo Buffers 36122624 bytes数据库装载完毕。数据库已经打开。SQL> exit
$ lsnrctl start