Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: window solution :-)
"jazzz_" <jazzz__at_poczta.onet.pl> wrote in message
news:cvfcjf$slk$1_at_nemesis.news.tpi.pl...
> OK, thanks for your help
> I found solution.
>
> here is Windows version:
>
> 1. Make batch file 1.sql which include:
>
> sqlplus @c:\username.sql
>
> 2. Make file username.sql and inside put:
>
> us/pass_at_db
> spool c:\parm1.txt
> set pages 1000
> set pause off
> set feedback off
> set head off
> begin
> select username from all_users where username<>'DEMO' AND username<>'SYS'
> AND username<>'SYSTEM' AND username<>'SCOTT' AND username<>'DBSNMP';
> exit;
>
> 3. run 1.sql
>
>
>
2 cents:
[_] don't use hard-coded path names
[_] the BEGIN should be removed (this script won't run, xince the BEGIN
indicates the beginning of an anonymous PL/SQL block, which requires a
corresponding END; -- and is not appropriate in this case)
[_] use NOT IN(....) for a simpler WHERE clause
++ mcs Received on Tue Feb 22 2005 - 07:56:16 CST