Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Generated data file contains error messages !!!

Re: Generated data file contains error messages !!!

From: Js <jagjeet_malhi_at_hotmail.com>
Date: 23 Sep 2005 06:35:21 -0700
Message-ID: <1127482521.116345.7030@g44g2000cwa.googlegroups.com>


Hi,

Not good but .. serve purpose ..
use "grep -v " for lines which you do not want to show ..

sqlplus / << eof | grep -v "^ORA-[0-9][0-9][0-9][0-9][0-9]" | grep -v "^ERROR at line" > jsoutput
select count(*) from no_table;
select count(*) from dual;
exit
eof
[ora9_at_js ora9]$
[ora9_at_js ora9]$ sh a.sh
[ora9_at_js ora9]$
[ora9_at_js ora9]$ cat jsoutput

SQL*Plus: Release 9.2.0.4.0 - Production on Fri Jan 1 01:34:06 1999

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

Connected to:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production With the Partitioning option
JServer Release 9.2.0.4.0 - Production

SQL> select count(*) from no_table

                     *


SQL>
  COUNT(*)


         1

SQL> Disconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning option
JServer Release 9.2.0.4.0 - Production Received on Fri Sep 23 2005 - 08:35:21 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US