4 USES OF DIAGNOSTIC EVENTS
제품 : ORACLE SERVER
작성날짜 : 2002-05-22
4 USES OF DIAGNOSTIC EVENTS
===========================
PURPOSE
Event를 사용한 시스템 진단방법에 대해 알아본다.
Explanation
<Event를 사용하는 방법>
1. Immediate Dump---cursor
alter session set events ‘immediate trace name <dump> level <level>;
2. On error dump
alter session set events ‘60 trace name <dump> level <level>;
3. Behavior Change
alter session set events ‘<event> trace name context forever, level
<level>;
4 .Trace---plus trace
alter session set events ‘<event> trace name context forever,level <level>;
Example
Reference Document
------------------
제품 : ORACLE SERVER
작성날짜 : 2002-05-22
4 USES OF DIAGNOSTIC EVENTS
===========================
PURPOSE
Event를 사용한 시스템 진단방법에 대해 알아본다.
Explanation
<Event를 사용하는 방법>
1. Immediate Dump---cursor
alter session set events ‘immediate trace name <dump> level <level>;
2. On error dump
alter session set events ‘60 trace name <dump> level <level>;
3. Behavior Change
alter session set events ‘<event> trace name context forever, level
<level>;
4 .Trace---plus trace
alter session set events ‘<event> trace name context forever,level <level>;
Example
Reference Document
------------------
Similar Messages
-
In alv report can i use control break events? if no .whay?
Hi all,
in alv report can i use control break events? if no .whay?hi,
you can use control break statements in ALV report.
for example: if one PO is having more than one line item, that time you need to display PO only once. -
Report using internal table events
Hi,
i have an internal table with the fields 1. profitcenter 2. company code 3. gl account 4. amount
for each profit center i need to seggregate accounts based on company code.
the report should look like the one below.
please suggest some code using internal table events at new , at end etc. as im not using alv. your help will be rewarded
regards,
ravi.
-Profitcenter-companycodeglaccount-amount---
-pfcenter1----
glaccount1-1000---
glaccount2-2000---
4444-total--3000---
glaccount1-4000---
glaccount2-1000---
3333-total--5000---
-profitcentre1*total8000---
profitcentre2.........Hi.
TYPES: BEGIN OF G_I_DATA,
PROFIT(4) TYPE C,
COMPANY(4) TYPE C,
ACCOUNT(10) TYPE C,
AMOUNT TYPE P,
END OF G_I_DATA.
DATA: G_IT_DATA TYPE TABLE OF G_I_DATA,
G_WA_DATA TYPE G_I_DATA.
DATA: G_SUM_COMPANY TYPE P,
G_SUM_PROFIT TYPE P,
G_AMOUNT TYPE P.
G_WA_DATA-PROFIT = '0001'.
G_WA_DATA-COMPANY = '1111'.
G_WA_DATA-ACCOUNT = 'ACCOUNT1'.
G_WA_DATA-AMOUNT = 2000.
APPEND G_WA_DATA TO G_IT_DATA.
G_WA_DATA-PROFIT = '0001'.
G_WA_DATA-COMPANY = '1111'.
G_WA_DATA-ACCOUNT = 'ACCOUNT2'.
G_WA_DATA-AMOUNT = 3000.
APPEND G_WA_DATA TO G_IT_DATA.
G_WA_DATA-PROFIT = '0001'.
G_WA_DATA-COMPANY = '2222'.
G_WA_DATA-ACCOUNT = 'ACCOUNT1'.
G_WA_DATA-AMOUNT = 4000.
APPEND G_WA_DATA TO G_IT_DATA.
G_WA_DATA-PROFIT = '0001'.
G_WA_DATA-COMPANY = '2222'.
G_WA_DATA-ACCOUNT = 'ACCOUNT2'.
G_WA_DATA-AMOUNT = 5000.
APPEND G_WA_DATA TO G_IT_DATA.
G_WA_DATA-PROFIT = '0002'.
G_WA_DATA-COMPANY = '1111'.
G_WA_DATA-ACCOUNT = 'ACCOUNT1'.
G_WA_DATA-AMOUNT = 2000.
APPEND G_WA_DATA TO G_IT_DATA.
G_WA_DATA-PROFIT = '0002'.
G_WA_DATA-COMPANY = '1111'.
G_WA_DATA-ACCOUNT = 'ACCOUNT2'.
G_WA_DATA-AMOUNT = 3000.
APPEND G_WA_DATA TO G_IT_DATA.
G_WA_DATA-PROFIT = '0002'.
G_WA_DATA-COMPANY = '2222'.
G_WA_DATA-ACCOUNT = 'ACCOUNT1'.
G_WA_DATA-AMOUNT = 4000.
APPEND G_WA_DATA TO G_IT_DATA.
G_WA_DATA-PROFIT = '0002'.
G_WA_DATA-COMPANY = '2222'.
G_WA_DATA-ACCOUNT = 'ACCOUNT2'.
G_WA_DATA-AMOUNT = 5000.
APPEND G_WA_DATA TO G_IT_DATA.
SORT G_IT_DATA BY PROFIT COMPANY ACCOUNT.
WRITE: /6 'ProfitCenter', 20 'CompanyCode',
34 'Glaccount', 48 'Amount'.
WRITE: /6 SY-ULINE(50).
LOOP AT G_IT_DATA INTO G_WA_DATA.
AT NEW PROFIT.
WRITE: /6 G_WA_DATA-PROFIT.
ENDAT.
G_AMOUNT = G_WA_DATA-AMOUNT.
AT NEW ACCOUNT.
WRITE: /34 G_WA_DATA-ACCOUNT,
48 G_AMOUNT.
ENDAT.
G_SUM_PROFIT = G_SUM_PROFIT + G_WA_DATA-AMOUNT.
G_SUM_COMPANY = G_SUM_COMPANY + G_WA_DATA-AMOUNT.
AT END OF COMPANY.
WRITE: /20 G_WA_DATA-COMPANY,
34 'Totle',
48 G_SUM_COMPANY.
CLEAR G_SUM_COMPANY.
WRITE: /6 '*******'.
ENDAT.
AT END OF PROFIT.
WRITE: /6 G_WA_DATA-PROFIT,
20 'Totle',
48 G_SUM_PROFIT.
CLEAR G_SUM_PROFIT.
WRITE: /6 '*************************************'.
ENDAT.
ENDLOOP. -
Smartforms, how to use control break events
Please help with this requirement.
Purchase Docu No.111
Pur Item No Mat no Quantity
1 2356 2000
2 1256 2000
3 8556 2000
Purchase Docu No.112
Pur Item No Mat no Quantity
1 9656 2000
2 7356 2000
3 1356 2000
Purchase Docu No.113
Pur Item No Mat no Quantity
1 5356 2000
2 8356 2000
This i have to design for the smartform.
1 header data then its item data.
like is Script i can call the WIndow elements using control break events in the driver prog but how to get this kind of output in Smartforms.???????
ThanksI dont want trigger new page.
In the same page i want like this
I have purchase docu data in only 1 internal table.
So, for every new VBELN, under this i want its corresponding item details.
I have created the command node for the main window with 2 rows, in the 1st row i am giving VBELN and in the 2nd row i am giving in item details like item no, matnr etc etc and in the condition its askng Field name and Comparison Value.
How shold i give condition.??????
Thanks
Edited by: Jalaaluddin Syed on May 1, 2008 5:03 PM -
How to use training and event functionality in ESS BP in ep 7.0 ?
Hi all,
We are using
1). sap portal 7.0 sp 9 and
2). Using back end ECC 6.0
3). And using Ess business package
Business Package for Employee Self-Service (mySAP ERP) release 1.0
The business package doesnot contain any training and events module iviews.
We want to use training and event management iviews on the portal.
The document for this business package says that to use training and event management iviews we should install Sap Learning solutions
I want to know?
1. How can we use training and event management iviews without using Learning solutions?
2. What is actually Learning solutions is a seperate module or it is the part of Sap HR module?
Please guide me..
Rajendra.Rajendra,
Have a look at SAP Note 870126.
Here is a snippet:
<i>The following international ESS applications based on Standalone ITS have been or will be converted to the integrated ITS Version 6.40, and can still be used with mySAP ERP 2005. You can integrate these applications using ESS Homepage Customizing if required:
International ESS Services available on the integrated ITS as of mySAP ERP2005:
Training Center (PV7I) (see Note 771196)
myBookings (PV8I) (see Note 771196)</i>
To answer the second part of your question, the Learning Solution is an optional component that can be deployed in ERP. It complements and extends the existing TEM module. You generally still use TEM with LSO.
Is that what you were after?
Regards,
John -
When to use Custom Adapter, Event Beans and Spring beans
Hi,
I have basic question on when or on what basis/scenario the Custom Adapter, Event Beans or Spring beans should be used.
All three has same implementation methods.
Please help me in understanding when to use Custom Adapters, Event Beans or Spring beans.
Thanks,
Sri
Edited by: 897694 on Mar 7, 2012 8:12 AMcustom adapters:
you have to use a custom adapter when you don't find any adapter in ocep which will serve your purpose.
Most of the times you use an adapter to connect the application with external things like http server, etc It can be both to listen the events or to send the events outside.
Event Beans:
This type of beans does most of the work that an adapter code does but in convention beans are not used to connect the application with external stuff
You can use Beans as event sink etc In this case using an using an adapter is not suggestable.
If you implement Interfaces like Initializing Bean for an adapter code it won't work properly, you have to use an event Bean in that case.
Spring beans:
Spring beans are used when the bean code doesn't implement EventSink or EventSender.
These beans are used to enable something (eg: make ${wlevs_dev_home}/abc/a/b.java this path is not understandable by java code unless you override the path using a spring bean)
Most of the things which doesn't need a connection between components in the application (eg cache loader: you can do this using spring beans and event beans both but spring beans doesn't need a connection with cache)
Hope this small writeup helps you :)
Edited by: Patha on Mar 8, 2012 9:10 AM -
Help using Oracle Diagnostic Logging (LoggingContext)
Hi,
We are developing a new Product from scratch and have decided to use as much as we can from Oracle Libraries. Currently we are using Oracle Diagnostic Logging (ODL) for logging in our application, having a wrapper on top of it, which will make our product as well in-line with other oracle product logging.
We have requirements to log based on LoggingContext as in Log4j's Mapped/Nested Diagnostic Context. I believe we can do the same using oracle.core.ojdl.logging.context.LoggingContext but can't find more information on how to use it.
Can anybody provide examples or links to learn, understand and implement using LoggingContext in ODL?ODL generates log files in XML format only. Using ODL you can not have plain text format log files. You have to decide what is more desired - log rotation (that ODL provides) or text format (which is the default, non-ODL, format). If text format is more desired than don't enable ODL and write your own shell script to rotate application log (but that can only be done while OC4J is down).
At the same time if you are concern about readability of log file (i.e. text format is easier to read vs. xml format) than you might consider using one the log viewer tool (log viewer in EM or printlogs command line) provided by Oracle. Both of these tools help you view the logs in much more readable format than just looking at xml format log file.
(printlogs utility is under $OH/diagnostic/bin directory. Run "printlogs -help" to read about it).
Hope this helps.
Thanks
Shail -
Using a dynamic event to trigger a signal
Hi,
I'm using a state machines approach to control a motor. I would like to trigger the current (for exemple, when current> 10 A, the event Overload happens). I think it is possible by using a dynamic event but I don't know how to do it.
Does somebody know how to do that?
Thank youI peeked into my tag cloud- I suspected that one of my "BENex.." tags linked to an example from Ben Raynard on this topic.
Ben posted this example and This link to a Nugget by Ton on dynamic events.
Jeff -
Thinking about using the Windows Event Logs as my main log store - looking for pros and cons
I have been writing some larger scripts that write to physical log files. Until today I have avoided trying to use the Windows Event logs, but, am beginning to rethink this and wondered if anyone has done this, and, what the strengths and weaknesses
of this logging approach has been. If I do it, I will probably write a function that accepts pipelined input and simply pass output to the log. I wanted to get a feel for what I would be getting into before I started writing things up since this
will probably take a little bit of work to get set up to run properly.At my company we use the Windows event log for many of our batch process logging for several reasons:
Unlike logging to a central database, the Windows event log is always available. I've seen poorly thought out logging solution which log to a database and if the database happens to be unavailable the batch process would fail.
Monitoring tool such as SCOM already have Windows event log watchers so adding alerts to take action based on message written to the Windows event log is easy
Built-in support for writing Windows event log entries in the Powershell V2 write-eventlog cmdlet, a simple CLR can created in SQL Server or even command-line eventcreate.exe
Easy to create a custom event log so you don't have to use the default application log in Windows 2008 and higher.
Most shrink-wrap S/W already use the event log
Issues I've seen:
Windows 2008 with UAC on requires "registering" i.e. creating a new event log source with UAC. This can be done one time manually. Unfortunately there isn't a way to automate UAC--pure GUI. The Powershell command would be "New-EventLog -LogName Application
-Source mysource" if you're using the Application log and must be run as administrator.
Errant process writes many entries to the event log. Depending on the volume like for example writing stack dumps this can performance problems. I think I recall an issue an Windows 2003 or Windows 2008 with UAC off if you're creating a new
event log source each time (which you shouldn't) then these results in many registry entries which can cause problems.
I don't think the issues outweigh the benefits--just something to be aware of. -
How can I use custom repeating event in my iPad Air calendar iOS 8.0.2
How can I use custom repeating event in my iPad Air calendar iOS 8.0.2?
Unless something has changed, you can't. The iPad has limited ability to make repeats. However if you make the custom repeats in another program you can send them to or import them into your calendar and the iPad will respect the custom repeat.
-
How using sql trace event 10128 level 1&2
hi all,i want ask about sql trace event 10128. how using sql trace event 10128 level 1&2??
when I've enabled sql trace event 10128 level 2,and i execution query then appears error
ORA-00604: error occurred at recursive SQL level 1
ORA-00942: table or view does not exist
where the fault lies??
i'm using
ALTER SYSTEM SET timed_statistics=TRUE;
ALTER SESSION SET EVENT '10128 TRACE NAME CONTEXT FOREVER, LEVEL 2';But nothing issue with me on 10g on windows xp:
SQL> ALTER SYSTEM SET timed_statistics=TRUE;
System altered.
SQL> ALTER SESSION SET EVENT '10128 TRACE NAME CONTEXT FOREVER, LEVEL 2';
ALTER SESSION SET EVENT '10128 TRACE NAME CONTEXT FOREVER, LEVEL 2'
ERROR at line 1:
ORA-00927: missing equal sign
SQL> ALTER SESSION SET EVENTS
2 '10128 trace name context forever, level 2';
Session altered.
SQL>HTH
Girish Shamra
Edited by: Girish Sharma on Dec 9, 2009 11:46 AM
This is not "EVENT" .. it is "EVENTS" -
Bdc on vk11 using control break events
hi
have any one done bdc for vk11 using control break events.my flat file is
ZTAX X IN 1000 1200 2000 A0
ZTAX X IN 1000 1210 3000 A1
ZTAX X US 7676 01 4000 L3
ZTAX X US 7676 02 5000 s1
i need the logic for this any sample code will be usefulhi, check the sample code using Control break statements.
LOOP AT IT_MAIN.
WRITE : IT_MAIN.
C_TABIX = SY-TABIX.
<b>AT NEW LIFNR_001.</b>
READ TABLE IT_MAIN INDEX C_TABIX.
REFRESH IT_BDC.
perform bdc_dynpro using 'SAPMM06E' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RM06E-BSTNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'EKKO-LIFNR'
IT_MAIN-LIFNR_001.
perform bdc_field using 'RM06E-BSART'
IT_MAIN-BSART_002.
perform bdc_field using 'RM06E-BEDAT'
IT_MAIN-BEDAT_003.
perform bdc_field using 'EKKO-EKORG'
IT_MAIN-EKORG_004.
perform bdc_field using 'EKKO-EKGRP'
IT_MAIN-EKGRP_005.
perform bdc_field using 'RM06E-LPEIN'
IT_MAIN-LPEIN_006.
perform bdc_field using 'RM06E-WERKS'
IT_MAIN-WERKS_007.
MOVE 1 TO CNT.
<b>ENDAT.</b>
perform bdc_dynpro using 'SAPMM06E' '0120'.
perform bdc_field using 'BDC_CURSOR'
'EKPO-TXZ01(01)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
CONCATENATE 'EKPO-EMATN(' CNT ')' INTO FLD.
perform bdc_field using FLD IT_MAIN-EMATN_01_008.
CONCATENATE 'EKPO-TXZ01(' CNT ')' INTO FLD.
perform bdc_field using FLD IT_MAIN-TXZ01_01_009.
CONCATENATE 'EKPO-MENGE(' CNT ')' INTO FLD.
perform bdc_field using FLD IT_MAIN-MENGE_01_010.
perform bdc_dynpro using 'SAPMM06E' '0120'.
perform bdc_field using 'BDC_CURSOR'
'RM06E-EBELP'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
CNT = CNT + 1.
IF CNT = 6.
CNT = 1.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=P+'.
ENDIF.
<b>AT END OF LIFNR_001.</b>
READ TABLE IT_MAIN INDEX C_TABIX.
RECORD = IT_MAIN.
perform bdc_dynpro using 'SAPLSPO1' '0100'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
CALL TRANSACTION 'ME21' USING IT_BDC MODE 'A' MESSAGES INTO IT_MESSAGES.
clear: cnt, C_tabix .
<b>ENDAT.</b>
ENDLOOP. -
I have a 88 MB table having no index on it.
select count(*) from ( select * from tbl where flag1=:1 and flag2=:2 and flag3=:3)The above sql is in the top cpu consuming session while I query "cpu used by session event"
how does above query different from :-
select count(*) from tbl where flag1=:1 and flag2=:2 and flag3=:3)version is 10.2.0.2
when tried to see the explain plan for both sql
it is showing same plan.
@?/rdms/admin/utlxpls
is showing full table scan
and with message cpu cost is not configured/shown
please help me understand this
which query is better and why?
why explain plan is not showing cpu cost?SQL> explain plan for
2 select count(*) from (select * from t1)
3 /
Explained.
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
Plan hash value: 3724264953
| Id | Operation | Name | Rows | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 3 (0)| 00:00:01 |
| 1 | SORT AGGREGATE | | 1 | | |
| 2 | TABLE ACCESS FULL| T1 | 301 | 3 (0)| 00:00:01 |
9 rows selected.
SQL> explain plan for
2 select count(*) from t1;
Explained.
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
Plan hash value: 3724264953
| Id | Operation | Name | Rows | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 3 (0)| 00:00:01 |
| 1 | SORT AGGREGATE | | 1 | | |
| 2 | TABLE ACCESS FULL| T1 | 301 | 3 (0)| 00:00:01 |
9 rows selected.
SQL> explain plan for
2 select count(*) from (select * from t1)
3 /
Explained.
SQL> @?/rdbms/admin/utlxpls
PLAN_TABLE_OUTPUT
Plan hash value: 3724264953
| Id | Operation | Name | Rows | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 3 (0)| 00:00:01 |
| 1 | SORT AGGREGATE | | 1 | | |
| 2 | TABLE ACCESS FULL| T1 | 301 | 3 (0)| 00:00:01 |
9 rows selected.
SQL>I see the same Execution Plan.
Edited by: Hemant K Chitale on Jul 23, 2009 11:34 PM -
How i use value signaling Event?
how i use Value signaling event by labview?
can you send me example?Wiring a value to Value(signaling) is like having a user click a button. Here is an example.
- tbob
Inventor of the WORM Global
Attachments:
Trigger_Other_Event[2].vi 156 KB -
How to use the PROGRESS Event?
Can someone explain to me how to use the PROGRESS event, i looked at the docs but it never helped me?
I want to use it to display the prgress of downloading data from a API, its a URL event. But i was told i can do this via a PROGREE Eventcopy and paste the trace output from:
import flash.events.ProgressEvent;
//var facebookAPI:String = "https://graph.facebook.com/ginorea1/feed?access_token=277830088900615|2.AQDUBMBocIw_QcqE.3600.1313856000.0-100001000396080|5bXT8Cj0OUxNpr7y NeqTsJfwADg";//
var facebookAPI:String = "https://graph.facebook.com/100001000396080/statuses?access_token=14563 4995501895|2.AQAKdU4pcsdMmmBO.3600.1313859600.0-100001000396080|7uzAMoRdsg5kXLjc exS5bVaPhag";
var loader:URLLoader = new URLLoader(new URLRequest(facebookAPI));
loader.addEventListener(Event.COMPLETE, loadComplete);
loader.addEventListener(ProgresEvent.PROGRESS,loadProgress);
function loadProgress(e:ProgressEvent):void
trace(e.bytesLoaded,e.bytesTotal);
progress_txt.text = String(Math.floor((e.bytesLoaded/e.bytesTotal)*100));
function loadComplete(e:Event):void{
processData(e.target.data);
function processData(data:String):void
var facebookFeed:Array = JSON.decode(data).data as Array;
for (var i:uint, feedCount:uint = 10; i < feedCount; i++)
var tf2:TextField=new TextField();
feed1.text = facebookFeed[i].message;
feed2.text = facebookFeed[2].message;
feed3.text = facebookFeed[3].message;
feed4.text = facebookFeed[4].message;
feed5.text = facebookFeed[5].message;
feed6.text = facebookFeed[6].message;
feed7.text = facebookFeed[7].message;
feed8.text = facebookFeed[8].message;
feed9.text = facebookFeed[9].message;
feed10.text = facebookFeed[10].message;
stop();
Maybe you are looking for
-
App-v 5.0 Sequence package that requires reboot?
Hi, I'm sequecing a package that requires a reboot. When I do the reboot, I cannot continue packaging (it does not give me the option to continue). Please advise. J. Jan Hoedt
-
No Available ACROBAT 9 for MAC OS
Hi, We would like to know if why we doesn't have any Acrobat 9 for MAC? How come ADOBE have an ACROBAT 9 PRO for MAC but not with Acrobat Standard and Acrobat Reader for MAC OS 10.6? Why do customers need to upgrade to Acrobat 9 Pro MAC if they cur
-
What settings see Audigy again after XP SP2 install rollbac
Help please, Win XP SP PC, Audigy just fine, then install SP2, access denied 50% of the way through, install does a rollback, warning that some things may not work so well, and its lost me my sound :angry:Tried registry fixes progs, Creative diagnost
-
Hello. We have a problem and we dont understand how to correct it. It was working fine and now we are getting an error message that we dont understand. We have attached the error message and any help is appreciated. The calculation works when you hit
-
Ipod Just Show me the Apple logo and iPod Discostic Screen
Hi Again... I think that my ipod is near its death because just is show me the Apple logo or something weird like a Screen in black and white titled iPod Diagnostic. What' that .. is it? this mourning i was gonna use the ipod and his battery is very