Database Administration (MOSC)

MOSC Banner

Variable in batch file

edited Jun 23, 2010 10:59AM in Database Administration (MOSC) 3 commentsAnswered
 

Hi I had a number  80 how can i assign this variable to a variable sum in the batch file

sqlplus "/ as sysdba" <<EOF
set heading off
set echo off
spool orcl2.log
select max(sequence#) from v\$log_history;
spool off
exit;
EOF

Please help me Thank you in advance

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center