Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Command-line parameters

Command-line parameters

From: Phil Bewig <pbewig_at_swbell.net>
Date: 9 Mar 2004 06:21:49 -0800
Message-ID: <455f7154.0403090621.5c8ce230@posting.google.com>


Given these two SQL*Plus scripts, stored in files named as indicated:

SQL*Plus behaves as follows:

    SQL> start parent Arg1 Arg2 Arg3
    before Arg1 Arg2 Arg3
    child Arg1 Arg3
    after Arg1 Arg3 Arg3

I expected that command-line parameters
would be local to the script where they
are invoked. But SQL*Plus seems to keep a single set of command-line parameters
that is shared by all scripts, dynamically, so that the parameters to one script can be modified by a child of that script.

I fixed my script by assigning the input parameters to bind variables immediately on entry to the script. But this is
hardly a general solution.

Is this a bug or a feature? How could
this behavior ever be useful?

Phil Received on Tue Mar 09 2004 - 08:21:49 CST

Original text of this message

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