Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Using shell script to log into SQLPLUS
amerar_at_iwc.net wrote:
> Hi,
>
> This may seem like an easy thing, but I am having issues.
>
> We are running 9i. I need to write a script that will log into some
> remote databases and perform some maintenance.
>
> The basic connect in the script looks like this:
>
>
> sqlplus /@MDO <<EOF
> connect / as sysdba;
> .
> .
> .
>
>
> But that is not working............any suggestions?
>
sqlplus /nolog <<EOF
connect ops$username/password_at_MDO
. . .
-- To reply by email remove "_nospam"Received on Fri Jan 13 2006 - 13:41:46 CST
![]() |
![]() |