From oracle-l-bounce@freelists.org  Thu Jul  7 15:21:21 2005
Return-Path: <oracle-l-bounce@freelists.org>
Received: from air891.startdedicated.com (root@localhost)
 by orafaq.com (8.12.10/8.12.10) with ESMTP id j67KLJhl019727
 for <oracle-l@orafaq.com>; Thu, 7 Jul 2005 15:21:19 -0500
X-ClientAddr: 206.53.239.180
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j67KLCIP019696
 for <oracle-l@orafaq.com>; Thu, 7 Jul 2005 15:21:12 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id BCE2E1C9480;
 Thu,  7 Jul 2005 15:18:20 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 25315-06; Thu, 7 Jul 2005 15:18:20 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 41D781C961D;
 Thu,  7 Jul 2005 15:18:20 -0500 (EST)
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by Ecartis
Subject: SQl Help - use of special characters in a script when sending a password
Date: Thu, 7 Jul 2005 15:16:27 -0500
Message-ID: <3F02DCE8969E484482022C07D8CD6D9BE73170@waumail02.wausau.int>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: SQl Help - use of special characters in a script when sending a password
Thread-Index: AcWDMMGS/3rxsQywRMy7LKZgnigSMQ==
From: "Henslee, Jeff" <jhenslee@wausauwindow.com>
To: <Oracle-L@freelists.org>
X-OriginalArrivalTime: 07 Jul 2005 20:16:28.0275 (UTC) FILETIME=[C1C8AC30:01C58330]
X-archive-position: 22212
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-To: oracle-l-bounce@freelists.org
X-original-sender: jhenslee@wausauwindow.com
Precedence: normal
Reply-To: jhenslee@wausauwindow.com
X-list: oracle-l
X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net
X-mailscan-MailScanner-Information: Please contact the ISP for more information
X-mailscan-MailScanner: Found to be clean
X-MailScanner-From: oracle-l-bounce@freelists.org
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on 
 air891.startdedicated.com
X-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham 
 version=2.63

Apologies for the simple question - but I'm having a total brain fart.
======
Oracle 8.1.74 and Solaris 8
I have a file which I use in scripts to connect as a certain user.  They are set to be available to only the oracle user and members of the dba group.  

basically, they are hidden files and called:
	.<username>.login.sql
and contain:
	connect username/password

when I execute sqlplus I use:
$ sqlplus -s /nolog @.<username>login.sql

My problem is that I have a user password that contains a '&' character.

(Example:)
connect username/Blob21&vb02

How can I code in the '&' character into my script and NOT have sqlplus think it is a variable? Anybody ever run into this?

I know that in SQL you can use something like:

select field1, field2 
from foo
where code like '%\_%' escape '\'

How can I do it in a password (file) in my example?

Please advise.

Many Thanks!

Jeffrey C. Henslee 
mailto:jhenslee@wausauwindow.com

--
http://www.freelists.org/webpage/oracle-l

