Hi, i start a Timer (step 1 sec.) the timer should stop after the 15's event. So i added a session value for a counter. After the 15 event timerstop was fired but the timer is still running.

Anyone an idea what could be wrong

regards Dirk

    Procedure UKTI_TimerStart
    is
    Begin
      api_session.add('ImportCounter', 0);
      api_timer.starttimer('tUKTICheckFinish');
    End;

   procedure UKTI_TimerExpired
    is
      v_counter int;
      v_dataimport int;
    Begin

      v_counter := api_session.getvaluenr('ImportCounter');
      api_debug.log('Timercounter: ' || to_char(v_counter));

      select count(*) into v_dataimport from TODAYSimport;

      if ( nvl( v_dataimport ,0)> 0) then
        api_debug.log('Data found: Rows Imported: ' || to_char(v_dataimport ));
        api_timer.stoptimer('tUKTICheckFinish');

        --Do
        UKTI_ProcessDataImported;

      elsif (v_counter > 15) then
        api_debug.log('Break in wait for Data !! ');
        api_timer.stoptimer('tUKTICheckFinish');

      else
        v_counter := v_counter +1;
        api_session.add('ImportCounter', v_counter);

      end if;

    end;

asked 29 Jan '15, 07:10

Dirk's gravatar image

Dirk
133
accept rate: 0%


Ok ! After restart of the Database Server, all is working as expected. Thanks Dirk

link

answered 30 Jan '15, 02:51

Dirk's gravatar image

Dirk
133
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×10

Asked: 29 Jan '15, 07:10

Seen: 605 times

Last updated: 30 Jan '15, 02:51


© Copyright Gerger 2017