Getting list of stored queries
Is there a way programmatically through APIs or the like to return information
on the stored queries in the server, such as the query names, type and number
of parameters, etc... ?
Thanks
ok, figured what i needed to do, there's a method in the Query Bean
"Joseph B." <[email protected]> wrote:
>
This is probably a dumb question but how do you use these methods. Is
there another
class that implements this interface that should be used?
"Mike Reiche" <[email protected]> wrote:
http://e-docs.bea.com/liquiddata/docs81/javadoc/com/bea/ldi/server/common/StoredQueryMetaData.html
- Mike
"Michael" <[email protected]> wrote:
Is there a way programmatically through APIs or the like to return
information
on the stored queries in the server, such as the query names, typeand
number
of parameters, etc... ?
Thanks
Similar Messages
-
How to get list of queries .....
how to get list of all queries on a particular cube, with descriptions?
(meta data repository is not avilable)Hi..
1. In the Bex you can fild the list of queries under a data target, by opening 'Queries'.
In the dialog box that appears, select the Infoarea button which is in the left pane.
You will get list of all Data targets. If you expand it you can find the queries built on those data target.
2. If you want to get the list of queries from Tables, you have to link the following tables:
RSZRANGE
RSZELTXREF
RSZELTTXT
RSRREPDIR
RSZSELECT
RSZCOMPDIR
Regards,
Debjani.. -
How to get values/data stored in the database into a list-item.
how to get values/data stored in the database into a list-item.
i tried to make a list item without any values assigned to it...but i got the below error.
FRM-30191: No list items defined for required poplist.
or
FRM-32082: Invalid value for given item type.
List EMPNO
Item: EMPNO
Block: EMP
Form: MODULE5
FRM-30085: Unable to adjust form for output.
then according to some docs, i tried the the following for the trigger
when-new-form-instance
declare
rg_name varchar2(40) := 'emp_rec';
status number;
groupid recordgroup;
it_id item;
begin
it_id := Find_Item('empno');
groupid := create_group_from_query(rg_name, 'select empno from emp');
status := populate_group(groupid);
populate_list(it_id, groupid);
end;
but yet didnt work... :(
so how the heck do i get values fetched from the database table into the list item?for list items you need to values in the record group, one is the shown value and one is the returned value.
Check out the online help for the populate_list built-in.
You'll need something like select ename,ename from emp as the record group query. -
Getting List of Workbooks or Queries by Info Area
Hi All,
I want to find and categorize all workbooks/queries by Info Area
I understand that this information could be found under Metadata Repository.
But there are 4000 workbooks/queries which I want to categorize and I was searching for for backend tables or a program where I could find a link between the Info Area and Workbooks/Queries so that I could get list of the workbooks/Queries sorted by Info Area in one go.
Can you please help.
Thanks,
GauravHi Gaurav
Please check the below thread..you have answer
List of Queries/Workbooks
Regards,
Venkatesh -
Hi,
Is it possible to get a list of all the queries which are assigned to a specific role?
I have a role and i want to generate a list of the queries in it via ABAP.
Regards,
KarenHi
I sugest you load the role via trx PVCG.
then get in to debug mode and track where does the reports/querys comes from.
Reg's
Edan -
Thru OEM get list of queries and their schemas that accessed my objects
Hi,
I have a list of objects on my schema and i need to track the list of sql queries by different users that accessed by object during this time period.
i haven't enabled any auditing yet.
is there any way i can get that list of queries and their schemas that accessed those particular objects during a particular time period through OEM.
Can someone guide me please.
Thanks in advance.
Philip.create a name property in your class and assign a name property to your instances (either in the contructor) and/or using getters/setters. (you'll need a getter anyway.)
-
Query to get list of linked server tables referenced inside a stored procedure
Hi,
SQL Server 2005 sp4
I have a requirement to get list of linked server tables referenced insider a stored procedure
Ex:
Databases DB1 DB2
Tables: T1 T2
Use DB1
Go
Create proc P1
begin
select * from T1
select * from DB2.dbo.T2
end
I am looking for a query which can return a result with output as below. sp_depends is not helping here as it does not work for cross DB objects, any other thoughts.
Tables
T1,
DB2.dbo.T2On SQL 2005, you will have to do it manually.
On SQL 2008 or later, you could have used sys.sql_expression_dependencies.
Erland Sommarskog, SQL Server MVP, [email protected] -
How to get BOOLEAN from STORED FUNCTION
We are calling legacy PLSQL stored procedures and functions via named queries. This has worked fine so far, but there are some functions which return the type 'BOOLEAN'. e.g.
FUNCTION some_function( some_argument IN NUMBER) RETURN BOOLEAN;
Where the return type is BOOLEAN calling the named query fails with
Local Exception Stack:
Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-06550: line 1, column 13:
PLS-00382: expression is of wrong type
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Error Code: 6550
A couple of threads have hinted that what we are trying to do is not possible:
How to get BOOLEAN from STORED PROCEDURES
Re: Creating Named Query: from OracleCallableStatement
This would possibly be due to 'restriction in the OCI layer'. Can anyone help? Is there really now way to call a valid PLSQL stored function via a named query when the return type is BOOLEAN?
thanksI can't comment on possible issues you might have with the driver, but if it can be done in JDBC, it should be possible in TopLink.
TopLink has the StoredFunctionCall which extends the StoredProcedureCall but adds an unnamed ouput parameter in the first spot of its parameter list. You will need to get the databasefield and set its type to BOOLEAN ie:
DatabaseField returnField = (DatabaseField)yourStoredFunctionCall.getParameters().firstElement();
returnField.setName(name);
returnField.setSqlType(Type.BOOLEAN);Be sure not to use the setType() method, as I believe TopLink will try to use the Type.BIT when a boolean class is used as the classtype.
Best Regards,
Chris -
Sharepoint 2010 List Item Stored in SQL - column optimalization
Hi guys,
I would like to ask you whether you know how are stored, optimalized or recalculated SQL tables where are sharepoint list items stored. I know that sharepoint has the limits how many text, number, boolean and datetimes columns can list item have to be stored
on one row in SQL table. Let's asume this scenario: I have large list, more than 50 thousand items, and I have more columns in each item, so each item is stored on 3 rows in SQL table. When the list had few items, everything was smooth, now every operation
with this list take too long so I would like to optimize the list. I can delete some unnecessary columns to satisfy the limits for storing items on one row in SQL table. Will it help to new added items? Will it help to old items which are already stored in
list and are on 3 rows in SQL? Will be this items recalculated in SQL, or is there any option how can I manage this??
Thanks for your ideas, any help would be appreciatedHello, thank you for you answer and interest in my problem. My list, isn't so small, it has about 180 columns and more than 50 000 items. I have taken this project after my friend who doesn't follow list recomandations and everything worked smooth around
25 000 items, since than is working with the list rapidly slowing down. Now I need to optimize it. Yes i have increased lookup treshold and I know that queries aren't ideal, but I can not optimize them any more. And from your article I have more than 24 DateTime
fields so I guess I am wrapping it to three lines. So I would like to delete some unnecessary colums at first and try to get to at least two lines, wheather it helps a bit. Dont worry, I wont modify the tables directly in SQL :-) -
How to add records or how to maintain list in stored Procedure
Hi,
I am facing an issue in the addition of record in the type
create or replace
TYPE "PROD_SEARCH_COUNT_TBL" AS TABLE OF PROD_SEARCH_COUNT_OBJ;
create or replace
TYPE "PROD_SEARCH_COUNT_OBJ" AS OBJECT
( /* TODO enter attribute and method declarations here */
V_Name Varchar2(500 Byte),
v_Value Varchar2(500 Byte),
v_count Number
I want to add records to the type I tried following way
prod_wcf_rec PROD_SEARCH_COUNT_TBL;
SELECT PROD_SEARCH_COUNT_OBJ('Name1','Value1',1) BULK COLLECT INTO prod_wcf_rec FROM DUAL;
SELECT PROD_SEARCH_COUNT_OBJ('Name2','Value2',2) BULK COLLECT INTO prod_wcf_rec FROM DUAL;
SELECT PROD_SEARCH_COUNT_OBJ('Name3','Value3',3) BULK COLLECT INTO prod_wcf_rec FROM DUAL;
SELECT PROD_SEARCH_COUNT_OBJ('Name4','Value4',4) BULK COLLECT INTO PROD_WCF_REC FROM DUAL;
DBMS_OUTPUT.PUT_LINE ('-----------------------------Looping----------------------------');
FOR i in 1 .. prod_wcf_rec.COUNT
LOOP
DBMS_OUTPUT.PUT_LINE (prod_wcf_rec(i).V_Name||' - '||prod_wcf_rec(i).v_Value||' - '||prod_wcf_rec(i).v_count);
END LOOP;
DBMS_OUTPUT.PUT_LINE ('-----------------------------Looping----------------------------');
In printing I am getting last records only .So is there any way to add records to PROD_SEARCH_COUNT_TBL
How to add records or how to maintain list in stored ProcedureEvery time you BULK COLLECT into a collection type the value is overwirtten. So you need to try something like this.
SQL> create or replace type prod_search_count_obj as object(v_name varchar2(500 byte), v_value varchar2(500 byte), v_count number)
2 /
Type created.
SQL> create or replace type prod_search_count_tbl as table of prod_search_count_obj
2 /
Type created.
SQL> declare
2 prod_wcf_rec prod_search_count_tbl;
3 begin
4 select obj_val
5 bulk collect into prod_wcf_rec
6 from (
7 select prod_search_count_obj('name1','value1',1) obj_val from dual
8 union all
9 select prod_search_count_obj('name2','value2',2) from dual
10 union all
11 select prod_search_count_obj('name3','value3',3) from dual
12 union all
13 select prod_search_count_obj('name4','value4',4) from dual
14 );
15
16 dbms_output.put_line ('-----------------------------looping----------------------------');
17 for i in 1 .. prod_wcf_rec.count
18 loop
19 dbms_output.put_line (prod_wcf_rec(i).v_name||' - '||prod_wcf_rec(i).v_value||' - '||prod_wcf_rec(i).v_count);
20 end loop;
21 dbms_output.put_line ('-----------------------------looping----------------------------');
22 end;
23 /
-----------------------------looping----------------------------
name1 - value1 - 1
name2 - value2 - 2
name3 - value3 - 3
name4 - value4 - 4
-----------------------------looping----------------------------
PL/SQL procedure successfully completed.
SQL> -
How to find the list of all queries on each and every cube in the system???
Hi All,
I need some method to get all the reports(queries)(technical name and description),run on all the infocubes in the system. The number is very huge...roughly...on each cube there are near about 40-50 reports and the number of cubes is also too high.
Is there any table or function moudle which can make this job easy and less time consuming.
Freinds I need this solution urgetly. Please rush back...
regards,
minalHi Minal,
RSZCOMPIC table lists queries built on the cubes.
COMPUID is an ID of the query.
RSZELTDIR table contains description of the reporting elements. DEFTP field equals REP designates queries.
Search for RSZELTDIR-ELTUID = RSZCOMPIC- COMPUID. Field MAPNAME will contain a tech name of the query and TXTLG field its description.
Best regards,
Eugene -
Old laptop crashed - how do I get the music stored on iPod into new laptop?
My old laptop crashed so I cannot follow the instructions for moving my iTunes library to a new computer because I can no longer go into my old iTunes and switch it to manual update and enable disk use. How can I get the music stored on my iPod into my new iTunes? I have a 60GB iPod video. Thanks
Connect your iPod to your computer. If it is set to update automatically you'll get a message that it is linked to a different library and asking if you want to link to this one and replace all your songs etc, press "Cancel". Pressing "Erase and Sync" will irretrievably remove all the songs from your iPod. Your iPod should appear in the iTunes source list from where you can change the update setting to manual and use your iPod without the risk of accidentally erasing it. Also when using most of the utilities listed below your iPod needs to be enabled for disc use, changing to manual update will do this by default. Check the "manually manage music and videos" box in Summary then press the Apply button: Managing content manually on iPod
Once you are safely connected there are a few things you can do to restore your iTunes from the iPod. If you have any iTunes Music Store purchases the transfer of purchased content from the iPod to authorised computers was introduced with iTunes 7. You'll find details in this article: Copying iTunes Store purchases from your iPod to a computer
The transfer of content from other sources such as songs imported from CD is designed by default to be one way from iTunes to iPod. However there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod. You'll find that they have varying degrees of functionality and some will transfer movies, videos, photos, podcasts and games as well. Have a look at the web pages and documentation, this is just a small selection of what's available, they are generally quite straightforward. You can read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
TuneJack Windows Only
iPod2PC Windows Only
iGadget Windows Only
iDump Windows Only
SharePod Windows Only
iRepo Mac and Windows
iPodRip Mac & Windows
YamiPod Mac and Windows
Music Rescue Mac & Windows
iPodCopy Mac and Windows
There is also a manual method of accessing the iPod's hard drive and copying songs back to iTunes on Windows or a Mac. The procedure is a bit involved and won't recover playlists but if you're interested it's available at this link: Two-way Street: Moving Music Off the iPod
Whichever of these retrieval methods you choose, keep your iPod in manual mode until you have reloaded your iTunes and you are happy with your playlists etc then it will be safe to return it auto-sync. I would also advise that you get yourself an external hard drive and back your stuff up, relying on an iPod as your sole backup is not a good idea and external drives are comparatively inexpensive these days, you can get loads of storage for a reasonable outlay. -
List of all queries in the system
Hi all
<b>I want to get a list of all QUERIES in my BW system and the details of the DATA TARGETS (cube or ODS) on which they are made.</b>
Can i get it from any TABLE or TRANSACTION? or will i have to go to each query ( grouped by INFOAREA) to do the same. This i felt will be very tedious. Please advise.
Regards,
Pradyut.Hi Pradyut,
Use this table instead - RSZCOMPIC. Give the selection parameter as cube/ods technical name and the version as active.
This would give the list of technical name of the queries for a Cube/ODS. To get the description of the query use the table RSZCOMPDIR -> give the technical name of the query as input parameter and get the desription. The description is stores in the COMPID field.
Hope this helps.
Bye
Dinesh
(Do not forget to assign points!!) -
Getting list of operations for a service Order
I have to List the operation activities which are Planned and Confirmed in a service order.
I'm unable to link the operation in service order for some ZREPORTING purpose as it links through structures only.
Kindly suggest how we can obtain operation details while reporting a service order.
Also let me know if there is any FUNCTION MODULE for the same.
Reply Eagerly Awaited.
Thanks in Advance.
Deepakhi deepak KM
order operations are stored in VIAUF_AFVC table .... and have a look at iw49 for getting list of operations and can use status inclusive and status exclusive for selection based on statuses.. of operations ...
regards
pushpa -
How can i get list price of product througth absl
Hello everyone
My actual requirement is get list price of all product which i am stored in system.My requirement i want to insert list price in temporary BO of All product but i unable to get all list price of the product.
I want all list price of product which is i am stored in sap system througth absl language but i am unable to execute list price of the Product
which BO stored List price and how can i retrieve list price througth absl for storing into the temporary Bo
Please experts guide us.Hello everyone
My actual requirement is get list price of all product which i am stored in system.My requirement i want to insert list price in temporary BO of All product but i unable to get all list price of the product.
I want all list price of product which is i am stored in sap system througth absl language but i am unable to execute list price of the Product
which BO stored List price and how can i retrieve list price througth absl for storing into the temporary Bo
Please experts guide us.
Maybe you are looking for
-
Install mac os tiger on powerbook g4
Hi all I have just received a 'old' powerbook g4 without harddrive. After I have installed a ned harddrive , it was ready for test. But what ever key I press (with the install dvd in the drive), the only screen to come up, was a blue one with to smal
-
Serious Mac Mini DVD Drive issue!
Ok guys, having big troubles with my Minis disc drive at the minute! Heres what happened- Tried to copy some files off a DVD so that I could make several copies of it for my grandfather. The Disc is a home made one that he made himself, complete with
-
How do I change the number of rings on messages?
How do I change the number of rings on messages. At the moment it rings twice and I miss it. Could do with being quite a few rings more.
-
hello my ipad 2 mic is not working. I tried vacuuming. Still no changes. Pls Help
-
SCUP not showing 17.0.0.134 Flash Versions?
Hi, Maybe its just me, but has anyone else noticed that SCUP is not showing 17.0.0.134. That catalog update aspect of this has been working fine for me for the last two years. Not sure what the issue is. Is there a link for a newer Flash SCUP catalog