473,672 Members | 2,933 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\o ra816\sqlplus\a dmin\glogin.sql ' from
dual

Where on earth did "Files\_Tools\o ra816\sqlplus\a dmin\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 20062
pe****@mailinat or.com (Peter) wrote in message news:<c5******* *************** ****@posting.go ogle.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\o ra816\sqlplus\a dmin\glogin.sql ' from
dual

Where on earth did "Files\_Tools\o ra816\sqlplus\a dmin\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\o ra816\sqlplus\a dmin\glogin.sql ' from
dual

Where on earth did "Files\_Tools\o ra816\sqlplus\a dmin\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\o ra816\sqlplus\a dmin\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****@mailinat or.com (Peter) wrote in message news:<c5******* *************** ***@posting.goo gle.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\o ra816\sqlplus\a dmin\glogin.sql ' from
dual

Where on earth did "Files\_Tools\o ra816\sqlplus\a dmin\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\o ra816\sqlplus\a dmin\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
3819
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 instant client, I run into a weird problem: I get 'ORA-01017: invalid username/password; logon denied' when using the same combination of username/password and Oracle instance that works in sql*plus on
2
4960
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): SELECT DISTINCT Folder_ID INTO l_RootID -- remove this line in SQL*Plus context FROM ifssys.ifs_folder_items WHERE Folder_Name = 'Root Folder' AND TYPE = 'FOLDER'; -> PL/SQL: ORA-00942: table or view does not exist
3
3694
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 SQL*PLUS and type my query: "select * from employee". It display for me all the record in the database and then it also display how many record has been selected. but if i try to do this: "select * from customer" or select any table it still display all the record in that table but it didn't...
3
15046
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 be used? -- Posted via http://dbforums.com
0
2021
by: GP | last post by:
Consider the following: (extracted from a .bat) sqlplus toto/titi ^ @%pdl%\islqz033 ^ '1 ' ^ 'aaa' ^ ' ' ^ 'zzz' ^ ....
1
4314
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 shut down/start up the Oracle database on the server from SQL*Plus of the client. I know it can be done from SQL*Plus of the server but the point is that I want to do it from SQL*Plus of the Client. Many many thnx for any tips, Miori
2
12511
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 statement: select * from BOM where ordnr = :1 where value of parameter ":1" is "ORD195" returns no data (sqlcode 1403). But the SQL:
2
4128
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 ,so I was wondering whats the easiest way to get an SQL environment up so I can code in that then just paste it into SQL *Plus later. I don't really want to install Oracle on my home pc and I was wondering if there are other IDE's for SQl that would fit my need for this.
1
545
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 responds
0
8944
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8844
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8640
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8696
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7469
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6254
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2091
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1835
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.