Help Please : Cron Job to automate load process

Hi
I am trying to automate data load process. I am loading data into a number of tables from flat files.
Currently I have a UNIX (SunOS) file with a bunch of SQLLDR commands and I changed permission on this file to executable. Every morning I execute this file to load data.
Now I want to automate this process by writing a cron job and scheduling it. I am running into a number of problems. I exported ORACLE_SID, ORACLE_HOME and PATH still cron is unable to find SQLLDR.
Whatelse am I missing. Here is my command file and cron file.
Please help!?!?!?
ORAENV VARiables
export ORACLE_HOME=/export/opt/oracle/product/8.1.6
export ORACLE_SID=fid1
export PATH=$PATH:$ORACLE_HOME/bin
.profile
. $HOME/oraenv
daily_full.sql file
export ORACLE_SID ORACLE_HOME PATH
sqlldr userid=user/pwd control=acct.ctl log=acct.log
sqlldr .......
Cron Job
16 11 * * 1-5 /apps/fire/data/loadscripts/daily_full.sql >> /apps/fire/data/loadscripts/fulllog.log 2>&1
Output fulllog.log file
/apps/fire/data/loadscripts/daily_full.sql: sqlldr: not found
/apps/fire/data/loadscripts/daily_full.sql: sqlldr: not found
Thanks
Shanthi

Hi Ramayanapu,
first; you have written a shell-script not an sql-script. Please rename your file from daily_full.sql to daily_full.sh
I suggest that you use the cronjob from a user who has the enviroment with the variables ORACLE_SID and ORACLE_HOME.
In this case cron will operate from the $HOME variable of this user.
Perhaps your export will destroy the .kshrc setting. The statement has no effect in your script, please remove it.
Rename your sqlldr-Statement as follows;
$ORACLE_HOME/bin/sqlldr userid=user/pwd control=<path>acct.ctl log=acct.log
<path> will placed with the path of your controlfile.
Your user/pwd will correspond with a ORACLE user who has the right to insert in the destination table.
Your logfile will be place in the %HOME directory.
Hope that i could help to solve your problems
with kind regards
Hans-Peter

