Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Question on NT batch file syntax
Hi, in NT you can do it too
only one difference NT like \ and does not know <<!
c:\> svrmgr23.exe @c:\orant\mydir\mysql\myfile.sql
connect sys/.... as sysdba;
startup pfile=c:\orabase\admin\init....ora
@c:\c:\orant\mydir\mysql\second.sql
@$ORACLE_HOME\rdbms\admin\catalog; @$ORACLE_HOME\rdbms\admin\catproc; @$ORACLE_HOME\rdbms\admin\catparr;
exit
rem end of ---------- In myfile.sql
Iurie Jigalov.
Oracle DBA.
Miro Sarbaev wrote in message <37b45ca9$0$228_at_nntp1.ba.best.com>...
>Hello -
>Sorry if I am breaking any rools of netiquette by posting this -
>this question is slightly off-topic, but, I guess, not quite off-topic.
>
>There is a widely used UNIX syntax, when you pass a bunch of statements to
a
>program within the same script.
>For example:
>#############################
>svrmgrl <<!
> connect sys/change_on_install;
> @$ORACLE_HOME/rdbms/admin/catalog;
> @$ORACLE_HOME/rdbms/admin/catproc;
> @$ORACLE_HOME/rdbms/admin/catparr;
> exit;
>!
>#############################
>Does anyone know if there is an NT version of the same thing, i.e.
><executable> <<!
><bunch of statements>
>!
>- so that one does not have to make a batch file plus a script, but rather
>keep everything in one file...
>Thank you in advance -
>Miro.
>
>
Received on Fri Aug 13 1999 - 14:09:46 CDT