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: Using "whenever oserror" on Windows

Re: Using "whenever oserror" on Windows

From: <yong321_at_yahoo.com>
Date: 5 Apr 2005 22:12:38 -0700
Message-ID: <1112764357.983851.12610@o13g2000cwo.googlegroups.com>


Hi, Vsevolod,

You may try creating the file tnsnav.ora under %oracle_home%\network\admin. I'm documenting my way to identify this file in case other people are interested.

In the test.sql file, I say "whenever oserror continue rollback" so I don't have to login repeatedly. I type "conn yong/yong" to get the "O/S Message: No such file or directory" message, followed by "Connected" and "Rollback complete".

Now I launch filemon (from sysinternals.com), apply filter d:\ora9i\* since I know it mostly likely is a file missing from that folder and down, and type "conn yong/yong" in sqlplus. Filemon.log shows a dozen lines of "FILE NOT FOUND" for sqlplus.exe process. I try each one and find that creating tnsnav.ora eliminates the error. Tedious? Maybe. But it's systematic.

Yong Huang
yong321ATyahoo.com Received on Wed Apr 06 2005 - 00:12:38 CDT

Original text of this message

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