Not able to get the actual plan from trace file
Hi all
I have a Db package and want to get actual execution plan of all the statements in that pakcage it does provides the plan for System's statements but does not displays the plan for Sql statements
DB version 9.2.0 using the following sequence of insructions
set timing on
set serveroutput on
alter session set events '10046 trace name context forever ,level 12';
begin
run_service.collect_data(sysdate);
end;
alter session set sql_trace=false;
exit; ---exit from Sql
now look at the output
select distinct obj#,containerobj#,pflags,xpflags,mflags
from
sum$, suminline$ where sumobj#=obj# and inline#=:1
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 1 1 0 0
total 3 0.00 0.00 1 1 0 0
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: SYS (recursive depth: 2)
Rows Row Source Operation
0 SORT UNIQUE
0 NESTED LOOPS
0 TABLE ACCESS BY INDEX ROWID SUMINLINE$
0 INDEX RANGE SCAN I_SUMINLINE$_2 (object id 1614116)
0 TABLE ACCESS BY INDEX ROWID SUM$
0 INDEX UNIQUE SCAN I_SUM$_1 (object id 319)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 1 0.00 0.00
SELECT SEQ_NUM, S_DATE, S_TIME, CSTATUS, G_SERVICE,
B_REFERENCE, V_REFERENCE, M_PRIORITY
FROM GL_HIST
ORDER BY S_DATE DESC, S_TIME DESC
call count cpu elapsed disk query current rows
Parse 1 0.01 0.01 0 0 0 0
Execute 2819 0.37 0.32 0 0 0 0
Fetch 2819 2.50 20.47 2786 20164 0 2819
total 5639 2.88 20.81 2786 20164 0 2819
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 15550 (recursive depth: 1)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 2786 0.05 18.19
latch free 4 0.04 0.06
UPDATE G_ORIG SET G_SERVICE = :B1
WHERE
SEQ_NUM = :B5 AND S_DATE = :B4 AND S_TIME = :B3 AND
C_STATUS = :B2 AND NVL(G_SERVICE, '+') <> NVL(:B1, '+')
call count cpu elapsed disk query current rows
Parse 1 0.00 0.03 0 0 0 0
Execute 3731 0.74 0.99 261 18712 119 54
Fetch 0 0.00 0.00 0 0 0 0
total 3732 0.74 1.02 261 18712 119 54
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 15550 (recursive depth: 1)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 261 0.01 0.19
latch free 9 0.01 0.04
COMMIT
Remove the line alter session set sql_trace=false and just exit/disconnect. The explain plain is contained in the STAT lines in the trace file and are only written when the cursor closes. If you turn off tracing before the cursor closes the STAT lines will not get written.
Similar Messages
-
Remote Object - not able to get the returned value from java method
Hi ,
I am developing one sample flex aplication that connects to the java code and displays the returned value from the
java method in flex client. Here I am able to invoke the java method but not able to collect the returned value.
lastResult is giving null . I am able to see the sysout messages in server console.
I am using flex 3.2 and blazeds server and java 1.5
Here is the code what I have written.
<?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#FFFFFF" initialize="initApp()">
<mx:Script><![CDATA[
import mx.controls.Alert;
import mx.binding.utils.ChangeWatcher;
import mx.rpc.events.ResultEvent;
import mx.messaging.*;
import mx.messaging.channels.*
public function initApp():void {
var cs:ChannelSet = new ChannelSet();
var customChannel:Channel = new AMFChannel("my-amf", "http://localhost:8400/blazeds/messagebroker/amf"); cs.addChannel(customChannel);
remoteObj.channelSet = cs;
public function writeToConsole():void { remoteObj.writeToConsole(
"hello from Flash client");
var returnedVal:String = remoteObj.setName().lastResult; Alert.show(returnedVal);
//[Bindable]
// private var returnedVal:String;
]]>
</mx:Script>
<mx:RemoteObject id="remoteObj" destination="sro" />
<mx:Form width="437" height="281">
<mx:FormItem>
</mx:FormItem>
<mx:Button label="Write To Server Console" click="writeToConsole()"/>
</mx:Form>
</mx:WindowedApplication>
Java code
public
public SimpleRemoteObject(){
super(); }
class SimpleRemoteObject {
public void writeToConsole(String msg) { System.out.println("SimpleRemoteObject.write: " + msg); }
public String setName(){ System.
out.println("Name changed in Java");
return "Name changed in Java";
And I have configured destination in remote-config.xml
<destination id="sro">
<properties>
<source>SimpleRemoteObject</source>
<scope>application</scope>
</properties>
</destination>
Please help me .You are not able to get the returned value because if you see the Remote object help you will realise you have to use result="resultfn()" and fault = "faultfn()"
In this you define what you wish to do.
More importantly in the remote object you need to define which method you wish to call using the method class like this
<mx:RemoteObject id="remoteObj" destination="sro" result="r1" fault="f1" >
<Method name="javaMethodName" result="r2" fault="f2"/>
<mx:RemoteObject>
r2 is the function where you get the result back from java and can use it to send the alert. -
Not able to get the Qualification data from BAPI
Hi all,
I am using a BAPI (BAPI_JOBREQUIRE_GETLIST) to get the qualifiaction data for requirement profile. It's working fine earlier but I did not get the qualification data from this BAPI, although the data is there in DB against this requirement profile.
Can someone suggest me why I am getting this issue. I have looked into SDN and in BAPI documentation and found as below:
"You require authorization (structural authorization) to read the Requirements subprofile."
I am having the same User ID as I had before (when I getting back the correct data), so I don't think it should be authorization issue.
Can someone help me out in this issue please.
Thanks,
Sanket SethiHi Shiva,
It does not going to these includes at all. Message comes out with successfully done. The BApi is calling RHPP_COMMON_QUALI_READ inside, but this will not return any data. But if will call any qualification object ID, this BAPI will come up with data.
So the QP type LO profile will not come up with any kind of data, but if we pass the OTYPE as Q and pass any Qualification object ID then the data will be returned.
Is there any relationship or some other thing is missing? Any idea.
Thanks,
Sanket Sethi -
Laptop not able to get the wireless signal from the lightweightAP
Brief idea of the installation.
One WLC 5500 active -> second not yet installed
36 AP active, at the end they will be 45 (9 not installed)
Everything on the configuration look active and the light AP are registred to th
e WLC.
RF Channel definition done by WLC on all AP
Power definition done by WLC on all AP
Detection of rouge AP
But the laptops can't even detect the RF signal.
I try to detect the signal with 2 laptop which they where working in other sites with wireless in place.
We ara using 3 different application or client: Ippass, Odyssey, wiresquark Any of this application detect the signal.
However, on the WLC and on the light AP are up and running. Status up, channel and power automatic definition.
On the log I can see the detection of some Rouge AP around.Did you enable "Broadcast SSID"?
-
Not able to get the current data from the screen
Hello All,
I have created a table view on a value node. I edit a field which has a date F4 help or a field DDLB and click SAVE.
In the save event handler I am using get first statement in the loop and when I see the contents of the entity it is the old data not the new values.
Could you please help me on this ?
Regards
SohitHi Sohit,
Use GET_CURRENT method of CL_CRM_BOL_ENTITY and try.....
(make sure the Setter method is updating the values)
Regards,
Masood Imrani S. -
Not able to get the full value from request.getParameter()
hi all,
Iam giving a text input value as" Analysis and tracking" in one jsp form.
while fetching and assigning the value to another variable using request.getparameter , iam getting only the text "Analysis" , the space after it were ignored andnt displaying it.
Help me in solving this.
thanx
BalajiI think you are code is something like this
<input name="xyz" type="text" value=<%=variable%>>
HTML ignores spaces. Therefore you are only getting Analysis, the first word, when your browser encounters the first space it ignores whatever is present after that.
One way of overcoming this is putting double quotes around the text value
<input name="xyz" type="text" value=<% out.println("\"" + variable + "\""); %>
Thanks. -
Not able to get the whole output from BBP_PROCDOC_GETLIST FM
Hi
I am using the BBP_POCDOC_GETLIST FM to display the Shopping Cart details in the ALV report.
But when Date range is large (suppose 1 month) in the FM then it is not displaying the every SC details in the Report. For small range it is working fine.
CALL FUNCTION 'BBP_PROCDOC_GETLIST'
EXPORTING
i_object_type = /infype/cl_common=>gc_object_type_sc
i_create_date = date-low
i_create_date_to = date-high
i_status_select_or = /infype/cl_common=>gc_x
i_item_not_deleted = /infype/cl_common=>gc_x
TABLES
i_range_object_id = lt_sc_no
e_pdlist = lt_sclist
e_messages = lt_messages.
Please help me on this.
Thanks in advance
PrathamHi Shiva,
It does not going to these includes at all. Message comes out with successfully done. The BApi is calling RHPP_COMMON_QUALI_READ inside, but this will not return any data. But if will call any qualification object ID, this BAPI will come up with data.
So the QP type LO profile will not come up with any kind of data, but if we pass the OTYPE as Q and pass any Qualification object ID then the data will be returned.
Is there any relationship or some other thing is missing? Any idea.
Thanks,
Sanket Sethi -
The problem here is i am not able to get the data from the list
hi all,
i have the following code
EnrichedProductCatalogue enrichedProductCatalogue1 = new EnrichedProductCatalogue();
enrichedProductCatalogue1.setAssetCount(2);
enrichedProductCatalogue1.setBlockingProduct("Weekend Freebee");
enrichedProductCatalogue1.setBlockingReason("Compatability");
ArrayList<String> availableActionsList = new ArrayList<String>();
availableActionsList.add(EnrichedProductConstants.ADD.toString());
availableActionsList.add(EnrichedProductConstants.REMOVE.toString());
enrichedProductCatalogue1.setAvailaibleActions((ArrayList<String>)availableActionsList);
BundleProduct bundleProduct = null;
Product product = new Product();
product = new Product();
product.setProductName("International");
product.setProductClassName("International");
ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
UiCategory uiCategory1 = new UiCategory();
uiCategory1.setCategoryName("Simply");
UiCategory uiCategory2 = new UiCategory();
uiCategory2.setCategoryName("Freebees");
uiCategory.add(uiCategory1);
uiCategory.add(uiCategory2);
product.setUiCategory(uiCategory);
bundleProduct = new BundleProduct();
bundleProduct.setCommercialProduct(product);
enrichedProductCatalogue1.setBundleProduct(bundleProduct);
listOfEnrichProducts.add(enrichedProductCatalogue1);
listOfEnrichProducts.add(enrichedProductCatalogue1);
here i have an list called listOfEnrichProducts.
here i am adding two objects of enrichedProductCatalogue.
which contains a object called BundleProduct.
which has a reference for Product class.
here this product class has a list which contains objects of another class called UiCategory.
the problem here is i am not able to get the data from the list which contains UiCategory objects .
the following is the UI
<af:table var="row" rowBandingInterval="0" id="t1"
value="#{pageFlowScope.sample1}"
binding="#{pageFlowScope.sampleManagedBean.dataTable}"
partialTriggers="apimethods ::apimethods">
<af:column sortable="false" headerText="ProductName" id="c2">
<af:outputText value="#{row.bundleProduct.commercialProduct.productName}" id="ot15"/>
</af:column>
<af:column sortable="false" headerText="ProductClass" id="c12">
<af:outputText value="#{row.bundleProduct.commercialProduct.productClassName}" id="ot19"/>
</af:column>
<!--
<af:column sortable="false" headerText="UICategoryName" id="c32">
<af:forEach var="item" items="#{row.bundleProduct.commercialProduct.uiCategory}" >
<af:outputText value="#{item.categoryName}" id="ot119"/>
</af:forEach>
</af:column>
-->
<af:column sortable="false" headerText="AssetCount" id="c22">
<af:outputText value="#{row.assetCount}" id="ot1"/>
</af:column>
<af:column sortable="false" headerText="blockingReason" id="c3">
<af:outputText value="#{row.blockingReason}" id="ot2"/>
</af:column>
<af:column sortable="false" headerText="blockingProduct" id="c4">
<af:outputText value="#{row.blockingProduct}" id="ot3"/>
</af:column>
<!--<af:column sortable="false" headerText="availaibleActions" id="c1">
<af:commandButton text="#{row.availaibleActions}" id="cb1"
actionListener="#{pageFlowScope.sampleManagedBean.callAction}"
partialSubmit="true">
<af:setPropertyListener from="#{row.availaibleActions}"
to="#{pageFlowScope.avalibleaction}" type="action"/>
</af:commandButton>
</af:column>-->
</af:table>
Can anyone pls give some solution ...Hi Frank,
value="#{pageFlowScope.sample1}"
here sample is
Map<String, Object> flowScope1 =
ADFContext.getCurrent().getPageFlowScope();
flowScope.put("sample1", listOfEnrichProducts);
this is not the problem . i am able to get all the values except the following .
ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
UiCategory uiCategory1 = new UiCategory();
uiCategory1.setCategoryName("Simply");
UiCategory uiCategory2 = new UiCategory();
uiCategory2.setCategoryName("Freebees");
uiCategory.add(uiCategory1);
uiCategory.add(uiCategory2);
product.setUiCategory(uiCategory); -
Not able to get the message from Queue using MQ adapter
HI
Using Mq adapter am able to put the message in a queue and am able to get the message if i select the schema type as opaque, but am not able to get the message if i specify any schema type and am getting timed out exception.
Kindly help to proceed with this issue.Hi,
Am also facing the same issue.
I would be thankful if anyone can provide the solution -
Problem Using HTTP Dispatcher -- Could Not able to get the data in JSP
Hi, I am using HTTP Dispatcher to send my events to particular URL which is a JSP page. I am trying to populate the received event through URL and populate to a oracle data base. But could not able to get the data in Oracle database.
Code is :
<h1>JSP Page</h1>
<%
long type = 0;
String tagId = null;
String timeStr = "0";
String deviceName = "";
// Get Event Parameters
// Available Parameters: id, siteName, deviceName, data, time, type, subtype, sourceName, correlationId
try
type = Long.parseLong(request.getParameter("type")); // Get type
tagId = request.getParameter("id"); // Get tagId
timeStr = request.getParameter("time"); // Get time
deviceName = request.getParameter("deviceName");
catch (Exception e)
out.println( "Error: "+e.getMessage() );
// Write into DB.
try {
if ((tagId == null) || (type != 200) ){
// Do Nothing
//return;
} else {
OracleDataSource ods = new OracleDataSource();
String URL = "jdbc:oracle:thin:@//3.235.173.16:1525/vislocal";
ods.setURL(URL);
ods.setUser("cus");
ods.setPassword("cus");
Connection myConn = ods.getConnection();
Statement stmt = myConn.createStatement();
String selectQuery =
"SELECT MAX(rfid_raw_reads_id) as max_id FROM "+
"cus.rfid_raw_reads ";
ResultSet rs = stmt.executeQuery(selectQuery);
String maxId = "1";
if (rs.next()) {
maxId = rs.getString(1);
String selectMaxTagIDQuery =
"SELECT MAX(rfid_raw_reads_id) as max_id FROM "+
"cus.rfid_raw_reads WHERE tag_id = '" + tagId + "'" ;
stmt = myConn.createStatement();
rs = stmt.executeQuery(selectMaxTagIDQuery);
String maxTagId = "1";
if (rs.next()) {
maxTagId = rs.getString(1);
long primaryKey = 1;
long tagKey = 1;
try {
primaryKey = Long.parseLong(maxId) + 1;
tagKey = Long.parseLong(maxTagId) + 1;
} catch (Exception e) {
long currentTime = System.currentTimeMillis();
long updateKey = (tagKey - 1);
String updateQuery = " UPDATE cus.rfid_raw_reads SET read_end_time = " + currentTime + " WHERE rfid_raw_reads_id = " + updateKey;
Statement updateStmt = myConn.createStatement();
updateStmt.execute(updateQuery);
String query =
"INSERT INTO cus.rfid_raw_reads (rfid_raw_reads_id, tag_id,device_name,read_start_time) VALUES ("+ primaryKey + ",'" + tagId + "'," + deviceName + "'," + System.currentTimeMillis() + " )" ;
Statement insertStmt = myConn.createStatement();
insertStmt.execute(query);
myConn.commit();
myConn.close();
} catch (Exception e) {
%>
<p>For browser debug:
<%
out.println( "Type="+type+" ID="+tagId +" time="+timeStr );
%>
Kindly suggest where is the problem...
Thanks and regards
Mohammad Nasim AkhtarHI Prabhat,
Thanx for your reply, I worked out and able to receive the data in oracle database, Actually there was some problem in insert Query. Now I have tested the same... and able to edit the same in the Database.....
But I am facing a new problem, Http Dispatcher in SES console is displaying all the Events generated as well as event in Que but there is no events in the Event Send. I guess it is not able to send the events.....?????
Event statical is showing like this
Events Received: 0 (0.00/sec)
Events Generated: 311 (0.19/sec)
Events Sent: 2 (0.19/sec)
Queued Events: 309 (0.19/sec)
Kindly suggest where is the problem, Is it a JSP problem or OSES end problem.....
Thanks and regards
Nasim -
Not able to get the maintainance cost
Hi all,
I m stuck with a critical issue. I m not able to get the cost of maintainance. while creating maintainaince order I m getting ERROR - MISSING FORMULA IN WORK CENTER and a warning message NO PRICE COULD BE DETERMINED FOR INTERNAL ACTIVITY .
I have done everything which I know regarding costing configuration.
I have created activity type ,asigned it to the cost center,assigned parameter to the std value key what else is required.
I m not getting any of the cost in costing tab of maintainance order .
Please help me out.
Thanks& Regards
PoojaHi ,
1. In Work Center under costing tab , maintain cost center
In work center which you are using in Maintenanace Order operation , please mention the activity type in Act Type Int Proc field and formula as SAP008 in costing tab of work center ..
2. In Schdueling Tab of IR02 mention SAP004 in Other formula Field.
3. In Capacities tab of Work center maintain SAP008 as other formula
4. In KP26 for the combination of cost center , activity type ,version, period maintain fixed price ..
5. Check whether value categories are assigned to cost elements in Config
6. Check whether costing variants are assigned for Planned nd Actual costs to combination of plant and order type ..
plz check the above and then test up again with a new order
regrds
pushpa -
Not able to get the taxonomy field value of meta data field type
Hi Everyone,
Not able to get the taxonomy filed value from the metadata filed type.
Any one can help me on this.
Label, TermGuid, ValidatedString are showing empty when i debug the code.
Below is the code which i used to get the taxonomy filed valueHi,
Can you please try getting this way?
var taxonomyField = listItem.Fields.GetFieldByInternalName(fieldName) as TaxonomyField;
if (taxonomyField.AllowMultipleValues)
var fieldValuesCollection = listItem[taxonomyField.Title] as TaxonomyFieldValueCollection;
return fieldValuesCollection.Select(x => new Guid(x.TermGuid)).ToList();
else
var fieldValue = listItem[taxonomyField.Title] as TaxonomyFieldValue;
return new List<Guid>() { new Guid(fieldValue.TermGuid) };
Hope it helps!
Thanks,
Avni Bhatt
If this helped you resolve your issue, please mark it Answered -
Not able to get the login page after installing 12.1.1
HI,
i am not able to get the login page after installing in the 12.1.1. when i accessed from client machineo.Please help me in fixing out this problem.
Thanks,
venkat.Hi,
What is the OS?
What is the error message?
Any errors in Apache/Database log files?
Thanks,
Hussein -
Not able to get the connection to mssql server thro native sql
Dear Experts,
I have created a database connection to mssql server thro DBCO t.code.Am not able to get the connection when i am executing Native SQl for geting connection of mssql server.
DATA: CON_NAME LIKE DBCON-CON_NAME VALUE 'BIW'.
EXEC SQL.
CONNECT TO :con_name AS 'C1'
ENDEXEC.
Am always getting sy-subrc = 4. The user name and password i have given in dbcon table having full authorization to access mssql database. I am working SAP ecc 5.0. Also both servers are running in windows.
could anyone hlep me on this issue.
Thanks in advance.Hello, the submitted error must be analyzed according to the Syntaxis and characteristics of the MSSQL database. See explanation of error.
http://doc.ddart.net/mssql/sql2000/html/trblsql/tr_reslsyserr_1_1o1i.htm
Error 156
Severity Level 15
Message Text
Incorrect syntax near the keyword '%.*ls'.
Explanation
This error indicates that the syntax of a Transact-SQL statement is incorrect and that the syntax error was detected near the keyword specified in the error message. The most frequent causes for syntax errors are misspellings of Transact-SQL keywords or operators, and specifying the syntax of a Transact-SQL statement in the wrong order.
One of the more complicated causes for this error may be a compatibility level mismatch for the current database. If the current database has a compatibility level other than 70, Microsoft® SQL Serveru2122 will not recognize any of the keywords that a database with a compatibility level of 70 would recognize.
Action
First, check the Transact-SQL statement syntax near the keyword specified in the error message. Because Transact-SQL language syntax can be very complex, SQL Server may incorrectly report the position of the syntax error as later in the Transact-SQL statement than it actually occurred. Second, reexamine the entire Transact-SQL statement that generated the error. Verify the syntax order of the statement.
Ensure that the database does not have a compatibility level of 65 and has a compatibility level of 70. -
Not able to get the profile option value
Hi,
Not able to get the profile option value after i changed the new value in the application.
I am using fnd_global.apps_initialize to initialize the apps from PLSQL code to get the updated profile option value. But fnd_profile.value is not getting fetched the updated value. Still it is fetching the old one. I mean it is stored in database cache. Please any one let me know how to get the new value every time after i changed the value.
ThanksWhat is the application release?
Is this a custom or seeded profile option?
Can you confirm that the value got changed from the application (query the profile option and verify the value)?
Can you reproduce the issue if you use an API to update this profile option as per (How to Change Profile Option Value Without Forms? [ID 943710.1])?
Thanks,
Hussein
Maybe you are looking for
-
10.5 Time Machine backup not visible in 10.6 Migration Assistant
Hello everyone, Helping my not-so-tech savvy auntie move over from her old 5,1 iMac to a newer 8,1 MacBook. Her old iMac has a Time Machine backup on OS 10.5.8. I plugged in the Time Machine to the new MacBook (which is on a clean install of OS 10.6.
-
Flash Plug-in - I just can't get it !
Hi ! I'm new at the OSX world. I just bought my first Apple and I'm loving it. But I have a small problem that I just can't crack. The instalation of the Flash plug-in. Everytime I enter some web pages I get the "MIME application/x-shockwave-flash do
-
How can I create a long employment form without making the form widget drag?
How can I create a long employment form without making the form widget drag?
-
Store Wouldn't Let Me Use Coupon?!?
I'd appreciate any help that could be offered on this. I went into the BB in Newington, NH yesterday to purchase the MacBook Air 13" for the advertised price of $899.99. I recently moved and had a 10% off coupon that was with my change of address f
-
Any way to print from Finder?
Sorry about my last post...I really messed up! Here I go again. Is there any way to print from the finder? I have a DVD inserted into my drive, and I want to print the contents to have as a reference. I tried to print the contents of the disk from To