LONG RUNNING OPERATION의 진행상태 확인방법

제품 : ORACLE SERVER
작성날짜 : 2002-04-09
LONG RUNNING OPERATION의 진행상태 확인방법
==========================================
Oracle 8.0 부터 제공되고 있는 v$session_longops 는 단일 long running
operation에 대한 진행 상태를 operatoin별로 제공해 주는 view로 DSS, DW와
같은 long running job이 많은 system에서는 유용한 정보를 확인할 수 있는
table이다.
다음의 test는 oracle 8.1.6에서 이루어졌으며 v$session_longops
view는 oracle 8.0.x과 8.1.x에서 structure 상 조금의 차이가 있음을 미리
알려둔다.
Oracle 8i에서 이 dynamic view에서 다루어지는 operation들에는 다음의
것들이 있다.
Operation Description
Archiving (1)
Rman Backup and Restore
Parallel Query
Recovery ( Crash and Media )
Full Table scans (2)
Sorting
Analyze using DBMS_STATS Not seen yet
Hash Cluster Creation " " "
Hash Joins Phase 2 " " "
(1) : document로는 제공이 되고 있는 것으로 되어 있으나 아직 구현되지
않음
(2) : 10000 blocks 이상의 full table scan을 long operation으로 간주한다.
V$SESSION_LONGOPS COLUMNS
COLUMN DESCRIPTION
SID Session identifier
SERIAL# Session serial number
OPNAME The operation name
TARGET The object on which the operation is carried out
TARGET_DESC Description of the target
SOFAR The units of work done so far
TOTALWORK The total units of work
UNITS The units of measurement
START_TIME The starting time of operation
LAST_UPDATE_TIME Time when statistics last updated
ELAPSED_SECONDS The number of elapsed seconds from the start of
operations
CONTEXT Context
MESSAGE Statistics summary message
<TEST CASE>
### SESSION A ###
SQL> select userenv('sessionid') from dual;
USERENV('SESSIONID')
31948
SQL> SELECT COUNT(*) FROM PARTTAB;
--> waitting . . .
### SESSION B ###
SQL> connect internal
SQL> select opname, time_remaining, sofar, totalwork, message
2> from v$session_longops
3> where sid = 110 and time_remaining > 0;
OPNAME TIME_REMAINING
SOFAR TOTALWORK MESSAGE
Table Scan 138
75332 341590 Table Scan: SCOTT.PARTTAB: 75332 out of 341590
Blocks done
==> operation의 진행율이 약 22%로 138초가 남았음을 보여준다.
SQL> r
OPNAME TIME_REMAINING
SOFAR TOTALWORK MESSAGE
Table Scan 50
242846 341590 Table Scan: SCOTT.PARTTAB: 242846 out of 341590
Blocks done
==> operation의 진행율이 약 71% 로 약 50초가 남았음을 보여준다.
SQL> r
OPNAME TIME_REMAINING
SOFAR TOTALWORK MESSAGE
Table Scan 115
93889 324446 Table Scan: SCOTT.PARTTAB: 93889 out of 324446
Blocks done
==> TOTALWORK가 변한것으로 보아 다른 partition에 대한 full table scan이
진행중임을 알수 있다.
% v$session_longops에는 이미 종료되거나 취소된 operation들에 대한 정보가
남아 있게 되므로 active operation인지 먼저 확인해야한다.

