472,337 Members | 1,634 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,337 software developers and data experts.

SQL*Plus Parameters

Has anyone seen this before?

I start SQL*Plus, and login by typing
sqlplus Quantum/Password@BPrd

I type:

select '&1' from dual;

it responds
old 1: select '&1' from dual
new 1: select 'Files\_Tools\ora816\sqlplus\admin\glogin.sql' from
dual

Where on earth did "Files\_Tools\ora816\sqlplus\admin\glogin.sql" come
from?!?!?!

This does not happen if I copy SQL*Plus to the root folder and execute
it from there.

Can anyone cast some light on this?
Jul 19 '05 #1
3 19930
pe****@mailinator.com (Peter) wrote in message news:<c5**************************@posting.google. com>...
Has anyone seen this before?

I start SQL*Plus, and login by typing
sqlplus Quantum/Password@BPrd

I type:

select '&1' from dual;

it responds
old 1: select '&1' from dual
new 1: select 'Files\_Tools\ora816\sqlplus\admin\glogin.sql' from
dual

Where on earth did "Files\_Tools\ora816\sqlplus\admin\glogin.sql" come
from?!?!?!

This does not happen if I copy SQL*Plus to the root folder and execute
it from there.

Can anyone cast some light on this?


I attempted to duplicate your post but I am on AIX 5.2 running Oracle
9.2.0.4 and SQLPlus queried me for the value of the label, which is
probably what you expected.

However, I would point out that &1, &2 are for positional parameters
passed on a start line as in "start my_script 110 Tuesday". In a
script that you expect to execute from the SQLPlus command line
without passed parameters you should just use a name instead of a
number for the label variables: &limit or something.

You appear to be on Windows so perhaps the global login file is passed
to sqlplus as its first parameter and the value is not cleared. I am
willing to bet the parameter would work fine if the script was execute
via a start with parameters.

HTH -- Mark D Powell --
Jul 19 '05 #2
> > Has anyone seen this before?

I start SQL*Plus, and login by typing
sqlplus Quantum/Password@BPrd

I type:

select '&1' from dual;

it responds
old 1: select '&1' from dual
new 1: select 'Files\_Tools\ora816\sqlplus\admin\glogin.sql' from
dual

Where on earth did "Files\_Tools\ora816\sqlplus\admin\glogin.sql" come
from?!?!?!

This does not happen if I copy SQL*Plus to the root folder and execute
it from there.

Can anyone cast some light on this?


I attempted to duplicate your post but I am on AIX 5.2 running Oracle
9.2.0.4 and SQLPlus queried me for the value of the label, which is
probably what you expected.

However, I would point out that &1, &2 are for positional parameters
passed on a start line as in "start my_script 110 Tuesday". In a
script that you expect to execute from the SQLPlus command line
without passed parameters you should just use a name instead of a
number for the label variables: &limit or something.

You appear to be on Windows so perhaps the global login file is passed
to sqlplus as its first parameter and the value is not cleared. I am
willing to bet the parameter would work fine if the script was execute
via a start with parameters.

HTH -- Mark D Powell --


(Thinks -- Hmmmm, I could have a money making opportunity here...)

How much would you be willing to bet?

Unfortunately it does it for parameters passed from the command line
too. The first command line parameter is ignored/oblitereated and
replaced by "Files\_Tools\ora816\sqlplus\admin\glogin.sql" .
Subsequent parameters (&2, &3, etc.) seem fine.

Work arounds are pretty obvious, but it pains me admit defeat to this
kind of trivial nonsense.

Thanx for your comments,

--Peter
Jul 19 '05 #3
pe****@mailinator.com (Peter) wrote in message news:<c5*************************@posting.google.c om>...
Has anyone seen this before?

I start SQL*Plus, and login by typing
sqlplus Quantum/Password@BPrd

I type:

select '&1' from dual;

it responds
old 1: select '&1' from dual
new 1: select 'Files\_Tools\ora816\sqlplus\admin\glogin.sql' from
dual

Where on earth did "Files\_Tools\ora816\sqlplus\admin\glogin.sql" come
from?!?!?!

This does not happen if I copy SQL*Plus to the root folder and execute
it from there.

Can anyone cast some light on this?


I attempted to duplicate your post but I am on AIX 5.2 running Oracle
9.2.0.4 and SQLPlus queried me for the value of the label, which is
probably what you expected.

However, I would point out that &1, &2 are for positional parameters
passed on a start line as in "start my_script 110 Tuesday". In a
script that you expect to execute from the SQLPlus command line
without passed parameters you should just use a name instead of a
number for the label variables: &limit or something.

You appear to be on Windows so perhaps the global login file is passed
to sqlplus as its first parameter and the value is not cleared. I am
willing to bet the parameter would work fine if the script was execute
via a start with parameters.

HTH -- Mark D Powell --


(Thinks -- Hmmmm, I could have a money making opportunity here...)

How much would you be willing to bet?

Unfortunately it does it for parameters passed from the command line
too. The first command line parameter is ignored/oblitereated and
replaced by "Files\_Tools\ora816\sqlplus\admin\glogin.sql" .
Subsequent parameters (&2, &3, etc.) seem fine.

Work arounds are pretty obvious, but it pains me admit defeat to this
kind of trivial nonsense.

Thanx for your comments,

--Peter


Peter, you did not list your Oracle version. If you are on an older
version perhaps an upgrade will include a fix for this problem.

Have you searched metalink for the bug and possible patch?

HTH -- Mark D Powell --
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ruben Schoenefeld | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi - after I got sql*plus to work on my Linux box and I recompiled PHP 5 to include the oracle...
2
by: Ethel Aardvark | last post by:
I have a query which runs fine in SQL*Plus but which will not compile into a packaged procedure (claiming that the table can not be found): ...
3
by: khangu | last post by:
Hello! i am a newbie in oracle database. I have some question about SQL*PLUS Currently, i have some table in an oracle database. When i open...
3
by: valexena | last post by:
In order to set SQL*PLUS session so that NLS_DATE_FORMAT information is altered in a specific way every time I log into Oracle which method would...
0
by: GP | last post by:
Consider the following: (extracted from a .bat) sqlplus toto/titi ^ @%pdl%\islqz033 ^ '1 ' ^ 'aaa' ^ ' ' ^ 'zzz' ^ ....
1
by: Miori | last post by:
Dear all, Server machine running Oracle Database Server on Linux and a Client machine running Oracle Client on WIndows XP. HOw it is possible to...
2
by: Dmitry Bond. | last post by:
Hello All. Currently we are porting some software from NSK (HP Hon-Stop) SQL to Oracle and I faced with the following problem... The SQL...
2
by: Ant | last post by:
Hi, I have an SQL assignment to do and at my school we use SQL *Plus there however I don't have Oracle at home, where I would like to do the work...
1
by: Peter | last post by:
Has anyone seen this before? I start SQL*Plus, and login by typing sqlplus Quantum/Password@BPrd I type: select '&1' from dual; it...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.