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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).