Creating a job that runs a Tcl script

Hi,
We currently have a scheduled job running a Tcl script on a 8.1.7 DB. My question is, can I still use the same setup in 10g DB (i.e. creating a job that runs Tcl script)? If I can, how am I gonna do it?
Thanks,
howie

It depends on how you scheduled the job in 8.1.7 DB.
By Cronjob? Yes you can do the same to connect to 10g
By DBMS_JOB?. Yes you can do it in 10g and in addition, can improve it with DBMS_SCHEDULER
Via OEM? Yes in can use Enterprise Manager to create a Job that runs the Script.

Similar Messages

  • To run a tcl script in ombplus

    how do i run a script in ombplus
    when i give a command ompplus.bat test.tcl the script doesnt run.
    it is given in a doc that in INTERACTIVE SHELL the SOURCE should be set as test.tcl
    and then ombplus.bat test.tcl command should be given in the ombplus command line.
    what is interactive shell in ombplus.
    and how to run a tcl script in ombplus.

    What is in the script?
    Try starting ombplus - you get cmd window and then type:
    eg.
    source c:/test.tcl
    and so on...

  • I need to create an APP that runs on an Android Tablet to play mp4 video stored on the SDCARD.  I ha

    I need to create an APP that runs on an Android Tablet to play mp4 video stored on the SDCARD.  I have tried using VideoPlayer and passing NULL to the Connect() method, but while this will play a video from a shockwave SWF it will not play it as an APP from a .apk file.

    There are several apps in the App Store. Look at them to see what might meet your needs. There is a keynote app that might be best for you.

  • Create a validation that runs when a button is pressed

    Hi good people from this forum, I was wondering if it's possible to create a validation that runs when a button is pressed.
    I'm using Oracle Apex 4.2.2 with Oracle Apex Listener 2.0 and Oracle Database XE 11g
    Thank you so much for your time
    P.S. On another note, How can I change my display picture =P?

    You can create a validation and give it's condition like 'When Button Pressed' and select a button name or select the Condition Type as 'Request=Expression1' and give request(button name) in Expression1.
    Thanks
    Lakshmi

  • Running a *.tcl script via an Expert

    I'm trying to build a metadata promotion wizard/expert which will promote metadata from our Dev repository to our QA repository
    In order to acheive this, we have created an exp_imp.tcl script which exports a collection from our Dev repository and imports it into QA our QA repository - this works fine if I run it via OMBPlus.bat. However, I would like to incorporate this within an OWB Expert - the problem we are experiencing is that the OMB+ task within the expert doesn't allow us to connect to a different repository (QA repos) without first disconnecting from the current repository (Dev repos) - if we do disconnect the expert will run through to completion, however, the expert window then hangs (presumably, because of the earlier disconnection)
    Any help with this would be much appreciated.

    Hi skifarm,
    It sounds like this message may be more related to the TCL script than to LabVIEW.  Could you put a simple command very early in the script that gives some output, to help you determine whether it's a LabVIEW issue?  If the command provides the output, then it's probably not a LabVIEW issue.  If it doesn't get that far, then that somewhat narrows it down.
    Regards,
    James R.
    National Instruments

  • Scheduler Jobs that run between certain times?

    Is there an easy way to query which dbms_scheduler jobs run between any given times?
    If I look at repeat_interval in user_scheduler_jobs, for example, I've got things like "FREQ=DAILY; BYHOUR=14,16,18,20,8,10,12; BYMINUTE=30" and "FREQ=HOURLY; INTERVAL=2;" and "FREQ=DAILY;", and it's not therefore clear to me how I could write a query that would find which jobs run between (say) 17:00 and 19:00.
    Is there a function, or a neat bit of sql, that will 'explode' the repeat interval (presumably, in the case of the last two examples above, with reference to the start_date) into standardized times which I could then query? Or is there some other way of doing it?

    There are no schedules used here. The repeat interval is specified for all jobs at the time of creating the job.
    Besides, that wouldn't address the issue, even so. Even if schedules are in use, they declare their repeat interval in the form "freq=daily;byhour=3,4,5,6;byminute=0;bysecond=0", stored in a text field. Exactly the same, in fact, as the repeat_interval column in the user_scheduler_jobs column.
    So how do you derive from that the knowledge that the job can run some time between 2 and 8AM?
    I want to list all jobs which might start between those two times, but I do not know syntactically or logically how it is possible to query either user_scheduler_jobs or all_scheduler_schedules to select all rows where repeat_interval "is somehow covered by the time range 2 to 8".
    Thanks for replying, though.

  • SLD Job that run at R3 system

    hi
    I just filled/activated with SLD Brdige Gateway Information to deploy my Business system info at SLD.
    Just wonder what is the Job name that run at Background to deploy the R3 Business & Technical details at SLD?
    Thanks in advance.

    Hi Krishna,
    I am running with release R3 46D_ext for 2265 patch level. so my question around is if I put SLD Bridge along with Gateway Information will this be enough to deploy the Tecnical and Business system details at SLD?
    Or do I need to manually create the Technical & Business System details at SLD?
    Thanks & Regards
    Chandra

  • Running a TCL script through EEM every 60 seconds

    I have a script written in the TCLSH of IOS, I can test this script from the shell using the following commands
    LAB-RTR#tclsh
    LAB-RTR(tcl)#source flash:test.tcl
     NO CALLS
    Is there a way I can run this test.tcl script every 60 seconds on the router.
    SCRIPT test.tcl
    proc get_ints {} {
    set syslog [open "syslog:" w+]
    #puts "BEFORE\n"
    set check ""
    set int_out [ exec "show voice call status\n" ]
    #puts "INTOUT $int_out\n"
    set mylist [regexp -nocase -line -inline {(^([0-9]*|No) active calls? found)} $int_out]
    #puts "MYLIST $mylist\n"
    foreach int $mylist {
     #puts "INT $int\n"
     if {$int == "No"} {
      puts " NO CALLS\n";
      puts $syslog "NO CALLS"
     } elseif {[string is integer -strict $int]} {
      puts "$int CALLS\n";
      puts $syslog "$int CALLS"
     } else {
      #puts "GARBAGE\n";
    close $syslog
    #puts ""
    puts [eval get_ints]

    Hey Joseph, Thanks for all your help. I have one last question, so now that I am running my script every 60 seconds if there is an issue I send multiple traps to our monitoring system. Is there any way you can keep track if the trap was already sent I will not send another trap again.
    One way I can think of is using a loopback interface. But I would prefer not shutting down the loopback interface just to keep track of what my script is doing.
    IF issue {
       IF Loop1 is up {
                don't send trap
        } ELSE {
                bring Loop1 up
                Send Trap
     } ELSE (No issue) {
       shutdown Loop1

  • How to create a job to run daily, based on form values entered.

    Hi,
    In DB we have 3 columns: creation_date, name, approved_or_not. Default for approved_or_not is 'No'.
    In the application form page suppose I fill in sysdate for creation_date and leave default for approved_or_not and click [create] button.
    Now a job should run everyday and check for where (approved_or_not='No' & creation_date = 'sysdate - 1') and send mail to the person in 'name' field mentioning: 'Approval pending. click on link <some_link> for details on approval'.
    Could anyone give me pointers to example on such job? (Working on APEX 3.0)
    Thanks,
    Priyanka
    Posted this message on wrong forum, Moved this on APEX forum.
    -Priyanka

    I think you may create your own job by this supplied package in your application -
    http://psoug.org/reference/dbms_scheduler.html
    Or you may use Event-Based Scheduling -
    http://www.oracle.com/technology/pub/articles/10gdba/nanda_10gr2dba_part2.html#event
    Best regards.

  • How to create pl/sql that run efficiently in background ?

    Hi sql gurus,
    We have application on Oracle 10g where 150+users (from multiple branch) concurrently input transaction. The transaction number is centralized, means all user use same transaction number counter.
    To avoid the contention that occured, we think of using pl/sql procedure that run in background to do :
    - select transaction that not yet has number
    - query the last transaction number counter(a column in a table), increment by 1, update the transaction with the number
    - commit
    - process another transaction
    What is the best approach to do this ?
    (means a pl/sql that does not cause high CPU utilization, because it will run all day long)
    Thank you,
    xtanto

    Hi,
    Why can't you give them a number upon creationCurrently we doit this way, and this cause contention. thats why we think of separate the numbering process.
    Fyi we donot use Sequence ( for gapless numbering).
    We maintain the number counter in a column in a separate table. It is the update to this table that cause contention.
    Oracle sequences are typically used for meaningless number generation. Yes, We dont use sequence.
    Thank you
    xtanto

  • I created an imovie that runs 2hrs 14min but can't get it to burn on a DVD

    I creatded an imovie that runs 2hrs 14min but can't get it to burn onto a DVD. 
    Any recommendations?

    Hi
    iDVD - don't care about GBs - ONLY - Time = Movie + Menus - as follows
    iDVD 08, 09 & 11 has three levels of qualities. (version 7.0.1, 7,0.4 & 7.1.1) and iDVD 6 has the two last ones
    • Professional Quality
    (movies + menus up to 120 min.) - BEST (but not always for short movies e.g. up to 45 minutes in total)
    • Best Performances
    (movies + menus less than 60 min.) - High quality on final DVD (Can be best for short movies)
    • High Quality (in iDVD08 or 09) / Best Quality (in iDVD6)
    (movies + menus up to 120 min.) - slightly lower quality than above
    Menu can take 15 minutes or even more - I use a very simple one with no audio or animation like ”Brushed Metal” in old Themes.
    About double on DL DVDs.
    If You NEED to put in more than 120 minutes onto a SL DVD - Then I would use Roxio Toast™ as this can squees in between 7 to 10 hours onto this - BUT AT A BARELY USABLY QUALITY.
    VHS tapes recorded in EP- mode will look brilliant in comparision
    Just as info:
    SP = 240 minutes on a standard VHS tape
    LP = 480 minutes
    EP = 720 or more ?
    Yours Bengt W

  • Doubt to create a job to run a executable oracle 10g

    Hi guys,
    I´m using oracle 10gR2 and trying to schedule a job to execute a automatic import every night and then drop the dmp file.
    I would like to know if it´s possible..
    I´m configuring via web enterprise manager and in the option :
    "Command
    Select the command type for the job, then enter the command requirements."
    And I´m changing the command type to executable and passing
    $ORACLE_HOME/bin/imp sys/password file=mydump.dmp fromuser=user1 touser=user2
    but it´s failing. Anybody knows what I´m doing wrong ?

    No, that you cant.
    Instead create a shell script for the import and then put that as the command in oem.
    Message was edited by:
    orafad

  • Scheule a job that runs on first day of every month

    Hi i want to schedul a job (run a procedure ) on first day of every month . I have done something lije this
    declare
    nextdate date;
    begin
    SELECT trunc(add_months(sysdate,1),'MM') into nextdate FROM DUAL ;
    dbms_output.put_line(nextdate);
    dbms_job.submit(
    what=>'someprocedure',
    next_date=>nextdate,
    interval=>'30');
    end;
    is interval mandatory ? how can i define that interval ??

    Hi,
    You can define an interval as follows:
    SQL> alter session set nls_date_format='dd-mm-yyyy hh24:mi:ss';
    Session altered.
    SQL> select add_months(trunc(sysdate, 'mm'), 1) from dual;
    ADD_MONTHS(TRUNC(SY
    01-09-2009 00:00:00
    1 row selected.
    SQL> select add_months(trunc(sysdate, 'mm'), 1) + 7/24 from dual;
    ADD_MONTHS(TRUNC(SY
    01-09-2009 07:00:00So, if you want your job to start at 07.00 every month you submit:
    declare
    nextdate date;
    begin
    SELECT trunc(add_months(sysdate,1),'MM') into nextdate FROM DUAL ;
    dbms_output.put_line(nextdate);
    dbms_job.submit(
    what=>'begin someprocedure; end;',
    next_date=>sysdate,
    interval=>'add_months(trunc(sysdate, ''mm''), 1) + 7/24');
    end; untested
    Check the docs: http://tahiti.oracle.com
    and/or http://asktom.oracle.com
    and/or this forum as well.
    Do some searches and you'll find lots of examples.

  • Using tables - wanting to create long table that runs from page to page

    I want to create a table to which I can add rows as I work (alphabetizing). The final table will end up being 6-7 pages long. Inserting a page break did nothing--all rows below where the page break is still disappear and do not go onto the next page. This is a Word feature that I'm hoping I can have on appleworks. Does it exist?
    I cannot put Word on this computer since I'm not running an OS high enough (I have 10.2.8)

    Cyndi:
    Just wondering if you found your answer. I am having the same issue. I did finally figure out after several days of reading searches how to add pages to your table which is in >Format > document > then select the box for how many pages you want to go down or across in the box to the lower right corner. Then you can insert cells by highlighting the row by holding option key as you drag across the row & in Table click insert cells. Hope that helps. You can determine whether the table is horz. or vert. in > file > page set up. Click on the image of the page/man that displays the orientation that most closely fits your needs.
    However, the problem that I'm continuing to have is that the >insert page break command does not appear to work in Tables. It remains greyed out no matter what I've tried. Short of trying some "tell" command that a fellow using 10.4. in Pages suggested. I'm in Appleworks 6 running on my iBook, as you are. I saw a reply from ms Peggy suggesting that there is some difficulty in getting that to work, and so far I would have to agree. Her idea was to add cells such that they would fall over the page break, which you can see using the >page view command in the Window drop down menu. But that would not be so neat with the lines running vertically from the top of page to the first box. I guess it could be squeezed down to the size of the "break". Is that all there is ?
    iBook G4, 14, 933 MHz,   Mac OS X (10.3.9)  

  • Creating Appication Package that runs just a command line?

    Hi,
    We are trying to uninstall the endpoint protection client that we inadvertently pushed out to a few machines.
    Can we configure an application package with no source that just runs the command line as shown on the target computer in the target collection?
    %windir%\ccmsetup\scepinstall.exe /u /s
    Do I need to add that command to a .cmd file and use that as source?  Is there a better way to do this?
    Thanks Lance

    If you're having bother it would be easier just to use package/program
    or, for only a few machines, do it manually with PSExec.
    http://technet.microsoft.com/en-ie/sysinternals/bb897553.aspx
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

Maybe you are looking for

  • How to calculate a value in sap script?

    Hi friends i have to do addition and then display the added value in grandtotal like total amount + late fee = grand total i have to do this in sap script can anyone tell me the procedure where to declare wheather in abap aditor if yes how?

  • Hard drive is running out of space!!  HELP!!

    I just purchased a new macbook pro with retina 4 days ago.  I've noticed that the hard drive is almost out of space already.  I removed all pics and music to external drive and still have "backups and other" that are taking up 75% of HD.  How do I cl

  • Oracle text search - special characters issue

    Hi. I'm facing a real annoying problem with text search query, and everything I've tried failed... I have a table with a varchar column indexed by text index. The column contains special characters like '&', ',' and mainly- '-'. Since I want to disre

  • How to instantiate a .class from a JSP?

    Hi, probably it's a simple problem, byt I'm new in JSP and I couldn't work it out. I'm converting a SSJS Netscape Application to JSP. My needing is to write a Java .class containing only static methods, to call them from the JSP pages. For trying, I

  • Upon wake external HDMI monitor resets

    Ok, I hope I explain this with enough detail.  On my new macbook pro I have always used a 21" dell DVI monitor.  Well, I bought my wife an older 2009 macbook pro and decided to give her the old dell 21" external and buy me a new 27" samsung HDMI exte