taupirho,
well done for making the effort to be clear (I really do appreciate it).
Notwithstanding your elegant 'proof of concept', which I don't dispute, I still
do dispute that it's proving what you think it is.
when you used
Code:
$ sqlplus / @tom
SQL*Plus: Release 9.2.0.2.0 - Production on Thu Aug 10 15:38:29 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.2.0 - Production
With the Partitioning option
JServer Release 9.2.0.2.0 - Production
PL/SQL procedure successfully completed.
Connected.
Array fetch/bind size is 15. (arraysize is 15)
Will commit when done. (copycommit is 0)
Maximum long size is 80. (long is 80)
1 rows selected from DEFAULT HOST connection.
1 rows inserted into TOMXXX.
1 rows committed into TOMXXX at bond@dbond01.
PL/SQL procedure successfully completed.
X
--------------------------------------------------------------------------------
10-aug-06 15:38:32
Y
--------------------------------------------------------------------------------
10-aug-06 15:38:38
you ran an anonymous block, followed by the sqlplus copy command, followed by another anonymous block. This was invoked from the sql plus command line, and was therefore not a pl/sql routine. I believe that the original question was to run sql plus from within pl/sql, and
not to intermingle sql plus commands with anonymous blocks.
The very fact that you invoked the 'proof' from the sql plus command prompt demonstrates that it is not PL/SQL. I believe that this was the original question posed.
I've just reviewed the first question, and it does appear to want this intermingling, although the text of the question clearly states "from within a PL/SQL block of code".
I may have gone off the deep end here, so please let me know what you think Taupirho.
Regards
Tharg
Grinding away at things Oracular