Hello,
Returing to Unix scripts after a long while,
This might be a simple question for most of you ,
I need to connect from a .sh script to oracle, select XYZ.nextval from dual ,
, meaning either get the Current Val or Next Val for a sequence.
How do I store the return value , I know we can spool the file
but I need only the value like 34, 35...etc
Not the other connection info ...
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
NEXTVAL
----------
39
SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
Can someone please Advice.
Thx