Audit mviews which are used by query rewrite
Hi all,
on of our main customers want to find out which MVIEWS are used after an automated query rewrite.
Example:
select * from OP_SUM_BACKLOG_DAY_SAP_001;
select * from dba_audit_trail
where timestamp > trunc(sysdate)
and username = 'SMITH'
and obj_name = 'OP_SUM_BACKLOG_DAY_SAP_001'
This following statement is using the same MVIEW because of aggregations and the use of query rewrite:
SELECT fbld_ddat_sales_month,
SUM (fbld_dummy_zero) fbld_dummy_zero,
SUM (fbld_dummy_null_number) fbld_dummy_null_number,
SUM (fbld_oab_quantity) fbld_oab_quantity
FROM op_fct_backlog_day_sap
GROUP BY fbld_ddat_sales_month;
This query is never listed in dba_audit_trail!!!
Plan
3 SELECT STATEMENT ALL_ROWS Cost: 291 Bytes: 52 Cardinality: 2 CPU Cost: 0 IO Cost: 0 Time: 00:00:00 Partition #: 0
2 HASH GROUP BY Projection: (#keys=1) "OP_SUM_BACKLOG_DAY_SAP_001"."FBLD_DDAT_SALES_MONTH"[VARCHAR2,6], SUM("OP_SUM_BACKLOG_DAY_SAP_001"."FBLD_OAB_QUANTITY")[22], SUM("OP_SUM_BACKLOG_DAY_SAP_001"."FBLD_DUMMY_NULL_NUMBER")[22], SUM("OP_SUM_BACKLOG_DAY_SAP_001"."FBLD_DUMMY_ZERO")[22] Cost: 291 Bytes: 52 Cardinality: 2 CPU Cost: 0 IO Cost: 0 Time: 00:00:00 Partition #: 0
1 MAT_VIEW REWRITE ACCESS FULL DWHOP.OP_SUM_BACKLOG_DAY_SAP_001 [Analyzed] Projection: "OP_SUM_BACKLOG_DAY_SAP_001"."FBLD_DDAT_SALES_MONTH"[VARCHAR2,6], "OP_SUM_BACKLOG_DAY_SAP_001"."FBLD_DUMMY_ZERO"[NUMBER,22], "OP_SUM_BACKLOG_DAY_SAP_001"."FBLD_DUMMY_NULL_NUMBER"[NUMBER,22], "OP_SUM_BACKLOG_DAY_SAP_001"."FBLD_OAB_QUANTITY"[NUMBER,22] Cost: 290 Bytes: 1.016.600 Cardinality: 39.100 CPU Cost: 0 IO Cost: 0 Time: 00:00:00 Partition #: 0
Any ideas how to audit this access???
Regards
Stephan
Hi,
Get the UID of your query from the query designer (select query in the properties window, goto Advanced tab).
Pass it to table RSZELTXREF (pass query UID to field SELTUID and 'VAR' to field LAYTP). This gives the list of variables used in the query. Now got to table RSZGLOBV, pass all the variable IDs (field values for TELTUID from table RSZELTXREF) to the field VARUNIID and restrict VPROCTP to '6'. This gives a list of all the auth variables used in a query.
Regards,
Murali.
Similar Messages
-
How to find the list of Queries/Reports which are using Exceptional Aggregation in SAP BI?
Hi All,
We are interested to know how to find the list of Queries/ Reports which are using Exceptional aggregation in SAP BI.
Please let us know is there any table's to check the list of reports using Exceptional Aggregation in SAP BI.Hi,
Here you go..
1) Go to table RSZCALC and get list of ELTUID where AGGREXC is not INITIAL and AGGRCHA is not initial; now you get only exception aggregation set based on some chars. Also you can further add STEPNR = 1 since your intention is just to get query name , not the calculation details; this will reduce number of entries to lookup and save DB time for next steps.
Here you will get list of exception aggregation UUID numbers from which you can get properties from RSZELTDIR.
2) Pass list of RSZCALC-ELTUID to table RSZELTXREF - TELTUID and get list of RSZELTXREF -SELTUID - this table stores query to it's elements maping kind.
3) Now again pass RSZELTXREF - SELTUID into same table but into different field RSZELTZREF - TELTUID and get RSZELTXREF - SELTUID
This step you get query reference sheet or column or query general UUID for next step.
4) Pass list of RSZELTXREF - SELTUID into RSZELTDIR - ELTUID with DEFTP as 'REP'. Now you get list of query names in RSZELTDIR - MAPNAME and description in TXTLG.
Note: you can also get the reference chars used for exception aggregation from RSZCALC - AGGRCHA field.
Hope this helps.
Please keep in mind, it might take more time depends on how many query elements you have in the system...
Comments added for better DB performance by: Arun Thangaraj -
Find out the SQLs which are using a full table scan
Hello all , how can i to find out the queries which are using a full table scan ? Any idea ?
In general, though, why would you want to tune SQL statements that aren't causing problems? Statspack will tell you what the most resource-intensive SQL statements on your system are. A SQL*Net trace of sessions that are performing poorly will indicate which statements are the most resource-intensive for that session. If a statement is incorrectly doing a full-table scan, but it is not causing a problem, why spend time tuning it? If you're not focusing your tuning attention on identifying statements that are causing problems, you'll also miss out on 90% of tuning opportunities which involve rewriting (or eliminating) code to make it more efficient. I can simulate a join on two tables with nested cursor loops, which won't generate a single full table scan, but replacing that code with a real join, while it will cause at least one full table scan, will be orders of magnitude faster.
As an aside, full table scans aren't necessarily a bad thing. If a statement needs to retrieve more than a couple percent of the rows of a table, full table scans are the most efficient way to go.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Names of function module names which are useful in credit card payment
can anybody tell me names of function modules present in SAP which are useful in credit card payment processing.......pls its urgent
Hi Ashutosh,
Please check these Function Modules :
CREDIT_CARD_CHECK_CUSTOMERCARD
CREDIT_CARD_COMPLETE_DOCUMENT
CREDIT_CARD_DOCUMENT_SHLP_EXIT
CREDIT_CARD_FIND_DATA
CREDIT_CARD_GET_INSTITUTE
CREDIT_CARD_GET_RCODE_TEXTS
CREDIT_CARD_POST_REFUSAL
CREDIT_CARD_REFUSAL
CREDIT_CARD_CONVERT_FOR_SETTLE
CREDIT_CARD_SETTLEMENT
CREDIT_CARD_SETTLEMENT_RSP
FITP_CHARGE_CREDIT_CARD
FITP_VERIFY_CREDIT_CARD
FITP_READ_PERSONAL_CREDIT_CARD
Hope it helps.
Reward with Points if Helpful.
Regards
Hemant Khemani -
How to find reports which are using sales tables
Hi Guys,
we are using OBIEE 10g version.Here i need to identify the the reports which are using sales tables.
Table names are given but how to find which report is using these tables.Is there any method to find
or we have to check all reports manually?
Could any one pls suggest me here!
Regards,
sk
Edited by: 912736 on Jun 8, 2012 1:24 PMHi SK,
You can run a report from catalog manager that willl give you all answers requests and the subject area columns in use, you can map these back to the sales tables either manually or by linking (vlookup) to an RPD report that you can run from the Admin tool.
The Usage Tracking method is pretty good but you will have to match up the reports using the Logical SQL.
I'd do both methods and cross ref your results to ensure nothing slips the net.
Regards
Alastair -
Know the created info objects which are used in which info providers.
Hi Experts,
How can we know the zinfo objects which are used in which info providers.Hi,
Either you can check the where used list of Infoobject as suggested by Gaurav, or you can goto transaction SE16 and put the table name as RSDCUBEIOBJ and put the Infoobject name.
You will get the list of all Infoproviders in which the infoobject is used.
Regards,
Durgesh. -
How can I get the adobe audition software which is used for editing a sound track?
How can I get the adobe audition software which is used for editing a sound track?
Hi pravupada,
You can download Audition software from : Free Audition CC | Download Adobe Audition free trial
Regards,
Rave -
Problem starting Clustered server which are using VIP: Error while starti
Using coherence 3.6 , which comes with weblogic 10.3.5. We are using Clustered configuration , both clusters are supposed to start in VIPs.
But when starting those managed servers , getting the error:
bpel.fatal.conection.max.retry is set to 3<Oct 22, 2011 11:08:47 AM PDT> <Error> <Coherence> <BEA-000000> <2011-10-22 11:08:47.703/133.325 Oracle Coherence GE 3.6.0.4 <Error> (thread=[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Error while starting cluster: java.lang.IllegalArgumentException: The specified address "xgXXXXX5v1.ea.com/10.XX.XX.41" is not a local address.
at com.tangosol.net.InetAddressHelper.getLocalMTU(InetAddressHelper.java:139)
at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:95)
at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11)
at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:4)
at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:7)
at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:26)
at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2)
at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:998)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.java:913)This error should only occur if the JVM is unaware of a local network interface associated with this IP address. I know it is a silly suggestion but please confirm this IP shows up in the output from ifconfig. If it does, then this would appear to perhaps be a JVM bug which you might get around by manually specifying the packet sizes (see http://download.oracle.com/docs/cd/E24290_01/coh.371/e22837/appendix_operational.htm#BABHADGH) so that Coherence doesn't need to query he OS for the value.
Thanks,
Mark
Oracle Coherence -
How to identify the SQLs which are using the tables and new columns
Hi
I m using oracle 10G Database in windows. Developers have added some columns in some of the database tables and were asking to check whether there is some impact on performance or not. I have not done this performance tuning before. Kindly help me how to proceed further.
How to obtain the sqls which are touching the tables and the new columns? It would be really great if you can help me with this.
ThanksYou can try to use DBA_DEPENDENCIES to get PL/SQL objects using tables: http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1041.htm#i1576452.
However if SQL code is not stored in database in a trigger, a procedure, a function, a package or a view, it is impossible to retrieve all SQL code referencing some table from database dictionary: for this you would have to analyze application source code. -
How to get the Objects which are used in the webi Report.
Hi Expert,
I am trying to get the list of WebI reports and Objects which are present in the report at BO 4.0.
I can able to get details for only the list of reports and universes.
Could any one help me to get those details.
Regards,
Murali SWith 4.0, there is no longer a way to do this using just the .NET SDK because the ReportEngine SDK no longer exists for .NET. Instead, you'll have to look at using the RESTful Web Services SDK for Webi which runs in the Web Application Container Server on your report server (NOT on the web server!)
RESTful web services are platform-independent and don't require the installation of any SDK files. Everything is done through standard HTTP Get, Put, and Post commands and the results are returned in either XML or JSON format. You don't mention which service pack of 4.0 you're on, but the RESTful web services have evolved over the course of the 4.0 service packs, so more recent is definitely better.
You can find the documentation for this in the "Development Information" section at help.sap.com/bobip40. There is also a "space" on SCN for this at http://scn.sap.com/community/restful-sdk and there are some links on this page for various resources and sample code.
-Dell -
How to set the link to the result which are executed my query from database
Hi,
i have successfully displayed the results which are available in the database by jdbc, query.
Then, How to give the link like href to each & every result...
note: The number of records may be change. depending upon the records availablity in the database. but every result have the link.
Thanks in advance.
Regards
Kumarhai kumar..
i post an example code ..
<%
ResultSet rs1=stmt.executeQuery("select fromu,subject,message,mdate,status,mesid from message where to='" + lname +"'" );
while(rs1.next())
l=rs1.getLong(6);
out.println("<tr align='center'> <td> <a href='deletemessage.jsp?mesid="+ l + "'>Delete </a></td><td>" + rs1.getString(1) +"</td><td> <a href='viewmessage.jsp?mesid="+ l +"'>"+ rs1.getString(2) +"</a></td><td>"+ rs1.getString(4) +"</td><td>"+ rs1.getString(5) +"</td></tr>");
%> -
Vf01-should allow only those billing doc which are used
Hai gurus,
In Tcode VF01 for the field "Billing document" it displays all billing doucments which are in table TVFK(Billing doc types).
My Requirement is that for the field "Billing doucment" only those billing documents should appear which we are using.
How could this rqt be fulfilled?
Thanks in advanceI think this may not be possible in Std SAP. You migh have to write a code to do this.
But what can be done is that for a set of users we can define certain screens with specific billing types and thus restrict them from using other billing types.
This may be done using SHD0 t.code.
Regards,
Mani -
Indexing and Searching pdf files which are used as attachment in an Announcemnet list item
Hi all,
I am using a SharePoint 2013 online environment and trying to search and find pdf files which are attached to a announcement list item. However it does not find anything when I search for the name of the pdf file or the content of the pdf file.
When I attach a word to the list item it gets indexed and it find the file.
thanks and appreciate every kind of advice.Are you able to search for pdfs in other locations? SharePoint 2013 comes with an iFilter out of the box unlike 2010 which needed configuration.
-
How to idtentify web services which are used in the web application?
Hi All,
We need to identify all the web services that a web application is using. We need them so that we can use test them. We are a group of independent testers. We have access to IIS server's on which the application is hosted. Is there any way we can identify
them other than seeking out the DEV team to give out the list?
Thanks in advance.
Regards,
UmeshHello,
You have posted your query in the Project / Project Server forum, is this related to Microsoft's Project / Project Server? If not, you are better off posting this in one of the development forums. If you are unsure where to post, try here first:
https://social.technet.microsoft.com/Forums/en-US/home?forum=whatforum
In the mean time, you could look at using something like Fiddler:
http://www.telerik.com/fiddler
Paul
Paul Mather | Twitter |
http://pwmather.wordpress.com | CPS -
Audit types which are configured not found while creating Audit
Hi Experts,
Please help me to solve the below problem-
I have configured new Audit types in Audit managment. But while creating Audit in transaction PLMD_AUDIT, I could not find these in drop down of Audit type. How to rectify this problem?
Thanks in advance
Kiran1. In which system you are checking - if you have checking in Quailty client make sure your configuration has been transported from your
2. Just make sure you have configured the audit type -> SPRO -> cross app. components -> audit management -> audit definition -> audit type.
There is no possibility you cannot see in the dropdown.
Regards-
Maybe you are looking for
-
ICal does not work properly since the last OS update
Hi everybody, I run a Macbook 15 Retina RAM 16Gb with Mac OS 10.8.4. Over the past months (I think after updating the OS), iCal has not been working properly. TO make a long story short, as you can see on the screen cap, it is no longer possible to s
-
Invoice document missing in MCSI report
Hi Friends, This is regarding missing invoice documents in MCSI report in our production system. it was found that two invoice document numbers for a customer were missing where as these two documents are being displayed in BW report. I have checked
-
Anyone have an answer?
-
Enable Highlight Search Result in RH8 for Word
Hi all, Is the search option "Enable Highlight Search Result" available under RoboHelp 8 for Word? I can find the option in RoboHelp 8 but I can't find it under the RH8 for Word application. Any pointers or advice would be really helpful. Cheers, Le
-
X11 crashes upon startup, and restarts and restarts
My X11 was displaying all its white terminal windows in the top left corner under the dock and file menu bar (the window could never be moved). So I cleared ~/.xinitrc, and now X11 won't start. It opens for one second, and then crashes. It does this