Similar Messages

  • Mods Help Please ! "Code 0" Page Load Error

    Have no on demand services working at all now, have restarted the box and on demand works for about 1 min into programme and then freezes and box either restarts or shows this message Code 0 TV2RescourceLoadException:Failed to load resourse
    WebException:The remote name could not be resolved
    SocketException:No such host known.
    It is NOT a speed issue line speed sitting at 38megs as I type this.
    From system info :
    Pace DiT7421_05_L4/297
    Client version :2.0.26479.1941(RELEASE)
    BOOTSTRAP : 1.1527
    Everything was working perfectly until the "BBC Replay" option turned into BBC iPlayer yesterday evening.

    SRB wrote:
    Restarted box again, sat down to watch Lead Balloon and em, the box froze retarted again, threw up a little picture of cogs, sat for 15 mins with a bar slowly moving and then picture turned to a red cross with two dots underneath. I guess it really is dead this time. Guess it's the dreaded "help line". I may be some time.......
    No. it's not. The helpline won't have a clue.
    And sorry to tell you this, your box is fluffed. A dead parrot. Never to be ressurected again.
    You need to email the Mods, so they can get Tech to call you and arrange an appt, for a new black box.
     contact us form with a link back to this thread.
    Heres a previous thread...
    http://community.bt.com/t5/BT-Vision/Silver-Box-Model-DiT7421-05-L4-297-iPlayer-Update-Warning/td-p/...
    Explaining everthing.
    Hope you get it sorted soon.
    Rank - Mostly Harmless.

  • Help with cron job for backups

    I'd like to shut down my mail server every morning at 2:00AM so I can run MAILBFR to backup to an external fw drive and then start the mail server again. *deep breath*
    My problem is, how? I've read the Command Line.pdf but the section on cron isn't helpful. It seems that cron runs commands at a specified time but I have no way of determining exactly when to restart the mail server once mailbfr is done backing up. Ideally, I'd like to have a way to fire off each command as soon as the last was done. Kind of like an MSDOS batch file.
    Could someone help me out with a step by step way of doing this for my server?

    The following is a single line (may get wrapped in this forum) which you can add to /etc/crontab to execute a backup nightly (with stop/start standard part of mailbfr). It also appends output to system.log, if you don't care about that then delete the >> and everything to the right of it. The 'mailbackup' should be a complete path to an existing folder where you wish the backup to be directed.
    0 2 * * * root /usr/sbin/mailbfr -b /mailbackup/ >> /private/var/log/system.log
    This would execute the script at 2:00am every day.
    Your crontab may already have an entry (depending on install), so follow it's format. The 0 2 * * * can be seperate with any number of spaces or tab(s).
    Jeff

  • Help, please. GB won't load any previous projects.

    I updated to Lion when it came out. Now I can't load any project in GB! All I get is an unhelpful message - This file cannot be opened. What'e the story? I have GB version 6.0.4 (427.84) What do I need to do?
    Iain

    I've reinstalled GB but no difference. I rebooted from my back up disk in Snow Leopard and everything works fine. It must be a problem with Lion.
    It is very frustrating. I'm so used to things just working but now I'm regretting updating to Lion. Does anyone have an answer?

  • I am trying to open PDF files from safari, but when I click on them they open in a separate window and the information is encrypted. Any ideas on how to get them to open them in Adobe? Any help please!

    I am trying to open PDF files from safari, but when I click on them they open in a separate window and the information is encrypted. Any ideas on how to get them to open them in Adobe? Any help please!

    The pdf is loading as html code. If you save it, it will download as :
    605124.pdf.html
    Change the extension to .pdf
    And it opens and works perfectly, I just tested it:
    Use this link to download it automatically:
    http://saladeaula.estacio.br/arquivo.asp?dir=00/1020624/605124.pdf&num_seq=59828 4

  • My MacBook Pro encounters an error when partitioning for loading windows using Bootcamp Assistant. I deleted the partition that was there in order to upgrade to Bootcamp 5 but now I am struggling to get Bootcamp 5 to complete the job. Help please.

    I am struggling to Partition my MacBook Pro using Bootcamp 5, can someone help, please. I previously had successfully loaded Windows 7 running Bootcamp 4 on the same machine. When I upgraded to Windows 8 I started encountering problems. My trackpad would not work and it required me to load Bootcamp 5" as I was running 32 bit this is not supported by Bootcamp 5 I had to completely delete the previous partition, but now I can't repartition as it goes halfway and says an error has been encountered and Bootcamp cannot partition this drive.
    I do not know how to defragment the drive in Apple as I can in windows nor can I clean it up to maybe get everything in neat clusters, maybe somebody can help me solve this problem.

    Sorry Bobthefisherman, this was not helpful. I had already gone through these pages before coming to you. What I have discovered however is that when Bootcamp Assistant deleted the partition, it did not create a single volume but created three partitions instead which maybe the reason why it cannot create the new part ion parameters I am asking it crate. So I took it to the geniuses at Apple who suggested that I reformat the drive and reload everything again! and this might solve the problem. We'll all know whether this is helpful once it finishes the formatting of the hard drive. This process is taking a very long time to complete so I am leaving it overnight for it to complete. I will keep you updated on progress. I am also told that Apple is struggling with Windows 8 drivers and I may not be able to use that, so I am going back to Windows 7 even though I was beginning to like windows 8 very much.

  • Hi, I recently got a newer desktop to replace my old laptop and I uploaded my pics with my picture keeper and I can find them in images BUT I can't find iPhoto. On all my other device sit always loads to iPhoto automatically! Help please!

    HHi, I recently got a newer desktop to replace my older laptop and I upl my pics from my picture keeper and I see them in images but I can't find iPhoto! Help please.

    With the amount of information you've provided it's impossible to offer a solution.  We can't see your computer so we need to know the details of your problem and setup, i.e.:
    what version of iPhoto are you using?  A new iMac will have Yosemite. Confirm.
    what system version are you running? Download iPhoto 6 from the App store.  Did you?
    what do you mean by "picture keeper"?
    have you looked in the Applications folder for an iPhoto application?
    is your iPhoto Library in your Pictures folder ?

  • Automate the data load process using task scheduler

    Hi,
    I am doing Automated Process to load the data in Hyperion Planning application with the help of Task Scheduler.
    I have created Data_Load.bat file but rest of the process i am unable complete.
    So could you help me , how to automate the data load process using Data_load.bat file & task Scheduler.
    Thanks

    Thanks for your help.
    I have done data loading using Data_load.batch file . the .bat file call to .msh file using this i have followed your steps & automatic data lload is possible.
    If you need this then please let me know.
    Thanks again.
    Edited by: 949936 on Oct 26, 2012 5:46 AM

  • I cannot open my Safari. I double click and still loading forever an ever. I cannot get to any preferences at the configurations bar. Any help please?What should a i do to fixe that?

    I cannot open my Safari. I double click and still loading forever an ever. I cannot get to any preferences at the configurations bar. Any help please?What should a i do to fixe that?

    I saw on another post you have asked about this dates LINC DAVIS:
    Date/Time:       2014-07-01 19:03:59 -0300
    OS Version:      10.7.5 (Build 11G63)
    Architecture:    x86_64
    Report Version:  9
    Command:         Safari
    Path:            /Applications/Safari.app/Contents/MacOS/Safari
    Version:         6.1.5 (7537.77.4)
    Build Version:   1
    Project Name:    WebBrowser
    Source Version:  7537077004000000
    Parent:          launchd [203]
    PID:             624
    Event:           hang
    Duration:        1.46s
    Steps:           15 (100ms sampling interval)
    Pageins:         7
    Pageouts:        0
    Process:         Safari [624]
    Path:            /Applications/Safari.app/Contents/MacOS/Safari
    Architecture:    x86_64
    UID:             501
      Thread 0x1597a      DispatchQueue 1
      User stack:
        15 ??? (in Safari) [0x10557ff2c]
          15 SafariMain + 266 (in Safari) [0x10577947c]
            15 NSApplicationMain + 867 (in AppKit) [0x7fff8b559eac]
              15 -[NSApplication run] + 470 (in AppKit) [0x7fff8b2dd9b9]
                15 -[BrowserApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 161 (in Safari) [0x1055e44d5]
                  15 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135 (in AppKit) [0x7fff8b2e107d]
                    15 _DPSNextEvent + 1247 (in AppKit) [0x7fff8b2e19c5]
                      15 AEProcessAppleEvent + 102 (in HIToolbox) [0x7fff82c85b69]
                        15 aeProcessAppleEvent + 250 (in AE) [0x7fff832b89f7]
                          15 _ZL25dispatchEventAndSendReplyPK6AEDescPS_ + 38 (in AE) [0x7fff832b8b03]
                            15 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 200 (in AE) [0x7fff832b8c25]
                              15 _NSAppleEventManagerGenericHandler + 105 (in Foundation) [0x7fff896ed5dc]
                                15 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 283 (in Foundation) [0x7fff896ed74e]
                                  15 __-[NSAppleEventManager setEventHandler:andSelector:forEventClass:andEventID:]_block_invoke_1 + 101 (in Foundation) [0x7fff896ee7c7]
                                    15 -[NSObject performSelector:withObject:withObject:] + 65 (in CoreFoundation) [0x7fff81947541]
                                      15 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 330 (in AppKit) [0x7fff8b2e45b9]
                                        15 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 227 (in AppKit) [0x7fff8b2e4849]
                                          15 -[NSApplication _reopenWindowsAsNecessaryIncludingRestorableState:registeringAsReady:completion Handler:] + 193 (in AppKit) [0x7fff8b2e49f9]
                                            15 _NSPersistentUIFinishAcquiringTalagentWindows + 93 (in AppKit) [0x7fff8b3108cb]
                                              15 copyTalagentWindowsAcquisitionBlock + 79 (in AppKit) [0x7fff8b310947]
                                                15 +[NSBundle mainBundle] + 55 (in Foundation) [0x7fff896e1bb9]
                                                  15 -[NSRecursiveLock lock] + 25 (in Foundation) [0x7fff896badf9]
                                                    15 __psynch_mutexwait + 10 (in libsystem_kernel.dylib) [0x7fff87733bf2]
      Kernel stack:
        15 psynch_mtxcontinue + 0 (in mach_kernel) [0xffffff800059eb20]
      Thread 0x1599d      DispatchQueue 2
      User stack:
        15 _dispatch_mgr_thread + 54 (in libdispatch.dylib) [0x7fff8ae7e316]
          15 kevent + 10 (in libsystem_kernel.dylib) [0x7fff877347e6]
      Kernel stack:
        15 kqueue_scan + 416 (in mach_kernel) [0xffffff800053b4d0]
      Thread 0x159a4   
      User stack:
        15 thread_start + 13 (in libsystem_c.dylib) [0x7fff8d3eeb75]
          15 _pthread_start + 335 (in libsystem_c.dylib) [0x7fff8d3eb8bf]
            15 _ZN3WTFL19wtfThreadEntryPointEPv + 15 (in JavaScriptCore) [0x105e2da3f]
              15 WebCore::IconDatabase::iconDatabaseSyncThread() + 303 (in WebCore) [0x106958faf]
                15 WebCore::IconDatabase::syncThreadMainLoop() + 491 (in WebCore) [0x10695c39b]
                  15 __psynch_cvwait + 10 (in libsystem_kernel.dylib) [0x7fff87733bca]
      Kernel stack:
        15 psynch_cvcontinue + 0 (in mach_kernel) [0xffffff800059e920]
      Thread 0x159a9   
      User stack:
        15 thread_start + 13 (in libsystem_c.dylib) [0x7fff8d3eeb75]
          15 _pthread_start + 335 (in libsystem_c.dylib) [0x7fff8d3eb8bf]
            15 thread_fun + 24 (in QuartzCore) [0x7fff81e65d35]
              15 CA::Render::Server::server_thread(void*) + 184 (in QuartzCore) [0x7fff81e65df5]
                15 mach_msg_trap + 10 (in libsystem_kernel.dylib) [0x7fff8773267a]
      Kernel stack:
        15 ipc_mqueue_receive_continue + 0 (in mach_kernel) [0xffffff8000215930]
      Thread 0x159b2   
      User stack:
        15 thread_start + 13 (in libsystem_c.dylib) [0x7fff8d3eeb75]
          15 _pthread_start + 335 (in libsystem_c.dylib) [0x7fff8d3eb8bf]
            15 __NSThread__main__ + 1575 (in Foundation) [0x7fff8970f6a2]
              15 -[NSThread main] + 68 (in Foundation) [0x7fff8970f72a]
                15 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 335 (in Foundation) [0x7fff8971afd7]
                  15 CFRunLoopRunSpecific + 230 (in CoreFoundation) [0x7fff818e9486]
                    15 __CFRunLoopRun + 1204 (in CoreFoundation) [0x7fff818e9c74]
                      15 __CFRunLoopServiceMachPort + 188 (in CoreFoundation) [0x7fff818e150c]
                        15 mach_msg_trap + 10 (in libsystem_kernel.dylib) [0x7fff8773267a]
      Kernel stack:
        15 ipc_mqueue_receive_continue + 0 (in mach_kernel) [0xffffff8000215930]
      Thread 0x159b7   
      User stack:
        15 thread_start + 13 (in libsystem_c.dylib) [0x7fff8d3eeb75]
          15 ??? (in Safari) [0xdeadbeef]
            15 dlopen + 540 (in dyld) [0x7fff65188657]
              15 dyld::runInitializers(ImageLoader*) + 97 (in dyld) [0x7fff651821b9]
                15 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 59 (in dyld) [0x7fff6518d0b7]
                  15 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 237 (in dyld) [0x7fff6518c2cd]
                    15 _ZN4dyldL12notifySingleE17dyld_image_statesPK11ImageLoader + 226 (in dyld) [0x7fff65180973]
                      15 load_images + 233 (in libobjc.A.dylib) [0x7fff8897636b]
                        15 call_load_methods + 161 (in libobjc.A.dylib) [0x7fff889766ca]
                          15 +[VSearchLib load] + 92 (in libVSearchLoader.dylib) [0x109b72bf4]
                            15 -[NSBundle principalClass] + 41 (in Foundation) [0x7fff8970ed84]
                              15 -[NSBundle load] + 18 (in Foundation) [0x7fff897173f8]
                                15 objc_msgSend_vtable3 + 24 (in libobjc.A.dylib) [0x7fff889780d8]
      Kernel stack:
        15 hndl_alltraps + 225 (in mach_kernel) [0xffffff80002da481]
          15 user_trap + 711 (in mach_kernel) [0xffffff80002c4017]
            15 exception_triage + 149 (in mach_kernel) [0xffffff8000220e15]
              15 exception_deliver + 766 (in mach_kernel) [0xffffff8000220c1e]
                15 exception_raise_state_identity + 325 (in mach_kernel) [0xffffff8000249c75]
                  15 mach_msg_rpc_from_kernel_body + 277 (in mach_kernel) [0xffffff80002239d5]
                    15 ipc_mqueue_receive + 70 (in mach_kernel) [0xffffff8000215886]
                      15 thread_block_reason + 299 (in mach_kernel) [0xffffff800022f42b]
                        15 thread_continue + 1661 (in mach_kernel) [0xffffff800022f1ad]
                          15 machine_switch_context + 361 (in mach_kernel) [0xffffff80002c2939]
      Binary Images:
             0x10557f000 -        0x10557ffff  com.apple.Safari 6.1.5 (7537.77.4) <1144E535-39EB-3DD2-8326-F931E2CEDFC5> /Applications/Safari.app/Contents/MacOS/Safari
             0x105589000 -        0x105ac2fff  com.apple.Safari.framework 7537 (7537.77.4) <079F7B57-311E-3A81-B3ED-B7AC3F78E262> /System/Library/StagedFrameworks/Safari/Safari.framework/Safari
             0x105e24000 -        0x1061cbff7  com.apple.JavaScriptCore 7537 (7537.77.1) <C0C6D15C-8C26-3FD8-BE2E-7A1C20B46359> /System/Library/StagedFrameworks/Safari/JavaScriptCore.framework/JavaScriptCore
             0x106953000 -        0x107a00ff7  com.apple.WebCore 7537 (7537.77.4) <E0176EFF-835E-3B32-909D-E3A426947476> /System/Library/StagedFrameworks/Safari/WebCore.framework/WebCore
             0x109b72000 -        0x109b73fff  libVSearchLoader.dylib ??? (???) <2DF78468-AB4B-363E-A838-D4CE14679E8B> /System/Library/Frameworks/VSearch.framework/Versions/A/Libraries/libVSearchLoa der.dylib
          0x7fff6517f000 -     0x7fff651b3baf  dyld ??? (???) <C58DAD8A-4B00-3676-8637-93D6FDE73147> /usr/lib/dyld
          0x7fff818b1000 -     0x7fff81a85ff7  com.apple.CoreFoundation 6.7.2 (635.21) <62A3402E-A4E7-391F-AD20-1EF20236CE1B> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
          0x7fff81e63000 -     0x7fff82003ff7  com.apple.QuartzCore 1.7 (270.5) <19E5E0AB-DAA9-3F97-988C-D9A46AFB9C04> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
          0x7fff82c75000 -     0x7fff82fa1fff  com.apple.HIToolbox 1.9 (???) <CCB32DEA-D0CA-35D1-8019-E599C8007AB6> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
          0x7fff832b5000 -     0x7fff832f4fff  com.apple.AE 527.7 (527.7) <B82F7ABC-AC8B-3507-B029-969DD5CA813D> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
          0x7fff8771d000 -     0x7fff8773dfff  libsystem_kernel.dylib ??? (???) <66C9F9BD-C7B3-30D4-B1A0-03C8A6392351> /usr/lib/system/libsystem_kernel.dylib
          0x7fff8896d000 -     0x7fff88a51e5f  libobjc.A.dylib ??? (???) <871E688B-CF57-3BC7-80D6-F6476DFF109B> /usr/lib/libobjc.A.dylib
          0x7fff896b5000 -     0x7fff899cefff  com.apple.Foundation 6.7.2 (833.25) <22AAC369-B63C-3C55-8AC6-C3ECBA44DA7B> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
          0x7fff8ae7c000 -     0x7fff8ae8afff  libdispatch.dylib ??? (???) <8E03C652-922A-3399-93DE-9EA0CBFA0039> /usr/lib/system/libdispatch.dylib
          0x7fff8b2d9000 -     0x7fff8bedffff  com.apple.AppKit 6.7.5 (1138.51) <44417D02-6123-3FC3-A119-CE51BB4C3006> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
          0x7fff8d39d000 -     0x7fff8d47afef  libsystem_c.dylib ??? (???) <41B43515-2806-3FBC-ACF1-A16F35B7E290> /usr/lib/system/libsystem_c.dylib

  • Cron job help- Need to run the Autobuddy command every night...

    I have not written anything in the form of a Unix script for YEARS and YEARS. Our XServe was built in Advanced mode, currently running 10.5.4 Server. On this box, we are running Wiki and iChat. Since we built this box as an Advanced box the "Autobuddy" option was not available.
    I have since enabled it at the command line, but I am told by Apple that there still needs to be a command run after every time a user logs in if you want others to Autobuddy. That command is this:
    "sudo /usr/bin/jabber_autobuddy -m"
    Now I think this would be pretty easy to setup as an automatic cron script, but like I said, I have not written something like this in forever. Not to mention, I am not 100% sure what needs to happen since running the script with an sudo command will prompt for the root password.
    I was wondering if anyone would be able to help me write the script up, and give me some instructions on how to install it. I just want it run everyday, midnight is fine, I don't really care. All I know is that we have a dept of 150 people, and it grows and shrinks all the time. They can deal with a new user not being seen for 24-48 hours, I just want to get this automated.
    Any helps would be GREATLY appreciated!
    Thanks
    Tom

    If you want to keep it simple try [CronniX|http://www.abstracture.de/projects-en/cronnix] a graphical tool for setting up CRON jobs on OSX. Whilst I have not actually done an autobuuddy in this way, I cannot see any reason why it will not run as a Cron Job.
    The proper way ideally would be to use the launchd service.
    Something like this should work:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>org.jabber.dailyautobuddy</string>
    <key>ProgramArguments</key>
    <array>
    <string>/usr/bin/jabber_autobuddy</string>
    <string>-m</string>
    </array>
    <key>LowPriorityIO</key>
    <true/>
    <key><UserName></key>
    <string>admin</string>
    <key>StartCalendarInterval</key>
    <dict>
    <key>Hour</key>
    <integer>0</integer>
    <key>Minute</key>
    <integer>05</integer>
    </dict>
    </dict>
    </plist>
    (not sure why, but tabs are not showing up, making this hard to read)
    Message was edited by: Tim Harris

  • How to automate the data load process using data load file & task Scheduler

    Hi,
    I am doing Automated Process to load the data in Hyperion Planning application with the help of data_Load.bat file & Task Scheduler.
    I have created Data_Load.bat file but rest of the process i am unable complete.
    So could you help me , how to automate the data load process using Data_load.bat file & task Scheduler or what are the rest of the file is require to achieve this.
    Thanks

    To follow up on your question are you using the maxl scripts for the dataload?
    If so I have seen and issue within the batch (ex: load_data.bat) that if you do not have the full maxl script path with a batch when running it through event task scheduler the task will work but the log and/ or error file will not be created. Meaning the batch claims it ran from the task scheduler although it didn't do what you needed it to.
    If you are using maxl use this as the batch
    "essmsh C:\data\DataLoad.mxl" Or you can also use the full path for the maxl either way works. The only reason I would think that the maxl may then not work is if you do not have the batch updated to call on all the maxl PATH changes or if you need to update your environment variables to correct the essmsh command to work in a command prompt.

  • Automate the Cube loading process using script

    Hi,
    I have created the Essbase cube using Hyperion Essbase Studio 11.1.1 and my data source is Oracle.
    How can I automate the data loading process into the Essbase cubes using .bat scripts?
    I am very new to Essbase. Can anyone help me on this in detail?
    Regards
    Karthi

    You could automate the dimension building and dataloading using Esscmd/ Maxl scripts and then call them via .bat scripts.
    Various threads available related to this post. Anyways, you could follow the following steps.
    For any script provide the login credentials and select the database.
    LOGIN server username password ;
    SELECT Applic_name DB_name;
    To build dimension:
    BUILDDIM location rulobjName dataLoc sourceName fileType errorLog
    Eg: BUILDDIM 2 rulfile 4 username password 4 err_file;
    For Dataload
    IMPORT numeric dataFile fileType y/n ruleLoc rulobjName y/n [ErrorFile]
    Eg: IMPORT 4 username password 2 "rulfile_name" "Y";
    Regards,
    Cnee

  • Please help with cron hourly

    I have following script in /etc/cron.hourly
    #!/bin/sh
    su -l archie -c "ssh -o TCPKeepAlive=no -o ServerAliveInterval=10 -o ExitOnForwardFailure=yes -n -N -T -R 10002:localhost:22 [email protected]"
    It's doing reverse ssh connection to linux.box, problem I have is that when it runs it doesn't go to the background any my cron.hourly job just stays in the process list:
    root      1904  0.0  0.2   2776  1188 ?        S    17:01   0:00 /bin/sh /usr/sbin/run-cron /etc/cron.hourly
    root      1905  0.0  0.2   2776  1152 ?        S    17:01   0:00 /bin/sh /etc/cron.hourly/reverse_ssh
    root      1906  0.0  0.1   2200   864 ?        S    17:01   0:00 su -l archie -c ssh -o TCPKeepAlive=no -o
    archie    1907  0.0  0.4   6072  2480 ?        R    17:01   0:00 ssh -o TCPKeepAlive=no -o ServerAliveInterval=10 -o
    How do I run reverse_ssh script so that run-cron releases it?
    Thanks very much for your help
    Regards,
    Tomas

    1. Doing this:
    command &
    exit 0
    will always be the same as doing this:
    command &
    2. You could include your entire script in the crontab line. But of course you don't need to.
    3. Since you're backgrounding the ssh tunnel (whether using '&' or by using the '-f' flag), cron will see the process _it_ started as having completed. So an hour later, it won't refrain from running the job again (it would refrain if the process it started were still running). So you're going to get repeated attempts to open this tunnel, even if it's already open. I guess they'll fail, since port 10002 on your server is already bound to the existing tunnel. But it may generate lots of error output? Are you having the output of your cron jobs mailed to the local owner of the job (this is the default)?
    4. If you wanted to keep the tunnel open all the time, and reopen it when it fails, what you're doing is one way to achieve that. If on the other hand you just want the tunnel open for a short time, you could change your ssh line from
    ssh -o TCPKeepAlive=no -o ServerAliveInterval=10 -o ExitOnForwardFailure=yes -n -N -T -R 10002:localhost:22 [email protected] &
    to
    ssh -o TCPKeepAlive=no -o ServerAliveInterval=10 -o ExitOnForwardFailure=yes -n -f -T -R 10002:localhost:22 [email protected] sleep 10
    This replaces the no-command switch "-N" with the command "sleep 10", and uses the "-f" flag instead of "&". It will hold the tunnel open for 10 seconds. If some other process uses the tunnel within 10 seconds, tunnel will continue to stay open until that process (and all other processes) stop using it. You can make the sleep for longer if you like.

  • Cron job help

    hya m8s!
    so i want to create a cron job that will do the following in order.
    1.  run pacman -Syu
    2.  run pacman -Scc
    3.  run lilo (incase of kernel upgrade)
    i want this to run every day at 5am,
    the problem is that i know what i want it to do i just have NO idea how to implement it.  i have researched cron jobs a bit but i havent found an easy to understand way exec the above commands.  one of my m8s suggested i use the "at" command but i dont think i can set that to run at a specified time every day.  Please help if you can.
    cheers,
      cdk
    (note: once ifigure out cron i want to start to try to figure out how to build packages. i have also read the wiki on this and still dont get it)

    cdk wrote:
    why is it a bad thing to do?  seems like it would be a good thing so it keeps the system up to date right?
    i figure that if i do it manually or not i still doing the same thing everyday.  any info as to why this would be bad would be great.  i def dont want to mess up my system.
    Take KDE 3.3 to KDE 3.4 upgrade as an example:
    Your way would have just updated KDE without considering possible side-effects. The recommended way in this case was removal prior to upgrade.
    You would not have been able to follow those recommendations if a script would have done the job.
    If you really feel the need to auto-upgrade everyday, I'd recommend excluding problematic packages (e.g. kernel. IMO that should only be upgraded with the user watching) and keeping that list up to date by checking with the ARCH news and boards...
    greez
    bernhard

  • 'Error loading plugin: Plugin file not found' message on ONLY 5 sites, but all others OK.  Help, please!

    Hi Again!
    I posted this problem here before, but since I really need to access the sites that receive this error message in less than a month, I had to re-post; hopefully someone who didn't see it before will see it & have a solution for me.
    Here are the details:  I'm running windows 8.1 & I use Firefox 33.1.1, Pale Moon 25.1.0 or Opera 26.0 as my browsers, (I have IE installed & up-to-date, but I never use it).  I followed the 10-point checklist on Adobe & everything was done, except for "uncheck Hardware Acceleration" in Flash 'Settings'; I tried to uncheck it on this site, where it's indicated, as well as in my 4 browsers when I'm doing something that uses Flash, but no matter how hard I try, I can't 'uncheck' the check mark in that tiny box!  Since this error problem only affects 5 web sites, & I can watch streaming media on all other sites, I don't think it's an issue. 
    Here's how this problem began:  I was watching a live, streaming nest-cam on 5/09/14 around 11:00AM, (yes, I DO know the exact time & date, because it happened so suddenly while I was watching this website that I'd been watching since the end of February, 2014), when my screen went black.  I thought it was probably an Adobe Crash, but when the usual Crash Report window didn't show up, I just closed Firefox & reopened it, expecting to resume watching the nest-cam.  When I went back to the site, I got the black screen with the "Error loading plugin: Plugin file not found" message.  The chat portion on the site still works, though. I know there are other sites with this nest-cam feed, so I started trying them, but it took several tries for me to find one that didn't get the error message! I posted this problem on "Windows BBS" forum, & someone else posted that the same thing happened to them AND on the same sites!  They didn't have a solution, either.  I cleared my cache, rebooted my PC & even did a System Restore, but whatever happened in that brief second made using ONLY 5 sites impossible.  Here are the sites that receive the error message:
    http://pixcontroller.com/eagles, (but I CAN go to http://pixcontroller.com, but there isn't any streaming media)
    http://cbslocal.com/eagles
    http://westmorelandconservancy.org/BlueBirdwebcam-1.htm
    http://wildearth.tv/cam/pittsburgh-bald-eagles, (I get the error message on ALL cams on this site)
    http://aviary.org/BE-NestCam1 (I get the error message on ALL cams on this site)
    Now if any videos from the 5 websites above are uploaded to YouTube, I can watch them perfectly...no error message if I watch the videos elsewhere.  Luckily, I found Ustream, & they have most of the nest cams I watch, but I need to fix this issue, because it's nearing nesting time!  I'm an amateur nest-watcher & it's vital that I have access to these 5 sites, so if anyone knows how to fix this, PLEASE tell me!
    Thanks for taking the time to read my post.
    All suggestions/solutions are gratefully accepted.
    Thanks in advance for your help!
    DogPal 

    File Not Found Error in Welcome Screen
    07-Nov-2013 10:25
    Tags: #dreamweaver_cs6_update
    Help please!
    Live preview also not working.
    I have exactly the exact problem described below but do not have a folder with the same name as the volume created under the volume. Please can someone help - I've tried everything. This problem only happened when I upgraded to Dreaweaver CC!
    "On launching Dreamweaver on your Macintosh if your Welcome Screen is not loading and if you see a "File not found" error, please check if you have a folder with the same name as your volume created under the volume. For more info on this please go through the attached pdf document. Other dialogs/panels in dreamweaver that will be blank due to this issue are Jquery Swatches panel, Adobe Edge Webfonts tab in Manage Fonts dialog,W3c Error Info dialog, Externalise Javascript dialog and svn revert dialog. After following the changes mentioned in the attached document please check all the affected dialogs/panels to confirm everything is working as expected."
    Thanks,
    Martin Bond
    [personal information removed by moderator]

Maybe you are looking for

  • Converting Mov to FLV audio loss

    Hi all, This might be something someone could help me think. The problem I seem to be encountering is a loss of audio in the later quarter of videos converted into an flv from a quicktime mov (PAL 1024kbps / 29fps / 500x280), this typically happens o

  • What happened to user_domains in WLS7.0 GA?

    when I installed WLS7.0 GA I didn't see any clean domain like user_domains or mydomain to build our domain.... Am I missing something?? -Praveen

  • Horizon Workspace Remote App Authentication

    Hello, I am receiving the following message inside my Win7 VDI Horizon Workspace User Portal: "For security, this remote application requires entering your username and password to launch.  This is NOT your RSA SecureID password." I have Kerberos ena

  • New Sync icon in top toolbar - what's it do?

    There's a new Sync icon beside my bluetooth icon in the top tool bar. Clicking on it revelas: Never Synchronized .mac (indented/can't click) Sync Now Open .mac System Preferences... Is this only beneficial to .mac subscribers? or what will happen if

  • Plugin Container causes lag, how do I shut it off? It worked before the last update.

    Games worked fine, as did anything else I did. Then the new update came, and the game goes at 1/3 speed, + the rest of firefox is slower, even when the game isn't running and hasn't been opened since the last restart. == This happened == Every time F