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: Scripts on HPUX

Re: Scripts on HPUX

From: John Hurley <johnbhurley_at_sbcglobal.net>
Date: 30 Nov 2004 03:53:32 -0800
Message-ID: <d4d6f278.0411300353.28389e7a@posting.google.com>


This forum is fine for that purpose.

What specific questions do you have?

Here's a korn shell script skeleton that can invoke sqlplus. You have to have appropriate os permissions of course to run something like this and many shops have policies regarding setup of jobs like these (perhaps only run thru a scheduling package or via authorized change control processes, etc).

#!/bin/ksh
#

. /u01/local/bin/.9isetenv
sqlplus /nolog <<EOF
connect / as sysdba

--
-- what do you need to do?
--
exit;
EOF

Heres another to invoke rman


#!/bin/ksh
#
. /u01/local/bin/.9isetenv export ORACLE_SID=hardcode; rman <<EOF connect target sysdba_user/****@target connect catalog rman_user/*****@recvcat resync catalog; EOF What other kind of info do you need?
Received on Tue Nov 30 2004 - 05:53:32 CST

Original text of this message

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