<TNS-12518> TNS-12560&gt; TNS-00530&gt; 64位Windows错误:203:未知错误

时间:2017-10-20 10:07:00

标签: oracle tns

大家好!我想提前感谢你,不管你有答案,都要花时间研究这个问题。 :)

我已经运行了XE服务,但我无法使ICIVM1D服务正常运行。尝试运行我的应用程序时,它会因错误而失败。

日志返回:

20-OKT-2017 10:40:08 * (CONNECT_DATA=(CID=(PROGRAM=SQL Developer)(HOST=__jdbc__)(USER=skj))(SID=ICIVM1D)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.148.1)(PORT=53564)) * establish * ICIVM1D * 12518
TNS-12518: TNS:listener could not hand off client connection
 TNS-12560: TNS:protocol adapter error
  TNS-00530: Protocol adapter error
   64-bit Windows Error: 203: Unknown error

我已经在stackoverflow和其他网站上不成功地尝试了有关TNS-12518,TNS-12560和TNS-00530的问题中提到的解决方案。

Oracle服务已启动并正在运行,以本地系统(主机为localhost)身份登录:

OracleServiceXE
OracleXETNSListener

听众:

C:\WINDOWS\system32>lsnrctl status

LSNRCTL for 64-bit Windows: Version 11.2.0.2.0 - Production on 20-OKT-2017 10:09:21

Copyright (c) 1991, 2014, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.2.0 - Production
Start Date                20-OKT-2017 08:36:03
Uptime                    0 days 1 hr. 33 min. 18 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Default Service           XE
Listener Parameter File   ..\listener.ora
Listener Log File         ..\log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<my PC name>)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
  Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "ICIVM1D" has 1 instance(s).
  Instance "ICIVM1D", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XE" has 1 instance(s).
  Instance "XE", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

的listener.ora (如果我更改DEFAULT_SERVICE_LISTENER并重新启动监听器,我认为错误没有区别。)

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = ICIVM1D)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    )
    (SID_DESC =
      (SID_NAME = XE)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    )
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
      (PROGRAM = extproc)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST = <my PC name>)(PORT = 1521))
    )
  )

DEFAULT_SERVICE_LISTENER = (XE)

的tnsnames.ora

ICIVM1D =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = LOCALHOST)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = ICIVM1D)
    )
  )

XE =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = LOCALHOST)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = XE)
    )
  )

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )

ORACLR_CONNECTION_DATA = 
  (DESCRIPTION = 
    (ADDRESS_LIST = 
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) 
    ) 
    (CONNECT_DATA = 
      (SID = CLRExtProc) 
      (PRESENTATION = RO) 
    ) 
  ) 

我尝试重新启动连接:

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 1068937216 bytes
Fixed Size                  2260048 bytes
Variable Size             666895280 bytes
Database Buffers          394264576 bytes
Redo Buffers                5517312 bytes
Database mounted.
Database opened.

我检查了进程数:

SQL> show parameter processes

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
aq_tm_processes                      integer     0
db_writer_processes                  integer     1
gcs_server_processes                 integer     0
global_txn_processes                 integer     1
job_queue_processes                  integer     4
log_archive_max_processes            integer     4
processes                            integer     800

我试过ping:

C:\WINDOWS\system32>tnsping icivm1d

TNS Ping Utility for 64-bit Windows: Version 11.2.0.2.0 - Production on 20-OKT-2017 10:36:00

Copyright (c) 1997, 2014, Oracle.  All rights reserved.

Used parameter files:
C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = LOCALHOST)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ICIVM1D)))
OK (50 msec)

警报返回:

Create Relation ADR_CONTROL  

运行SQL语句,我得到以下结果:

SQL> select name, value from v$PARAMETER where name like '%name%';

NAME
--------------------------------------------------------------------------------
VALUE
--------------------------------------------------------------------------------
lock_name_space


db_file_name_convert


log_file_name_convert



NAME
--------------------------------------------------------------------------------
VALUE
--------------------------------------------------------------------------------
global_names
FALSE

instance_name
xe

service_names
XE


NAME
--------------------------------------------------------------------------------
VALUE
--------------------------------------------------------------------------------
db_name
XE

db_unique_name
XE


8 rows selected.

SQL> select name, NETWORK_NAME from v$services;

NAME
----------------------------------------------------------------
NETWORK_NAME
--------------------------------------------------------------------------------
XEXDB
XEXDB

XE
XE

SYS$BACKGROUND



NAME
----------------------------------------------------------------
NETWORK_NAME
--------------------------------------------------------------------------------
SYS$USERS

0 个答案:

没有答案