Dbms_scheduler job neither succeeds nor errors its just keep running for ever

Hi All,
I am trying to run a shell script from plsql using the dbms_scheduler, job is getting created and it keeps running for ever without success or error.
Can some please help me where I am doing the mistake.
Thanks
DB Version:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
Plsql Script:
BEGIN
   DBMS_SCHEDULER.create_job (
      job_name              => 'SFTP_PAYMENTECH_BATCHID1',
      job_type              => 'EXECUTABLE',
      job_action            => '/app07/ebdev/ebdevappl/xxtpc/bin/test.sh',
      number_of_arguments   => 1,
      enabled               => FALSE,
      auto_drop             => TRUE,
      comments              => 'SFTP Batch File to Paymentech');
   DBMS_OUTPUT.put_line (
      'Job Created Successfully:' || 'SFTP PAYMENTECH BATCHID');
   fnd_file.put_line (
      fnd_file.output,
      'Job Created Successfully:' || 'SFTP PAYMENTECH BATCHID');
   COMMIT;
   DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE (
      job_name            => 'SFTP_PAYMENTECH_BATCHID1',
      argument_position   => 1,
      argument_value      => '66667'                        /*v_printer_name*/
   DBMS_SCHEDULER.enable (name => 'SFTP_PAYMENTECH_BATCHID1');
EXCEPTION
   WHEN OTHERS
   THEN
      fnd_file.put_line (fnd_file.output,
                         'Error while creating the Job:' || SQLERRM);
      DBMS_OUTPUT.put_line ('Error while creating the Job:' || SQLERRM);
END;
Shell Script which I am calling:
#!/usr/bin/ksh
FILENAME=$1
PMTHOST=198.xx.xx.xx
PMTUSER=xxxxx
PMTPW=xxxxx
a='apps'
b='xxxxxx'
c='EBDEV'
INST=`echo $TWO_TASK | sed 's/_BALANCE//'`
echo INSTANCE: $INST
echo
File_Path=$XXTPC_TOP/iby/out
echo File Name: $FILENAME
echo $PMTHOST
echo $PMTUSER
echo
echo Date: `date`
echo
echo File System User: `whoami`
echo
echo Instance: $TWO_TASK
echo
echo File_Path: $File_Path
echo
echo PMT SFTP
# Fetch file using MBATCHID as File Name
cd $File_Path
echo
echo -----------------------------------------------
echo
echo Current File          :$FILENAME
l_date_time=`date +%Y%m%d%H%M%S`
echo SFTP Remittance File
# sftp $PMTUSER@$PMTHOST << EOF
lftp -u $PMTUSER,$PMTPW sftp://$PMTHOST << EOF
lcd $File_Path
cd test/945299
put $FILENAME
exit
EOF
#`sqlplus -s apps/tpcdev2013@EBDEV @try.sql $FILENAME`

Have you tried running the script manually to confirm it isnt just hanging on input for the lftp ?
You could add a -o <file> to the lftp command line which would output debug info into <file> so you could see.
Creation of the job looks fine so as GregV said, what output do you have in ALL_SCHEDULER_RUNNING_JOBS and any ADDITIONAL_INFO in the ALL_SCHEDULER_JOB_RUN_DETAILS or in $ORACLE_HOME/scheduler/log that might indicate what the problem is ?
If this answer was helpful, please mark as helpful answer. 

Similar Messages

  • Why won't my icloud desktop load? It just keeps running, but not loading

    Why won't my icoud desktop load? For the past 2 days, it just keeps running without ever loading.

    you don't need to uninstall your cs6 products.
    did you run the cleaner between uninstalling and reinstalling?  if yes, contact adobe support, Contact Customer Care

  • [SOLVED] Neither console, nor policy kits seem to run

    I have installed a couple of hours ago compiz standalone, removed any display managers I had before from inittab and now I run it through .xinitrc.
    But neither console nor policy kits seem to run or grant privileges to normal users for mounting usb devices or just shutdown, syspend etc.
    My .xinitrc:
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    # exec gnome-session
    # exec startkde
    # exec ck-launch-session wm
    # exec enlightenment_start
    # exec startxfce4
    exec ck-launch-session dbus-launch --sh-syntax --exit-with-session $HOME/.xstart
    My .xstart:
    #!/bin/sh
    compiz ccp &
    tint2 &
    fbxkb &
    trayfreq &
    volti &
    blueman-applet &
    wicd-gtk &
    parcellite &
    fusion-icon -n
    My inittab (i reverted back to agetty and see if it works but not):
    # /etc/inittab
    # Runlevels:
    # 0 Halt
    # 1(S) Single-user
    # 2 Not used
    # 3 Multi-user
    # 4 Not used
    # 5 X11
    # 6 Reboot
    ## Only one of the following two lines can be uncommented!
    # Boot to console
    #id:3:initdefault:
    # Boot to X11
    id:5:initdefault:
    rc::sysinit:/etc/rc.sysinit
    rs:S1:wait:/etc/rc.single
    rm:2345:wait:/etc/rc.multi
    rh:06:wait:/etc/rc.shutdown
    su:S:wait:/sbin/sulogin -p
    # -8 options fixes umlauts problem on login
    c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
    c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
    c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
    c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
    #c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
    #c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux
    #c1:2345:respawn:/sbin/fgetty tty1 linux
    #c2:2345:respawn:/sbin/fgetty tty2 linux
    #c3:2345:respawn:/sbin/fgetty tty3 linux
    #c4:2345:respawn:/sbin/fgetty tty4 linux
    # Hypervisor Virtual Console for Xen and KVM
    #h0:2345:respawn:/sbin/agetty -8 38400 hvc0 linux
    ca::ctrlaltdel:/sbin/shutdown -t3 -r now
    # Example lines for starting a login manager
    #x:5:respawn:/usr/bin/xdm -nodaemon
    #x:5:respawn:/usr/sbin/gdm -nodaemon
    #x:5:respawn:/usr/bin/kdm -nodaemon
    #x:5:respawn:/usr/sbin/elsa --nodaemon
    #x:5:respawn:/usr/bin/slim >/dev/null 2>&1
    #x:5:respawn:/usr/sbin/lxdm >& /dev/null
    x:5:once:/bin/su - -- twilight -l -c '/usr/bin/startx -- -nolisten tcp -br -deferglyphs 16 </dev/null >/dev/null 2>&1'
    # End of file
    ck-list-sessions:
    Session1:
    unix-user = '1000'
    realname = 'Tasos'
    seat = 'Seat2'
    session-type = ''
    active = FALSE
    x11-display = ':0'
    x11-display-device = '/dev/tty5'
    display-device = ''
    remote-host-name = ''
    is-local = FALSE
    on-since = '2011-09-30T20:02:05.547676Z'
    login-session-id = ''
    No relevant errors found in .xsession-errors:
    (lxpanel:11415): Gtk-WARNING **: Unable to locate theme engine in module_path: "thinice",
    (pcmanfm:11416): Gtk-WARNING **: Unable to locate theme engine in module_path: "thinice",
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 20 (X_GetProperty)
    Resource id: 0xa000a4
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 20 (X_GetProperty)
    Resource id: 0xa000a4
    QSystemTrayIcon::setVisible: No Icon set
    kdeinit4: Shutting down running client.
    Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
    kbuildsycoca4 running...
    kbuildsycoca4(11472) KBuildSycoca::checkTimestamps: checking file timestamps
    kbuildsycoca4(11472) KBuildSycoca::checkTimestamps: timestamps check ok
    kbuildsycoca4(11472) kdemain: Emitting notifyDatabaseChanged ()
    yakuake(11440)/kdecore (KLibrary) findLibraryInternal: plugins should not have a 'lib' prefix: "libkonsolepart.so"
    QDBusConnection: name 'org.kde.kglobalaccel' had owner '' but we thought it was ':1.14'
    yakuake(11440) KGlobalAccelPrivate::_k_serviceOwnerChanged: detected kglobalaccel restarting, re-registering all shortcut keys
    (<unknown>:11498): Gtk-WARNING **: Unable to locate tkded4: Fatal IO error: client killed
    kglobalaccel: Fatal IO error: client killed
    e to locate theme engine in module_path: "thinice",
    (lxterminal:13327): Gtk-WARNING **: Unable to locate theme engine in module_path: "thinice",
    (lxsession-logout:13435): Gtk-WARNINGkded4: Fatal IO error: client killed
    kglobalaccel: Fatal IO error: client killed
    error: client killed
    klauncher: Exiting on signal 15
    kded4: Fatal IO error: client killed
    kdeinit4: Fatal IO error: client killed
    kglobalaccel: Fatal IO error: client killed
    Last edited by twilight0 (2011-11-15 10:16:07)

    Never mind it didnt notice the warning here:
    wiki wrote:Warning: This method will not use /bin/login or register your session, therefore no session will appear in `who` or `w`. Your session will also not be authorized as 'local' by ConsoleKit, so you will be unable to shutdown/suspend/reboot or mount drives without using sudo or su.
    But is there a way after all to run console kit even if the session isn't registered as local?
    Last edited by twilight0 (2011-09-30 21:12:09)

  • TS1292 I bought a 4 pack of $25 Itunes gift cards and only 2 will activate.  For the second two it just keeps asking for my login. No error message just keeps repeating the login

    I bought a 4 pack of $25 Itunes gift cards and only 2 will activate.  For the second two it just keeps asking for my login. No error message just keeps repeating the login.  Is there any way to fix this or did I just lose $50

    Report this here:
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • Just got an iMac. I am trying to use Migration Assistant. The Mac side seems to be doing it's job, but my PC just keeps "Waiting for the Mac to connect." For over an hour.

    Just got an iMac. I am trying to use Migration Assistant. The Mac side seems to be doing it's job, but my PC just keeps "Waiting for the Mac to connect." For over an hour.

    Probably a PC issue, you can try calling AppleCare, you are covered for 90 days from the date of purchase and can find the phone number in the owners manual. Also please look over:
    http://drtyhnds.blogspot.com/2011/08/how-to-use-migration-assistant-from-pc.html
    and
    http://pondini.org/OSX/SetupLion.html
    Thomas,
    It would also be extremely helpful to those trying to help you if you complted your Profile so we at least know what iMac and version of OS X is installed. Click Your Stuff in the upper right then click Profile and complete the necessary fields including what part of the planet you're located.

  • I can't update my apps nor download apps it just keeps running in circles

    I can't update my apps nor download apps it just keeps running in circles. This has happened in this new year. Can anyone give me some help? It would be greatly appreciated.

    Hey Doris140 ,
    Thanks for the question. It sounds like you might have apps that are stuck on “Waiting," and the following is a past discussion that dealt with a similar issue and may help you as well:
    App updates won't download on my...: Apple Support Communities
    https://discussions.apple.com/thread/4111336
    Try tapping the App, so that it changes to Paused instead of Waiting, then tap it again to resume the install.
    Make sure you don't have any paused downloads in other apps either, like the App Store or iTunes Store.
    If that doesn't do it, try resetting or restoring the iPhone.
    via whatheck
    Welcome to Apple Support Communities!
    Have a good one,
    Delgadoh

  • I have some issue with my bluetooth im using an iphone 5 its just keep on searching bluetooth devices it cannot detect other bluetooth device, any solutions to my problem?

    I have some issue with my bluetooth im using an iphone 5 its just keep on searching bluetooth devices it cannot detect other bluetooth device, any solutions to my problem?

    Hi miffyzoo,
    If you are having bluetooth pairing issues with your iPhone and your Mac, you may find the troubleshooting steps outlined in the following article helpful:
    iOS: Troubleshooting Bluetooth connections
    http://support.apple.com/kb/TS4562
    Regards,
    - Brenden

  • HT4623 MY i phone 5 wont let me download apps etc it just keeps asking for my apple id password?

    Juat got my i phone 5 today and have opened an apple accout but it wont let me download apps etc just keeps asking for a password over and over again???

    Try This...
    Close All Open Apps... Sign Out of your Account...  Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • I can't change my apple id password because my security answers don't match. It won't give me any other options and just keeps asking for the answers. What do I do?

    I can't change my apple id password because my security answers don't match. It won't give me any other options and just keeps asking for the answers. What do I do?

    Contact the Apple ID Security site from http://support.apple.com/kb/HT5699 or call the AppleCare support number from http://support.apple.com/kb/HE57 and ask to speak with the Account security Team.

  • I have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me

    i have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me???

    If Join was on then your home wi-fi must be set to Non-Broadcast.  If you did not set this up (maybe your provider did) then you will need to find the Network Name they used, and any password they used.  The SSID is Security Set ID and to see more try http://en.wikipedia.org/wiki/SSID .  Basically it is the name used to identify your router/network.  A lot of times the installer will leave it set as LinkSys, or Broadcom or whatever the manufacturer set it as for default.  Your best bet is to get whoever installed it to walk you through how they set it up, giving you id's and passwords so you can get in.  HOWEVER, if you are not comfortable with this (if you set security wrong, etc.) you would be well ahead of the game to hire a local computer tech (networking) to get this working for you.  You can also contact the vendor of your router and get help (if it is still in warranty), or at least get copies of the manuals as pdf files.  Sorry I can't give you more help, I hope this gives you an idea where to go from here to find more.

  • I want to take my apple tv from my home in Canada and us it at the Cabin in the States, but can't seem to get it to set up in the states?  It just keeps asking for time and date over and over.

    We just bought apple tv for our home in Canada, we also want to use it at our Cabin in Montana.  We have internet and can get netflix etc on the Macbook, but don't seem to be able to hook up the Apple TV, it just keeps asking for the Time and Date over and over.  Anyone know what we are doing wrong?

    Hi There,
    Find this here:
    https://discussions.apple.com/message/20125520#20125520
    Problem lies with IOS 6.0
    Restore back to IOS 5.1.1 and set the Location to US you will be ok.

  • When I click on a Firefox update My Mac Mini Os 10.4 just keeps running how long should I wait for this update to complete.

    The update just keeps running it seems that it will never complete the update like it is stuck in one place with out progress.
    I have the indicator on my screen going but no advancement.

    Firefox 4 requires at least OS X 10.5 and an Intel Mac.
    * http://www.mozilla.com/firefox/4.0/system-requirements/
    For Mac OS X 10.4.11 or Mac OS X 10.5.8 you can look at:
    * http://www.floodgap.com/software/tenfourfox/
    * Download a new copy of the Firefox program
    * Firefox 3.6: http://www.mozilla.com/en-US/firefox/all-older.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

  • HT4718 Installed new hard drive, click on restore from time machine, get to 'select a destination' but just keeps searching for disks.. any help please?

    Installed new hard drive and want to restore from time machine.
    Get as far as 'select a destination'  then it goes no further - just keeps 'searching for disks'
    Help anyone please?

    1. Be sure your drive is attached and mounted.
    2. If you have already written any data to the drive, back it up before proceeding to the next step.
    3. In the Finder, choose Go > Utilities. The /Applications/Utilities folder will open.
    4. Launch Disk Utility.
    5. Click the icon for your external hard drive in the sidebar on the left.
    6. Click the Erase tab along the top of the window.
    7. From the Volume Format menu, choose Mac OS Extended (Journaled).
    8. Enter a name for the external hard drive in the Name field.
    9. Click the Erase button.
    Make Sure that you choose the correct drive

  • I got a new mac.. Want to tranfer from my old one.. I'm at the part where it says tranfer info to this mac... It just keeps looking for source! Getting irritated!

    I got a new mac.. Want to tranfer from my old one.. I'm at the part where it says tranfer info to this mac... It just keeps looking for source! Getting irritated!

    Have you tried Migration Assistant?
    http://support.apple.com/kb/HT4889
    This also works for Mavericks.

  • Projects won't load--computer just keeps "thinking" for hours!

    When trying to work in iMovie, it gets hung up at the point where it is trying to load all of the stored projects.  It just keeping "thinking" for hours until anything loads and by the my computer is frozen or locked up.

    I have had the same issue over the last couple of days.  Imovie just doesn't load up for me.  I tried trashing the preference/plist but it still doesn't respond.  any solutions?

Maybe you are looking for

  • Problem in istalling Oracle DB 11g r2 in windows 7 home premium 64 bit

    Hi All, i am trying to install Oracle DB 11g r2 in windows 7 home premium 64 bit. when i come to the step Select "Typical Install as the installation type from the following options, and then click Next:" i am not able to the window itself , when i c

  • Connecting mbp 15 inches intel 2.53ghz to 40 inches full hd samsung lcd

    hiii i want to connect my connecting mbp 15 inches intel 2.53ghz to 40 inches full hd samsung lcd which wire or what peripherals i have to buy

  • Converting Photo Negatives

    Is the Photosmart C410a capable of converting photo negatives to photos on the computer?  Please advise. This question was solved. View Solution.

  • Likely usage costs in the UK??

    From what I can tell from the O2 web site data and Wi-Fi access is unlimited (with a fair usage policy). My questions are: 1) I assume that this includes all email and web access? 2) I understand that there will be an agreement with the The Cloud to

  • Help... Mac cant sleep after 10.4.3 update...

    When I put my rev. B Imac to sleep, it will wake up again by itself after 3-5 minutes and the fans will be running at full blast. I try to navigate around, but everything is frozen. The only way to get out of this is to manually power down the mac. I