dbms_scheduler.create_job and create_program to run the shell program

dbms_scheduler.create_job and create_program to run the shell UNIX of PL/SQL program

I guess that the problem could be a shell program. "send_file_susin.sh", I did run the CFT program which is to transfer files. While I tried to this problem, I heard that I should use dbms_scheduler.create_program and create_job to execute the shell command. Therefore,.

I've done
() dbms_scheduler.create_program
program name = > "SEND_FILE_SUSIN"
program_type = > "EXECUTABLE."
program_action = > ' / fsoracle/app/oracle/inst2/if_cft/send_file_susin.sh',
number_of_arguments = > 0,
enabled = > TRUE,
Comments = > 'Test '.
);
commit;
in a package, then I run the package.
program and job

DBMS_SCHEDULER exec. () CREATE_JOB
job_name = > 'run_sh1 ',.
program name = > "send_file_susin"
start_date = > sysdate + 1/2880.
repeat_interval = > null,
End_date = > null,
job_class = > 'DEFAULT_JOB_CLASS ',.
enabled = > true
)

When I ran, I would check there program and job send_file_susin in the sched.programs and sched.job classes. The job will run about 30 seconds later.
After 30 seconds, I saw the work was done, but I couldn't see the log of the CFT program. This means that the file have not been transferred...

I don't know what is wrong with it... Please, someone that solve?
Thank you very much in advance.

Hello

You don't have to create a program first, put directly in the work should work as well.

Your pl/sql code is correct, then you should check out a few things with the shell script

-is set + rx
-is the first line #! / bin/sh
-should I use the full path to the executable files for example/usr/bin/ftp
-It defines the variables

If that all seems well, consider adding lines of logging to your shell script to debug what goes wrong.

See this post for more tips

Guide to the external work on with dbms_scheduler 10g for example scripts, batch files

Any other questions about the Scheduler, you can use the forum Planner here

Planner

Hope this helps,
Ravi.

Tags: Database

