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: sys as sysdba within a script?

Re: sys as sysdba within a script?

From: Michel Cadot <micadot{at}altern{dot}org>
Date: Mon, 20 Dec 2004 21:59:43 +0100
Message-ID: <41c73d4b$0$21959$626a14ce@news.free.fr>

"hastenthunder" <hastenthunder_at_hotmail.com> a écrit dans le message de news:fAGxd.2260$Ny6.3593_at_mencken.net.nih.gov...
| Hello.
|
| I'm trying to run a batch job that requies sysdba privilege.
| Specifically, I trying to perform a transportable tablespace export within a
| script. However, the following command will encounter an error (caused by
| "as sysdba" clause)
|
| exp sys/password as sysdba transport_tablespace-y tablespaces=tbs1
| triggers=y file=test.dmp
|
| Is there any way to get around that so I don't have to maually enter the
| sysdba password every time the script runs?
|
|

Try:

exp "sys/password as sysdba" transport_tablespace-y tablespaces=tbs1triggers=y file=test.dmp

Regards
Michel Cadot Received on Mon Dec 20 2004 - 14:59:43 CST

Original text of this message

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