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: create dblink with & in password??

Re: create dblink with & in password??

From: Jim Smith <jim_at_jimsmith.demon.co.uk>
Date: 1997/01/07
Message-ID: <BF3U1BASmj0yEwhA@jimsmith.demon.co.uk>#1/1

In article <32d53ca0.335768759_at_203.12.176.153>, George Dau <gedau_at_mim.com.au> writes
>G'day Oraclers,
>The SQL Language Reference Manual says on pages 2-9, then shows in an example on
>2-10 that I can use an & in an object if I double quote the name.
>
>Doesnt work with a database link under Oracle 7.2.2. Here is my script:
>
>#!/bin/sh
>sqlplus system/manager <<EOSQL
>create database link oen.prod
> connect to oen identified by "safety&1st"
> using 'T:bcscost1:OENP';
>xit;

You can put almost anything in an object name if you double quote it, but the SQL*Plus command line interpreter will assume the & marks the start of a variable. You need to disable or change the variable character using SET DEFINE (see the SQL*PLus User's Guide)

-- 
Jim Smith
Received on Tue Jan 07 1997 - 00:00:00 CST

Original text of this message

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