Similar Questions

  • I can't get out of safe mode when starting, and can not run the Setup program from windows XP in safe mode. Any ideas?

    can't get out of SafeMode to start

    Hi Retodelta,

    Thanks for posting. Try the following steps. Warning: the following may make your computer unbootable. Please make sure that you have a backup before performing the steps.

    Click Start
    Go to the Run
    Type "msconfig".
    Press ENTER.

    In this window, select the Boot.ini tab.
    In this window uncheck the option "/ SafeBoot".

    I hope this helps! Shawn - Support Engineer - MCP, MCDST
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • I can't get out of safe mode when starting, and can not run the Setup program from windows XP in safe mode.

    I have a XP box that would only start in safe mode.  I needed to repair windows, so I started updating reinstall option but to reboot it says it cannot run in safe mode then it tries to boot into normal mode but crashes - which is what I am tring to solve.  Now I'm stuck because the computer is now making a loop and I'm stuck.  There is no available recovery console, it shows just the installation restart then goes into the shot.  If I try to launch safe mode, that it says cannot run update in safe mode then restarts in normal mode, which hangs then.  I'm stuck.  Boy the days where I wish I could just make the prompt C:\.  Thank you.

    You can connect your problematic hard drive to another PC to copy your important data, using a device such as:

    http://www.Newegg.com/product/product.aspx?item=N82E16812161002

    or

    http://www.Newegg.com/product/product.aspx?item=N82E16812119244

    I'm still not 100% convinced that you boot from the CD. Your Dell has the option of F12 to select a boot real-time device (as soon as you turn on the PC)? Also, remember that you have to "press any key to boot from the CD" when you see this screen! Of course, during a reboot, you start from the hard drive.

    Even if you did everything by the book, a repair installation could easily 'loop' as you describe. But as long as your hardware is healthy, a clean install is done.

  • Windows 2003 Server keeps stopping every hour on and saying that he must run the Setup program to create a domain controller.

    WINDOWS 2003 SERVER STANDARD EDITION

    HELLO TECH TECHNICAL SUPPORT ENGINEERS.

    WE HAVE WINDOWS SMALL BUSINESS SERVER 2003 STANDARD EDITION,

    WE HAVE EVEN INSTALLED AND CONFIGURED IN A WORKING GROUP, WE DO NOT WANT TO CREATE A DOMAIN CONTROLLER,

    BUT OUR SERVER IS BLOCKING DOWN IN ANY ONE HOUR AND SAY TO RUN THE SETUP PROGRAM TO CREATE THE DOMAIN CONTROLLER.

    PLEASE SUGGEST, AS WE DO NOT WANT TO CREATE DOMAIN

    CONCERNING

    DECCAN TEAM

    Post in the Windows Server Forums:
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer/

  • Windows Live OneCare: I downloaded Windows Live OneCare scan my computer and everytime I run the program it gives me the same results.

    I downloaded Windows Live OneCare scan my computer and everytime I run the program it gives me the same results.

    But he never cleans or removes anything just the same results each time.  How to clean my computer?

    Found registry 7, 1cleaned, 6 errors.
    0 was ignored by the user.

    COM/active (1 error, 0 has been ignored by the user)
    File type associations (4 errors, 0 has been ignored by the user)

    System softward (1 error, 0 has been ignored by the user)

    Found 3140,6 MB, cleaned or compressed
    1.3 MB of temporary files and other
    C:\
    D:\

    Network security
    open ports 0

    Hello

    Are you logged on as ADMINISTRATOR when you access the scanner?

    Some errors cannot be fixed by the scanner, and many of those who are not at all important.

    Check-in of the Windows Live a Forums

    Security scan bulletin boards and return products
    http://OneCare.live.com/site/en-us/community/default.htm

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • What is tdrc.tdrcfacade and how to run the installation wizard?

    What is tdrc.tdrcfacade and how to run the installation wizard?  My desktop creative cloud application does not open properly... it is just a blank window.

    Much obliged,

    Angiecrichards@gmail.com

    ! !

    Are Angie, you a blank white screen? What version of OS are you using?

    Here's what you can try:

    1. Blank white screen. Sign in | Creative cloud Packer
    2. New application Cloud Creative unusable: it is empty!
    3. Creative cloud Packager white screen after the Adobe ID Login
    4. Re: screen creative black cloud

    Waiting for your response.

  • help on how to compile and run the awt programs

    any1 can tell how to compile and run the awt programs

    Published by: 863765 on July 18, 2011 03:29

    The same way you compile and run any other Java program.

  • Equium A60: Installtion was incomplete and applicant to re-run the installation program

    Hi all

    I tried to recover an Equium A60. It seems to copy from the DVD with no problems - no error message in playback. It then asks me to remove the media and do a restart. Windows XP begins to install and then I get a message indicating that installation was incomplete and asking to rerun the Setup program. Any idea what the problem might be?

    I also tried to install Windows XP, (not Toshiba), the other machine without any problems. The only problem is that there are some missing hardware drivers. Specifically, the Multimedia Audio Controller, PCI Modem, SM Bus controller, (USB) Universal Serial Bus controller and video controller.

    Concerning

    Neville

    I used the A60 DVD recovery once before and never experienced these in fact after that error messages the recovery procedure was complete, there should be no setup message. I guess you deleted the DVD before restarting normal XP?
    Regarding the missing drivers install you from the CD provided tools although the recovery DVDs would be a more preferable way to install XP (you avoid complications such as software licensing and activation)

    Richard S.

  • Someone used this on me and after a while windows shell program take completely my computer as well as bank accounts

    I finally understand what has happened to all computers, I threw out and now it's a. Someone used this on me and after a while windows shell program take completely my computer as well as the account numbers of bank accounts and cards and so on. I got it with computers. I have been a dedicated customer of Microsoft and I can't believe that you would put on such a dangerous program that any computer fool can use to people disrupting. I want to know what I can wip this thing by buying a new hard drive and operating system put this program on this subject before I sitgn on the internet and don't have not this thing happen? I would like to send you the hard drive rinse you these people in the open air where I could get my hands on them. This coswt haqs me more than I want to tell you.

    I think that you're wrong in your assessment of what you have been.  "Shell Microsoft Program"?  Please explain.

    If configure you your own computer, software Windows XP firewall is enabled, have a decent router (reset and configured with a password before connecting anything to him) between your network and the Internet, and you have changed all your passwords for each account to a password that is hard (15 characters or more containing at least three of the four character types (: uppercase, lowercase, number, and symbol) and checked that each account online has a configuration password recovery method that * you * have you personally (no one else has used your password they obtained to make sure if you have already changed your password, they could get the upper hand) and you have a decent anti-virus software installed. Then you should be fine.

    You can Disable Remote Desktop (on Windows XP Professional - you left out the details of your operating system in your rant) and Remote Assistance if that makes you more comfortable or you do not use these functions.

    Otherwise - most of it security is common sense stuff.  Do not download or run things do not know the origin of and trust said origin and application.  Do not open unknown emails and instant messages.  If you do not call to get your computer fixed, don't expect sopmeone will call you to fix your computer problem - and if they don't - know it's a scam.  Don't visit questionable websites.  Do not use the computer on a daily basis with a user account that could ruin everything (run as a normal user, not an administrator for your daily activities.)  Keep your system and you have installed - including all antivirus software - up to date/current.  Keep your computer in a locked - room physical security is a top priority.  Backup your important data to external media.  Change your password periodically - because you have a password - most probably someone can get it.  If something is * really * important keep you the 'secret' and protected - encrypt.  Almost every other method can be easily bypassed - encryption, not so much.  Etc and so on...

  • shortcut for deskjet 8600 pro has disappeared. Re-run the installation program does not help. How can I get that back?

    When I bought and installed my Pro Deskjet 8600 in last July, a wonderful control program has been installed. However, the shortcut on the desktop for this program has disappeared, and I can't. Re-run the installation program does not help. How can I get that back. All I have now is an older version of the HP Solution Center, which does not have the features that I got into the habit of.

    Hello

    Uninstall the software by following programs > HP > HP Officejet Pro 8600 > Uninstall.

    Then download and install the latest version of the software below, it is a more recent software and should solve the problem you are experiencing:

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=bi-108858-3&cc=us&DLC=en&LC=en&OS=4131&product=4323659&sw_lang=

    Shlomi

  • I need to run the accounting program MYOB 9 on my new laptop HP 64 bit with Vista Home OS.

    I need to run the accounting program MYOB 9 on my new laptop HP 64 bit with Vista Home OS.  Is there a download that allows me to run from MYOB and emulate windows XP?

    You must upgrade to Windows 7 Professional to run Windows XP Mode

    http://www.Microsoft.com/Windows/Virtual-PC/default.aspx

    You can try to see if it will run in Vista compatibility mode:

    http://Windows.Microsoft.com/en-us/Windows-Vista/make-older-programs-run-in-this-version-of-Windows

  • Flash Builder on Mac Lion 10.7.5 4.6: cannot run the Setup program: certificate revoked

    Hello

    You are aware that FB 4.6 is not install more OS x 10.7.5 and maybe OS X in general?

    Because I really need design view last FB does not offer, I just downloaded 4.6 FB for OS X from Adobe: Adobe - Adobe Flash Builder 4: for Macintosh: Flash Builder 4.6 - Mac OS: thanks

    My real OS X is 10.7.5, Lion.

    Launch of the install.app, it appears an error window:

    Please be aware that I know that this message comes from Gatekeeper, see for example: OS X: on Gatekeeper

    The fact is that this problem is not solvable, apparently.

    The problem is with the application signing certificate, as you can see issuing the command:

    bash - 3.2 # spctl - has Install.app

    Install.app: CSSMERR_TP_CERT_REVOKED

    So, here we have a certificate of _revoked_, not a certificate/developer unknown or app unsigned.

    Indeed, unfortunately the problem persists even disabling Gatekeeper:

    bash - 3.2 # spctl - status

    co-pays disabled

    since apparently a revoked certificate is not an error that can be ignored or circumvented somehow.

    As far as I KNOW, the idea behind this is: Apple actually provide no verification quality on applications (they are not "approved by") but may possibly (if there are "problems") block a via the recall mechanism. Because of this, the _revoked? _ check cannot be bypassed/disabled. I'll try as soon as POSSIBLE an upgrade of the OS to see if with the Mountain Lion (10.8) I can possibly force execution Install.app, but chances appear to be rare so far.

    So, Adobe, can you help me please?

    Maybe sign with a certificate valid for this installer...

    FB4.6 is essential because it is the last version with DV. I had to install FB46 on Windows to keep working, but it's no doubt slow me down as everything is on Mac.

    ARO

    a pro developer.

    Hello all, good news: after updating to 10.8.5, Mountain Lion I was able to run the Setup program and all went well.

    Mountain lion allows the user force execution through the command open context menu (CTRL-click) and it works, just as simple as that.

    So my advice is: If you want to install or reinstall Flash Builder 4.6 on a Mac with Lion installed, updated to Mountain Lion or better to avoid problems.

    Apple introduced some (not all) Gatekeeper 10.7.3 and following features, but apparently you need a full-fledged 10.8 to also have what you need to work around a revoked certificate error.

    Since usually OS X has auto update active, if you run Lion you find with 10.7.5 and do not install FB46. If you manage to somehow hold 10.7.2 I guess you should be able to install FB46, sincerely I don't check it out. In any case, it is simpler and safer to move to 10.8.x.

    Good bye

  • How to set the display in order to run the installation program

    Hello

    Could you please explain how to set the Display variable I connect via the VNC client directly to windows X Linux (Gnome)
    in order to run the installer to install R12 EBS?


    I guess that since the connection is by VNC client, so I just need to open a terminal window and start the Installation...



    Thanks and greetings
    MZ

    Srini Chavali wrote:
    The DISPLAY variable must be set to the IP address of the client.

    Not necessarily - it is meaningless to set the DISPLAY of different client IP addresses if you want to run the installation program (or any GUI) on the server of different customers.

    Thank you
    Hussein

  • Problem to run the shell script procedure

    Hello

    I wrote a shell script which needs to execute the stored procedure

    The shell script:
    cat bi_loading2.sh
    #!/usr/bin/ksh
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=/u01/app/oracle/product/11.2.0/DWH11gR2
    export ORACLE_SID=DWH
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
    echo "zero  arg  is  :$0"
    echo "First arg  is  :$1"
    echo "Second arg is  :$2"
    
    
    /u01/app/oracle/product/11.2.0/DWH11gR2/bin/sqlplus  system/xxx@dwh << EOF
    insert into SYSTEM.POC_EXDATA_RESULTS  values($1,'$2',sysdate,null);
    commit;
    
    
    execute system.$2;
         
    update SYSTEM.POC_EXDATA_RESULTS
    set end_date=sysdate
    where id= $1;
    
    commit;
    EOF
    exit 0
    The script gets two parameters: id (1) (2) the procedure that I have to run

    As you can see below oracle is to omit the 'run' command
    Please notice why I can't run the stored procedure.


    $ 83 poc_cf54xbx6cchf2 bi_loading2.sh
    zero  arg  is  :bi_loading2.sh
    First arg  is  :83
    Second arg is  :poc_cf54xbx6cchf2
    
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Dec 15 17:46:37 2011
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Automatic Storage Management and Real Application Testing options
    
    SQL> 
    1 row created.
    
    SQL> 
    Commit complete.
    
    SQL> SQL> SQL> BEGIN  system.poc_cf54xbx6cchf2; END;
    
                    *
    ERROR at line 1:
    ORA-06550: line 1, column 17:
    PLS-00103: Encountered the symbol "SYSTEM" when expecting one of the following:
    := . ( @ % ;
    The symbol ":=" was substituted for "SYSTEM" to continue.
    
    
    SQL> SQL>   2    3  
    4 rows updated.
    
    SQL> 
    Commit complete.

    Read the error stack.

    ORA-06512: at "SYSTEM.POC_CF54XBX6CCHF2", line 3
    

    The error is on line 3 of the POC_CF54XBX6CCHF2 procedure
    If the procedure is called.

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • Cannot run chkdsk and subsequently cannot run the defragmentation

    I'm unable to defragment my hard drive. It is said that there is a regular print run of chkdsk at startup which never works. If I try to run chkdsk /f myself, I get a message that says that the computer is unable to lock the station and that the volume is already used by a different process. Does anyone have a tip?

    Is it possible to run chkdsk or scandisk at startup by pressing a certain button?
    Is there a list of tasks scheduled outside of that Panel?

    Hello

    I assume that you have enabled the service chkdsk under properties of the HARD drive.
    If you have activated the chkdsk in Windows you need to restart the device and after restarting again the blue screen should appear a the chkdsk must begins.

    In my opinion you simply restart your device after the start of the chkdsk command.

Maybe you are looking for