Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: OT: perl q
> Good morning everyone,
>
> I apologize for the OT post.
>
> I was looking at the DBI. It suddenly occurred to me that I can only
> connect to sql*plus with this. I'm not minimizing it's usefulness, but I
> am wondering if I can use a perl script to fire off the rman backup, scan
> the log for errors, mail the log, etc. everything I used to do in ksh.
>
> Any examples of a "host" type command or something that may possibly meet
> my needs would be greatly appreciated and rewarded by a virtual monkey
> beer :)
You can either feed the stuff into sqlplus the same way you did in ksh (with reasonable variables and control structures added) or use dbi to feed the commands directly into the server.
You might want to check out the
dbi-users_at_perl.org
mailing list or CPAN for working examples.
-- Steven Lembark 2930 W. Palmer Workhorse Computing Chicago, IL 60647 +1 800 762 1582 -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Steven Lembark INET: lembark_at_wrkhors.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Dec 04 2001 - 10:06:37 CST
![]() |
![]() |