Query is used or not
Hi,
how to check Query is used or not
Thanks,
Hi ,
Go to SE11 and check table RSRREPDIR .Here give your query name in COMPID and you will get
LASTUSER Last Changed By
MODTIME Last Change to Definition
REPTIME Last Change of Query Runtime Object
GEN1TIME Query Generation Time
I think this will solve your purpose .
Regards,
Jaya
Similar Messages
-
Aggregates in query being used or not.
Hi Guys,
I have a doubt. wondering if somebody can clarify it. When we run a query on cube with aggregates, how do we know whether the query is using the aggregates or not?
Can we check in ST03?
Thanks in advance.hi
go to tcode RSRT
give the query name
click execute + query
and in aggregates tab check mark select display agggregates
& check display aggregate found
regards
Dina
Edited by: Dinavel on Mar 14, 2008 10:37 PM -
Drag-n-n-drop query joins uses WHERE, not INNER JOIN syntax
When I highlight a few tables and drag them onto the sql worksheet, it will build a select statement for me and join the tables by their foreign keys.
That's a nice feature, thanks!
Three questions. Is it possible to:
1. get it to use the INNER JOIN and LEFT OUTER JOIN syntax instead of joining the tables in the WHERE clause?
2. control the table aliases so that it will automatically use the "standard alias" for the table instead of A, B, C, etc.?
3. get it to not put the schema name into the query?
Thanks!
Edited by: David Wendelken on Nov 22, 2008 1:48 PM. Grammar mistake.Hi Gopi,
Your code is Good.
But try to avoid Inner join with more number of Tables ...because this is a performance issue..
try to use..
select (primary key fields mainly,other fields) from LIKP into itab where bolnr in p_bolnr(paramater).
next try to use for all entries option..
select (primary key fields mainly,other fields) from VBFA for all entries in itab where (give the condition)....
simillarly do for the other select ....ok this will try to reduce the performance issue....
<b><REMOVED BY MODERATOR></b>
Message was edited by:
Alvaro Tejada Galindo -
WebI:Creating a minus query from data providers not using the same universe
Hi there. A client of ours wishes to use Combined Query on multiple universes in the same WebI report. So far, I have heard it is not feasible in WebI. I know it is possible in DeskI. Even the sub-query option is limited to just one universe in WebI. So, I am stuck.
Is there a workaround to creating a minus query from data providers not using the same universe in WebI?Hello Amit,
what are the Datasources ? Usually when you create a Sub Query you can choose a seperate Universe.
Maybe if you only see one Universe you only have the rights for this Universe ?!.
Regards
-Seb. -
Hi,
What would be the alternative for the below query by using not exists .
select cust_name from cust_info where cust_name not in( select distinct cust_name from cust_details where status = 'CURRENT')
Thanksit gives you all possible alternatives and ways tooptimize the query
Is it? I've actually seen a couple tools that do that - Quest and Leccotech come to mind. they would actually rewrite a query hundreds, if not thousands, of different ways - using every hint, even ones that had no reason to be used (and using different hint combinations), using different join orders (with the ordered hint), rewriting subqueries to joins, to inline views, to scalar subqueries in the select list, etc, etc (possibly even giving the MINUS rewrite). but the tools had no way to know which rewrite was optimal, so it would then just execute each and every one, which could take several days (considering that some of the rewrites were terrible).
so yeah, I think I'll hold onto that tuning guide for just a while longer ;) -
Can I refactor this query to use an index more efficiently?
I have a members table with fields such as id, last name, first name, address, join date, etc.
I have a unique index defined on (last_name, join_date, id).
This query will use the index for a range scan, no sort required since the index will be in order for that range ('Smith'):
SELECT members.*
FROM members
WHERE last_name = 'Smith'
ORDER BY joindate, idIs there any way I can get something like the following to use the index (with no sort) as well:
SELECT members.*
FROM members
WHERE last_name like 'S%'
ORDER BY joindate, idI understand the difficulty is probably; even if it does a range scan on every last name 'S%' (assuming it can?), they're not necessarily in order. Case in point:
Last_Name: JoinDate:
Smith 2/5/2010
Smuckers 1/10/2010An index range scan of 'S%' would return them in the above order, which is not ordered by joindate.
So is there any way I can refactor this (query or index) such that the index can be range scanned (using LIKE 'x%') and return rows in the correct order without performing a sort? Or is that simply not possible?xaeryan wrote:
I have a members table with fields such as id, last name, first name, address, join date, etc.
I have a unique index defined on (last_name, join_date, id).
This query will use the index for a range scan, no sort required since the index will be in order for that range ('Smith'):
SELECT members.*
FROM members
WHERE last_name = 'Smith'
ORDER BY joindate, idIs there any way I can get something like the following to use the index (with no sort) as well:
SELECT members.*
FROM members
WHERE last_name like 'S%'
ORDER BY joindate, idI understand the difficulty is probably; even if it does a range scan on every last name 'S%' (assuming it can?), they're not necessarily in order. Case in point:
Last_Name: JoinDate:
Smith 2/5/2010
Smuckers 1/10/2010An index range scan of 'S%' would return them in the above order, which is not ordered by joindate.
So is there any way I can refactor this (query or index) such that the index can be range scanned (using LIKE 'x%') and return rows in the correct order without performing a sort? Or is that simply not possible?Come on. Index column order does matter. "LIKE 'x%'" actually is full table scan. The db engine accesses contiguous index entries and then uses the ROWID values in the index to retrieve the table rows. -
Unable to parse query when using dblink in forms 4.5
Hi,
I have created a query that uses a DBlink because I need to do query on a table located on another dbase. I've used the query on creating my report using Reports 6i. The report needs to be called from a menu on our system, which was developed under Developer 2000 (forms 4.5). The problem is, when I tried to access the report from the menu, it returns the error 'unable to parse query'. What I did after getting error was to create a dummy module using Forms 6i, and call my report from there. It worked fine.
By the way, the table that I'm accessing using the dblink is under Oracle 9i dbase, and the dbase of the system that I've been working at is Oracle 8i.
I don't have any idea on what's causing this error. Is there a compatibility issue when using a dblink located in Oracle 9i database with forms 4.5?
Thanks!Hello,
Not sure if it is the good answer, but I know that Forms does not recognize dblink and owner.object syntax. You have to create a simple synomym that point to the distant object and use this synonym within Forms.
Francois -
WEB BASED MAPPING APPLICATION TO DEVELOP QUERY UTILITY USING MAPVIEWER
Dear Sir,
please any one can answer me as soon as possible its very urgent
WEB BASED MAPPING APPLICATION TO DEVELOP QUERY UTILITY USING MAPVIEWER
I As oracle mapviewer Chapter 8 (Oracle Maps) says generating our own Web based mapping application we are trying to generate our own maps for our own data contains in our layers like example boundary lines and roads and etc. and we are following complete example as described in Oracle Mapviewer Document Chapter 8.
Before this step we tried with demo data downloaded from OTN mvdemo. And we downloaded latest demo today itself from the OTN and imported into our database schema called mvdemo. And we copied all three jar files mvclient and mvconnection and mvpalette into our jdeveloper .
II. We created a jsp to execute the following code from oracle mapviewer chapter 8 documents
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/customizable" prefix="cust"%>
<%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/jwcache.tld"
prefix="jwcache"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
<%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/fileaccess.tld"
prefix="fileaccess"%>
<%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/jesitaglib.tld"
prefix="JESI"%>
<f:view>
<html>
<head>
<META http-equiv="Content-Type" content="text/html" charset=UTF-8>
<TITLE>A sample Oracle Maps Application</TITLE>
<script language="Javascript" src="jslib/loadscript.js"></script>
<script language=javascript>
var themebasedfoi=null
function on_load_mapview()
var baseURL = " http://localhost:8888/mapviewer/omserver";
// Create an MVMapView instance to display the map
var mapview = new MVMapView(document.getElementById("map"), baseURL);
// Add a base map layer as background
mapview.addBaseMapLayer(new MVBaseMap("mvdemo.demo_map"));
// Add a theme-based FOI layer to display customers on the map
themebasedfoi = new MVThemeBasedFOI('themebasedfoi1','mvdemo.customers');
themebasedfoi.setBringToTopOnMouseOver(true);
mapview.addThemeBasedFOI(themebasedfoi);
// Set the initial map center and zoom level
mapview.setCenter(MVSdoGeometry.createPoint(-122.45,37.7706,8307));
mapview.setZoomLevel(4);
// Add a navigation panel on the right side of the map
mapview.addNavigationPanel('east');
// Add a scale bar
mapview.addScaleBar();
// Display the map.
mapview.display();
function setLayerVisible(checkBox){
// Show the theme-based FOI layer if the check box is checked and
// hide the theme-based FOI layer otherwise.
if(checkBox.checked)
themebasedfoi.setVisible(true) ;
else
themebasedfoi.setVisible(false);
</script>
</head>
<body onload= javascript:on_load_mapview() >
<h2> A sample Oracle Maps Application</h2>
<INPUT TYPE="checkbox" onclick="setLayerVisible(this)" checked/>Show customers
<div id="map" style="width: 600px; height: 500px"></div>
</body>
</html>
</f:view>
<!--
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
<title>mapPage</title>
</head>
<body><h:form binding="#{backing_mapPage.form1}" id="form1"></h:form></body>
</html>
-->
<%-- oracle-jdev-comment:auto-binding-backing-bean-name:backing_mapPage--%>
III. When we run this jsp it’s giving us following Two errors
1 Error: ‘MVMapView’ is undefined
Code: 0
URL: http://192.168.100.149:8988/MapViewerApp-WebProj-context-root/faces/mapPage.jsp
2 Error: ‘themebasedfoi’ is null or not an object
Code: 0
URL: http://192.168.100.149:8988/MapViewerApp-WebProj-context-root/faces/mapPage.jsp
Please let us know what could be problem as soon as possible. Very urgent
Please let us know where we can find Mapviewer AJAX API’s for Jdeveloper Extention
Thanks
KabeerI currently use parameters, and they are passed from the form to the report. Report is then generated based on a function returning ‘strongly typed’ cursor. The ‘strongly typed’ cursor in my case returns a record consisting of an orderly collection of fields.
This collection of fields is returned by another function that relies on the IF … THEN logic.
However, the number of IF ... THEN statements is quite large (currently 64 covering all possible combinations of 6 parameters available in the form).
I would like to avoid the large number of IF … THEN statements, and hope that there is a way of passing a string to a query, where the Dynamic SQL would in Select close and Where close reflect parameters passed by the form.
In addition to this I would like to avoid creating and populating a table or a view dedicated to the report, because this may lead to a conflict in case of multiple users concurrently generating reports with different choice of parameters.
Edited by: user6883574 on May 28, 2009 9:16 PM -
How to find out Query last used by whom
Dear All,
Can any one tell me that "How to find out the Query last used by whom. I have already searched in SDN but no luck. In my system BW Stats are not installed and I have already checked the below tables.
RSZELTDIR - Directory of the reporting component elements
RSZELTTXT - Texts of reporting component elements
RSZELTXREF - Directory of query element references
RSRREPDIR - Directory of all reports (Query GENUNIID)
RSZCOMPDIR - Directory of reporting components
RSZRANGE - Selection specification for an element
RSZSELECT - Selection properties of an element
RSZELTDIR - Directory of the reporting component elements
RSZCOMPIC - Assignment reuseable component <-> InfoCube
RSZELTPRIO - Priorities with element collisions
RSZELTPROP - Element properties (settings)
RSZELTATTR - Attribute selection per dimension element
RSZCALC - Definition of a formula element
RSZCEL - Query Designer: Directory of Cells
RSZGLOBV - Global Variables in Reporting
RSZCHANGES Change history of reporting components
I am able to find out the Date and time but not the user name. So could you please help on this.
Regards
Sankari think u have missed it.
RSZCOMPDIR IS THE ONLY TABLE WHICH PROVIDES THE DATA.
ENTER TECHNICAL QUERY Name in RSZCOMPDIR-COMPID.
RSZCOMPDIR-TSTNAM gives you the user id of sap bw user who made the change.
RSZCOMPDIR-TSTPDAT gives you date on which change was made .
RSZCOMPDIR-TSTPTIM gives you timestamp on which change was made .
all users details can be obtained from TCODE SU01 where you need to enter sap user id.
You can also get user name( description) by using tcode SE09 and entering above sap user id. -
Combine two reports in query designer using key figure with sap exit
Hi experts,
i want to combine two reports in query designer using key figure with sap exit
in the report 1 key figure calculation based on the open on key date(0P_DATE_OPEN)
to calculate due and not due in two columns
in report 2 key figure calculate in the time zones using given in variable Grid Width (0DPM_BV0) like due in 1 to 30 days, 31 to 60 days...the due amount based on the open on key date(0P_DATE_OPEN)
to calculate in 1-30, 31-60, 61-90, 91-120, 121-150 and >150 days in 6 columns
now i have requirement like this
not due, 1-30, 31-60, >60, due,1-30, 31-60, >60 in 8 columns
or
not due, due, 1-30, 31-60, 61-90, 91-120, 121-150 and >150 in 8 col
thank youHi Dirk,
you perhaps know my requirement,
for the management to make used in one report,
we have in reporting finacials Ehp3.
Vendor Due Date Analysis - which show due, not due
Vendor Overdue Analysis - show only due and analysis in time grid frame
i want to combine in one report that show NOT DUE, DUE, DUE time frames in grid.
krish... -
Invalid column name in query string - using Format function
In my post just before this one the problem was solved for writing a query string using a date range. The rest of the query string includes the same date field (Call_Date) but formatted as 'MMM-YY'. I get an invalid column name error when I add this field to the query string. Here is the rest of the query string:
strSql = "SELECT Format(CALL_DATE,'mmm-yy'), " _
& "HOME_REGION FROM CCC2.CASE_EPRP " _
& "WHERE (HOME_REGION = 'NCR') AND " _
"(CALL_DATE >= to_date( '1/1/2002', 'MM/DD/YYYY' )" _
& "AND CALL_DATE <= to_date( '2/28/2003', 'MM/DD/YYYY' ))"
In the Access Query tool I can include this field
Format(CALL_DATE,'mmm-yy')
and the query runs fine (I just need to make it dynamic using ADO). But in my ADO query string above, I get the invalid column name error. Is there a way I can include
Format(CALL_DATE,'mmm-yy')
in my ADO query string? I appologize for not being more familiar with Oracle Sql. Any help greatly appreciated.
Thanks again,
RichThank you very much for your reply. I think I'm getting closer to the solution. Just I got an error message
"date format not recognized"
when I add "to_char( call_date, 'mmm-yy' )" to the query string. I tried using all uppercase, but that did not make a difference. Do I need to use to_date inside the to_char maybe?
to_char(to_date(call_date, 'mmm/yy'), 'mmm-yy')
Thanks again for your help.
Rich -
Needs help to retrive the last row in a select query without using rownum
Hi ,
i need to retrive the last row from the select sub query without using rownum.
is there any other way to retrive the last row other than the below query.
is that the ROWNUM=1 will always retrive the 1 row of the select query ?
select from*
*(select ename from employee where dept_id=5 order by desc) where rownum=1;*
Please advise.
thanks for your help advance,
regards,
Senthur957595 wrote:
Actually my problem is ithat while selecting the parents hiearchy of the child data using
CONNECT BY PRIOIR query
I need the immediate parent of my child data.
For example my connect BY query returns
AAA --- ROOT
BBB --PARENT -2
CCC --PARENT-1
DDD IS my input child to the connect by query
Immediate parent of my child data "DDD" ---> CCC(parent -1)
i want the data "CCC" from the select query,for that i am taking the last row of the query with rownum.
I got to hear that using ROWNUM to retrive the data will leads to some problem.It is a like a magic number.I am not sure what the problem will be.
So confusing with using this rownum in my query.
Please advice!!!It's not quite clear what you're wanting, but perhaps this may help?
you can select the PRIOR values to get the parent details if you want...
SQL> ed
Wrote file afiedt.buf
1 select empno, lpad(' ',(level-1)*2,' ')||ename as ename, prior empno as mgr
2 from emp
3 connect by mgr = prior empno
4* start with mgr is null
SQL> /
EMPNO ENAME MGR
7839 KING
7566 JONES 7839
7788 SCOTT 7566
7876 ADAMS 7788
7902 FORD 7566
7369 SMITH 7902
7698 BLAKE 7839
7499 ALLEN 7698
7521 WARD 7698
7654 MARTIN 7698
7844 TURNER 7698
7900 JAMES 7698
7782 CLARK 7839
7934 MILLER 7782
14 rows selected.(ok, not the best of examples as the mgr is already known for a row, but it demonstrates you can select prior data) -
Hi guys,
I'm trying to logical database MSM to report on material master but for some reason the following message appears:
The query specifications cannot be used to generate a list,
i.e. the query will probably not return the list you desire.
If you still want to execute the query, please use the
"Generate" function.
Errors are like this :
Fields from parallel tables within a line
Line: 01
Field: Post to Inspection Stock
(MARCV-INSMK, table MARCV)
Field: Item category group from material master
(MVKE-MTPOS, table MVKE)
Any idea what is the reason why this happens?
Thanks and regards
Stefan
Edited by: Stefan Tzandev on Sep 15, 2008 1:44 PMHey Stefan,
I know this is a long shot, but were you able to figure it out. I am having the same problem as we speak. I tried rearanging the fields according to the heirchy, it now works, but has a really bad output. Hope to hear from you.
Best Regards,
Matthew Ong -
Query in using = operator in xquery
I am using the >= operator in one of the where condition as:
declare function tns:getFactDlyOrdersTimePerdEndInRange(
$timePerdEndDateFrom as xs:dateTime, $timePerdEndDateTo as xs:dateTime)
as element(ns19:SymphOrdersDly)* {
fn-bea:fence(
for $SymphOrdersDly in ns20:SymphOrdersDly()
where $timePerdEndDateFrom < $SymphOrdersDly/TIME_PERD_END_DATE
and $timePerdEndDateTo >= $SymphOrdersDly/TIME_PERD_END_DATE
Here i am getin the query plan fine but when i am using this function in one of the other dataservice the query plan generated is not proper.
for $SymphOrdersDly in ns7:getFactDlyOrdersTimePerdEndInRange($lastDayCurrMthOrders, $lastDayNextMthOrders)1) Never use fn-bea:fence unless you have opened a case with customer support and they have explicitly told you to use it. If they have, only use it where they have told you.
2) You have not provided any information on what you mean by "the query plan generated is not proper"
3) You have not provided your DSP project/dataspace, so I have no idea what getFactDlyOrdersTimePerdEndInRange does.
You might look at http://forums.bea.com/thread.jspa?threadID=300003921 -
To check weather JAVAVM being used or not?
Hi,
We are in the process of cleaning up unnecessary components. As a part of this, first of all we are checking weather JAVAVM is being used or not? How to confirm weather JAVAVM is being used or not?
I gone through Database Feature Usage but could not find any entry related to JAVAVM, for rest of the components i was able to. Any hints on this.
DBA_REGISTRY
COMP_ID
COMP_NAME
VERSION
STATUS
MODIFIED
CATALOG
Oracle Database Catalog Views
10.2.0.5.0
VALID
23-JUN-2013 06:16:06
CATPROC
Oracle Database Packages and Types
10.2.0.5.0
VALID
23-JUN-2013 06:16:06
JAVAVM
JServer JAVA Virtual Machine
10.2.0.5.0
VALID
23-JUN-2013 06:16:07
CATJAVA
Oracle Database Java Packages
10.2.0.5.0
VALID
23-JUN-2013 06:16:07
And features usage is as follows.
Database Feature Usage
NAME
DETECTED_USAGES
ASO native encryption and checksumming
0
AWR Report
17
Advanced Replication
0
Advanced Security
0
Audit Options
41
Automatic Database Diagnostic Monitor
6
Automatic SQL Execution Memory
41
Automatic Segment Space Management (system)
41
Automatic Segment Space Management (user)
41
Automatic Storage Manager
0
Automatic Undo Management
41
Automatic Workload Repository
1
CSSCAN
0
Change Data Capture
0
Change-Aware Incremental Backup
0
Character Semantics
0
Character Set
41
Client Identifier
0
Data Guard
0
Data Guard Broker
0
Data Mining
0
Database Replay: Workload Capture
0
Diagnostic Pack
0
Dynamic SGA
0
EM Database Control
0
EM Grid Control
0
Extensibility
41
File Mapping
0
Flashback Database
0
Internode Parallel Execution
0
LOB
41
Label Security
0
Locally Managed Tablespaces (system)
41
Locally Managed Tablespaces (user)
41
Locator
0
MTTR Advisor
0
Materialized Views (User)
41
Messaging Gateway
0
Multiple Block Sizes
0
OLAP - Analytic Workspaces
0
OLAP - Cubes
0
Object
41
Oracle Database Vault
0
Oracle Managed Files
0
PL/SQL Native Compilation
0
Parallel SQL DDL Execution
24
Parallel SQL DML Execution
0
Parallel SQL Query Execution
35
Partitioning (system)
41
Partitioning (user)
0
Protection Mode - Maximum Availability
0
Protection Mode - Maximum Performance
41
Protection Mode - Maximum Protection
0
Protection Mode - Unprotected
0
RMAN - Disk Backup
0
RMAN - Tape Backup
0
Real Application Clusters (RAC)
0
Recovery Area
0
Recovery Manager (RMAN)
0
Resource Manager
0
SQL Access Advisor
0
SQL Tuning Advisor
7
SQL Tuning Set
41
Segment Advisor
40
Server Parameter File
5
Shared Server
37
Spatial
0
Standby Archival - ARCH
0
Standby Archival - LGWR
0
Standby Transmission
0
Streams (system)
0
Streams (user)
0
Transparent Gateway
0
Tuning Pack
0
Undo Advisor
0
Virtual Private Database (VPD)
0
XDB
0
D
Regards
DBA.We are in the process of cleaning up unnecessary components. As a part of this, first of all we are checking weather JAVAVM is being used or not? How to confirm weather JAVAVM is being used or not?
Yes - if you have an Oracle database the JVM is being used.
There is NOTHING to 'clean up' as far as the internal JVM that is part of Oracle.
You can NOT modify it or upgrade it. And if you remove it Oracle will also remove your database.
See the Database Installation Guide
http://docs.oracle.com/cd/B28359_01/install.111/b32002/remove_oracle_sw.htm#CCHBABDE
In the Inventory screen, select the Oracle home and the products that you want to remove, then click Remove.
Note:
If you choose to remove Oracle JVM, Oracle Universal Installer removes all installed products that depend on Oracle JVM, including Oracle Database 11g.
Maybe you are looking for
-
Hi guys, as I´m having some problems with namespacing the CSS and JAVA-file, if was just wondering if the files Dong Pan created in his brilliant Webinar "Creating and Sharing Your Lumira Chart Extensions" at the 18th of June where available online.
-
Why can't I share recordings between 2 HD DVRs?
We recently installed FIOS. Started with one HD receiver in the bedroom and a multiroom DVR downstairs. We didn't realize you couldn't control recording from the HD receiver, so got limited value from that set-up. Decided to go back to what we had
-
Removing genres from drop down menu in iTunes.
How can I remove deleted genres from the drop down menu in iTunes? This is not a question on how to remove genres from iTunes interface but from the drop down menu once a genre has been removed.
-
Peer reviews,coding standards and audit norms
hi, what is meant by peer reviews, coding standards and audit norms in development project of ABAP. regds: balakrishna.
-
PB 12" 867MHz and OSX 10.5
I am thinking of installing OSX 10.5 Leopard to my sister's PowerBook 12" 867Mhz. I would like to do this as I am in Japan and she is in UK so easier for me to help when asked. Currently using Chicken of VNC and VNC server. Possible?? Anyone installe