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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: surpress message.

Re: surpress message.

From: mitchell <mitchell_at_comnet.ca>
Date: Fri, 02 Nov 2001 08:15:22 -0800
Message-ID: <F001.003BB70F.20011102083019@fatcity.com>

Dear DBA

Help : how to surpress those msg when running the kshell

Mitchell

Result currently got: spool /usr/oracle/drop_user.sql

cgoqats:system SQL> select 'DROP USER '||USERNAME||' CASCADE ;'   2 from DBA_USERS
  3 where USERNAME not in ('SYSTEM','SYS') ;

DROP USER APPLSYSPUB CASCADE ; DROP USER OEMMGR CASCADE ; DROP USER APPLSYS CASCADE ; DROP USER APPLSYSPUB CASCADE ; This is kshell
###############################################

#!/usr/bin/ksh
# 2001-11-02

###############################################
export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/8.0.5 export ORACLE_SID=cgoqats
###############################################
sqlplus system/manager <<EOF
set heading off
set pagesize 500
set linesize 150
set feedback off
set echo off
set verify off
set termout off
###############################################
spool /usr/oracle/drop_user.sql
select 'DROP USER '||USERNAME||' CASCADE ;' from DBA_USERS
where USERNAME not in ('SYSTEM','SYS') ; -- @drop_user.sql
spool off
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: mitchell
  INET: mitchell_at_comnet.ca

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Nov 02 2001 - 10:15:22 CST

Original text of this message

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