Re: su - oracle -c "script"
- From: Jared Still <jkstill@xxxxxxxxx>
- To: Magnus Andersen <mag.andersen@xxxxxxxxx>
- Date: Thu, 11 Aug 2005 18:58:40 -0700
Even better!
On 8/11/05, Magnus Andersen <mag.andersen@xxxxxxxxx> wrote:
>
> I use the -s in my scripts in combo with a here doc.
>
> su - oracle -c $ORACLE_HOME/bin/sqlplus -s <<!
> / as sysdba
> @/apps/oracle/select_user.sql
> disconnect
> !
>
> --
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist
- Follow-Ups:
- Re: su - oracle -c "script"
- From: rjamya
- References:
- su - oracle -c "script"
- From: Joe Smith
- Re: su - oracle -c "script"
- From: Jared Still
- Re: su - oracle -c "script"
- From: Magnus Andersen
Other related posts:
- Re: su - oracle -c "script"
- From: rjamya
- su - oracle -c "script"
- From: Joe Smith
- Re: su - oracle -c "script"
- From: Jared Still
- Re: su - oracle -c "script"
- From: Magnus Andersen