Database Administration (MOSC)

MOSC Banner

Minus operator in the batch file

edited Jun 21, 2010 11:11PM in Database Administration (MOSC) 6 commentsAnswered
 Hi Hope i am not making u understand
spool num.log

select max(sequence#) from v$log_history@orcl1 minus select max(sequence#) from v$log_history@orcl2;

spool off

This had generated num.log with a value 80

So how can i read the value 80 in the file num.log and assign it to a variable sum

and then had a expression like where sum>80 ( In the batch file )

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