dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

How to suppress Oracle old,new messages in SQLPLUS ? - Oracle Server

This is a discussion on How to suppress Oracle old,new messages in SQLPLUS ? - Oracle Server ; Hi I have the following: shell script A.sh -------------------------- nohup ./B.sh $ts $locate $5 $7 $3 $4 $9 & shell script B.sh ------------------------ : : while 1 sqlplus -s $5/$6@$7 @c.sql $3 >> fc1 end When I tail -f fc1, ...


Home > Database Forum > Oracle Database > Oracle Server > How to suppress Oracle old,new messages in SQLPLUS ?

Reply

 

LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1  
Old 02-03-2008, 02:23 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
usenet is on a distinguished road
Default How to suppress Oracle old,new messages in SQLPLUS ?

Hi

I have the following:

shell script A.sh
--------------------------
nohup ./B.sh $ts $locate $5 $7 $3 $4 $9 &



shell script B.sh
------------------------

:
:
while 1
sqlplus -s $5/$6@$7 @c.sql $3 >> fc1
end


When I tail -f fc1, I get

old 1: select count(*) from v$session a where a.username='&1' and
a.status='AC
TIVE'
new 1: select count(*) from v$session a where a.username='test' and
a.status='ACTIVE'

0

I just want to see 0 appended to fc1 file.


Thanks
Reply With Quote
  #2  
Old 02-03-2008, 06:04 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
usenet is on a distinguished road
Default Re: How to suppress Oracle old,new messages in SQLPLUS ?

>
> I have the following:
>
> shell script A.sh
> --------------------------
> nohup ./B.sh $ts $locate $5 $7 $3 $4 $9 &
>
>
>
> shell script B.sh
> ------------------------
>
> :
> :
> while 1
> sqlplus -s $5/$6@$7 @c.sql $3 >> fc1
> end
>
>
> When I tail -f fc1, I get
>
> old 1: select count(*) from v$session a where a.username='&1' and
> a.status='AC
> TIVE'
> new 1: select count(*) from v$session a where a.username='test' and
> a.status='ACTIVE'
>
> 0
>
> I just want to see 0 appended to fc1 file.
>


Try : SET VERIFY OFF


Reply With Quote
  #3  
Old 02-03-2008, 06:41 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
usenet is on a distinguished road
Default Re: How to suppress Oracle old,new messages in SQLPLUS ?

Hi zw,

On 2008-02-03 07:23:35 +0100, zw said:
> old 1: select count(*) from v$session a where a.username='&1' and
> a.status='ACTIVE'
> new 1: select count(*) from v$session a where a.username='test' and
> a.status='ACTIVE'
>
> 0


.... make yourself familiar with the "show" and "set" options of the
sqlplus command. Read the "Oracle SQL*Plus User's Guide and
Reference"...
--
cul8er

Paul
paul.foerster@gmx.net

Reply With Quote
Reply

Thread Tools
Display Modes


LinkBacks (?)

LinkBack to this Thread: http://dbaspot.com/forums/oracle-server/367673-how-suppress-oracle-old-new-messages-sqlplus.html

Posted By For Type Date
Suppressing Variable Substitutions and Header in Oracle SQL-Scripts « experiences in software architecture This thread Pingback 12-04-2008 09:07 AM


All times are GMT -4. The time now is 07:24 AM.