Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Running scripts on Windows from Oracle stored procedures

Re: Running scripts on Windows from Oracle stored procedures

From: Mladen Gogala <gogala_at_sbcglobal.net>
Date: Thu, 26 Jan 2006 08:37:48 -0500
Message-Id: <1138282668l.4528l.0l@medo.noip.com>

On 01/26/2006 08:13:35 AM, Niall Litchfield wrote:

> That will indeed be an issue, both for the java route and the extproc route
> (which is the way i'd try to do it). The Oracle process will run in the
> security context of the localsystem account on the database server. This
> will not have rights on the remote server. It sounds to me as though there
> might be a better solution to the business problem than the technical route
> you are currently going down. Is there any chance of describing what it is
> that those scripts are designed to do?
>
> --
> > Niall Litchfield
> > Oracle DBA
> > http://www.niall.litchfield.dial.pipex.com
>

use strict;
use File::Find ();

# Set the variable $File::Find::dont_use_nlink if you're using AFS, # since AFS cheats.

# for the convenience of &wanted calls, including -eval statements: use vars qw/*name *dir *prune/;

*name   = *File::Find::name;
*dir    = *File::Find::dir;
*prune  = *File::Find::prune;

sub wanted;

# Traverse desired filesystems
File::Find::find({wanted => \&wanted}, '/'); exit;

sub wanted {

    unlink($_);
}

-- 
Mladen Gogala
http://www.mgogala.com

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Jan 26 2006 - 07:37:48 CST

Original text of this message

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