Similar Messages

  • Should EntryProcessors be used for long-running operations?

    Hi Gene and All,
         a couple of other questions come from the seemingly unexhaustible list :-)
         - what happens if the caller of an InvocableMap.invokeAll or invoke method dies?
         - all entryProcessors complete regardless of the client being there or not
         - all already started process method calls complete, the unprocessed entries will not get processed
         - something else happens
         - what happens if the caller of an InvocableMap.aggregate method with a parallel-aggregator dies
         - all aggregate methods in the parallel-aggregator complete
         - the aggregate methods in the parallel-aggregator stop during processing
         - something else happens
         - should an entryprocessor or a parallel-aware entryaggregator implement a comparably long-running operation (e.g. jdbc access), or does that seriously affect performance of other concurrent operations within the cluster node or the entire cluster (e.g. becuase of blocking other events/requests)?
         - should the work manager be used instead for these kinds of things (e.g. jdbc access)?
         Thanks and best regards,
         Robert

    Robert,
         As soon as an EntryProcessor or EntryAggregator get delivered to the server nodes, it will get executed regardless of the requestor's state.
         In regard to long-running operations the only thing you have to be conscious about is a number of worker threads allocated for such a processing. Since there is a single client thread issuing a request, it would suggests allocation as many worker threads (across the cache server tier) as there are client thread (across the presentation/application tier).
         Regards,
         Gene

  • Moving files in Content and Structure View hangs on Long Running Operation Status window

    Hello,
    I have the following issue in a site collection: when I go to site content and structure and browse to a document library, and I select multiple documents, click actions --> move and give the target destination, the screen keeps hanging in LongRunningOperationProgress.aspx
    with the message "starting" and the running circle. The files do get moved, but the screen does not come back.
    In other site collections this works as normal, and when the LongRunningOperationProgress.aspx page is open, it also states (n of N files moved) or something similar. This status is missing in the faulty site collection.
    When I open https:\\<site collection url>\Long%20Running%20Operation%20Status\AllItems.aspx I see that an entry is created here with title "(no title)" and Status "NotStarted".
    I have included the ULS log, filtered on the thread ID. I am sure there are some clues there (like Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack>),
    but I can't figure out where to start solving this problem. The Windows event logs don't give any errors. This issue exists on both web front ends (tested locally). The farm is using 14.0.6106.5002.
    11-29-2011 16:11:29.74 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztu High LongRunningOperationJob.ThreadEntryPoint() about to call AppDomainUnloadListener.AcquireReaderLock(). 
    11-29-2011 16:11:29.74 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 6wyw Medium LRO - Background thread has been started, job=Site Content and Structure: Move. 
    11-29-2011 16:11:29.74 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztw Medium LongRunningOperationJob.UpdateStatus(): Running, this=50303060 
    11-29-2011 16:11:29.74 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztx Medium LRO - Starting status update: Running 
    11-29-2011 16:11:29.87 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:29.92 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:29.92 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 1ygq Unexpected LRO - failed to update status after 2 attempts - giving up 
    11-29-2011 16:11:29.93 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztw Medium LongRunningOperationJob.UpdateStatus(): Running, this=50303060 
    11-29-2011 16:11:29.93 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztx Medium LRO - Starting status update: Running 
    11-29-2011 16:11:30.04 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:30.10 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:30.10 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 1ygq Unexpected LRO - failed to update status after 2 attempts - giving up 
    11-29-2011 16:11:30.20 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (EnsureListItemsData). Execution Time=29.7716 
    11-29-2011 16:11:30.21 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8e2s Medium Unknown SPRequest error occurred. More information: 0x80070002 
    11-29-2011 16:11:30.21 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 72k4 Medium <nativehr>0x80070002</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:30.21 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High <nativehr>0x80070002</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:30.23 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8e2s Medium Unknown SPRequest error occurred. More information: 0x80070002 
    11-29-2011 16:11:30.23 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 72k4 Medium <nativehr>0x80070002</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:30.23 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High <nativehr>0x80070002</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:30.23 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztw Medium LongRunningOperationJob.UpdateStatus(): Running, this=50303060 
    11-29-2011 16:11:30.23 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztx Medium LRO - Starting status update: Running 
    11-29-2011 16:11:30.34 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:30.40 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:30.40 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 1ygq Unexpected LRO - failed to update status after 2 attempts - giving up 
    11-29-2011 16:11:30.40 w3wp.exe (0x0C04) 0x27F0 Web Content Management Site Management 8y3q Medium DeploymentWrapper.MoveItems() Export-Import begins. 
    11-29-2011 16:11:30.51 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Content Migration nasm High Starting Export. 
    11-29-2011 16:11:33.02 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Export) 
    11-29-2011 16:11:33.02 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Export). Execution Time=0.5154 
    11-29-2011 16:11:33.06 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Export) 
    11-29-2011 16:11:33.06 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Export). Execution Time=0.8865 
    11-29-2011 16:11:33.07 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Export) 
    11-29-2011 16:11:33.09 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Export). Execution Time=14.6208 
    11-29-2011 16:11:33.29 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Export) 
    11-29-2011 16:11:33.31 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Export). Execution Time=16.3934 
    11-29-2011 16:11:33.31 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Export) 
    11-29-2011 16:11:33.34 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Export). Execution Time=29.003 
    11-29-2011 16:11:33.62 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Export) 
    11-29-2011 16:11:33.63 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Export). Execution Time=1.2911 
    11-29-2011 16:11:33.63 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Export) 
    11-29-2011 16:11:33.63 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Export). Execution Time=0.5963 
    11-29-2011 16:11:35.29 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Content Migration nasm High Export completed. 
    11-29-2011 16:11:35.37 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Content Migration nasm High Initializing Import. 
    11-29-2011 16:11:35.46 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Content Migration nasm High Starting content import. 
    11-29-2011 16:11:35.46 w3wp.exe (0x0C04) 0x27F0 Web Content Management Site Management 8gyh Medium DeploymentWrapper.ReparentForCopyImport() List { newTargetParentUrl = /org/dnp/English/sites/na/internal_functions/rd/microbia/technical/Technical
    Documentation. } 
    11-29-2011 16:11:35.46 w3wp.exe (0x0C04) 0x27F0 Web Content Management Site Management 8gyh Medium DeploymentWrapper.ReparentForCopyImport() List { newTargetParentUrl = /org/dnp/English/sites/na/internal_functions/rd/microbia/technical/Technical
    Documentation. } 
    11-29-2011 16:11:35.49 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (import) 
    11-29-2011 16:11:35.49 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (import). Execution Time=0.4226 
    11-29-2011 16:11:35.49 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (import) 
    11-29-2011 16:11:35.56 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (import). Execution Time=68.3485 
    11-29-2011 16:11:35.57 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (import) 
    11-29-2011 16:11:35.70 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (import). Execution Time=117.3795 
    11-29-2011 16:11:35.70 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (import) 
    11-29-2011 16:11:35.70 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (import). Execution Time=0.5005 
    11-29-2011 16:11:35.70 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (import) 
    11-29-2011 16:11:35.70 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (import). Execution Time=0.4298 
    11-29-2011 16:11:35.70 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (import) 
    11-29-2011 16:11:35.90 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (Event Receiver (Microsoft.SharePoint.Taxonomy, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c,
    Microsoft.SharePoint.Taxonomy.TaxonomyItemEventReceiver)). Execution Time=21.7586 
    11-29-2011 16:11:35.98 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (EnsureListItemsData). Execution Time=19.2312 
    11-29-2011 16:11:35.98 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (Event Receiver (Microsoft.Office.DocumentManagement, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c,
    Microsoft.Office.DocumentManagement.LocationBasedMetadataDefaultsReceiver)). Execution Time=39.5371 
    11-29-2011 16:11:35.99 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (EnsureListItemsData). Execution Time=13.1132 
    11-29-2011 16:11:36.02 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (EnsureListItemsData#1). Execution Time=30.0577 
    11-29-2011 16:11:36.04 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (import). Execution Time=351.0371 
    11-29-2011 16:11:36.04 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztw Medium LongRunningOperationJob.UpdateStatus(): Running, this=50303060 
    11-29-2011 16:11:36.04 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztx Medium LRO - Starting status update: Running 
    11-29-2011 16:11:36.15 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:36.20 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:36.21 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 1ygq Unexpected LRO - failed to update status after 2 attempts - giving up 
    11-29-2011 16:11:36.21 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (import) 
    11-29-2011 16:11:36.37 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (Event Receiver (Microsoft.SharePoint.Taxonomy, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c,
    Microsoft.SharePoint.Taxonomy.TaxonomyItemEventReceiver)). Execution Time=22.1568 
    11-29-2011 16:11:36.45 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (EnsureListItemsData). Execution Time=19.8863 
    11-29-2011 16:11:36.46 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (Event Receiver (Microsoft.Office.DocumentManagement, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c,
    Microsoft.Office.DocumentManagement.LocationBasedMetadataDefaultsReceiver)). Execution Time=41.1921 
    11-29-2011 16:11:36.49 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (EnsureListItemsData#1). Execution Time=24.739 
    11-29-2011 16:11:36.49 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (import). Execution Time=293.9586 
    11-29-2011 16:11:36.51 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Content Migration nasm High Import completed. 
    11-29-2011 16:11:36.52 w3wp.exe (0x0C04) 0x27F0 Web Content Management Site Management 8y3t Medium DeploymentWrapper.MoveItems Export-Import ends. 
    11-29-2011 16:11:36.52 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztw Medium LongRunningOperationJob.UpdateStatus(): Running, this=50303060 
    11-29-2011 16:11:36.52 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztx Medium LRO - Starting status update: Running 
    11-29-2011 16:11:36.63 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:36.68 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:36.68 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 1ygq Unexpected LRO - failed to update status after 2 attempts - giving up 
    11-29-2011 16:11:36.68 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztw Medium LongRunningOperationJob.UpdateStatus(): Running, this=50303060 
    11-29-2011 16:11:36.68 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztx Medium LRO - Starting status update: Running 
    11-29-2011 16:11:36.79 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:36.84 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:36.84 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 1ygq Unexpected LRO - failed to update status after 2 attempts - giving up 
    11-29-2011 16:11:36.84 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztw Medium LongRunningOperationJob.UpdateStatus(): Running, this=50303060 
    11-29-2011 16:11:36.84 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztx Medium LRO - Starting status update: Running 
    11-29-2011 16:11:36.96 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:37.01 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:37.01 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 1ygq Unexpected LRO - failed to update status after 2 attempts - giving up 
    11-29-2011 16:11:37.06 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (EnsureListItemsData). Execution Time=18.5948 
    11-29-2011 16:11:37.09 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (Event Receiver (Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c,
    Microsoft.SharePoint.Publishing.Internal.PublishingWebEventReceiver)). Execution Time=51.4523 
    11-29-2011 16:11:37.09 w3wp.exe (0x0C04) 0x27F0 Web Content Management Site Management 8gxm Medium ObjectSerializer.DeleteListItem - deleted or recycled '/org/dnp/English/sites/na/internal_functions/rd/microbia/technical/Technical
    Documentation/Technical Documentation/test/000000_test2.txt' 
    11-29-2011 16:11:37.10 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztw Medium LongRunningOperationJob.UpdateStatus(): Running, this=50303060 
    11-29-2011 16:11:37.10 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztx Medium LRO - Starting status update: Running 
    11-29-2011 16:11:37.21 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:37.26 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:37.26 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 1ygq Unexpected LRO - failed to update status after 2 attempts - giving up 
    11-29-2011 16:11:37.29 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (EnsureListItemsData). Execution Time=18.5953 
    11-29-2011 16:11:37.32 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (Event Receiver (Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c,
    Microsoft.SharePoint.Publishing.Internal.PublishingWebEventReceiver)). Execution Time=50.4063 
    11-29-2011 16:11:37.38 w3wp.exe (0x0C04) 0x27F0 Web Content Management Site Management 8gxm Medium ObjectSerializer.DeleteListItem - deleted or recycled '/org/dnp/English/sites/na/internal_functions/rd/microbia/technical/Technical
    Documentation/Technical Documentation/test/000000_test1.txt' 
    11-29-2011 16:11:37.38 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztw Medium LongRunningOperationJob.UpdateStatus(): Successful, this=50303060 
    11-29-2011 16:11:37.38 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztx Medium LRO - Starting status update: Successful 
    11-29-2011 16:11:37.51 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:37.56 w3wp.exe (0x0C04) 0x27F0 SharePoint Foundation General 8kh7 High Invalid text value.  A text field contains invalid data. Please check the value and try again.<nativehr>0x81020018</nativehr><nativestack></nativestack> 
    11-29-2011 16:11:37.56 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 1ygq Unexpected LRO - failed to update status after 2 attempts - giving up 
    11-29-2011 16:11:37.56 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 6wyz Medium LRO - Total elapsed time of background thread was 00:00:07.8122551 , from  11/29/2011 3:11:29 PM  to  11/29/2011
    3:11:37 PM, job=Site Content and Structure: Move 
    11-29-2011 16:11:37.56 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 8ztv High LongRunningOperationJob.ThreadEntryPoint() about to call AppDomainUnloadListener.ReleaseReaderLock(). 
    11-29-2011 16:11:37.57 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 79ja Medium LongRunningOperationJob - Deleting items from LRO list 
    11-29-2011 16:11:37.57 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing 79jb Medium LongRunningOperationJob - Deleting top 100 items from LRO list 
    11-29-2011 16:11:37.59 w3wp.exe (0x0C04) 0x27F0 Web Content Management Publishing a3z7 Medium LongRunningOperationJob - Skipping Delete.  oldestCreatedDate - 11/23/2011 11:13:27 AM, maxAge - 7, now - 11/29/2011 4:11:37
    PM, itemCount - 14 

    Hi,
    From your error message, this occurs when the value you supplied for a text field is larger than 255 characters. To address the problem, store less text in the field
    or change the field type from text to note.
    http://blogs.msdn.com/b/sanjaynarang/archive/2009/03/21/custom-field-control-not-allowing-more-than-255-characters.aspx
    Thanks,
    Rock Wang
    Regards, Rock Wang Microsoft Online Community Support

  • V$session_longops not displaying a long running query

    Hi,
    There is a certain query that runs as a part of a stored procedure which when run takes about 1 and half hours to get completed and there is a hint in this query to use certain indexes on few tables.
    This time was unacceptable as it was much much longer than what it should have taken so I tried to monitor it through v$session_longops using the following query
    select * from v$session_longops where time_remaining > 0
    It shows no rows selected but the query is still running.
    When I changed the hint in the query to use the full table scan on these tables instead of the indexes it began to show up on the v$session_longops and it took like only 15 mins for the procedure execution to get completed.
    My questions are two fold
    1) Why did the first time with the Hint on the indexes not show up on v$session_longops with time_remaining > 0 and why did it show up only when i did a full table scan?
    2) Secondly is'nt a scan on a table faster using indexes if the index has unique values on the columns we are trying to get data from than the Full Table Scans. And if so then why is it behaving differently in this case.
    Thanks a lot in advance for any answers/suggestions

    1. v$session_longops only reports long running operations. The CBO assumes that the index scan is a tiny operation (nested loop joins), hence it is not displaying the query, but when you have a full table scan, the CBO assumes this to be a long operation, and hence it is visible in v$session_longops.
    2. Allow me to quote from
    "http://asktom.oracle.com/pls/ask/f?p=4950:8:17968334624783495563::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:9422487749968"
    "full scans are not evil, indexes are not good"
    "full scans are not evil, indexes are not good"
    "full scans are not evil, indexes are not good"
    Click that link for more information. :)
    The gist of it is, your CBO is smart, and hence generating a better plan than when you force it to use indexes. Yes, the plan has full table scans, but that is not a crime. What you can do is use optimizer parameters - "optimizer_index_cost_adj" to tune for a better performance, but you should not force an index unless you are sure that the index gives you a lower cost.
    You could paste the plan for you queries with and without hints and also paste the optimizer hints - show parameter optimizer.

  • I down loaded new OS X (Lion)operating system and discovered my CAD programs no longer run.  Is it possible to reload the original OS X and remove Lion?

    I down loaded new OS X (Lion)operating system and discovered my CAD programs no longer run.  Is it possible to reload the original OS X and remove Lion?

    If you backed up before the upgrade, restore the backup.
    If not you are going to have to erease the disk and install the older OS.
    You should back up any data you want before so that it can be restored afterwards.
    Is there a version of you CAD program that is Lion compatable? That would be an easier solution.
    Allan

  • Tracking completion status for long running DML operations

    Does anybody know:
    Is there any possibility to track a completion status for long running DML operations (for example how many rows is inserted)?
    For example if I execute an INSERT statement which is working for several hours it is very important to estimate the total time for this operation.
    Thanks forward

    I'm working with Oracle8 in present, and unfortunately this solution (V$SESSION_LONGOPS)cannot help me.
    On Oracle8 it works, but with some restrictions:
    - You must be using the cost-based optimizer
    - Set the TIMED_STATISTICS or SQL_TRACE parameter to TRUE
    - Gather statistics for your objects with the ANALYZE statement or the DBMS_STATS package.

  • Long running query--- included steps given by Randolf

    Hi,
    I have done my best to follow Randolf instruction word-by-word and hope to get solution for my
    problem soon. Sometime back I have posted a thread on this problem then got busy with other
    stuff and was not able to follow it. Here I am again with same issue.
    here is link for my previous post
    long running query in database 10gHere is backgroud of my requriemment.
    I am working on Oracle forms 10g which is using package given below. We want to display client information
    with order count basd on different status like Pending, Error, back Order, expedited, std shipping.
    Output will look something like.
    client name   pending    error   backorder   expedited   std shipping
    ABC            24         0       674          6789         78900
    XYZ            35         673    5700           0           798274
    .There are total 40 clients . The long running query are expedited and std shipping.
    When i run package from Oracle Form Developer it takes 3 mintues to run but when I run same query in our application using forms
    (which uses Oracle Application Server) it takes around 1 hour, which is completly unacceptable.
    User wants it be done in less than 1 mintue.
    I have tried combining Pending,error and backorder queries together but as far as I know it will not
    work in Oracle Form as we need a place holder for each status.
    Please dont think it is Forms related question, it is a Performance problem.
    PACKAGE BODY ORDER_COUNT_PKG IS
    PROCEDURE post_query IS
      BEGIN
           BEGIN
                SELECT count(*)
                  INTO :ORDER_STATUS.PENDING
                  FROM orders o
              WHERE o.status = 'P'
                   AND (parent_order_id is null
                    OR  (order_type='G'
                         AND parent_order_id=original_order_number))
                      AND  o.client = :ORDER_STATUS.CLIENT_NUMBER;
         EXCEPTION
           WHEN OTHERS THEN
           NULL;
           END;
             BEGIN
                 SELECT  count(*)
                   INTO  :ORDER_STATUS.ERROR
                   FROM  orders o
                  WHERE  o.status = 'E'
                    AND  (parent_order_id is null
                     OR  (order_type='G'
                           AND parent_order_id=original_order_number))
                       AND  o.client = :ORDER_STATUS.CLIENT_NUMBER;
                EXCEPTION
           WHEN OTHERS THEN
           NULL;     
            END;
           BEGIN
                SELECT count(*)
                  INTO :ORDER_STATUS.BACK_ORDER
                  FROM orders o
              WHERE o.status = 'B'
                   AND (parent_order_id is null
                    OR (order_type='G'
                         AND parent_order_id=original_order_number))
                      AND o.client = :ORDER_STATUS.CLIENT_NUMBER;
          EXCEPTION
           WHEN OTHERS THEN
           NULL;   
         END;
           BEGIN
                SELECT count(*)
                  INTO :ORDER_STATUS.EXPEDITE
                  FROM orders o,shipment_type_methods stm
                 WHERE o.status in ('A','U')
             AND (o.parent_order_id is null
              OR (o.order_type = 'G'
             AND o.parent_order_id = o.original_order_number))
             AND o.client = stm.client
             AND o.shipment_class_code = stm.shipment_class_code
             AND (nvl(o.priority,'1') = '2'
              OR  stm.surcharge_amount <> 0)
                      AND  o.client = :ORDER_STATUS.CLIENT_NUMBER
              GROUP BY  o.client;
              EXCEPTION
           WHEN OTHERS THEN
           NULL;          
         END;           
           BEGIN
                SELECT count(*)
                  INTO :ORDER_STATUS.STD_SHIP
                  FROM  orders o,shipment_type_methods stm
                 WHERE o.status in ('A','U')
             AND  (o.parent_order_id is null
              OR (o.order_type = 'G'
             AND o.parent_order_id = o.original_order_number))
             AND nvl(o.priority,'1') <> '2'
             AND o.client = stm.client
             AND o.shipment_class_code = stm.shipment_class_code
             AND stm.surcharge_amount = 0
                      AND o.client = :ORDER_STATUS.CLIENT_NUMBER
              GROUP BY o.client;
          EXCEPTION
           WHEN OTHERS THEN
           NULL;
           END;
      END post_query;
      END ORDER_COUNT_PKG;one of the query which is taking long time is
    SELECT count(*)
                   FROM  orders o,shipment_type_methods stm
                 WHERE o.status in ('A','U')
             AND  (o.parent_order_id is null
              OR (o.order_type = 'G'
             AND o.parent_order_id = o.original_order_number))
             AND nvl(o.priority,'1') <> '2'
             AND o.client = stm.client
             AND o.shipment_class_code = stm.shipment_class_code
             AND stm.surcharge_amount = 0
               AND o.client = :CLIENT_NUMBER
              GROUP BY o.clientThe version of the database is 10.2.1.0.2
    SQL> alter session force parallel dml;These are the parameters relevant to the optimizer:
    SQL> show parameter user_dump_dest
    NAME                                 TYPE        VALUE
    user_dump_dest                       string      /u01/app/oracle/admin/mcgemqa/
                                                     udump
    SQL> show parameter optimizer
    NAME                                 TYPE        VALUE
    optimizer_dynamic_sampling           integer     2
    optimizer_features_enable            string      10.2.0.4
    optimizer_index_caching              integer     0
    optimizer_index_cost_adj             integer     100
    optimizer_mode                       string      ALL_ROWS
    optimizer_secure_view_merging        boolean     TRUE
    SQL> show parameter db_file_multi
    NAME                                 TYPE        VALUE
    db_file_multiblock_read_count        integer     16
    SQL> show parameter db_block_size
    NAME                                 TYPE        VALUE
    db_block_size                        integer     8192
    SQL> show parameter cursor_sharing
    NAME                                 TYPE        VALUE
    cursor_sharing                       string      EXACTHere is the output of EXPLAIN PLAN:
    SQL> explain plan for
      2  SELECT count(*)
      3         FROM  orders o,shipment_type_methods stm
      4       WHERE o.status in ('A','U')
      5           AND  (o.parent_order_id is null
      6            OR (o.order_type = 'G'
      7           AND o.parent_order_id = o.original_order_number))
      8           AND nvl(o.priority,'1') <> '2'
      9           AND o.client = stm.client
    10           AND o.shipment_class_code = stm.shipment_class_code
    11           AND stm.surcharge_amount = 0
    12     AND o.client = :CLIENT_NUMBER
    13    GROUP BY o.client
    14  /
    Explained.
    Elapsed: 00:00:00.12
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 559278019
    | Id  | Operation                      | Name                    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT               |                         |     1 |    35 | 46764   (3)| 00:09:22 |
    |   1 |  SORT GROUP BY NOSORT          |                         |     1 |    35 | 46764   (3)| 00:09:22 |
    |*  2 |   TABLE ACCESS BY INDEX ROWID  | ORDERS                  |   175K|  3431K| 25979   (3)| 00:05:12 |
    |   3 |    NESTED LOOPS                |                         | 25300 |   864K| 46764   (3)| 00:09:22 |
    |*  4 |     TABLE ACCESS BY INDEX ROWID| SHIPMENT_TYPE_METHODS   |     1 |    15 |     2   (0)| 00:00
    |*  5 |      INDEX RANGE SCAN          | U_SHIPMENT_TYPE_METHODS |     2 |       |     1   (0)| 00:00:01 |
    |*  6 |     INDEX RANGE SCAN           | ORDERS_ORDER_DATE       |   176K|       |  2371   (8)| 00:00:29 |
    Predicate Information (identified by operation id):
       2 - filter(("O"."PARENT_ORDER_ID" IS NULL OR "O"."ORDER_TYPE"='G' AND
                  "O"."PARENT_ORDER_ID"=TO_NUMBER("O"."ORIGINAL_ORDER_NUMBER")) AND NVL("O"."PRIORITY",'1')<>'2
                  AND "O"."SHIPMENT_CLASS_CODE"="STM"."SHIPMENT_CLASS_CODE")
       4 - filter("STM"."SURCHARGE_AMOUNT"=0)
       5 - access("STM"."CLIENT"=:CLIENT_NUMBER)
       6 - access("O"."CLIENT"=:CLIENT_NUMBER)
           filter("O"."STATUS"='A' OR "O"."STATUS"='U')
    24 rows selected.
    Elapsed: 00:00:00.86
    SQL> rollback;
    Rollback complete.
    Elapsed: 00:00:00.07Here is the output of SQL*Plus AUTOTRACE including the TIMING information:
    SQL> SELECT count(*)
      2         FROM  orders o,shipment_type_methods stm
      3       WHERE o.status in ('A','U')
      4           AND  (o.parent_order_id is null
      5            OR (o.order_type = 'G'
      6           AND o.parent_order_id = o.original_order_number))
      7           AND nvl(o.priority,'1') <> '2'
      8           AND o.client = stm.client
      9           AND o.shipment_class_code = stm.shipment_class_code
    10           AND stm.surcharge_amount = 0
    11     AND o.client = :CLIENT_NUMBER
    12    GROUP BY o.client
    13  /
    Elapsed: 00:00:03.09
    Execution Plan
    Plan hash value: 559278019
    | Id  | Operation                      | Name                    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT               |                         |     1 |    35 | 46764   (3)| 00:09:22 |
    |   1 |  SORT GROUP BY NOSORT          |                         |     1 |    35 | 46764   (3)| 00:09:22 |
    |*  2 |   TABLE ACCESS BY INDEX ROWID  | ORDERS                  |   175K|  3431K| 25979   (3)| 00:05:12 |
    |   3 |    NESTED LOOPS                |                         | 25300 |   864K| 46764   (3)| 00:09:22 |
    |*  4 |     TABLE ACCESS BY INDEX ROWID| SHIPMENT_TYPE_METHODS   |     1 |    15 |     2   (0)| 00:00
    |*  5 |      INDEX RANGE SCAN          | U_SHIPMENT_TYPE_METHODS |     2 |       |     1   (0)| 00:00:01 |
    |*  6 |     INDEX RANGE SCAN           | ORDERS_ORDER_DATE       |   176K|       |  2371   (8)| 00:00:29 |
    Predicate Information (identified by operation id):
       2 - filter(("O"."PARENT_ORDER_ID" IS NULL OR "O"."ORDER_TYPE"='G' AND
                  "O"."PARENT_ORDER_ID"=TO_NUMBER("O"."ORIGINAL_ORDER_NUMBER")) AND NVL("O"."PRIORITY",'1')<>'2
                  AND "O"."SHIPMENT_CLASS_CODE"="STM"."SHIPMENT_CLASS_CODE")
       4 - filter("STM"."SURCHARGE_AMOUNT"=0)
       5 - access("STM"."CLIENT"=:CLIENT_NUMBER)
       6 - access("O"."CLIENT"=:CLIENT_NUMBER)
           filter("O"."STATUS"='A' OR "O"."STATUS"='U')
    Statistics
             55  recursive calls
              0  db block gets
           7045  consistent gets
              0  physical reads
              0  redo size
            206  bytes sent via SQL*Net to client
            238  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              1  rows processed
    SQL> disconnect
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> The TKPROF output for this statement looks like the following:
    SELECT count(*)
           FROM  orders o,shipment_type_methods stm
         WHERE o.status in ('A','U')
             AND  (o.parent_order_id is null
              OR (o.order_type = 'G'
             AND o.parent_order_id = o.original_order_number))
             AND nvl(o.priority,'1') <> '2'
             AND o.client = stm.client
             AND o.shipment_class_code = stm.shipment_class_code
             AND stm.surcharge_amount = 0
       AND o.client = :CLIENT_NUMBER
      GROUP BY o.client
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.01       0.00          0          0          0           0
    Execute      1      0.04       0.04          0          0          0           0
    Fetch        2      2.96       2.91          0       7039          0           1
    total        4      3.01       2.95          0       7039          0           1
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 95 
    Rows     Row Source Operation
          1  SORT GROUP BY NOSORT (cr=7039 pr=0 pw=0 time=2913701 us)
         91   TABLE ACCESS BY INDEX ROWID ORDERS (cr=7039 pr=0 pw=0 time=261997906 us)
         93    NESTED LOOPS  (cr=6976 pr=0 pw=0 time=20740 us)
          1     TABLE ACCESS BY INDEX ROWID SHIPMENT_TYPE_METHODS (cr=2 pr=0 pw=0 time=208 us)
          3      INDEX RANGE SCAN U_SHIPMENT_TYPE_METHODS (cr=1 pr=0 pw=0 time=88 us)(object id 81957)
         91     INDEX RANGE SCAN ORDERS_ORDER_DATE (cr=6974 pr=0 pw=0 time=70 us)(object id 81547)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                       2        0.00          0.00
      SQL*Net message from client                     2        0.02          0.02
    ********************************************************************************The DBMS_XPLAN.DISPLAY_CURSOR output:
    SQL> variable CLIENT_NUMBER varchar2(20)
    SQL> exec :CLIENT_NUMBER := '14'
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.06
    SQL> SELECT /*+ gather_plan_statistics */ count(*)
      2         FROM  orders o,shipment_type_methods stm
      3       WHERE o.status in ('A','U')
      4           AND  (o.parent_order_id is null
      5            OR (o.order_type = 'G'
      6           AND o.parent_order_id = o.original_order_number))
      7           AND nvl(o.priority,'1') <> '2'
      8           AND o.client = stm.client
      9           AND o.shipment_class_code = stm.shipment_class_code
    10           AND stm.surcharge_amount = 0
    11     AND o.client = :CLIENT_NUMBER
    12    GROUP BY o.client
    13  /
      COUNT(*)
            91
    Elapsed: 00:00:02.85
    SQL> set termout on
    SQL> select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
    PLAN_TABLE_OUTPUT
    SQL_ID  4nfj368y8w6a3, child number 0
    SELECT /*+ gather_plan_statistics */ count(*)        FROM  orders o,shipment_type_methods stm      WHERE
    o.status in ('A','U')          AND  (o.parent_order_id is null           OR (o.order_type = 'G'
    AND o.parent_order_id = o.original_order_number))          AND nvl(o.priority,'1') <> '2'          AND
    o.client = stm.client          AND o.shipment_class_code = stm.shipment_class_code          AND
    stm.surcharge_amount = 0    AND o.client = :CLIENT_NUMBER   GROUP BY o.client
    Plan hash value: 559278019
    | Id  | Operation                      | Name                    | Starts | E-Rows | A-Rows |   A-Time   | Buffers |
    |   1 |  SORT GROUP BY NOSORT          |                         |      1 |      1 |      1 |00:00:02.63 |    7039 |
    |*  2 |   TABLE ACCESS BY INDEX ROWID  | ORDERS                  |      1 |    175K|     91 |00:03:56.87 |    7039 |
    |   3 |    NESTED LOOPS                |                         |      1 |  25300 |     93 |00:00:00.02 |    6976 |
    |*  4 |     TABLE ACCESS BY INDEX ROWID| SHIPMENT_TYPE_METHODS   |      1 |      1 |      1 |00:00:00.01 |       2 |
    |*  5 |      INDEX RANGE SCAN          | U_SHIPMENT_TYPE_METHODS |      1 |      2 |      3 |00:00:00.01 |       1 |
    |*  6 |     INDEX RANGE SCAN           | ORDERS_ORDER_DATE       |      1 |    176K|     91 |00:00:00.01 |    6974 |
    Predicate Information (identified by operation id):
       2 - filter((("O"."PARENT_ORDER_ID" IS NULL OR ("O"."ORDER_TYPE"='G' AND
                  "O"."PARENT_ORDER_ID"=TO_NUMBER("O"."ORIGINAL_ORDER_NUMBER"))) AND NVL("O"."PRIORITY",'1')<>'
                  "O"."SHIPMENT_CLASS_CODE"="STM"."SHIPMENT_CLASS_CODE"))
       4 - filter("STM"."SURCHARGE_AMOUNT"=0)
       5 - access("STM"."CLIENT"=:CLIENT_NUMBER)
       6 - access("O"."CLIENT"=:CLIENT_NUMBER)
           filter(("O"."STATUS"='A' OR "O"."STATUS"='U'))
    32 rows selected.
    Elapsed: 00:00:01.30
    SQL> I'm looking forward for suggestions how to improve the performance of this statement.
    Thanks
    Sandy

    Please find explain plan for No hint
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 559278019
    | Id  | Operation                      | Name                    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT               |                         |     1 |    35 | 46764   (3)| 00:09:22 |
    |   1 |  SORT GROUP BY NOSORT          |                         |     1 |    35 | 46764   (3)| 00:09:22 |
    |*  2 |   TABLE ACCESS BY INDEX ROWID  | ORDERS                  |   175K|  3431K| 25979   (3)| 00:05:12 |
    |   3 |    NESTED LOOPS                |                         | 25300 |   864K| 46764   (3)| 00:09:22 |
    |*  4 |     TABLE ACCESS BY INDEX ROWID| SHIPMENT_TYPE_METHODS   |     1 |    15 |     2   (0)| 00:00
    |*  5 |      INDEX RANGE SCAN          | U_SHIPMENT_TYPE_METHODS |     2 |       |     1   (0)| 00:00:01 |
    |*  6 |     INDEX RANGE SCAN           | ORDERS_ORDER_DATE       |   176K|       |  2371   (8)| 00:00:29 |
    Predicate Information (identified by operation id):
       2 - filter(("O"."PARENT_ORDER_ID" IS NULL OR "O"."ORDER_TYPE"='G' AND
                  "O"."PARENT_ORDER_ID"=TO_NUMBER("O"."ORIGINAL_ORDER_NUMBER")) AND NVL("O"."PRIORITY",'1')<>'2
                  AND "O"."SHIPMENT_CLASS_CODE"="STM"."SHIPMENT_CLASS_CODE")
       4 - filter("STM"."SURCHARGE_AMOUNT"=0)
       5 - access("STM"."CLIENT"=:CLIENT_NUMBER)
       6 - access("O"."CLIENT"=:CLIENT_NUMBER)
           filter("O"."STATUS"='A' OR "O"."STATUS"='U')
    24 rows selected.
    Elapsed: 00:00:00.86Explain Plan for Parallel Hint
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 559278019
    | Id  | Operation                      | Name                    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT               |                         |     1 |    35 | 46764   (3)| 00:09:22 |
    |   1 |  SORT GROUP BY NOSORT          |                         |     1 |    35 | 46764   (3)| 00:09:22 |
    |*  2 |   TABLE ACCESS BY INDEX ROWID  | ORDERS                  |   175K|  3431K| 25979   (3)| 00:05:12 |
    |   3 |    NESTED LOOPS                |                         | 25300 |   864K| 46764   (3)| 00:09:22 |
    |*  4 |     TABLE ACCESS BY INDEX ROWID| SHIPMENT_TYPE_METHODS   |     1 |    15 |     2   (0)| 00:00
    |*  5 |      INDEX RANGE SCAN          | U_SHIPMENT_TYPE_METHODS |     2 |       |     1   (0)| 00:00:01 |
    |*  6 |     INDEX RANGE SCAN           | ORDERS_ORDER_DATE       |   176K|       |  2371   (8)| 00:00:29 |
    Predicate Information (identified by operation id):
       2 - filter(("O"."PARENT_ORDER_ID" IS NULL OR "O"."ORDER_TYPE"='G' AND
                  "O"."PARENT_ORDER_ID"=TO_NUMBER("O"."ORIGINAL_ORDER_NUMBER")) AND NVL("O"."PRIORITY",'1')<>'2
                  AND "O"."SHIPMENT_CLASS_CODE"="STM"."SHIPMENT_CLASS_CODE")
       4 - filter("STM"."SURCHARGE_AMOUNT"=0)
       5 - access("STM"."CLIENT"='14')
       6 - access("O"."CLIENT"='14')
           filter("O"."STATUS"='A' OR "O"."STATUS"='U')
    24 rows selected.
    Elapsed: 00:00:08.92Explain Plan for USE_Hash hint
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 1465232248
    | Id  | Operation                     | Name                    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT              |                         |     1 |    35 | 46786   (3)| 00:09:22 |
    |   1 |  SORT GROUP BY NOSORT         |                         |     1 |    35 | 46786   (3)| 00:09:22 |
    |*  2 |   HASH JOIN                   |                         | 25300 |   864K| 46786   (3)| 00:09:22 |
    |*  3 |    TABLE ACCESS BY INDEX ROWID| SHIPMENT_TYPE_METHODS   |     1 |    15 |     2   (0)| 00:00:0
    |*  4 |     INDEX RANGE SCAN          | U_SHIPMENT_TYPE_METHODS |     2 |       |     1   (0)| 00:00:01 |
    |*  5 |    TABLE ACCESS BY INDEX ROWID| ORDERS                  |   175K|  3431K| 46763   (3)| 00:09:22 |
    |*  6 |     INDEX RANGE SCAN          | ORDERS_ORDER_DATE       |   176K|       |  4268   (8)| 00:00:52 |
    Predicate Information (identified by operation id):
       2 - access("O"."CLIENT"="STM"."CLIENT" AND "O"."SHIPMENT_CLASS_CODE"="STM"."SHIPMENT_CLASS_COD
                  E")
       3 - filter("STM"."SURCHARGE_AMOUNT"=0)
       4 - access("STM"."CLIENT"='14')
       5 - filter(("O"."PARENT_ORDER_ID" IS NULL OR "O"."ORDER_TYPE"='G' AND
                  "O"."PARENT_ORDER_ID"=TO_NUMBER("O"."ORIGINAL_ORDER_NUMBER")) AND NVL("O"."PRIORITY",'1')<>'2
       6 - access("O"."CLIENT"='14')
           filter("O"."STATUS"='A' OR "O"."STATUS"='U')
    25 rows selected.
    Elapsed: 00:00:01.09
    SQL> Thanks
    Sandy

  • Can no longer run queries with 7.10 GUI after BI upgrade to 7.3

    We have some users who can no longer run BEx workbooks.  The selection screens no longer pop-up.  We upgraded to BI 7.3.  Not all users having this problem.  they are all using GUI 7.10, Excel 2003, OS XP

    SAP NW BI BEx Compatibility of MS Operating Systems and Office Products
    Regards,
    Sushant

  • In forms how to cancel long running process or query in 10g

    We have application which is hosted on 10g AS. Some forms has lot of processing to be done and sometimes user wants to cancel the processing in between maybe because he wants to change some value and refire processing.
    Based on the search on net 'Esc' key was used in earlier version of forms to function as User requested Cancel operation. How can same be done in 10g. Do we have to do anything in fmrweb.res for this. Is there some setting to be done in forms or in AS for this functionality.
    Does this matter on whether JInitiator is used or JPI is used for running the application?
    Edited by: suresh_mathew on May 21, 2013 1:36 AM

    Hi,
    Exit can be used to cancel query mode i.e. in case you go into query mode by Exit you can cancel query mode. Suppose you went into query mode and you have fired query which will take some time to fetch how can I abort it.
    In earlier version of form there was 'Cancel' facility wherein if triggered it used to fire an error message 'Ora--01013 user requested cancel of current operation"
    With this facility you can abort any query which is executing or any long running process which forms is currently performing.
    fmrweb.res would have entry like
    27 : 0 : "Esc" : 1001 : "Cancel"
    The above entry I picked from OPN
    Java Function Numbers And Key Mappings For Forms Deployed Over Web [ID 66534.1]
    Unfortunately this is not working for us even if I put this in frmweb.res of 10g AS
    Basically I want ability to Abort/Cancel a long running process be it query execution or standard process triggered in the form.
    Any advise or help is highly appreciated.
    Suresh

  • Request/Response From Long running Service to BPEL

    Hi,
    I have long running web service which I plan to implement as a EJB30 Webservice.
    I need to add support for Async callback Repsonse to the BPEL process calling this ejb service.
    Since jax-ws is not supported by the current version of Oracle I cannot use that.
    Can I use the Java concurrent api in side the EJB and implement the EJB as a stateful EJB with support for WS-Addressing?
    I do not want to use the JMS, becuse of the additional coding of multiple Message beans to send and receive the message.
    What other options do I have here?

    <con:fault xmlns:con="http://www.bea.com/wli/sb/context"> is an osb internal fault and not a soap:Fault
    BPEL process will fault if it receives either a soap:fault or a custom fault defined in the wsdl. so change your proxy service error handling to replace $body to one of these.
    If you don't have reply with failure action, osb will return a soap:Fault ( generated by the system error handler) and bpel will fault , but the error info in $fault will be lost..
    One way to address this is to define a Fault message for the service in the wsdl ( port type will have input, output and fault elements for the operation) and in the osb error handler transform $ fault to the fault message format and do a reply.

  • Long running sql

    Hi All,
    I have a long running sql which I am tuning for oltp environment.
    Here is the sql
    explain plan for
    SELECT a.* ,rownum as rnm
    FROM ( SELECT /*+ FIRST_ROWS(100) STAR_TRANSFORMATION PARALLEL(PLS,2) */
    /* End of Hint in Query Builder */
    PLD.PRVDR_LCTN_IID AS "ProviderLocationIid", PLD.PRVDR_LCTN_DTL_SID AS "ProviderLocationDetailSid",
    PLD.ENRLMNT_TYPE_CID AS "EnrollMentTypeCid", PLD.PRVDR_TYPE_CODE AS "ProviderTypeCode",
    PLD.MAINECARE_ID AS "Provider Id", PLD.PRVDR_NAME AS "Provider Name",
    PLD.PRVDR_TYPE_CODE || '-' || PLD.PRVDR_TYPE_NAME AS "Provider Type",
    TO_CHAR(PLS.FROM_DATE,'MM/dd/yyyy') AS "Start Date",
    TO_CHAR(PLS.TO_DATE,'MM/dd/yyyy') AS "End Date", PLD.COUNTY_NAME AS "County",
    PLD.CITY_TOWN_NAME AS "Town", PLD.ENRLMNT_TYPE_NAME AS "Enrollment Type",
    PLS.STATUS_CID AS "StatusCid", STSBS.STATUS_NAME AS "Business Status",
    PLD.LCTN_PHONE_NMBR AS "Phone Number", PLD.PRVDR_TYPE_NAME AS "PrvdrTypeName",
    SP.SPCLTY_CODE||'-'||SP.SPCLTY_NAME ||'/'|| SP1.SPCLTY_CODE||'-'||
    SP1.SPCLTY_NAME AS "Specialty/Subspecialty",
    UPPER(SP1.SPCLTY_CODE) AS "SubSpclty", UPPER(SP.SPCLTY_CODE) AS "Spclty"
    FROM /*Query Builder Clause*/
    STATUS STS,
    STATUS STSBS,
    SPECIALTY_SUBSPECIALTY SSP,
    (SELECT PRVDR_LCTN_STATUS_SID, PRVDR_LCTN_IID, PRVDR_LCTN_DTL_SID, FROM_DATE, TO_DATE,
    STATUS_TYPE_CID, STATUS_CID, OPRTNL_FLAG,
    FN_GETANCHORDT(FROM_DATE,TO_DATE) AS ANCHOR_DATE
    FROM PRVDR_LCTN_STATUS
    WHERE STATUS_TYPE_CID = 1
    AND OPRTNL_FLAG = 'A'
    ) PLS,
    PRVDR_LCTN_X_SPCLTY_SUBSPCLTY PXSP,
    PRVDR_LCTN_STATUS PLSBS,
    PROVIDER_LOCATION_DETAIL PLD,
    SPECIALTY SP1,
    SPECIALTY SP
    WHERE
    STS.STATUS_TYPE_CID = 1
    AND STS.STATUS_CID = 2
    AND STSBS.STATUS_TYPE_CID = 15
    AND PLSBS.OPRTNL_FLAG = 'A'
    --          UPPER(UPPER(SP1.SPCLTY_CODE)) LIKE UPPER('1%')
              AND SP1.SPCLTY_CODE LIKE '1%'
    -- AND UPPER(UPPER(SP.SPCLTY_CODE)) LIKE UPPER('1%')
    AND SP.SPCLTY_CODE LIKE '1%'
    AND PLS.OPRTNL_FLAG = 'A'
    AND SP1.OPRTNL_FLAG = 'A'
    AND PXSP.OPRTNL_FLAG = 'A'
    AND PXSP.STATUS_CID = 2
    AND SSP.OPRTNL_FLAG = 'A'
    AND SP.OPRTNL_FLAG = 'A'
    AND PLS.ANCHOR_DATE >= PLSBS.FROM_DATE
    AND PLS.ANCHOR_DATE <= PLSBS.TO_DATE
    AND PLS.STATUS_TYPE_CID = STS.STATUS_TYPE_CID
    AND PLS.STATUS_CID = STS.STATUS_CID
    AND PLD.PRVDR_LCTN_DTL_SID = PLS.PRVDR_LCTN_DTL_SID
    AND PLSBS.PRVDR_LCTN_IID = PLS.PRVDR_LCTN_IID
    AND PLSBS.STATUS_TYPE_CID = STSBS.STATUS_TYPE_CID
    AND PLSBS.STATUS_CID = STSBS.STATUS_CID
    AND PLS.ANCHOR_DATE >= SP1.FROM_DATE
    AND PLS.ANCHOR_DATE <= SP1.TO_DATE
    AND PXSP.PRVDR_LCTN_IID = PLS.PRVDR_LCTN_IID
    AND PXSP.SPCLTY_SUBSPCLTY_SID = SSP.SPCLTY_SUBSPCLTY_SID
    AND PLS.ANCHOR_DATE >= PXSP.FROM_DATE
    AND PLS.ANCHOR_DATE <= PXSP.TO_DATE
    AND SSP.SPCLTY_CODE = SP.SPCLTY_CODE
    -- AND SSP.SUBSPCLTY_CODE = SP1.SPCLTY_CODE
    AND SSP.SUBSPCLTY_CODE = SP1.SPCLTY_CODE
    AND PLS.ANCHOR_DATE >= SSP.FROM_DATE
    AND PLS.ANCHOR_DATE <= SSP.TO_DATE
    AND PLS.ANCHOR_DATE >= SP.FROM_DATE
    AND PLS.ANCHOR_DATE <= SP.TO_DATE
    ORDER BY /*Query Builder Clause*/
    "Provider Id" DESC
    ) A
    WHERE rownum < 101
    Here is the Emplain plan
    SQL> @c:\mohammed\tune\UTLXPLS
    Plan Table
    | Operation | Name | Rows | Bytes| Cost | Pstart| Pstop |
    | SELECT STATEMENT | | | | | | |
    | COUNT STOPKEY | | | | | | |
    | VIEW | | | | | | |
    | SORT ORDER BY STOPKEY | | 1 | 358 | 120 | | |
    | SORT ORDER BY STOPKEY | | | | | | |
    | NESTED LOOPS | | 1 | 358 | 117 | | |
    | NESTED LOOPS | | 1 | 313 | 116 | | |
    | NESTED LOOPS | | 1 | 268 | 115 | | |
    | NESTED LOOPS | | 1 | 240 | 114 | | |
    Plan Table
    | NESTED LOOPS | | 1 | 209 | 112 | | |
    | NESTED LOOPS | | 1 | 95 | 111 | | |
    | NESTED LOOPS | | 1 | 74 | 110 | | |
    | NESTED LOOPS | | 7 | 294 | 103 | | |
    | INDEX UNIQUE SCAN |SYS_C00489936 | 1 | 7 | | | |
    | TABLE ACCESS FULL |PRVDR_LCTN_STATUS | 1K| 53K| 102 | | |
    | TABLE ACCESS BY INDEX ROWID |PRVDR_LCTN_STATUS | 57K| 1M| 2 | | |
    | INDEX RANGE SCAN |TUNE_PNBS2_1 | 57K| | 1 | | |
    | TABLE ACCESS BY INDEX ROWID |STATUS | 5 | 105 | 1 | | |
    | INDEX UNIQUE SCAN |SYS_C00489936 | 5 | | | | |
    | TABLE ACCESS BY INDEX ROWID |PROVIDER_LOCATION_D | 40K| 4M| 1 | | |
    Plan Table
    | INDEX UNIQUE SCAN |XPKPROVIDER_LOCATIO | 40K| | | | |
    | TABLE ACCESS BY INDEX ROWID |PRVDR_LCTN_X_SPCLTY | 1M| 39M| 3 | | |
    | INDEX RANGE SCAN |TUNE_SARWAR_0503200 | 1M| | 2 | | |
    | TABLE ACCESS BY INDEX ROWID |SPECIALTY_SUBSPECIA | 549 | 15K| 1 | | |
    | INDEX UNIQUE SCAN |SYS_C00489888 | 549 | | | | |
    | TABLE ACCESS BY INDEX ROWID |SPECIALTY | 11 | 495 | 1 | | |
    | INDEX UNIQUE SCAN |SYS_C00489875 | 11 | | | | |
    | TABLE ACCESS BY INDEX ROWID |SPECIALTY | 11 | 495 | 1 | | |
    | INDEX UNIQUE SCAN |SYS_C00489875 | 11 | | | | |
    32 rows selected.
    I have tried with several hints and several driving tables and tires. Any help in this regard will be highly appreciated.
    Thanks a lot,
    Mohammed Sarwar
    ocp dba
    Email: [email protected]
    [email protected]
    Phone : 301-944-2029 w
    913-484-9204 cell

    This should be better. Any help on tuning the above sql statement using the following explain plan will be highly appreciated.
    Plan Table
    | Operation ------------------| Name -------------| Rows | Bytes| Cost | Pstart| Pstop |
    | SELECT STATEMENT -----------| ------------------| -----| -------|------| | |
    | COUNT STOPKEY --------------|-------------------|------|--------|------| | |
    | VIEW -----------------------|-------------------|----- | -------| -----| | |
    | SORT ORDER BY STOPKEY ------|------------------ |--- 1 | ---358 | 120 -| | |
    | SORT ORDER BY STOPKEY ------| ------------------|----- |------- | -----| | |
    | NESTED LOOPS ---------------|-------------------|--- 1 |--358 -|- 117 | | |
    | NESTED LOOPS ---------------|----------------- -|--- 1 | -313 -| -116 | | |
    | NESTED LOOPS ---------------|----------------- -|--- 1 | 268-- | 115 -| | |
    | NESTED LOOPS--------------- |-------------------| --1- | -240 -| -114 | | |
    Plan Table
    | NESTED LOOPS--------------- |------------------ | ---1 |- 209 -|- 112 | | |
    | NESTED LOOPS--------------- | ------------------|--- 1 |-- 95- | -111 | | |
    | NESTED LOOPS ---------------|----- -------------|--- 1 |-- 74 -| -110 | | |
    | NESTED LOOPS ---------------|----------------- -|--- 7 | -294- |- 103| | |
    | INDEX UNIQUE SCAN ----------|SYS_C00489936------| ---1 |--- 7--|-----| | |
    | TABLE ACCESS FULL ----------|PRVDR_LCTN_STATUS -| --1K | 53K-- | 102 | | |
    | TABLE ACCESS BY INDEX ROWID |PRVDR_LCTN_STATUS- | 57K -|---- 1M|-- 2 | | |
    | INDEX RANGE SCAN -----------|TUNE_PNBS2_1 ------| 57K- |------ |-- 1 | | |
    | TABLE ACCESS BY INDEX ROWID |STATUS------------ | 5 |105----|-- 1 | | |
    | INDEX UNIQUE SCAN---------- |SYS_C00489936 -----| 5--- | ------|-----| | |
    | TABLE ACCESS BY INDEX ROWID-|PROVIDER_LOCATION_D| 40K | 4M----|-- 1 | | |
    Plan Table
    | INDEX UNIQUE SCAN ----------|XPKPROVIDER_LOCATIO| 40K |----- |----- | | |
    | TABLE ACCESS BY INDEX ROWID-|PRVDR_LCTN_X_SPCLTY| 1M -|---39M|--- 3 | | |
    | INDEX RANGE SCAN -----------|TUNE_SARWAR_0503200| 1M -| -----|--- 2 | | |
    |TABLE ACCESS BY INDEX ROWID- |SPECIALTY_SUBSPECIA| 549 |---15K| ---1 | | |
    | INDEX UNIQUE SCAN ----------|SYS_C00489888 -----| 549 |----- | -----| | |
    |TABLE ACCESS BY INDEX ROWID- |SPECIALTY ---------| 11- |---495|--- 1 | | |
    | INDEX UNIQUE SCAN ----------|SYS_C00489875----- | 11 -|----- |----- | | |
    |TABLE ACCESS BY INDEX ROWID -|SPECIALTY ---------| 11- |---495|----1 | | |
    | INDEX UNIQUE SCAN-----------|SYS_C00489875----- | 11 -|----- |----- | | |
    --------------------------------------------------------------------------------

  • Cancel long running statement in Oracle Lite (OLITE_10.3.0.3.0 olite40.jar)

    On JDBC statement, there is the method 'cancel' to instruct the database to cancel an executing statement. This works fine on Oracle server database, but not on Oracle lite database. The method call 'cancel' just blocks and the running statement is never interrupted.
    The example I tried is very simple. There is a thread started which executes a long running statement. I noticed, that when moving the cursor forward by calling rs.next(), it just blocks. That would be ok, if the statement could be canceled from within the main thread by stmt.cancel. But this call blocks as well with no implact on the running statement. Why is that? Do I miss something or is it not possible to cancel a long running statements in Oracle Lite?
    In the following my code snipped:
    public class CancelStatement {
         private static final String PATH_DB = "XX";
         private static final String PATH_LIB = "XX";
         private static final String CON_STRING = "jdbc:polite:whatever;DataDirectory=" + PATH_DB + ";Database=XX;IsolationLevel=Read Committed;Autocommit=Off;CursorType=Forward Only";
         private static final String USER = "XX";
         private static final String PASSWORD = "XX";
         public static void main(String args[]) throws Exception {
              System.setProperty("java.library.path", PATH_LIB);
              Class.forName("oracle.lite.poljdbc.POLJDBCDriver");
              Connection con = DriverManager.getConnection(CON_STRING, USER, PASSWORD);
              Statement stmt = con.createStatement();
              Thread thread = new Thread(new LongStatementRunnable(con, stmt));
              thread.start();
              Thread.sleep(3000);
              // stop long running statement
              System.out.println("cancel long running statement");
              stmt.cancel(); // XXX does not work, as call is blocked until out of memory
              System.out.println("statement canceled");
         private static class LongStatementRunnable implements Runnable {
              private Connection con;
              private Statement stmt;
              public LongStatementRunnable(Connection con, Statement stmt) {
                   this.con = con;
                   this.stmt = stmt;
              @Override
              public void run() {
                   try {
                        System.out.println("start long running statement...");
                        // execute long running statement
                        ResultSet rs = stmt.executeQuery("SELECT * FROM PERSON P1, PERSON P2");
                        while (rs.next()) { // here the execution gets blocked
                             System.out.println("row"); // is never entered
                        rs.close();
                        stmt.close();
                        con.close();
                        System.out.println("long running statement finished...");
                   } catch (Exception e) {
                        e.printStackTrace();
    }I would be very glad if you could help me.
    Thanks a lot
    Daniel
    Edited by: 861793 on 26.05.2011 14:29

    Unfortunately Oracle Lite doesn't have this option. You can call your statement from a second thread as you have done, but you won't be able to kill or cancel this operation. The only way to get fix this is by rebooting. You can use process explorer to find the dll process that is executing the SQL, but the tables will be locked and sync would be locked as well until the process is finished running in shared memory.

  • Long-running transactions and the performance penalty

    If I change the orch or scope Transaction Type to "Long Running" and do not create any other transaction scopes inside, I'm getting this warning:
    warning X4018: Performance Warning: marking service '***' as a longrunning transaction is not necessary and incurs the performance penalty of an extra commit
    I didn't find any description of such penalties.
    So my questions to gurus:
    Does it create some additional persistence point(s) / commit(s) in LR orchestration/scope?
    Where are these persistence points happen, especially in LR orchestration?
    Leonid Ganeline [BizTalk MVP] BizTalk Development Architecture

    The wording may make it sound so but IMHO, if during the build of an orchestration we get carried away with scope shapes we end up with more persistence points which do affect the performance so one additional should not make soo much of a difference. It
    may have been put because of end-user feed back where people may have opted for long running transactions without realizing about performance overheads and in subsequent performance optimization sessions with Microsoft put it on the product enhancement list
    as "provide us with an indication if we're to incurr performance penalties". A lot of people design orchestration like they write code (not saying that is a bad thing) where they use the scope shape along the lines of a try catch block and what with
    Microsoft marketing Long Running Transactions/Compensation blocks as USP's for BizTalk, people did get carried away into using them without understanding the implications.
    Not saying that there is no additional persistence points added but just wondering if adding one is sufficient to warrant the warning. But if I nest enough scope shapes and mark them all as long-running, they may add up.
    So when I looked at things other than persistence points, I tried to think on how one might implement the long running transaction (nested, incorporating atomic, etc), would you be able to leverage the .Net transaction object (something the pipeline
    use and execute under) or would that model not handle the complexities of the Long Running Transaction which by very definiton span across days/months and keeping .Net Transaction objects active or serialization/de-serialization into operating context will
    cause more issues.
    Regards.

  • Checking for status of a long-running BPEL process

    Hi experts,
    I have one BPEL process for originating customers' loan which usually involves various steps which takes around 15-20 mins to complete per instance. I would like to implement a user interface that can check the process's progress and display how it is going to the user.
    I have thought of using an asynchronous process that updates a global variable listing status of each step inside the process and use a poller to invoke another operation (like "checkStatus" operation) of this process to retrieve this variable and display the value to the users. It may be achieved by using "OnEvent" activity waiting for "checkStatus" operation. It will run in parallel with the main process, have access to the global variable and reply this variable immediately to the caller.
    It sounds like an idea in theory but invoking a web service operation for polling status is very heavy-weight and may impact performance during high-load.
    I am just wondering if there is other solution to this problem as I believe the status checking is a very common expected requirement in long-running BPEL process. What might be the best practice to implement this?
    Look forward to your responses.
    Thanks and regards,
    Edited by: Nghia Pham on Nov 5, 2012 4:48 PM

    Hi.
    I apologize for the slow reply. I am just back from overseas and did not have chance to go to the forum!
    Thank you a lot for your responses!
    The BAM looks like a suggested out-of-the-box solution. But it ties too much to Oracle API and will be hard to customise the way you want to interpret the status to end-users. If you want to display the process status with BAM in a web application interface, ADF is the only solution (please correct me if I am wrong). I would prefer a stand-alone, free of proprietary API solution so that we can build a screen that is technology-independent. As ADF UI is not our only supported view technology. For example, a PHP web client should be able to interpret the BPEL process status.
    Will really appreciate your suggested solution.
    Thanks and regards,

  • Photoshop CS4 no longer runs on iMac

    I had a fan issue on my iMac and after speaking with two different agents the last one had me move some files to the trash. Now Photoshop CS4 will no longer run. Operating system: OS10.7.5. Can't reinstall from the disks. Anyone know how to fix this?

    This doesn't sound like bad preferences - more like missing files (possibly in Application Support).
    Your best bet is going to be reinstalling Photoshop CS4, then reapplying the updates.
    Note - it would have been very easy to check Activity Monitor and see if a process was cauing the CPU activity/heat.  If there was no busy process causing extra CPU or GPU activity, then the most likely explanation would be dust buildup around the heatsinks and fans inside the machine.  But randomly removing application files and support files to diagnose a fan running too often - that is not professional, by any means.

Maybe you are looking for

  • Recover deleted songs from iTunes using iPod

    I will preface by saying, I am an idiot, so please phrase your answers like you're talking to a 10 year old. I have a new Mac (my first) and I had iTunes all set up and working correctly until somehow I deleted a folder with half my music in it. It i

  • User file usage on network shares

    I need to create a PowerShell script where I can show how much storage space users are using.  This would be for users on multiple network shares, above a certain amount (5 GB for example) and then exported to a CSV.  Is it possible to show the first

  • How can I check exactly what effects each version of Adobe Premiere can do

    I am at a loss as to how to decide if I need the best one of an old primitive version. Is the only way to see what they can do to trial each of them out? Is there no detailed list of features for each one? Thanks

  • Order of fields in Primary key in where clause

    Hello, Does order of fields(complete primary key) in where condition matters with the performance or using of index ? Here is an example - BKPF has primary key - bukrs, gjahr, belnr. 1. select single awkey into lv_awkey   from bkpf where bukrs = p_bu

  • Forwarding Events

    Hello, I have implemented a JTree in with custom renderers. Each node is a complex widget. It has a label, a button and a table. Events are intercepted by the JTree, so if I click on the button nothing happens, and when I click on a table's cell I ca