Controlling a thread's processing time

Hey there. I know this subject is found everywhere, but I really couldn't find an answer to my problem... yet :)
I have to support Runnable object not written by me, so I don't have access to their source code (decompiling them is not an option). So, I can't rewrite the run() method. Example:
public class MyClass extends Runnable{
  public void run(){
      sleep(10000); //sleep for 10 seconds
}I need to do something like
  new Thread(new MyClass()).start();make it run and, if it takes longer than x seconds, then stop them no matter what, even if they leave some corrupt variables.
I tried plenty of things but couldn't make it work. Pseudo code could be somthing like:
  Thread t = new Thread(new Myclass());
  t.start();
  Wait for t to terminate for 3 seconds; //note that I can't use t.wait(3000), since I can't call notify() from inside t.
  If (t didn't finalize yet)
    Kill the bastard and System.out.println("Forced to terminate!");
  else
    System.out.println("Great job!");Also, if the thread ends before the 3 seconds period, I would like not to keep waiting for the 3 seconds. That is, I don't want to call Thread.sleep(3000) after t.start();
Any piece of advise here? Thanks in advance!

Extending further on the defined problem if say there are multiple threads invoked
Thread threads[] = new Thread[10]
for (int = 0 , i < 10 ; i++) {
threads= new Thread();
threads[i].start();
If the main thread should wait for max X seconds would it be possible to use join(ms) or I have to do an explicit wait and then kill all alive threads in the array?
Would there be any concurrency issues related to the approach?

Similar Messages

  • Issue with webservice data control while invokin bpel process from ADF side

    Hello Experts,
    we are creating webservice data control to invoke bpel process from ADF side.
    When I run the application and inovoke the bpel every thing is working fine.
    But when we are changeing the instances from DEV to SIT the bpel url(hostname and port) will change.
    So we just edited DataControls.dcx file and we just replaced the wsdl url and trying to run the applicaiton.
    This time the applicaiton is not invoking the bpel process.
    If I remove the webservice data control and recreate it with new WSDL url then it is working fine.
    Can any one tell us what the exact issue is. Is there any other files do i need to modify or etc.
    Thanks & Regards
    Gayaz

    DataControls.dcx & connections.xml (.adf/META-INF)

  • Processing time

    Hi guys,
    my question is this: I should to use the Processing time(WRPL-BZTEK) defined in customizing (SPRO>Materials Management>Purchasing>Purchase Requisition>Processing Time) in according to material type and not to side/division as such is now.
    My purpose is to enlarge the processing time purchasing (or the planned delivery time) to modify the delivery date scheduled by MRP.
    Is there a user-exit\Badi to implement this?Is necessary to modify the standard and if this is the one way how and where can I act?
    Thanks in advance to all,bye
    Maximilian

    Hello, Riva
    Processing Time: (configuration setup)
    Here, you define the plant-specific purchasing department processing time.
    And the processing time is the time required by the buyer to convert a requisition into a purchase order. And the processing time is taken into account during the scheduling process for externally procured materials within the framework of materials planning and control.                                                  
    Actions                                                                
    Suggestion:   
    Maintain the purchasing department processing time for each plant.
    Processing time required by purchasing department.
    -> Time that the purchasing department requires to convert a purchase requisition into a purchase order.                                      
    The usage of this configuration setup is
    -> The purchasing department processing time is included in the computation of the delivery date.
    Table Name: WRPL (i.e, for Replenishment: quantities per customer/material)
    Field Name: SRP_BZTEK (i.e, for Processing time required by purchasing department)
    Data element: BZTEK (i.e, data element for processing time for purchase department)                                                                         
    If you want to change the length of the field BZTEK (allowable characters is 2), you can do it, by modifying the TWO TABLES (i.e, T399D (Control parameters for MRP &
    WRPL (Replenishment: quantities per customer/material)) using the Acess key (from SAP)
    Importent Note: Before you modify it, you need to check with the PP &MM (since this requirement belongs to both modules)
    Suggestion: As per my knowledge this (processing time for PR) configuration setup is for the plant (or plants).
    Hope this will clarifies you,
    Reward, if it helps,
    Regards,
    Srin.K

  • Purchase efficiency and processing time in purchasing

    Hi friends,
    here purchase efficiency they want to find out, please suggest me any report and please do let me know use of  processing time in purchasing
    Thanks and regards,
    Balakrishna R.V

    Processing time-
    It is the time required by buyer to convert PR into PO.
    You can maintain the Processing time on plant basis.
    The processing time is taken into account during the scheduling process for externally procured materials within the framework of materials planning and control
    for example- Planng time (to produce the material at vendor end)  + Processing time (time required by buyer) +GR processing (after receiving the material at plant) = the material available date ...Forward scheduling
    in reverse scheduleing it will bve otherway round to calculate the date on which I should communicate the vendor so that my schedules are met.
    You can see the details in SPRO > MM >Pur Req

  • Error in File IC Work Order Report_v3-3: Max processing time or Max records

    Hello Friends,
                          While running the Crystal report in Business Object Infoview, I am getting the below mentioned error when i am trying to go to the next page or trying to export all pages of report into PDF and any other format. I can see the first page in output and can export 1st page into PDF.
    2010-12-29 17:28:05
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Error in File IC Work Order Report_v3-3:
    Max processing time or Max records limit reached---- Error code:-2147215357 Error code name:internal
         at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)
         at com.crystaldecisions.sdk.occa.managedreports.ps.internal.f.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.managedreports.ps.internal.f.getPage(Unknown Source)
         at com.businessobjects.report.web.event.q.a(Unknown Source)
         at com.businessobjects.report.web.event.q.a(Unknown Source)
         at com.businessobjects.report.web.event.bq.a(Unknown Source)
         at com.businessobjects.report.web.event.bt.broadcast(Unknown Source)
         at com.businessobjects.report.web.event.ak.a(Unknown Source)
         at com.businessobjects.report.web.a.p.if(Unknown Source)
         at com.businessobjects.report.web.e.a(Unknown Source)
         at com.businessobjects.report.web.e.a(Unknown Source)
         at com.businessobjects.report.web.e.if(Unknown Source)
         at com.crystaldecisions.report.web.viewer.CrystalReportViewerUpdater.a(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)
         at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.do(Unknown Source)
         at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    Please Help.
    Thanks,
    Ziad Khan

    Ok it looks to me that there are more than 20000 rows in your backend system that have to be fetched.
    You can change this limit in the Central Management Console . Login as administrator and go to Servers . Double-click on the Crystal Processign server and change the value in the field Database Records Read When Previewing or Refreshing (0 for unlimited) according to your needs. AFter the change you have to restart the Crystal processing server.
    Regards,
    Stratos

  • How to include processing time in the  LogFormat in httpd.conf of OAS

    Hi,
    I want to add processing time parameter in the LogFormat of the HTTP requests in Application server logs file.
    i tried to edit the httpd.conf file which orginally is as below
    LogFormat "%h %l %u %t \"%r\" \"%{Cache-Control}i\" CC \"%{Cache-Control}o\" %>s %b" common
    to
    LogFormat "%h %l %u %t *%T* \"%r\" \"%{Cache-Control}i\" CC \"%{Cache-Control}o\" %>s %b" common
    But doing so, did not add the Processing time in the GET and POST requests.Although same works for Apache HTTP server.
    I want to know how do i add the Processing time attribute in the LOGFormat.
    By Default the LogFormat is Common, what are the other possibilities fpr LogFormat.
    Please revert.
    Regards
    Ak

    Hi,
    1. To reduce the processing time for JMS -> IDOC scenario, try to get the Average processing time taken by JMS adapter, IE, IDOC adapter for the messages that are processed so far by going thro the Adapter Audit logs, SXMB_MONI race and Time in WE02 in R/3 system. Calculate this for 5 - 10 messages at different time to get the clear idea of which step is consuming more time. Then it will be helpful to focus on tuning that specific step.  If you are using BPM, check the processing time taken by PE.
    2. Check the Inbound and Outbound queues used by this interface, if required try to configure Prioritized Queue with more time allocated for this interface in Integration Engine.
    3. Check the load on the Integration Server when this Interface messages are getting processed, to understand/ isolate the interfaces which are consuming more processing time and system resources.
    4. If this is not in Production try to perform the Mapping/ transformation in graphical mapping itself, it will be helpful to minimise use of XSLT mapping to get better performance.
    5. Check if the Archive and Delete jobs are running successfully in the Integration Server, since this will free up the occupied resources in the system.
    6. If possible post seperate Forum questions for issues in different Interface scenarios, it will be easy to understand the problem for all of us.
    Hope this will be helpful,
    Regards,
    S.Santhosh Kumar

  • Kernel parameters -maximum threads per process

    How can we change the kernel parameters also how can we increase the maximum number of threads allowed .
    How can we increase maimum perocess per used id .

    There is no kernel parameter limiting the maximum
    number of threads allowed. If you are talking about
    user level threads, you will run into virtual address
    space limitations at about 3000 for a process
    assuming 32-bit address space and default
    stack size of 1M per thread, and assuming you are
    not using the alternate thread library (see threads(3thr))
    or Solaris 9. If you need more than this many
    threads at the same time, I suspect you are doing something
    incorrectly. Otherwise, try using a smaller stack size
    per thread. If you are running on Solaris 9, or using
    the alternate thread library, both give you a 1x1
    thread model, i.e., each user thread has a corresponding
    kernel entity (lwp). In this case, you will cause
    your machine to hang by eating up all available
    space for lwp's. In either case, the question should be:
    "how do I limit the number of threads per process?", since
    there is currently no limitation other than space.
    In Solaris 9, you can use resource management to
    limit the number of lwp's (and therefore user threads)
    per process.

  • DBMS_PARALLEL_EXECUTE multiple threads taking more time than single thread

    I am trying to insert 10 million records from source table to target table.
    Number of chunks = 100
    There are two scenarios:
    dbms_parallel_execute(..... parallel_level => 1) -- for single thread
    dbms_parallel_execute(..... parallel_level => 10) -- for 10 threads
    I observe that the average time taken by 10 threads to process each chunk is 10 times the average time taken in case of single thread.
    Ideally it should be same which would reduce the time taken by a factor of 10 (due to 10 threads).
    Due to the above mentioned behavior, the time taken is the same in both cases.
    It would be great if anybody can explain me the reason behind such behavior.
    Thanks in advance

    Source Table = TEST_SOURCE
    Target Table = TEST_TARGET
    Both tables have 100 columns
    Below is the code:
    DECLARE
    l_task VARCHAR2(30) := 'test_task_F';
    l_sql_stmt VARCHAR2(32767);
    l_try NUMBER;
    l_stmt VARCHAR2(32767);
    l_status NUMBER;
    BEGIN
    l_stmt := 'select dbms_rowid.rowid_create( 1, data_object_id, lo_fno, lo_block, 0 ) min_rid,
                                       dbms_rowid.rowid_create( 1, data_object_id, hi_fno, hi_block, 10000 ) max_rid
                                       from (
                                       select distinct grp,
                                  first_value(relative_fno)
                                  over (partition by grp order by relative_fno, block_id
                                  rows between unbounded preceding and unbounded following) lo_fno,
                                  first_value(block_id )
                                  over (partition by grp order by relative_fno, block_id
                                  rows between unbounded preceding and unbounded following) lo_block,
                                  last_value(relative_fno)
                                  over (partition by grp order by relative_fno, block_id
                                  rows between unbounded preceding and unbounded following) hi_fno,
                                  last_value(block_id+blocks-1)
                                  over (partition by grp order by relative_fno, block_id
                                  rows between unbounded preceding and unbounded following) hi_block,
                                  sum(blocks) over (partition by grp) sum_blocks
                                  from (
                                  select relative_fno,
                                  block_id,
                                  blocks,
                                  trunc( (sum(blocks) over (order by relative_fno, block_id)-0.01) / (sum(blocks) over ()/100) ) grp
                                  from dba_extents
                                  where segment_name = upper(''TEST_REGION_SOURCE'')
                                  and owner = ''FUSION'' order by block_id
                             (select data_object_id from user_objects where object_name = upper(''TEST_REGION_SOURCE'') )';
    DBMS_PARALLEL_EXECUTE.create_task (task_name => l_task);
    DBMS_PARALLEL_EXECUTE.create_chunks_by_sql(task_name => l_task,
    sql_stmt => l_stmt,
    by_rowid => true);
    l_sql_stmt := 'insert into FUSION.TEST_REGION_TARGET(REGION_ID,REGION1,REGION2,REGION3,REGION4,
                             ...., REGION99
                             SELECT REGION_ID,REGION1,REGION2,REGION3,REGION4,
                             .....,REGION99
                             from FUSION.TEST_REGION_SOURCE WHERE (1=1) AND rowid BETWEEN :start_id AND :end_id ';
    DBMS_PARALLEL_EXECUTE.run_task(task_name => l_task,
    sql_stmt => l_sql_stmt,
    language_flag => DBMS_SQL.NATIVE,
    parallel_level => 10);
    -- If there is error, RESUME it for at most 2 times.
    l_try := 0;
    l_status := DBMS_PARALLEL_EXECUTE.task_status(l_task);
    WHILE(l_try < 2 and l_status != DBMS_PARALLEL_EXECUTE.FINISHED)
    Loop
    l_try := l_try + 1;
    DBMS_PARALLEL_EXECUTE.resume_task(l_task);
    l_status := DBMS_PARALLEL_EXECUTE.task_status(l_task);
    END LOOP;
    DBMS_PARALLEL_EXECUTE.drop_task(l_task);
    END;
    Edited by: 943978 on Jul 2, 2012 9:22 AM

  • How to enable EDT to interrupt the worker thread at any time?

    Hello, this is a Swing application - in order for EDT to be responsive, I do the graphical computation in another thread. The computation is very CPU intensive, and I notice the controls are a little jerky - that means the EDT can't get to event handling as fast as I would like. If I do a sleep in the computation thread, instead of work, then controls are smooth as silk - this proves to me that I am doing it right, it's just that the computation is hogging up the CPU. The initial priorities of both EDT and the computation thread are the same (4) - I tried to change the comp thread priority to minimal (1), with success. But even with the higher priority, EDT is still jerky. I even tried (I know gurus are gonna slap me for that) to change the priority of the EDT to max (10), from within the EDT, that was not successfull, the priority stayed at 4, but did not throw SecurityException.
    Anyway, how do I set it up, so that EDT can interrupt my thread, at any time, so EDT never has to wait for CPU?
    Mark

    But then I asked myself - then why, when I leave the computation thread sleeping, and still do "a little bit" of computation in EDT, it is smooth...
    the answer is quite amazing (at least to me, a newbie) - if the comp thread is not doing anything, the result is "simple" and ...
    it turns out, that if the thing that you are drawing, like a series of drawLine() calls, many of them, if the result is simple, like they together form a one long line, then Swing appears to do it faster, than if they do not form anything that can be simplified. It appears, that Swing merges your draw... calls as much as possible to actually make as few drawing calls as possible.

  • Control file not created at time of installtion

    control file not created at time of installtion of oracle database
    now how we can create it
    see alert file
    Dump file e:\ORacle\admin\new\bdump\newALRT.LOG
    Tue Sep 09 10:45:53 2003
    ORACLE V8.1.6.0.0 - Production vsnsta=0
    vsnsql=e vsnxtr=3
    Windows 2000 Version 5.0 , CPU type 586
    Starting up ORACLE RDBMS Version: 8.1.6.0.0.
    System parameters with non-default values:
    processes = 59
    shared_pool_size = 52428800
    large_pool_size = 614400
    java_pool_size = 20971520
    control_files = e:\ORacle\oradata\new\control01.ctl, e:\ORacle\oradata\new\control02.ctl, e:\ORacle\oradata\new\control03.ctl
    db_block_buffers = 19200
    db_block_size = 8192
    compatible = 8.1.0
    log_buffer = 32768
    log_checkpoint_interval = 10000
    log_checkpoint_timeout = 1800
    db_files = 1024
    db_file_multiblock_read_count= 8
    max_enabled_roles = 30
    remote_login_passwordfile= EXCLUSIVE
    global_names = TRUE
    distributed_transactions = 500
    instance_name = new
    service_names = new
    mts_dispatchers = (PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)
    open_links = 4
    sort_area_size = 65536
    sort_area_retained_size = 65536
    db_name = new
    open_cursors = 100
    os_authent_prefix =
    job_queue_processes = 0
    job_queue_interval = 10
    parallel_max_servers = 5
    background_dump_dest = e:\ORacle\admin\new\bdump
    user_dump_dest = e:\ORacle\admin\new\udump
    max_dump_file_size = 10240
    oracle_trace_collection_name=
    PMON started with pid=2
    DBW0 started with pid=3
    LGWR started with pid=4
    CKPT started with pid=5
    SMON started with pid=6
    RECO started with pid=7
    Tue Sep 09 10:45:55 2003
    starting up 1 shared server(s) ...
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    Tue Sep 09 10:45:58 2003
    create controlfile reuse set database new
    datafile 'e:\ORacle\oradata\new\system01.dbf',
    'e:\ORacle\oradata\new\temp01.dbf',
    'e:\ORacle\oradata\new\rbs01.dbf',
    'e:\ORacle\oradata\new\indx01.dbf',
    'e:\ORacle\oradata\new\tools01.dbf',
    'e:\ORacle\oradata\new\dr01.dbf',
    'e:\ORacle\oradata\new\users01.dbf'
    logfile 'e:\ORacle\oradata\new\redo01.log' size 1M,
    'e:\ORacle\oradata\new\redo02.log' size 1M,
    'e:\ORacle\oradata\new\redo03.log' size 1M resetlogs
    Tue Sep 09 10:46:03 2003
    ORA-1503 signalled during: create controlfile reuse set database new
    datafile...
    Tue Sep 09 10:46:03 2003
    alter database new open resetlogs
    ORA-1507 signalled during: alter database new open resetlogs...
    Tue Sep 09 10:46:14 2003
    alter database new character set WE8ISO8859P1
    Tue Sep 09 10:46:14 2003
    ORA-1507 signalled during: alter database new character set WE8ISO8859P1...
    Tue Sep 09 10:46:14 2003
    alter database new national character set WE8ISO8859P1
    ORA-1507 signalled during: alter database new national character set WE8ISO88...
    Shutting down instance (normal)
    License high water mark = 1
    Tue Sep 09 10:46:15 2003
    ALTER DATABASE CLOSE NORMAL
    ORA-1507 signalled during: ALTER DATABASE CLOSE NORMAL...
    archiving is disabled
    Starting up ORACLE RDBMS Version: 8.1.6.0.0.
    System parameters with non-default values:
    processes = 59
    shared_pool_size = 52428800
    large_pool_size = 614400
    java_pool_size = 20971520
    control_files = e:\ORacle\oradata\new\control01.ctl, e:\ORacle\oradata\new\control02.ctl, e:\ORacle\oradata\new\control03.ctl
    db_block_buffers = 19200
    db_block_size = 8192
    compatible = 8.1.0
    log_buffer = 32768
    log_checkpoint_interval = 10000
    log_checkpoint_timeout = 1800
    db_files = 1024
    db_file_multiblock_read_count= 8
    max_enabled_roles = 30
    remote_login_passwordfile= EXCLUSIVE
    global_names = TRUE
    distributed_transactions = 500
    instance_name = new
    service_names = new
    mts_dispatchers = (PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)
    open_links = 4
    sort_area_size = 65536
    sort_area_retained_size = 65536
    db_name = new
    open_cursors = 100
    os_authent_prefix =
    job_queue_processes = 4
    job_queue_interval = 10
    parallel_max_servers = 5
    background_dump_dest = e:\ORacle\admin\new\bdump
    user_dump_dest = e:\ORacle\admin\new\udump
    max_dump_file_size = 10240
    oracle_trace_collection_name=
    PMON started with pid=2
    DBW0 started with pid=3
    LGWR started with pid=4
    CKPT started with pid=5
    SMON started with pid=6
    RECO started with pid=7
    SNP0 started with pid=8
    SNP1 started with pid=9
    SNP2 started with pid=10
    SNP3 started with pid=11
    Tue Sep 09 10:46:30 2003
    starting up 1 shared server(s) ...
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    Tue Sep 09 10:46:31 2003
    alter database mount
    Tue Sep 09 10:46:34 2003
    ORA-00202: controlfile: 'e:\ORacle\oradata\new\control01.ctl'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    Tue Sep 09 10:46:34 2003
    ORA-205 signalled during: alter database mount...
    Dump file e:\ORacle\admin\new\bdump\newALRT.LOG
    Tue Sep 09 11:18:54 2003
    ORACLE V8.1.6.0.0 - Production vsnsta=0
    vsnsql=e vsnxtr=3
    Windows 2000 Version 5.0 , CPU type 586
    Starting up ORACLE RDBMS Version: 8.1.6.0.0.
    System parameters with non-default values:
    processes = 59
    shared_pool_size = 52428800
    large_pool_size = 614400
    java_pool_size = 20971520
    control_files = e:\ORacle\oradata\new\control01.ctl, e:\ORacle\oradata\new\control02.ctl, e:\ORacle\oradata\new\control03.ctl
    db_block_buffers = 19200
    db_block_size = 8192
    compatible = 8.1.0
    log_buffer = 32768
    log_checkpoint_interval = 10000
    log_checkpoint_timeout = 1800
    db_files = 1024
    db_file_multiblock_read_count= 8
    max_enabled_roles = 30
    remote_login_passwordfile= EXCLUSIVE
    global_names = TRUE
    distributed_transactions = 500
    instance_name = new
    service_names = new
    mts_dispatchers = (PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)
    open_links = 4
    sort_area_size = 65536
    sort_area_retained_size = 65536
    db_name = new
    open_cursors = 100
    os_authent_prefix =
    job_queue_processes = 4
    job_queue_interval = 10
    parallel_max_servers = 5
    background_dump_dest = e:\ORacle\admin\new\bdump
    user_dump_dest = e:\ORacle\admin\new\udump
    max_dump_file_size = 10240
    oracle_trace_collection_name=
    PMON started with pid=2
    DBW0 started with pid=3
    LGWR started with pid=4
    CKPT started with pid=5
    SMON started with pid=6
    RECO started with pid=7
    SNP0 started with pid=8
    SNP1 started with pid=9
    SNP2 started with pid=10
    SNP3 started with pid=11
    Tue Sep 09 11:18:57 2003
    starting up 1 shared server(s) ...
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    Tue Sep 09 11:18:58 2003
    alter database mount exclusive
    Tue Sep 09 11:19:01 2003
    ORA-00202: controlfile: 'e:\ORacle\oradata\new\control01.ctl'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    Tue Sep 09 11:19:01 2003
    ORA-205 signalled during: alter database mount exclusive...
    Shutting down instance (abort)
    License high water mark = 5
    Instance terminated by USER, pid = 1156
    Dump file e:\ORacle\admin\new\bdump\newALRT.LOG
    Tue Sep 09 11:22:12 2003
    ORACLE V8.1.6.0.0 - Production vsnsta=0
    vsnsql=e vsnxtr=3
    Windows 2000 Version 5.0 , CPU type 586
    Starting up ORACLE RDBMS Version: 8.1.6.0.0.
    System parameters with non-default values:
    processes = 59
    shared_pool_size = 52428800
    large_pool_size = 614400
    java_pool_size = 20971520
    control_files = e:\ORacle\oradata\new\control01.ctl, e:\ORacle\oradata\new\control02.ctl, e:\ORacle\oradata\new\control03.ctl
    db_block_buffers = 19200
    db_block_size = 8192
    compatible = 8.1.0
    log_buffer = 32768
    log_checkpoint_interval = 10000
    log_checkpoint_timeout = 1800
    db_files = 1024
    db_file_multiblock_read_count= 8
    max_enabled_roles = 30
    remote_login_passwordfile= EXCLUSIVE
    global_names = TRUE
    distributed_transactions = 500
    instance_name = new
    service_names = new
    mts_dispatchers = (PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)
    open_links = 4
    sort_area_size = 65536
    sort_area_retained_size = 65536
    db_name = new
    open_cursors = 100
    os_authent_prefix =
    job_queue_processes = 4
    job_queue_interval = 10
    parallel_max_servers = 5
    background_dump_dest = e:\ORacle\admin\new\bdump
    user_dump_dest = e:\ORacle\admin\new\udump
    max_dump_file_size = 10240
    oracle_trace_collection_name=
    PMON started with pid=2
    DBW0 started with pid=3
    LGWR started with pid=4
    CKPT started with pid=5
    SMON started with pid=6
    RECO started with pid=7
    SNP0 started with pid=8
    SNP1 started with pid=9
    SNP2 started with pid=10
    SNP3 started with pid=11
    Tue Sep 09 11:22:15 2003
    starting up 1 shared server(s) ...
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    Tue Sep 09 11:22:16 2003
    alter database mount exclusive
    Tue Sep 09 11:22:19 2003
    ORA-00202: controlfile: 'e:\ORacle\oradata\new\control01.ctl'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.

    Hi Kuljeet,
    since you have a Windows system, I suggest you to open Windows explorer and check if all the 3 control files are there or not in the given location. It seems that your control01.ctl file is missing. If so then you have 2 options;
    1. Delete the entry from the parameter file for this control file so that Oracle does not use this file at all.
    OR
    2. Shut down your database normally and then copy the control02.ctl or control03.ctl manually with the copy command and rename it to control01.ctl. If you follow this option you need not delete the control01.ctl entry from the parameter file. But note to copy the control file the database has to be shutdown normally.

  • How to find query processing time?

    im using Oracle Express Edition
    i want to find the processing time of a query?,
    anyone please specify briefly how to find the query processing time
    can i get the processing time of a query by using Express edition or should i install Enterprise Edition.
    with regards,
    ravikanth.

    This link will help
    http://forums.oracle.com/forums/thread.jspa?threadID=2210335&tstart=0

  • STAD : Processing time when calling c program

    Hi,
    when I look at the central instance of our system, I see that much of the response time is recorded as "Processing time". Much more than 2 * cpu time. According to sap performance optimisation guide, this implies CPU or network bottleneck. We have no such bottleneck at this time.
    I am wondering if the time spent in a c program when called from a function is recorded as processing time because the system has no way of calculating its ressource usage ?
    Thank you
    Thierry

    Hi Thierry,
    For your CPU's.... if they are 16 cores in total then yes, you appear overloaded and semaphore waits can occur with so many things sharingthe OS memory areas.
    For monitoring STD Dialog in fact it is easier than you think. Here are 2 processes that you should find handy.
    Creating a usable monitor in RZ20
    1. Go to RZ20 and from the menu choose Extras - Activate Maintenenace Function
    2. Click on the Create button (blank page button) And in the popup, press enter and in the next popup type Thierry and press enter.
    3. Under My Favourites you should now see Thierry, single click this and click the Create button again.
    4. On the next screen single click on the work New Monitor and click the Create button again, press enter on the pop up and on the next popup Type Standard Dialog Response Time (or similar) and press enter
    5. Now single click on the line that says Standard Dialog Response Time and click the Create button again.
    6. In the Popup change the radio button option to Rule Node and press enter
    7. On the next Popup, in the Rule field do a drop down and double click on CCMS_GET_MTE_BY_CLASS and press enter
    8. On the next popup in the R3System Field do a dropdown and double click on the word <CURRENT> (it is important to choose this option) and in the MTECLASS field paste the word R3DialogDefLoadTime and press enter.
    9. Now you are backon the main screen, press the standard Save button, in the Popup type the word Performance and press enter.
    10.Now expand your monitor set and double click on the performance word to get the monitor, expand Standard Dialog Response time and you will be able to see the current performance of all instances.
    Now you have an RZ20 performance monitor you can add other nodes in here like dialog steps per minute, CPU, Paging and even context switches. Have a look at the SAP CCMS Monitor Templates - Entire System - Application Server - <instance> - R3Services - Dialog for some really useful ones. To get the MTECLASS single click on a noce and click the Properties button.
    Because you set up your collector system as <CURRENT> you can now export you defined monitor and import it into another system within seconds!... very very handy. It is just an XML you can have saved on your PC.
    Saving Standard Dialog Response Time History in RZ23N
    1. Go to transaction RZ23N and click on the button Assign Procedure
    2. In the middle panel of the top three panels click on the binoculars and find R3DialogDefLoadTime and come out of the find popup with a cancel (not a tick) so that R3DialogDefLoadTime is highlighted.
    3. In the left hand pane single click on your system (or if it is the only system and you do system copies, choos ethe * option)
    4. In the right hand pane single click on the option SAP_MIN_COLLECTION__NO_AGGREGATION
    5. Now you have the system, the MTECLASS and the collection method highlighted, click the button Assign Procedure
    and thats it!.... you will now keep 8 days (or a few more worth of data) but it reorgs itself... two jobs will now be running to collect and reorg the data. Go to the main RZ23N screen and press Collection/reorganisation jobs to see them without the hasstle of SM37.
    Click on the Maintain Schemas button to even create your own collection schemas. You may want to have one that aggregates values all the way up to yearly values. This is a lovely transaction. I recommend avoiding using weekly collection until you read teh help.
    Click in the 'Overview of Available Data' to be able to see the data collected and even graph it or copy it out to excel. You can run the reports in place also but its too much to mention here
    The Rolls Royce Reporter
    BI now has standard cubes to collect CCMS data from RZ23N and graph it. We do this for all our SLA data for customers and we in fact do it ourselves without BI help directly in the Central monitoring system so we have control and can design our own graphs that are far nicer than the horrible Solution Manager ones.
    feedback? your opinion?
    regards
    G

  • Response processing time causing pdf streaming issue

    My servlet invokes JasperReports to generate streamed pdfs. One report has a lengthy processing time due to 5 second delay from complex stored procedure. Is the length of time to process this request causing my response to fail? Is there a setting to allow certain time for the request to process? Thanks.

    That depends on the client. An average webbrowser will timeout the request after 30~60 seconds. This is catchable on the server side when OutputStream#close() throws an IOException (which is in case of for example Tomcat subclassed as ClientAbortException).
    If it gets really that long, consider firing a new thread to process the long running process and return some page which fires repeated requests for "status update" until it is finished. In old times you could do that with a meta refresh header, but nowadays you can do that nicely with ajaxical stuff.

  • What is Thread Safety in timer jobs on SharePoint?

    Hi All,
    What is Thread Safety in timer jobs on SharePoint?
    Thanks in advance!

    hi
    thread safety in timer jobs means the same as in other code: it should be possible to run multiple instances of the same job simultaneously. If job uses some shared resource, access to this resource should be synchronized. But the tricky moment is that it
    is not enough to just use standard .Net thread synchronization mechanisms here (e.g. lock), because in most cases Sharepoint runs on the server farm and the same job instance may be executed on different servers while standard synchronization mechanisms work
    within single process memory space (it is possible to guarantee that jobs are running on the same server by assigning preferrable server for timer jobs in Central administration > Content databases > content database, but often it is left to Sharepoint
    to decide on what server jobs are executed). In case of timer jobs you need to store some flag that job is started in some shared storage, e.g. in SPWebApplication.Properties:
    lock(obj)
    try
    if ((bool)web.AllProperties["jobstarted"])
    return;
    web.SetProperty("jobstarted", true);
    web.Update();
    finally
    web.AllProperties.Remove("jobstarted");
    web.Update();
    It is just idea and there is still minor possibility that 2 jobs instances may run at the same time (if 2nd job instances set jobstarted flar after 1st jobs checked it in AllProperties, but before 1st jobs set it), but it will solve most of the problems in
    reality. In order to make the code more secure you may use timestamps instead of flag.
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • Is it possible to reinitialise a control value to default each time the program redo his cycle in a while loop ?

    Is it possible to reinitialise a control value to default each time the program redo his cycle in a while loop ?
    My problem is that I have a numeric control (0 or 1) and I want taht wahn the numeric is 1 labview makes the writing process of my data but after that the control must return to 0 to write only one time.
    Is it possible ? I've tried some trials but none of them succeded

    well i'm student and i have to write a program for school i don't know labview very well.
    i post here the part of the program i have to do so you can see what i must do .
    The button pass with datasocket so i can't use boolean and the problem is that the value must be set to 1 only for one cycle (one writing of the values). so when th people set it to 1 in internet explorer for exemple the value must be considered as a impulsion and as it is it always do a lot of cycle until the man set it manualy to 0 what i don't want.
    Attachments:
    exemple.vi ‏9 KB

Maybe you are looking for

  • Could not reconnect all network drives

    I have several drives mapped on different Windows 7 boxes in my office.  Just about every time I boot up one of these systems I receive the message "Could not reconnect all network drives" in the system tray. I should note that merely clicking the dr

  • Zen Extra 30

    Hello I have just updated my Zen Extra 30GB unit to the latest firmware 2.0.03. I have also updated to Media Source 5.0.38 twice and still notice the following. )?? When I attach my player to my pc via usb, it is very slow to recognise the player, it

  • Selection on Oracle 8i Standard Edition and Enterprise Edition

    I have seen "Oracle8i: A Family of Database Products" which states the feature difference between oracle8i standard and enterprise edition, for example, failover, parallel server, ... However, if I only use one databse in my application then it seems

  • Purchase requisition problem?

    hi what is the difference when deletion indicator is set in purchase requistion line item in the item overview detail and and when we tick on the check box closed in the item detail.As far as my view is concerned both are same(no further purchase ord

  • Download fb photo to iPhoto

    Hi guys, is it possible to download all facebook photo at once to iphoto? Is there any plugin, app, etc that may do this task? Regards, Filippo