Unble to call the dbms_scheduler perl script

Hi all

I had written a Korn shell script that calls 2 pl/sql procedures. This shell script has been called since the DBMS_SCHEDULER and it worked fine. But later asked me to change it to perl, as we had to move to windows-based computer. The perl script ran fine from the command prompt but when I tried this scheduler, the task failed with ' ORA-27369: jobs of type EXECUTABLE failed with exit code: no such file or directory " error." When debugging, I realized if I commented associate DB command work went very well. I tried, including the path to all libraries (see entries in green), but it fails. I joined to share of my below perl script. Help, please

Appreciate any help or suggestions.

Thanks in advance

#! / usr/bin/perl
Use DBI;

use strict;

$ENV {'ORACLE_HOME'} = ' / product/app/11.2.0/db_1';
$ENV {'ORACLE_SID'} = 'XXX ';
$ENV {"LIB_PATH'} = ' $ORACLE_HOME/lib ';
$ENV {'PATH'} = "$ORACLE_HOME/bin: $ORACLE_HOME/OPatch: / usr/bin: / etc: / usr/sbin: / usr/ucb: $HOME/bin: / usr/bin / X 11: / sbin: /usr/opt/perl5_64/lib/site_perl/5.18.2/aix- "
thread-multi-64all:. $LIB_PATH
$ENV {'LD_LIBRARY_PATH'} = ' $GG_HOME: $LIB_PATH: / usr/opt/perl5_64/lib/site_perl/5.18.2/aix-thread-multi-64all';

#my ($inst, $user, $pass) = @ARGV;
My $inst = "XXX";
my $user = "aaa";
my $pass = "aaa";

# Then do not check each call DBI we define RaiseError.
# See the DBI docs, if you are not familiar with RaiseError.
# AutoCommit is currently encouraged and may be required at a later date.
print ($user, $pass, $inst, "\n");
My $dbh = DBI-> connect (' dbi:Oracle: $inst ', $user, $pass,)
({Mode AutoCommit = > 0, RaiseError = > 1, PrintError = > 0})
or die "could not connect: $DBI::errstr";

Exit 0;


Hello

Have you checked the files mentioned in the error? Looks like some files are missing or you don't have permission to access. In order to check these.

Tags: Database

Similar Questions

  • Call the CME9 limit script: where it is

    Hello

    Y at - it a TCL script to limit the duration of the call to a call on CME9.

    Concerning

    Antra

    As far as I KNOW, we don't have that you can download, it is your responsibility to create.

  • need help to run the perl script invoking ESX ssh command power CLI

    I tried with the VCLI function call, but my perl script does not work... If I want to download my script for ESX (not ESxi) perl file, then run the command that will display the value in the directory/tmp, then pull the output file in/tmp local VC no matter what directory

    something like this article using plink.exe http://communities.VMware.com/message/1260100#1260100

    comm and I want to run ""iam_extract_global.pl perl - customer < customer name > - /tmp/xxxxxx.mef outfile " "


    so I need pul /tmp/xxxxx.mef to the local directory

    Try to place the string values in the first 3 lines in quotes.

    $User = "root".
    $Pswd = "xxxxx".
    $ESXname = "xxxxxxx".

  • Creation of the virtual machine on a cluster using the vmcreate.pl script

    Hello

    I checked a few posts on this forum on how to create the virtual machine through vmcreate.pl, but responses was not so clear to me...

    These are the topics I've read:

    Create a VM on the Cluster instance

    How to configure the managed object HostSystem

    So, I would like to create a virtual machine on a Cluster, and not on a specific host. The vmcreate.pl script would have done the job? Or should I change it?

    In the topic = > VM create instance on Cluster I did not quite get, what I need to change...

    That's what I do:

    vmcreate.pl - server 'ESX NAME' - username "LOGIN" - password 'PASS' filename - vmcreate.xml - schema vmcreate.xsd


    Result:

    Creation of the 'myTestMachine ': VM error

    SOAP fault:

    -----------

    Error string: InvalidArgument

    The fault detail: InvalidArgument

    Here are the values of the XML file:

    < name > myTestMachine < / name >

    blah < Home > < / Host >

    blah < Center > < / Center >

    > Guest Id < Linioch < / comment-Id >

    blah < Datastore > < / Datastore >

    < > 2048 Disksize < / Disksize >

    > 256 MB memory < < / memory >

    < processor number > 1 < / number processor >

    < Nic-network > < / Nic-network >

    < Nic-Poweron > 1 < / Nic-Poweron >

    The values are correct the cause I checked the other perl scripts.

    Thanks in advance for your help

    Michal

    Thanks to xyz222 for the user and post Re: instance of VM to create the Cluster

    I was able at the end of the problem. So simple... The value of the in the xml file should be for example "rhel6_64Guest" and not a random word... that's all!

    sudo./vmcreate.pl--serveur SERVER - LOGIN - password PASS - filename... username/SampleData/vmcreate.xml - schema... /Schema/vmcreate.xsd

    Successfully created the virtual machine: 'teeest2' under host HOST_NAME

  • Call a jscript vbscript script and return a value

    Hello world

    I'm trying to simplify a tedious task: every day I have to fill in an InDesign document with 48 different numbers that go into 48 blocks of text. I would like to write a script to get these numbers (the temperatures that I get in an excel file) automatically and write them in the corresponding text blocks.

    So basically I use jscript to implement a document. So I want him to call a vbscript script (since only vbscript can retrieve an excel cell value) and have it return the value to the jscript in a variable.

    So far I managed to adapt a .vbs script that retrieves the number of the cell and the poster in a box:

    Option Explicit
    Dim objApp, objWbs, objWorkbook, objSheet

    Set objApp = New
    Set objWbs = objApp.WorkBooks
    objApp.Visible = False
    Set objWorkbook = objWbs.Open ("C:\Temperature")
    Set objSheet = objWorkbook.Sheets ("Sheet1")

    MsgBox objSheet.Range ("C5"). Value

    objWorkbook.Close False
    objWbs.Close
    objApp.Quit

    ObjSheet = Nothing set
    Set objWorkbook = Nothing
    Set objWbs = Nothing
    Set objApp = Nothing

    But it is only that. I always have trouble with:

    (1) the order doScript: How can I call the jscript vbscript script?

    (2) writes the value retrieved (or table) in a variable in vbscript script

    The rest is easy: in the jscript, write the table in the corresponding text blocks.

    Hope someone can help me. Thank you very much

    Maphio M.

    When you place an Excel file in InDesign, it becomes a table. From there on, it's a simple as myFrame.tables [0] .cells [x] .silence (myFrame being a reference to the image that you placed the Excel file in).

  • perl script does not follow the specification sdk?

    Hello

    I'm trying to customize the perl script to retrieve specific information, I need. I'm currently dipping in the specification of the sdk, and something seems strange to me. I can read that:

    A vSphere API client application begins by connecting to a server and obtaining a reference 
    to the ServiceInstance. The client can then use the RetrieveServiceContent method to gain
    access to the various vSphere manager entities and to the root folder of the inventory.
    

    ()http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.ServiceInstance.html( )

    I considered my perl as a client vSphere API script, so I looked for the "ServiceInstance" model in my perl scripts, but only two uses this object... All others have information without using the ServiceInstance... So this last one so useful? (If so, what is for?)

    About the RetrieveServiceContent it is never even used...

    Can someone explain to me my failure?

    Also, I wonder how to get the ServiceInstance.

    It is done when you call Util::connect() (which calls the function of connection).

    Once you have successfully logged in, you can get the ServiceContent object by calling Vim::get_service_content ().  If you enable HTTP mode and capture the SOAP envelopes, you would see the RetrieveServiceContent call.  A non-script, such as Java, C++, gross SOAP SDK, SDK etc., you would have to appeal, set up a sessionId cookie and make a connection in this sessionId cookie to perform most of the duties against the VIM SDK.

    In the Perl SDK you can proceed as follows if you want the ServiceContent (and references the number of objects in the inventory of management):

    $sc = Vim::get_service_content();

    print $sc--> on-> fullName. "\n";

    My $rootFolderMOR = $sc-> rootFolder;

    Also, if I remember correctly, views of the object will be the ServiceContent & Vim as a property in the data of the object.

    print $vm_view-> {'vim'}-> {'service_content'}-> {'about'}-> {'fullName'}. "\n";

    Since the ServiceInstance is worth MOREF regardless, usually you just create a ManagedObjectReference directly and use it as a parameter to RetrieveServiceContent.

    My $ServiceInstance = ManagedObjectReference-> new (type => 'ServiceInstance', value => "ServiceInstance");

    My $ServiceContent = Vim::RetrieveServiceContent (_C-online $ServiceInstance);

    # ... Then, called connection...

    $ServiceContent-> connection (_C-online $ServiceContent-> sessionManager, username-$username password-online $password online);

    In fact, if you look at the login()) function in VICommon.pm in the Perl SDK, you will see that this is exactly the same process (with a different code to handle SDK versions and others).

  • Call the PL/SQL shell script

    Hi all

    I've seen several links and options for calling a PL/SQL shell script. I was wondering if there is something like DBMS_SCHEDULER. CREATE_PROGRAM-> executable that calls an external program in 11 GR 2.

    Here's what I have to. I have 11 GR 2 database with Dataguard. I have START triggering who begins a DBMS_SERVICE when the role becomes PRIMARY. In the same instance, I would stop the VIP on the former primary database and start the VIP on the new primary database.

    Thanks for the advice and assistance.

    Jan S.

    The URL below links to ask Tom. Inside, he talks about creating a Java procedure in your database that allows you to execute commands from the host OS (PL/SQL calls the proc of Java that runs the host command). There are several ways to run the OS commands, but this one is very flexible. I needed to use it for a task that I have who didn't fit one of the other methods very well.

    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:no:P11_QUESTION_ID:3069633370832

  • Need to call the Shell script that uses SQL loader in APex4.1 / 11g

    Hello!

    I have a requirement in which I need to call a shell script that connects to an external server, FTP to a file and then use sqlloader to load data into our table. We have now the ftp script that accomplishes this task to another program, but is a scheduled task. I wanted to call the script ftp in the APEX. Any suggestions on how this can be done, what is the logic of PL/SQL can we use? I saw online some people using DBMS Scheduler for this?

    Thank you
    Sun

    Hello

    Create some sh script on your computer host oracle where you can join in the external server and run the process.
    something like:

    run_external_sh.sh

    #!/bin/sh
    ssh ext_user@ext_host ./sqlloader/import/import.sh
    

    Then create an external TASK to call it via ORACLE (PL/SQL)

    -Shell Script call.

    BEGIN
      DBMS_SCHEDULER.create_program (
        program_name        => 'external_call_sh',
        program_type        => 'EXECUTABLE',
        program_action      => '/local_host/call_external/sh/run_external_sh.sh',
        number_of_arguments => 0,
        enabled             => TRUE,
        comments            => 'Call external SH script');
    END;
    /
    

    You can now create a regular / or unplanned WORK
    -Job defined by the calendar and an existing program.

    BEGIN
      DBMS_SCHEDULER.create_job (
        job_name      => 'jb_external_call_sh',
        program_name  => 'external_call_sh',
        schedule_name => 'external_call_scheduler', -- created scheduler
        enabled       => TRUE,
        comments      => 'Job defined by an existing external_call_sh program and schedule.');
    END;
    /
    

    You can now call the WORK in the APEX in the process of PL/SQL.

    BEGIN
      -- Run job synchronously.
      DBMS_SCHEDULER.run_job (job_name            => 'jb_external_call_sh');
    END;
    

    Concerning
    J :D

  • How can I provide the option inside a perl script?

    Hi all

    Unfortunately, I have to develop a GUI for administration with SDK for perl.

    I get options of the user (user name, password, server) of the connection dialog, so how do I use connect() to connect the vCenter or ESX host?

    Choice of two:

    1 run a script perl, connect.pl say, not what I want.

    2. specify the options of the connect() function. This is what I want.

    Can someone me clear on this?

    Thanks in advance,

    Shawn

    If you look at the VICommon.pm module, you will see the::Connect() Util function analysis actually url, user name, and password.

    Looking at the code, it seems that you can just call Util::Connect ($url, $username, $password); assuming that you do not set the user name, password or url methods described in the Guide to Programming Perl VI (do not set environment variables or set the values of the Options in the script or the command line argv array).

    You can use the sessionfile option to store the session cookie, unless you are already doing your own management of cookies, in which case, you will need to look at some of the features which are not usually used in a standard VI Perl script.  There are some functions of "low level" in VICommon.pm, you can take advantage.  Essentially you'll be bypassing the main option handles the login process.

  • The perl script is running slow

    Hello

    I am currently faced with a rather annoying problem.

    I installed the SDK for perl to monitoring of the resources of the ESX Server. Status of pl (in the apps directory) scripts work correctly. However, scripts to take an incredible time to run (about minimum 40-60 seconds!). After checking the logs on the ESX Server, it seems that there is a significant delay between the beginning of the 'Util::connect' and the "connected/authenticated" message in the syslog ESX.

    I tried the SDK for perl 1.6 and vSphere SDK for Perl 4, without differences.

    Someone have already faced this problem of performance?

    The recommendations of any idea or investigation would be greatly appreciated.

    Yannick

    Environment: ESX 3.5, perl scripts started the Debian (Lenny Server

    Below is an example of script used:

    /var/tmp/TestSimple.pl--entite HostSystem - Server 192.168.1.200 - xxx - xxx password username

    Lenny$ cat /var/tmp/testsimple.pl

    #! / usr/bin/perl

    use strict;

    use warnings;

    use VMware::VIRuntime;

    My % opts =)

    entity = & gt; {

    Type = & gt; "=s",

    variable = & gt; "VI_ENTITY,"

    help = & gt; "Type of ManagedEntity: HostSystem, etc.,"

    required = & gt; 1,

    },

    );

    OPTS::add_options (%OPTS);

    OPTS::parse();

    OPTS::Validate();

    Util::Connect();

    1. Get all items in the inventory of the specified type

    My $entity_type = Opts::get_option ('entity');

    My $entity_views = Vim::find_entity_views)

    view_type = & gt; $entity_type);

    1. The results of the process and output in the console

    foreach my {$entity_view (@$entity_views)}

    My $entity_name = $entity_view - & gt; name;

    Util::trace (0, "found the $entity_type:")

    ("$entity_name\n");

    }

    1. Disconnect from the server

    Util::Disconnect();

    There might be something worth investigating within the time of authentication.  However, I ran your script against my current environment (~ 100 guests, no VM yet).  Execution of the script has been very slow.  I experience this problem with large environments quite frequently, but there is a difficulty.

    So, when you use the call of find_entity_views() default it will look all the properties of an entity.  This can be very expensive in terms of script execution time.  It's especially bad when you have a _view call nested inside a loop.

    You can probably greatly increase the speed of your script by changing the following:

    
    #!/usr/bin/perl
    use strict;
    use warnings;
    use VMware::VIRuntime;
    
    my %opts = (
         entity => {
         type => "=s",
         variable => "VI_ENTITY",
         help => "ManagedEntity type: HostSystem, etc",
         required => 1,
         },
    );
    Opts::add_options(%opts);
    Opts::parse();
    Opts::validate();
    Util::connect();
    
    # Obtain all inventory objects of the specified type
    my $entity_type = Opts::get_option('entity');
    my $entity_views = Vim::find_entity_views(
         view_type => $entity_type,
         properties => \[ 'name' ]); # Remove the backslash before the '[' here, the forum will not parse it properly.
    
    # Process the findings and output to the console
    
    my $entity_cnt = @{$entity_view};
    foreach my $entity_view (@$entity_views)
    {
         my $entity_name = $entity_view->name;
         Util::trace(0, "Found $entity_type: $entity_name\n");
    }
    
    # Disconnect from the server
    Util::disconnect();
    

    If you notice the argument of the properties to the find_entity_views() call.  This will search only the name property.  You can of course add additional properties to the table reference.  But you will find that this will dramatically increase your script execution time.  In my environment, the script went to almost several minutes to run in less than 10 seconds.

  • Unable to wait 30 seconds and then call the TCL Script as Action?

    Hello and good afternoon all!

    I was browsing through different threads and did some research and I am unable to get my applet to wait 30 seconds and then call a script TCL to a succession of 'action '.  Here is the Basic script I am trying to run:

    Event Manager applet track-loopback1
    Event track 10 down state
    command action 1.0 cli 'enable '.
    Action 1.1, «config t» cli command
    Action 1.3 cli command "event manager applet-counting backwards.
    action 1.4 cli command 'event timer countdown 30 '.
    action 1.5 cli command "action 1.0 wait 30.
    Action 1.6 cli command "end".
    Action 1.7 cli command "tclsh Loopback1 - Notification.tcl.

    The goal of this applet is simply wait interface Loopback1 go down, and then launch the applet "-Countdown ' which waits 60 seconds before calling end my TCL script.  The pattern of ' countdown time 30 "and the" action 1.0 wait 30 "is my (lack of?".  :-)) understand that after counting 30 I need to a trial of the action - but I'm not 100% clear on this?  Ironically, he does, in fact, call the TCL script, it does not wait 30 seconds.  My current workaround is to simply throw a statement "after 30000' in the TCL script, but I'm really curious to know why it does not work as expected (well, as I expected to work anyway!).  Any help would be GREATLY appreciated.  Thank you very much!

    See you soon,.

    Travis

    See my response to https://supportforums.cisco.com/discussion/13009231/eem-applet-wont-fire... .  What you do not work, so you should not call tclsh to EEM anyway.

  • How to execute a Perl script and returns the value as a string?

    Hi, I am trying to build an application using the eclipse 2.0.0 with the Blackberry SDK 7.1 plug-in. currently I tested Simulator 9900 version 7.1.0.523. I need to use the Perl language to access the raw biological database and returns as a string without having to write a longer program using java.

    In a stand alone Java SDK, I can use the line:

    Process p = Runtime.getRuntime () .exec ("perl script.pl")

    but when I tried to use it on the IDE for a Blackberry project, the project will not compile. It is said:

    Method exec (String) is undefined for the type of Runtime

    Hopes, can someone show me the correct syntex to use, but if no class is available, could someone show me a sample for unified research process? The names of blackberry dev is very complicated, I can't find any samples for her.

    Thank you.

    Seems interesting.

    Your idea was to download the data to the BlackBerry and then directly execute queries.

    Although there are a number of other obstacles, the first fall you in East platforms supporting Perl.  Here is the list:

    http://perldoc.Perl.org/perlport.html#supported-platforms

    BlackBerry OS Java is not included - in fact the only ' included phone OS is Symbian.  Interestingly, it seems likely that PlayBook and BB10, because they are based on the QNX operating system.

    If we discard Perl as a query language, then you will need to provide another option to search.  I think that unified search is an option, but you will have some work to do to use it.  The first thing you should do is find out if in fact, you can download the database on the BlackBerry.  The only available on the Blackberry database engine's SQL, so if you want the database can be exported to a SQL database, there is a chance that it would work.  I had a quick glance around the site, and I can't tell what the "database" is in the format.  Then I suggest that look you at that next.

    I hope this helps.

  • Call the Essbase Calc of custom Script FDMEE script

    Hi Experts,

    In my reuirement, I must run Essbase calc script to export the perticular accounts data and then import these data into FDMEE to load in another planning application.

    I know we can run the Application Esbase calc script fromTarget page and after load. but in my case, executing the script should happen prior to importation.

    Aanybody may suggest an example if I can call the script to calc Essbase to a custom event BefImport script or FDMEE script? an example of the syntax would be useful

    Thank you!

    Hello

    are what version of FDMEE you?

    You have an example document to support FDMEE sample scripts (Doc ID 1613836.1)

    You can have a MAXL command in your batch file to perform the extract

    Example 5

    An example script to calc to perform an Essbase excerpt and then load the file extracted with FDMEE.

    1. Create a batch (.bat) file that performs extract Essbase.
    2. Call the scriptimport BefImport event operating system batch file
      import of subprocesses
      Import shutil
      OS.chdir ("D:\temp\\BatchFiles")
      command = ' D:\temp\BatchFiles\helloworld.bat > helloworld.out '
      p = subprocess. Popen (Command)
      RETCODE = p.wait)
    3. Load using FDMEE HelloWorld.out

    The Jython script can be created in the BefImport Script.

    Then you can have a rule of data loading with a file in it name (Ex: Essbase_Extract_XXXX) where XXXX is that five-year period.

    Your jython script should create this file, so in the case of import, the data is imported

    Keep in mind that it is an output of feature 11.1.2.4 box so if you are in 11.1.2.3.x I wouldn't put a lot of effort in a complex solution

    I hope that this puts you on the right track

  • Choose the text file calling the Script DataMerge

    I have to write a script that calls the script DateMerge, I find how the it (using: app.activeDocument.dateMergeProperties.mergeRecords ();).

    But problem: the scipt call script DataMerge, but use it with the last text file that I use.

    I would choose as a text file when I call the script DataMerge.

    I hope you understood my question, I'm not a pro in English: S

    Tank you for your help

    It is in the same line. The location of the merger will in parentheses immediately following the mergeRecords() for example

    app.activeDocument.dateMergeProperties.mergeRecords (FILELOCATIONGOESHERE);

    It doesn't have to be a file written in full either location, it can be a variable that has been declared elsewhere for example

    var csvFile = File.openDialog('select TXT file');
    app.activeDocument.dateMergeProperties.mergeRecords(csvFile);
    

    Colin

  • Looking for perl script find the coordinates of the VM

    Hi all

    I am looking for a perl script (e.g. - vminfo.pl) to find the VM details including the ESX Server that works of VM. If I have a script I can use VIPerlToolkit utilities to ' run the script from any of the machines Linux... can someone please help me with script

    Concerning

    Lucette

    Take a look at the whichClusterIsMyVmIn.pl (http://communities.vmware.com/docs/DOC-10439) script in the repo that provides both the host ESX (i) the virtual machine is hosted on as well as the cluster vCenter.

Maybe you are looking for

  • HP Probook 6550 b: basic driver

    Hi, what drivers I need for these like? PCI VEN_1180 & DEV_E852 & SUBSYS_146D103C & REV_01PCI VEN_1180 & DEV_E852 & SUBSYS_146D103CPCI VEN_1180 & DEV_E852 & CC_088000PCI VEN_1180 & DEV_E852 & CC_0880

  • HDMI - hdmi pc to lcd screen, image tv but not the audio please help!

    Hi guys,. I have spent a lot of time on the net looking for my problem... honestly, I'm so lost... Please help... I have connected my sony lcd TV (kdl - 40 s 2000) to my hp pavilion s3435uk pc. I get a perfect picture but no sound on the TV. I connec

  • Where to buy Windows 7

    I have a x61s I bought there when Vista was offered several years.  I refused and was it downgraded to XP. Now I want to level to Windows 7Pro or 8 Pro (drivers appear to be less available for 8). Where can I get Windows 7 from?  I want to buy Lenovo

  • BBM transfer ringtone to BB9720

    Hello. I wanted to copy a new ringtone for my BB9720 and when I tried to paste into the Desktop of BB software it wouldn't let me. I've done it before, but now it will not work and I do not know why. I deleted all other files of the phone, but it's o

  • Why the 2.94 GB usable?

    Good evening I have Windows 7 Home Premium x 64, integrated Intel Pentium 2.90 GHz, Intel HD Graphics 1 GB processor and 4 GB of RAM memory video. Please tell me why is 2.94 GB usable, because this version of Windows does not have a 32 bit OS. Thank