WindowsでOracle9i client版のSQL*Plusにはまる

sqlplusを実行するバッチファイルをいじっていたら、アプリケーションエラーが出てきて、Microsoftに連絡するかどうかを100回ぐらい聞かれた。

コマンドプロンプトで再現できるようになったのは、2時間後。

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:>echo %SQLPLUS%
%SQLPLUS%
C:\>set SQLPLUS=hoge
C:>echo %SQLPLUS%
hoge
C:\>sqlplus.exe
(ここでアプリケーションエラーが出る)

SQLPLUSという名前の環境変数が定義されているとダメみたい。

バッチのはじめのほうにあったUNIX版からの名残の環境変数を消してみると動いた。

なんだそれ。

This entry was posted in Tech and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>