状态: 失败 -测试失败: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
解决方法:
1、shutdown normal------正常关闭数据库
2、startup nomount------启动实例(数据库)
3、alter database mount------加载数据库
4、alter database open------打开数据库
然后打开运行图形化SQL Developer
SQL> conn sys/orcl
ERROR:
ORA-28009: connection as SYS should be as SYSDBA or SYSOPER
警告: 您不再连接到 ORACLE。
SQL> conn sys/orcl as sysdba
已连接。
SQL> startup nomount;
ORA-01081: 无法启动已在运行的 ORACLE - 请首先关闭它
SQL> shutdown normal;
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup nomount;
ORACLE 例程已经启动。
Total System Global Area 1071333376 bytes
Fixed Size 1375792 bytes
Variable Size 603980240 bytes
Database Buffers 461373440 bytes
Redo Buffers 4603904 bytes
SQL> alter database mount;
数据库已更改。
SQL> alter database open;
数据库已更改。
SQL> conn hr/hr
已连接。