1.first it report ORA-12560: TNS: 协议适配器错误
手工设定环境变量如下:
set ORACLE_HOME=d:\app\OAadmin\product\11.2.0\dbhome_1
set ORACLE_SID=boe3prod
set TNS_ADMIN=d:\app\OAadmin\product\11.2.0\dbhome_1\network\admin
set PATH=d:\app\OAadmin\product\11.2.0\dbhome_1\bin;%PATH%
still report ORA-12560
2. use below method , it report ORA-12518
windows下 sqlplus / as sysdba 报ora-12560错误
-
2
确认windows注册表中的ORACLE_HOME 键及其 键值 是正确的,是有效的,用运行regedit,打开注册表
-
3
确定注册值:HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraDb10g_home1下,找到ORACLE_HOME 键,对应的键值为H:\oracle\product\10.2.0\db_1 ,其实正确的键值为F:\oracle\product\10.2.0\db_1
注意:windows下,请不要设置ORACLE_HOME环境变量
-
4
确保windows 服务里变的OracleServiceXXX服务是已启动状态。
-
5
cmd下,cd到 F:\oracle\product\10.2.0\db_1\bin下,再敲sqlplus / as sysdba
-
6
cmd下,set ORACLE_SID=你想进入的数据库的那个sid
-
7
cmd下,cd到 F:\oracle\product\10.2.0\db_1\bin下,再敲sqlplus /@网络服务名 as sysdba -》still report ORA-12518.
END
3.
ORA-12518 TNS:监听程序无法分发客户机连接的解决办法
SQL> select * from dba_high_water_mark_statistics where name='SESSIONS';
SQL> select RESOURCE_NAME,CURRENT_UTILIZATION,MAX_UTILIZATION,INITIAL_ALLOCATION from v$resource_limit where resource_name='sessions';
the fixed method is as belows:
restart service dbservice. tnsservice. and clean listener.or all is ok .