Help with job scheduling; decode error

Hi
Iam trying to change a job that runs my procedure using dbms_job.. Here is the output I got.
Can someone help me why this is giving me errors.
<code>
SQL> exec dbms_job.next_date(395,decode(sign(substr(to_char(sysdate,'dd/mm/yy hh24:mi'),10,2)-17),-1,'trunc(sysdate) +18.5/24',1,'trunc(sysdate)+1+6.5/24'));
BEGIN dbms_job.next_date(395,decode(sign(substr(to_char(sysdate,'dd/mm/yy hh24:mi'),10,2)-17),-1,'trunc(sysdate) +18.5/24',1,'trunc(sysdate)+1+6.5/24')); END;
ERROR at line 1:
ORA-06550: line 1, column 30:
PLS-00204: function or pseudo-column 'DECODE' may be used inside a SQL
statement only
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
</code>
Thanks in advance

I'm not sure what you're trying to achieve.
Is this a one time action or do you want to run this statement on a regular basis?
How about this:
begin
  if ( to_number(to_char(sysdate,'hh24')) <= 17 ) then
    dbms_job.next_date(395, 'trunc(sysdate)+18.5/24');
  else
    dbms_job.next_date(395, 'trunc(sysdate)+1+6.5/24');
  end if;
end;

Similar Messages

  • Help! job scheduled in DB13 cannot run successfully

    Hi! I am a basis administrator of an automobil company.
    Job scheduled in DB13 in our PRD system cannot run successfully.
    We have Central instance(ci) and Database instance(db) installed on seperated hosts. We use SUN cluster 3.1 technology.
    The problem occurs after my college restarted the whole system accidentally. After that, all the job scheduled in DB13 report the same error,job log looks like:
    Job started
    Step 001 started (program RSDBAJOB, variant &0000000000192, user ID ***)
    No application server found on database host - rsh will be used
    Execute logical command BRCONNECT On host orahost
    Parameters: -u / -c -f check
    BR801I BRCONNECT 6.20 (113)
    BR252E Function fopen() failed for '/oracle/PR1/sapcheck/cduuoiij.chk' at location main-8
    BR253E errno 2: No such file or directory
    I manually type the 'rsh' command on ci to invoke 'brconnect' on db. It works all right. And I check the rfc destination 'SAPXPG_DBDEST_ORAHOST' in sm59 , it's normal. There is no gateway instance on database server.
    The parameter 'SAPDBHOST' = orahost (the database server is  called orahost)
    the parameter 'SAPLOCALHOST' = cihost(the central instance is located on cihost)
    Any suggestion is very appreciated.
    Thx!

    Hi Joe,
    DB13 will run only on application server as for that matter any SAP program. It will then connect to database at OS level. I mean you normal reports also fetch data from database for which they have to connect to DB  but they all run on application server. The problem is coming in connection to database through the application layer.
    Please again review the OSS notes sent by Sunil and me. I think a greater focus on Sunil`s notes should help you out.
    Regards.
    Ruchit.

  • Please help with cannot find symbol error. Been struggling all day :(

    Hi all. :)
    Writing a game for my phone with KToolbar and have been getting a cannot find symbol error for every variable and method I try to use across Classes. I've looked all over and though it seems a common problem I always either don't understand or can't get working the various solutions. Example of my errors:
    C:\...\BTK800i.java:197: cannot find symbol
    symbol : variable youSayWhat
    location: class HelloCanvas
              youSayWhat=key;
              ^
    If I try BTK800i.variable or BTK800i.message I get a new error.
    C:\...\src\BTK800i.java:184: non-static method newOrdersSarge() cannot be referenced from a static context
              BTK800i.newOrdersSarge();
              ^
    Both these errors apply to both variables and methods. It only happens when I'm using methods/variables of one class in another, am I using public and private incorrectly? It doesn't seem to make a difference if I make variables public or leave them private, I'm trying to get to them with a public method within a private class. Is it something else? I really have no idea. :(
    Here's my code, it's long enough to be a tiresome read so I've tried to skip what I know isn't relevant.
    public class BTK800i extends MIDlet {
         private Display myDisplay;
         private HelloCanvas myCanvas;
         public int youSayWhat;
            //a whole bunch more skipped here, but I'm fairly certain it's not anything that'll help find a solution
         public BTK800i() {
              paused=false;
    public void startApp() throws MIDletStateChangeException {
              if( paused ) {
                   myCanvas.repaint();
              else {
                   myDisplay=Display.getDisplay(this);
                   myCanvas=new HelloCanvas();
                   myDisplay.setCurrent(myCanvas);
                   myCanvas.setFullScreenMode(true);
                   youSayWhat=0;
                           //again with the skipping, more code not related
    public void newOrdersSarge() {
    //whole bunch of code
    //other methods skipped
    class HelloCanvas extends Canvas {
         public void keyPressed (int key) {
              youSayWhat=key;
              repaint ();
    //skippage
    }The stuff I skipped is mainly either more of the same sorta thing or maths/writing to screen stuff.
    Thanks alot to anyone who helps. I'm really struggling with this. :(
    Dan.

    But I have been reading them :(
    My next-door neighbour unfortunately is an 80-something married man, but I will go have a looksie about static and instances.
    I thought the point of public variables was that other classes could use them, is this wrong?
    Also does this mean that to use the variables from my BTK class in the HelloCanvas class I need to first instantiate BTK? I don't understand how that works as the code starts running from the BTK class in the first place :S I guess more reading will help with this.
    Thanks very much for replying. :)
    Edit:
    OK I have read up on it but I don't think I found anything I hadn't read before. I tried to make a new class which I could instantiate to hold all the variables and methods I wanted everything to be able to access, but that went disastrously. Am I right in understanding that there are no global variables in Java? :s
    Edited by: Dan69 on Apr 17, 2010 1:15 PM

  • I need help with Mavericks Server: an error occurred while configuring your server.  I

    I need help with Mavricks Server, I get the following: an error occurred while configuring your server.  I have deleted the Server.app several times along with the associated com.apple and Server folder.  Any more help would be appreciated.

    There are usually some log files around, related to the installation.  See if Console.app (Applications > Utilities) shows anything relevant to the error, when you've done a fresh install of Server.app and tried the configuration.

  • RMAN started with job Scheduler on RAC

    Has someone an example how to define a job in Oracle job scheduler to run RMAN on one of the running node.
    The idea is be able to choose automatically in case of faillure the node where the RMAN backup will run.

    This may not be a direct answer to your question, but, thinking it might be helpful to you.
    In case, if the instance crashses half way through during RMAN backups, you can presume RMAN backups by placing 'NOT BACKED UP SINCE TIME' to backup the datafiles which are not backed up since the given time.
    Jaffar

  • Please help for job schedule

    i need create job schedule to be run daily at 1 AM the goal of this job to run the following query
    Delete
    From EJARIN.TEMP_CONTRACT_PROPERTIES TCP
    Where TCP.ENTRY_DATE<=to_date(sysdate-1);
    Commit;
    please help

    If you are in 9.2 or older release, you have just the Package DBMS_JOB to manage the Job.
    If you are in 10.1 or later release, DBMS_JOB or DBMS_SCHEDULER. But, it's recommended to use DBMS_SCHEDULER as it's a much more powerful tool.
    By using DBMS_JOB, you can create a Job like that:
    Just create a stored procedure which do your requirment then you can create job like below based on version..
    Example 1
    begin
      dbms_job.submit(:jobno,
                      '<PL/SQL stored procedure>;',
                       to_date('<date>','dd-mm-yyyy HH24:MI:SS'),
                      'SYSDATE + 1');
      commit;
    end;
    print jobno;By using DBMS_SCHEDULER, you can do like that for a STORED PROCEDURE:
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB(
    job_name => '<job_name>',
    job_type => 'STORED_PRODECURE',
    job_action => '<schema>.<stored procedure>',
    repeat_interval => 'FREQ=DAYLY;BYHOUR=<hh>;BYMINUTE=<mm>;BYSECOND=<ss>',
    enabled => TRUE)
    END;best regards
    asp

  • Help with Skillbuilders Schedule issue

    I'm using the Skillbuilders Schedule and it has been working well until we had some problems with Monthly schedules created in 2012 with the option "Day of the Month". When I apply the schedule it automatically changes this to the "last day" and in the table it shows BYMONTHDAY=-1 (with the minus sign). I can also see this issue occurring in the Demo page for this plugin (http://apex.oracle.com/pls/apex/f?p=SKILLBUILDERS_SCHEDULE:HOME), only for events created in 2012 and only for "Day of the Month" radio button.
    Regards,
    Alejandro.

    Please see your duplicate thread below for answer already provided.
    https://discussions.apple.com/message/25940896#25940896

  • Need help with Adobe barcode decoder version 7.0 (PDF 417), changing the service logon user id

    Hello I am fairly new to the adobe barcode decoder (PDF 417) application. We have an application that was developed about a while ago, now we are in the process of hosting the whole service in a new machine. Before hosting in new machine we were testing few things in the existing system; currently the adobe barcode decoder is running on an windows server 2003 with the "Local system account" in the Log on tab of the service. We would like to test whether the service can be run using an NT account. We did change the account from LocalSystem to one of the network account and when we start the service, it will stop immediately and getting the following error in the event log.
    Event Type: Error
    Event Source: AdobeBarcodeDecoder
    Description:
    The description for Event ID ( 1 ) in Source ( AdobeBarcodeDecoder ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: Problem with the USB key: INITIALIZE.
    any help to solve this issue is really appreciated. We checked the access rights of the account that is trying to run the service and the account is part of the local administrators group. But When we change the service account back to "Local System Account" it is working fine. Any idea or am I missing any step?
    Thanks
    Suganya

    I just saw several of the following errors in the WindowsUpdate.log on one of my clients which prompted me to look closer, but this may not have correlation:
    2015-02-17 06:39:01:095
    112 4fc
    DtaStor JetSeek failed to find a record
    However, software updates are deploying and installing just fine it seems. I did update my Site Server yesterday manually, like I always do after every Patch Tuesday. 
    Am I not supposed to patch my Site Server manually, or should I add it to the Software Update Management scheme I have set up in SCCM? 
    Thanks

  • Help with DBMS Schedule

    Hello,
    i have crated a dbms job usning dbms scheduler. i created a procedure to test this which has run every 28 days on a Wednesday. when i test this this job skips if a holiday falls on wEDNESDAY AND SHOULD RUN ON IMMEDAITE NEXT WEEK OF WEDNESDAY. my job works upto excluding the holidays, but doesn;t run immediate next wednesday instead its running the next shceduled 28 day of that wednesday. here is the code to test the job. PLease help...
    BEGIN
    SHOW_JOB_SCHEDULE(
    sTARTDate => TO_DATE('01/04/2012','mm/dd/yyyy')
    ,ScheduleString => 'FREQ=DAILY; INTERVAL=28; BYHOUR=04; BYMINUTE=00; BYSECOND=00;EXCLUDE=FEDERALHOLIDAYS;'
    ,Iterations => 10
    end;
    i tried even with freq=weekly and interval=4 and byday=wed it still skips the Job if that is a holiday and goes to the next shceduled cycle instead i want to run next wednesday, when a holiday falls.
    say for example the dates of cylce for 28 days is:
    1/4/2012
    1/31/2012
    02/28/2012
    03/27/2012
    04/24/2012 etc....
    could someone help pelase.....
    Thanks a lot....

    Maybe you could do something like this:
    CREATE OR REPLACE PROCEDURE create_holiday_schedules
    ( p_year IN NUMBER )
    AS
         lv_hol_schedule    VARCHAR2(200);
         lv_offhol_schedule VARCHAR2(200);
         sched_not_exists   EXCEPTION;
         PRAGMA EXCEPTION_INIT(sched_not_exists, -27476);
    BEGIN
         /* Drop pre-existing Schedules */
         BEGIN
              DBMS_SCHEDULER.DROP_SCHEDULE
              ( schedule_name => 'FEDERAL_HOLIDAYS'
              , force         => TRUE
              DBMS_SCHEDULER.DROP_SCHEDULE
              ( schedule_name => 'OFF_FEDERAL_HOLIDAYS'
              , force         => TRUE
         EXCEPTION
              WHEN sched_not_exists THEN
                   NULL;
         END;
         /* Retrieve holidays and off days */
         WITH dts AS
              SELECT TO_DATE('01/01/' || p_year,'MM/DD/YYYY')                AS pStartDate
                   , ADD_MONTHS(TO_DATE('01/01/' || p_year,'MM/DD/YYYY'),12) AS pEndDate
              FROM   dual
         SELECT LISTAGG(TO_CHAR(dt_day,'DDD'),',') WITHIN GROUP (ORDER BY dt_day) AS hol_days
              , LISTAGG(TO_CHAR(dt_day + 7,'DDD'),',') WITHIN GROUP (ORDER BY dt_day) AS offhol_days
         INTO   lv_hol_schedule
              , lv_offhol_schedule
         FROM
              SELECT (CASE WHEN
              /* New Year's Day (01/01) */
              (pStartDate+(level-1)) = (CASE WHEN TO_CHAR(TRUNC((pStartDate+(level-1)),'year'),'DY') = 'SAT'                                                        /* If New Year's falls on SAT, observe on Friday */
                                                      THEN TRUNC((pStartDate+(level-1)),'YEAR')- INTERVAL '1' DAY                                    
                                                      WHEN TO_CHAR(TRUNC((pStartDate+(level-1)),'year'),'DY') = 'SUN'                               /* If New Year's falls on SUN, observe on Monday */
                                                      THEN TRUNC((pStartDate+(level-1)),'YEAR')+ INTERVAL '1' DAY
                                                      ELSE TRUNC((pStartDate+(level-1)),'year')
                                                 END)
              /* Martin Luther King Day (Third Monday in January) */
              OR (pStartDate+(level-1)) = (CASE WHEN TO_CHAR(TRUNC((pStartDate+(level-1)),'YEAR'),'DY') = 'MON'
                                                      THEN TRUNC((pStartDate+(level-1)),'YEAR')+ INTERVAL '14' DAY
                                                      ELSE NEXT_DAY(TRUNC((pStartDate+(level-1)),'YEAR'),'MONDAY')+ INTERVAL '14' DAY
                                                 END)
              /* Washington's Birthday (Third Monday in February) */
              OR (pStartDate+(level-1)) = (CASE WHEN TO_CHAR(ADD_MONTHS(TRUNC((pStartDate+(level-1)),'YEAR'),1),'DY') = 'MON'
                                                      THEN ADD_MONTHS(TRUNC((pStartDate+(level-1)),'YEAR'),1)+INTERVAL '14' DAY
                                                      ELSE NEXT_DAY(ADD_MONTHS(TRUNC((pStartDate+(level-1)),'YEAR'),1),'MONDAY')+ INTERVAL '14' DAY
                                                 END)
              /* Memorial Day (Last Monday in May) */
              OR (pStartDate+(level-1)) = (CASE WHEN TO_CHAR(ADD_MONTHS(TRUNC((pStartDate+(level-1)),'YEAR'),5)- INTERVAL '7' DAY,'DY') = 'MON'
                                                      THEN ADD_MONTHS(TRUNC((pStartDate+(level-1)),'YEAR'),5)- INTERVAL '7' DAY
                                                      ELSE NEXT_DAY(ADD_MONTHS(TRUNC((pStartDate+(level-1)),'YEAR'),5)- INTERVAL '7' DAY,'MONDAY')
                                                 END)
              /* Independence Day (Always 07/04) */
              OR (pStartDate+(level-1)) = (CASE WHEN TO_CHAR(TRUNC(TO_DATE('07/04/' || TO_CHAR(pStartDate+(level-1),'YYYY'),'MM/DD/YYYY')),'DY') = 'SAT'                          /* If Independence Day falls on SAT, observe on Friday */
                                                      THEN TO_DATE('07/04/' || TO_CHAR(pStartDate+(level-1),'YYYY'),'MM/DD/YYYY')- INTERVAL '1' DAY
                                                      WHEN TO_CHAR(TRUNC(TO_DATE('07/04/' || TO_CHAR(pStartDate+(level-1),'YYYY'),'MM/DD/YYYY')),'DY') = 'SUN'      /* If Independence Day falls on SUN, observe on Monday */
                                                      THEN TO_DATE('07/04/' || TO_CHAR(pStartDate+(level-1),'YYYY'),'MM/DD/YYYY')+ INTERVAL '1' DAY
                                                      ELSE TO_DATE('07/04/' || TO_CHAR(pStartDate+(level-1),'YYYY'),'MM/DD/YYYY')
                                                 END)
              /* Labor Day (First Monday in September) */
              OR (pStartDate+(level-1)) = (CASE WHEN TO_CHAR(ADD_MONTHS(TRUNC((pStartDate+(level-1)),'YEAR'),8),'DY') = 'MON'
                                                      THEN ADD_MONTHS(TRUNC((pStartDate+(level-1)),'YEAR'),8)
                                                      ELSE NEXT_DAY(ADD_MONTHS(TRUNC((pStartDate+(level-1)),'YEAR'),8),'MONDAY')
                                                 END)
              /* Columbus Day (Second Monday in October) */
              OR (pStartDate+(level-1)) = (CASE WHEN TO_CHAR(ADD_MONTHS(TRUNC((pStartDate+(level-1)),'YEAR'),9),'DY') = 'MON'
                                                      THEN ADD_MONTHS(TRUNC((pStartDate+(level-1)),'YEAR'),9)+INTERVAL '7' DAY
                                                      ELSE NEXT_DAY(ADD_MONTHS(TRUNC((pStartDate+(level-1)),'YEAR'),9),'MONDAY')+ INTERVAL '7' DAY
                                                 END)
              /* Veteran's Day (Always 11/11) */
              OR (pStartDate+(level-1)) = (CASE WHEN TO_CHAR(TRUNC(TO_DATE('11/11/' || TO_CHAR(pStartDate+(level-1),'YYYY'),'MM/DD/YYYY')),'DY') = 'SAT'                          /* If Veteran's Day falls on SAT, observe on Friday */
                                                      THEN TO_DATE('11/11/' || TO_CHAR(pStartDate+(level-1),'YYYY'),'MM/DD/YYYY')- INTERVAL '1' DAY
                                                      WHEN TO_CHAR(TRUNC(TO_DATE('11/11/' || TO_CHAR(pStartDate+(level-1),'YYYY'),'MM/DD/YYYY')),'DY') = 'SUN'      /* If Veteran's Day falls on SUN, observe on Monday */
                                                      THEN TO_DATE('11/11/' || TO_CHAR(pStartDate+(level-1),'YYYY'),'MM/DD/YYYY')+ INTERVAL '1' DAY
                                                      ELSE TO_DATE('11/11/' || TO_CHAR(pStartDate+(level-1),'YYYY'),'MM/DD/YYYY')
                                                 END)
              /* Thanksgiving (Fourth Thursday in November) */
              OR (pStartDate+(level-1)) = (CASE WHEN TO_CHAR(ADD_MONTHS(TRUNC((pStartDate+(level-1)),'YEAR'),10),'DY') = 'THU'
                                                      THEN ADD_MONTHS(TRUNC((pStartDate+(level-1)),'YEAR'),10)+INTERVAL '21' DAY
                                                      ELSE NEXT_DAY(ADD_MONTHS(TRUNC((pStartDate+(level-1)),'YEAR'),10),'THURSDAY')+ INTERVAL '21' DAY
                                                 END)
              /* Christmas (Always 12/25) */          
              OR (pStartDate+(level-1)) = (CASE WHEN TO_CHAR(TRUNC(TO_DATE('12/25/' || TO_CHAR(pStartDate+(level-1),'YYYY'),'MM/DD/YYYY')),'DY') = 'SAT'                          /* If Christmas Day falls on SAT, observe on Friday */
                                                      THEN TO_DATE('12/25/' || TO_CHAR(pStartDate+(level-1),'YYYY'),'MM/DD/YYYY')- INTERVAL '1' DAY
                                                      WHEN TO_CHAR(TRUNC(TO_DATE('12/25/' || TO_CHAR(pStartDate+(level-1),'YYYY'),'MM/DD/YYYY')),'DY') = 'SUN'      /* If Christmas Day falls on SUN, observe on Monday */
                                                      THEN TO_DATE('12/25/' || TO_CHAR(pStartDate+(level-1),'YYYY'),'MM/DD/YYYY')+ INTERVAL '1' DAY
                                                      ELSE TO_DATE('12/25/' || TO_CHAR(pStartDate+(level-1),'YYYY'),'MM/DD/YYYY')
                                                 END)
              THEN 'HOL'
              ELSE TO_CHAR(pStartDate+(level-1),'DY')
              END) days
              , pStartDate+(level - 1) AS dt_day
              FROM dts
              CONNECT BY level <= pEndDate-pStartDate
         WHERE days IN ('HOL')
         DBMS_SCHEDULER.CREATE_SCHEDULE
         ( schedule_name   => 'FEDERAL_HOLIDAYS'
         , start_date      => TO_DATE('01/01/' || p_year,'MM/DD/YYYY')
         , repeat_interval => 'BYYEAR_DAY=' || lv_hol_schedule
         , end_date        => ADD_MONTHS(TO_DATE('01/01/' || p_year,'MM/DD/YYYY'), 12)
         , comments        => 'Federal Holidays'
         DBMS_SCHEDULER.CREATE_SCHEDULE
         ( schedule_name   => 'OFF_FEDERAL_HOLIDAYS'
         , start_date      => TO_DATE('01/01/' || p_year,'MM/DD/YYYY')
         , repeat_interval => 'BYYEAR_DAY=' || lv_offhol_schedule
         , end_date        => ADD_MONTHS(TO_DATE('01/01/' || p_year,'MM/DD/YYYY'), 12)
         , comments        => 'Federal Holidays'
         /* Still need to enable jobs that use these schedules as they are disabled automatically */
         DBMS_SCHEDULER.ENABLE( name => 'My Job');
    END;
    /This is an adaptation of a query I wrote to automatically figure out working days for a giving start and end date range. I tweaked it to return the days of which a US Federal Holiday falls and when it's observed. For example if Christmas fell on a Sunday it'd be observed on a Monday. So once we have the list of holidays we can add a week to them to get the days that are required for the run on the following week. After that I use the 11g LISTAGG function to aggregate that data into a single string that will be used to create the schedule per the calendar syntax requirements. Then the schedules are created.
    Please note that I drop the schedules at the start of the procedure which disables any jobs that use them. You'll need to enable those jobs again after the fact.
    Additionally, you can take the query I have hear and replace it to me your needs. I just provided it as an example. This procedure has been parameterized so it can be run again every year re-creating the schedules.
    Edited by: Centinul on Jan 31, 2012 10:54 AM

  • Need Help with "Not Enough Memory Error" when running executable (is my VI reworkable?)

    When I started making this VI, I had no clue about proper VI flow, sub-VI usuage, and much more I'm sure.
    The VI is a program that outputs a 0-5V digiatl signal to a relay board (to actuate an air cylinder) and monitors 4 input voltages (lets say from a pressure transducer) . The program would then shut down the corresponding output channel if a pressure threshold is not met.
    Surprissingly for my first LV program, The VI functions "fine" (the quotes are because I know my programming flow is a mess and probably not efficient) unitl I reach a given cycle count or time elasped, at which time my VI blows up and I receive an error for "not enough memory to complete operatoin".
    I am wondering if there is a simple DAQmx (or something else) command misplaced or missing that would solve this issue. When I started making this VI I had a poor top down design layout, or lack of one. I would like to believe I have learned a lot from making this program with no LV training and if I were to do it again I would utilize state machines and sub VI's more. However, with time not on my side and LV not a priority in my job I would like to know if this VI is reworkable..?
    I should also mention that this program is being run as an executable on a laptop without the full LV development software. I dont know if the executable creation process could have left to this problem either...
    Attached is LV version 10 and 11
    Thanks for the help
    Attachments:
    LCT_DAQmx v11.0.vi ‏173 KB
    LCT_DAQmx.vi ‏135 KB

    There are some things you can probabaly do fairly easily.  Four of the inner while loops appear to be very similar.  You could probably make a subVI from one of them and reuse the code.  Some of the shift registers are initialized and some are not.  I suspect that this is an error, although I did not look closely enough to determine which way is intended.  Read up on reentrancy.  You may need that for the subVI.
    The outer loop, if it is needed at all should be stopped by a front panel boolean, not by the Abort button.  Someone on the Forums has suggested that using the Abort button to stop a VI is like using a tree to stop a car - it works but may have undesirable consequences!
    Re-initializing the DAQ tasks and clearing them on each iteration is not very effficient, is slow, and may lead to problems.
    The inner inner while loops (inside On Cycle and Off Cycle) are very similar, differing mostly in the data written. Perhaps you only need Idle and Run (with Data as a parameter).  The inner inner loops might be combined with the outer loops with some change in the way the timing is handled.
    You Dequeue in two places in each loop.  There is no data dependency bewteen the two Dequeue functions, meaning that you cannot be sure which will execute first.  Also, none of the Dequeues has a timeout set. They will wait forever if no data is available.  Queues should not usually be read in more than one location to avoid loss of data or confusion about which data came first.
    Lynn

  • A little help with Jobs

    Hi Everyone,
    I am working on Oracle Apex sitting on Oracle 10g in Windows XP while developing.
    I would like to schedule a job that sends an e-mail. The e-mail works fine as I tried running the code in the SQL Workshop and it works fine.
    However while trying to schedule it in the database itself, I ran into some problems. In view of that..
    1. What exactly is the host username? (I have tried 'orcl')
    2. What is the DB username (I have tried 'orcl', sys (which I used to log in to the em ) and admin (which I use to log in to Oracle Apex))
    When I tried to schedule the jobs I get an error telling me that the password provided for the 'user' is wrong. It is displaying that the user it has taken in, is in actuality my Schema name...
    furthermore, in one particular try I had created the SQL script logged in as the user 'SYS' .. had given the Host username as 'orcl' and the DB username as 'admin' . After the jobs successfully NOT running, I am now unable to edit or delete the job. When trying to view it, I get the error as
    jobType - jobType page property expected
    May I know what mistake I am committing? I guess that it is somewhere in the authentication for the jobs.
    Please help!
    Thank You
    P.S. I am not sure whether to have put this query in the 10g database forum or over here. However since I am working on ApEx I thought it might be better here

    Hi,
    Have you check DBMS_SCHEDULER package ?
    http://www.oracle-base.com/articles/10g/Scheduler10g.php
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sched.htm
    Br,Jari

  • Need your help with the following 3 error messages that now appear on my PDF document.

    Hi all,
    I have been working on a PDF document for university for the last 4 months. Its a PDF document which I have been filling in as I go along and saving without any problems.
    Today however I try to open it for work and this is what I get in succession...
    "This document enabled extended features in Adobe Reader. The document has been changed since it was created and use of extended features is no longer available. Please contact the author for the original version of this document"
    "An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem"
    "The font 'GTAJBY +Bliss-Regular' contains a bad /BBbox."
    This has never done this before and even when I tried to open my backup file it did the same.
    Can someone please help me? I have so much work thats potentially lost on this....
    (Also, I am not much of a computer head, so please keep it in layman's terms)
    Thanks in advance everyone...

    I am having same problem with a 2011 year tax PDF fill in form I JUST got from IRS website.
    The actual form is the 2011 8829.
    I am running Windows 7 64 bit,   Adobe Reader X version 10.1.4.
    After trying to open the doc (nothing displays) I go to properties, and it says ...
    Title:  2011 Form 8829
    Author:  SE:W:CAR:MP
    Created: 12/23/2008
    PDF Producer:  Adobe LiveCycle DSesigner ES 8.2.
    PDF Version:  1.7 (Acrobat 8.x)
    Tagged PDF: No
    Fast Web View:  No
    Yikes ... was hospitalized last year ... now I have 9 days to file.

  • Need help with coding: getting an error

    Hi there everyone, this would be my first post here, and my first post on any forum related to programming. Im taking a highschool computer science course, in which we are learning J2SE. I have read ahead a bit, and am having trouble with the following program:
    //=============================================================================
    //Converts US Dollars To Euros
    //=============================================================================
    public class currencyconverter1
         private Double dollarRate = 1.00000;
         private Double conversionRate = 1.22990;
         private Double dollarAmount = 0.0;
         private Double euroAmount = 0.0;
              public static void main convert Double(euroAmount)
                   dollarAmount = euroAmount*conversionRate;
                   System.out.println(dollarAmount);
                   return euroAmount
                   }JCreator is telling me I need a '(' on the "main" line. I simply cannot find where this is needed. Can anyone help, or recommend another forum where I may find some help? Thanks in advance!

    Thanks for the reply... I tested out your code, and it didn't compile, so after playing with it, heres what I got to compile (please read past the code):
    public class currencyconverter1
         private Double dollarRate = 1.00000;
         private Double conversionRate = 1.22990;
         private Double dollarAmount = 0.0;
         private Double euroAmount = 0.0;
         public Double convert (Double euroAmount)
              dollarAmount = euroAmount * conversionRate;
              System.out.println(dollarAmount);
              return euroAmount;
    }It gives me the following message when I execute the .exe: "Exception in thread "main" Java.Lang.NoSuchMethodError: Main" ....
    Does anyone know what the deal is and can explain wnat my source code error is? Thanks again in advance.

  • Need help with Acrobat Xi installation error

    Here is the error I am getting...
    Exit Code: 7 Please see specific errors below for troubleshooting. For example,  ERROR:   -------------------------------------- Summary --------------------------------------  - 0 fatal error(s), 3 error(s)    ----------- Payload: Acrobat Professional 11.0.0.0 {23D3F585-AE29-4670-8E3E-64A0EFB29240} -----------  ERROR: Error 1311.Source file not found: C:\Windows\Installer\Data1.cab.  Verify that the file exists and that you can access it.  ERROR: Install MSI payload failed with error: 1603 - Fatal error during installation. MSI Error message: Error 1311.Source file not found: C:\Windows\Installer\Data1.cab.  Verify that the file exists and that you can access it.  ERROR: Third party payload installer AcroPro.msi failed with exit code: 1603  ------------------------------------------------------------------------------------- "Windows 7.  Have tried installation several times.  Need help now, considering I am paying for this service!

    Thank you for the replies. 
    Jeff, I will check that link and try what is suggests.
    Bill, to answer your questions...
    1. This is a CC installation.
    2. Yes, I am logged in as the admin and I have no anti-virus other than Microsoft Essentials enabled.
    3. This is a download installation.
    To give even more info that might help, I am using a Windows 7 machine with more than enough capability to run CC.  I had installed Photoshop, Illustrator, among other apps successfully.  I then tried the Acrobat XI installation.  Acrobat XI downloaded and extracted, but when it started installing it froze around 50% and then I received the installation failed error from Windows.  Once that was confirmed the CC install progress finishes but shows failure.  The More Info reveals the error I pasted in above.  Afterward, none of the CC apps worked properly and had to be uninstalled.  So, next I installed the CC downloader and tried to start installing Acrobat XI first but the same error occurred.  That's when I got frustrated and posted my original message.  My limited knowledge leads me to think the error issue lies in the AcroPro.msi file but I have no idea what that is or how to find, correct, or install it.
    Thanks again for any help you can provide.  I'm really frustrated that I'm paying for something that I can't use.

  • Someone please help with Photoshop CS5 opening error

    Everytime I try to open Photoshop CS5 on my Macbook Pro, it starts to load and then right after it says "Initializing panels..." it stops loading and an error message error pops up and says "Could not initialzie Photoshop because of a program error." I'm not sure at all what I did to cause this. I have Premire CS5 and After Effects CS5 also installed and those load and work perfectly fine. Photoshop just stopped working all of a sudden. Photoshop is running in 64 bit mode but i also tried to run it in 32 bit mode and that did not work either.
    Thank you for anyone that helps.
    Here are all my specs:
    - Macbook Pro
    - Mac OS X 10.5.8
    - 8 GB RAM
    - ~6 GB left of space on my harddrive
    - Photoshop CS5 Version 12.0

    xstatic606 wrote:
    …- ~6 GB left of space on my harddriveæ
    That is pathetic little disk space available. 
    Keep in mind that the OS must share that itty bitty space with Photoshop's Scratch Disk.  As a point of reference, I keep a modest, dedicated 160-GB dedicated second internal drive for my Photoshop Scratch Disk alone.
    xstatic606 wrote:
    …Photoshop CS5 Version 12.0
    You should be running Photoshop 12.0.2.
    Wo Tai Lao Le
    我太老了

Maybe you are looking for

  • Upgrade to Windows 8.1 Pro Update 1 and it killed all my 3rd party drivers

    Hoping someone can help - my PC upgraded Windows 8.1 Pro (fresh install a few months ago) with the 'Update 1 patch' which was made available a few days ago.  It was done via Windows Update - I let it do its thing for about 15 minutes, restart etc. On

  • To retrieve the mesage body in HttpServletRequest

    I used getReader () method for reading the message body in the request like: protected void doGet(HttpServletRequest req,HttpServletResponse rep)throws ServletException,IOException{ PrintWriter out=rep.getWriter(); rep.setContentType("text/plain"); t

  • Broken Wire? (SBS 5.1 560)

    First off, I've had this SBS 5.1 560 sound system for about a year and a couple months. As time went on, it got to the point with my SBS 5.1 560 speaker setup that the sound from my left speaker would "crack in and out" occasionally. By messing with

  • IPhoto shows thumbnails & full size as negs

    Several of my Black & White photos have gone from being good pictures to something that looks like a neg. These were all showing up properly in the past, but periodically this happens and always to b&w scans. the only way I've been able to fix them h

  • How can I get this effect?

    Hello! Good day to all. I was wondering if any of you experienced photoshop users can help me to learn how to get this effect. Here is the "before edition" image: And here is the "after edition" image: I got this effect playing around with filters in