【sqlplus】USER/PASS@HOSTでログインできない
SQLPLUSでローカルのOracle10gに接続を試みているのですが
コマンドプロンプトで
sqlplus USER/PASS
では接続できるのですが、
sqlplus USER/PASS@HOST
で接続できないんです。
環境は下記となっております。
Windows XP
Oracle10g(10.1.0)
======【エラー内容】==================================
C:\Documents and Settings\XXXX XXXX>sqlplus USER/PASS@orcl
SQL*Plus: Release 10.1.0.2.0 - Production on 火 7月 3 01:56:57 2007
Copyright (c) 1982, 2004, Oracle. All rights reserved.
ERROR:
ORA-12523: TNS:listener could not find instance appropriate for the client
connection
======【listener.ora】==================================
# listener.ora Network Configuration File: C:\oracle\product\10.1.0\Db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.1.0\Db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = ORCL)
(ORACLE_HOME = C:\oracle\product\10.1.0\Db_1)
(PROGRAM = oracle)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
)
)
======【sqlnet.ora】==================================
# sqlnet.ora Network Configuration File: C:\oracle\product\10.1.0\Db_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
SQLNET.AUTHENTICAION_SERVICES=NONE
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
======【tnsnames.ora】==================================
# tnsnames.ora Network Configuration File: C:\oracle\product\10.1.0\Db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = localhost)
(PORT = 1521)
)
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = orcl)
)
)
======【tnsping】==================================
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521)) (
CONNECT_DATA = (SERVER = SHARED) (SERVICE_NAME = orcl)))
OK (40 msec)
======【LSNRCTL>status】==================================
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "ORCL" has 1 instance(s).
Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
実は当初PHPから接続しようと色々やっていたのですが、sqlplusで
まともに接続できていないことが判明し、自分でも色々調べてみた
のですが、どうしてもうまくいかず質問させていただいた次第です。
初心者ですが、どうかよろしくお願いいたします。
お礼
回答、ありがとうございました。