Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How do I trace hanging "connect / as sysdba"?

Re: How do I trace hanging "connect / as sysdba"?

From: Frank van Bortel <frank.van.bortel_at_gmail.com>
Date: Sat, 18 Feb 2006 16:59:28 +0100
Message-ID: <dt7fhk$u9s$1@news1.zwoll1.ov.home.nl>


DR wrote:

>> Usually, this fails with network errors (there's
>> no networking involved, but anyway), which indicate
>> services are not started.
>> Or with authorization failures, indicating you use
>> a different account, or you have sqlnet.ora wrong.
>> Just "hangs" are rare... Some thoughts:
>> - firewall?
> 
> "no networking involved, but anyway" -> "sqlnet.ora" -> "firewall"?
> 
> Could you elaborate?
> 
> Regards,
> Dimitre 
> 
> 

The network error is a ORA-12560: TNS:protocol adapter error. This indicates a networking error where
in fact no network substrate is in use (no tcp/ip). I demonstrate in the (partial) trace below.

Some firewalls stop programs from acting as server. Check if that's the case. Microsofts firewall just gets in, and starts blocking without *any* conformation. Zonealarm will ask for confomation and does block "outgoing" traffic.

sqlnet.ora trace_level_client will show the *attempt* to set up a connection, in case of services not being started, you will see this:

[18-FEB-2006 16:54:00:640] snlpcss: Unable to spawn Oracle oracle
(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq))) db920, error 2.
[18-FEB-2006 16:54:00:640] sntpcall: exit
[18-FEB-2006 16:54:00:640] ntpcon: exit
[18-FEB-2006 16:54:00:640] nserror: nsres: id=0, op=65, ns=12560, ns2=0;
nt[0]=530, nt[1]=2, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
[18-FEB-2006 16:54:00:640] nsopen: unable to open transport
[18-FEB-2006 16:54:00:640] nsmfr: 1632 bytes at 0x14eb5d0
[18-FEB-2006 16:54:00:640] nsmfr: 536 bytes at 0x14eb3a8
[18-FEB-2006 16:54:00:640] nladget: entry
[18-FEB-2006 16:54:00:640] nladget: exit
[18-FEB-2006 16:54:00:640] nsmfr: 212 bytes at 0x14ea098
[18-FEB-2006 16:54:00:640] nladtrm: entry
[18-FEB-2006 16:54:00:640] nladtrm: exit
[18-FEB-2006 16:54:00:640] nioqper: error from nscall
[18-FEB-2006 16:54:00:640] nioqper: ns main err code: 12560
[18-FEB-2006 16:54:00:640] nioqper: ns (2) err code: 0
[18-FEB-2006 16:54:00:640] nioqper: nt main err code: 530
[18-FEB-2006 16:54:00:640] nioqper: nt (2) err code: 2
[18-FEB-2006 16:54:00:640] nioqper: nt OS err code: 0

Does that answer your questions?

-- 
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
Received on Sat Feb 18 2006 - 09:59:28 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US