Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> TNS problem
ntwort-an-Adresse:
oracle-on-linux_at_egroups.com Betreff: [oracle-on-linux] TNS problem Adresse hinzufügen
Hi, I'm running Oracle 8.0.5 on a SuSe 7.0 machine. I (think I) have configured the listener correctly, but when I try to connect, I get an ORA-01034 message (Oracle not available). But, if I try it directly without TNS, I get a connection. These are my config files:
# listener.ora
LISTENER=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.71.149.116)(PORT=
1521)))
SID_LIST_LISTENER=(SID_LIST=(SID_DESC=(GLOBAL_DBNAME=BSJTT)(SID_NAME=BSJ TT)(ORACLE_HOME=/opt/oracle/)))
LOG_FILE_LISTENER = lsnr
TRACE_LEVEL_LISTENER = 16
# tnsnames.ora
BSJTT=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.71.149.116)(PORT=1521
))(CONNECT_DATA=(SID=BSJTT)))
The listener starts successfully:
STATUS of the LISTENER
Alias LISTENER Version TNSLSNR for Linux: Version 8.0.5.0.0 - Production Start Date 29-NOV-00 18:26:52 Uptime 0 days 0 hr. 0 min. 0 sec Trace Level support Security OFF SNMP OFF Listener Parameter File /opt/oracle/network/admin/listener.ora Listener Log File /opt/oracle/network/log/lsnr.log Listener Trace File /opt/oracle/network/trace/listener.trc Services Summary... BSJTT has 1 service handler(s)The command completed successfully
tnsping says OK:
oracle_at_ws1-3:~ >tnsping bsjtt
TNS Ping Utility for Linux: Version 8.0.5.0.0 - Production on 29-NOV-00
18:29:51
(c) Copyright 1997 Oracle Corporation. All rights reserved.
Attempting to contact
(ADDRESS=(PROTOCOL=TCP)(HOST=10.71.149.116)(PORT=1521))
OK (10 msec)
oracle_at_ws1-3:~ > sqlplus
SQL*Plus: Release 8.0.5.0.0 - Production on Wed Nov 29 18:34:44 2000
(c) Copyright 1998 Oracle Corporation. All rights reserved.
Enter user-name: system/manager
Connected to:
Oracle8 Release 8.0.5.0.0 - Production
PL/SQL Release 8.0.5.0.0 - Production
-- This connects without TNS:
SQL> connect system/manager;
Connected.
SQL> select name from v$database;
NAME
TIA
-- -=[ Sancho ]=- Sent via Deja.com http://www.deja.com/ Before you buy.Received on Sun Dec 03 2000 - 14:36:32 CST