欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

ORACLE异常关闭后导致数据库报错无法连接问题解决办法

程序员文章站 2022-04-17 08:57:40
1.首先kill掉所有oracle相关的进程 [oracle@oracle11g db_1]$ps -ef|grep $ORACLE_SID [oracle@oracle1...

1.首先kill掉所有oracle相关的进程

[oracle@oracle11g db_1]$ps -ef|grep $ORACLE_SID
[oracle@oracle11g db_1]$kill -s -9 PID

关闭监听器:

lsnrctl stop

2.用管理员密码登陆sqlplus,运行startup命令

sqlplus "sys/PASSWORD as sysdba"

[oracle@oracle11g db_1]$sqlplus "sys/PASSWORD as sysdba"

SQL*Plus: Release 11.2.0.1.0 Production on Tue Nov 14 13:02:36 2017

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected to an idle instance.

SQL>startup

ORACLE instance started.

Total System Global Area 1586708480 bytes

Fixed Size 2213736 bytes

Variable Size 1073744024 bytes

Database Buffers 503316480 bytes

Redo Buffers 7434240 bytes

Database mounted.

Database opened.

SQL> exit

3.重启监听器

lsnrctl start