How to query repository?
Hi,
I would like to query the Forte repository using TOOL code. How do I do this? I had done this a long time back by setting some trace/log flags, but I can't recollect it.
Thanks,
Eric
Here are Some trace logs related to repository
trc:rp Logs all activities on the Repository.
trc:rp:2 Enables tracing of user actions that affect the repository.
Messages will be generated for the local client only.
Messages are the same format as those written to the
central repository operation (.ROP) file. There are two
useful "volume" levels: 50 and 75. 50 is normal and should
suffice for most occasions. Level 75 is quite verbose.
trc:rp:18:100 trace state of the components
trc:rp:21 Starting with release 1.1.J.0, this trace logs performance
characterstics of the repository cache (known as the LOS, the
Local Object Space manager). See technote 9343 for more details.
trc:rp:39 Trace operations at the storage manager access level.
In particular, trc:rp:39:1 will display messages about recovery
from Ctree and Btree before image logs.
trc:rp:41 Traces dependency manager notification operation.
1 - Funny situations that might or might not be expected.
25 - Start of notificiations.
50 - Which dependents are notified.
150 - Each dependent as it is considered.
trc:rp:42 Traces dependency manager management operation (e.g. addition
and deletions from DM).
50 - Entry of new records, deletion of records, bit setting
75 - Gotten bit values
100 - method entries
trc:rp:45-47 Traces Btree cache, before image logging, and logical I/O activity
trc:rp:59:100 trace & update state of the components
anything else let me know
suresh
[email protected]
Similar Messages
-
How to query repository to determine Dynamic parameters used by a report
Using BOXI 3.1 SP3
Windows 2008
.NET
SQL 2008 Database
I would like to query the repository to figure out which report is using which a dynamic parameter and then to figure out the name of that dynamic paremeter.
The issue is the when I publish a report with Dynamic Paremeters from CR2008 to BOXI, BOXI will automatically create all the underlying connections and also rename the parameters if there is a duplicate. I have a situation where there were over 100 +reports published and thru repository explorer in CR2008, it's impossible to tell which parameter belongs to which report.
I would like to find in the repository the name of the dynamic parameters being used by the report.
If I query CI_INFOOBJECTS, it does have the prompts and the original name (SI_NAME). I don't know if it's possible thru Query Builder to query and find this result, or whether I need to write some .NET code. The only hint in CI_INFOOBJECTS that a report has dynamic parameter is thru SI_GROUP_ID = eor://HOECRS02.NA.XOM.COM:6400/AVDGc3Df_G5Ej9HoJqO3V2g
All dynamic parameters have SI_GROUP_ID populated.....but not sure how to use this unique value AVDGc3Df_G5Ej9HoJqO3V2g which appears to be a SI_CUID but not sure what to query next to get more information.
If anyone has a query built already or some code to point me in the right directiion, that would be greatly appreciated.The best way to determine what your wattage draw is is to purchase a killawatt meter. They are relatively inexpensive (20-30 bucks).
http://www.amazon.com/P3-International-P4400-Electricity-Monitor/dp/B00009MDBU/r ef=pdbbs_sr1?ie=UTF8&s=hi&qid=1209640995&sr=8-1
Glor -
How to query opening balance for all customer or Vendor for an speci. date
Hi,
How to query opening balance for all customer or Vendor for an specific date?
Example:
put any date and query will show all customer/ Vendor that date opening/current balance.
Regards,
MizanHi mizan700 ,
Try this
SELECT T0.[DocNum] As 'Doc No.', T0.[CardCode] As 'Customer Code',
T0.[CardName] As 'Customer Name',(T0.[DocTotal]-T0.[PaidSys]) As 'O/S Balance'
FROM OINV T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
INNER JOIN OCRG T2 on T1.GroupCode = T2.GroupCode
INNER JOIN INV1 T3 ON T0.DocEntry = T3.DocEntry
WHERE T0.[DocStatus] ='O'
AND
(T0.[DocDate] >='[%0]' AND T0.[DocDate] <='[%1]')
Regards:
Balaji.S -
Looking for a simple example of how to query all the accounts
I'm new to the web service model in oracle crm and have been trying to just get a list of the accounts in the system. I generated a .cs class from the account wsdl and added it to my asp.net project. I'm able to get a handle on the account class but not sure the right syntax to make a call out.. As a fyi - i also have been able to login thru the service and obtain a session id.. so I'm that far..
Are they any existing code examples on how to query this? This is what I have so far but i throws an exception -
Account act = new Account();
act.Url = "https://"+dbcon.serverName+"/Services/Integration;jsessionid="+ sID;
AccountWS_AccountQueryPage_Input qbe = new AccountWS_AccountQueryPage_Input();
AccountWS_AccountQueryPage_Output qRet;
qbe.ListOfAccount = new Account1[1];
qbe.ListOfAccount[0] = new Account1();
qbe.PageSize = "20";
qbe.StartRowNum = "0";
qbe.ListOfAccount[0].AccountId = "";
qbe.ListOfAccount[0].Description = "";
//act.CookieContainer = .... is this line needed?
qRet = act.AccountQueryPage(qbe);
return qRet.ToString();
Thanks in advance for your help - Todd
Edited by: user11139473 on May 6, 2009 6:33 PMHi,
I am doing the same thing but I am not sure what is Account1 in your case. Can you show me the implementation of Account1 class?
Account act = new Account();
act.Url = "https://"dbcon.serverName"/Services/Integration;jsessionid="+ sID;
AccountWS_AccountQueryPage_Input qbe = new AccountWS_AccountQueryPage_Input();
AccountWS_AccountQueryPage_Output qRet;
qbe.ListOfAccount = new Account1[1]; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< qbe.ListOfAccount = new ListOfAccountQuery();
qbe.ListOfAccount[0] = new Account1(); <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
qbe.PageSize = "20";
qbe.StartRowNum = "0";
qbe.ListOfAccount[0].AccountId = ""; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
qbe.ListOfAccount[0].Description = ""; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
//act.CookieContainer = .... is this line needed?
qRet = act.AccountQueryPage(qbe);
return qRet.ToString();
On the right is my line of code. The ListOfAccount member of AccountQueryPage_Input has datatype ListOfAccountQuery. In my case, a NULL is returned after the call.
Did you code work in the end?
Thanks -
How to query attributes with namespace in xmltable? thanks
sample schema:
<xsd:schema elementFormDefault="qualified" targetNamespace="http://www.tse.or.jp/jp/br/tdnet/ed/pt/2006-03-31">
<xsd:element name="LocationOfHeadOffice" id="tse-ed-pt_LocationOfHeadOffice" type="xbrli:stringItemType" substitutionGroup="xbrli:item" abstract="false" nillable="true" xbrli:periodType="instant"/>
<xsd:schema>
My question is how to query the attribute xbrli:periodType using function xmltable.
My query statement(it's just a part of it and it does not work):
xmltable(XMLNamespaces('http://www.w3.org/2001/XMLSchema' as xs,
'http://www.xbrl.org/2003/instance' as xbrli),
'/xs:schema/xs:element'
passing a.schema
columns periodType varchar2(1000) path '@xbrli:periodType') b
And the error message:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00601: Invalid token in: '/*/@xs:nillable'
In fact, with standard xpath "doc("taxonomy.xsd")/xs:schema/xs:element/@xbrli:periodType", we can use the namespace with attributes, but why the xmltable function does not support it?
And, how can I query this attribute?
Thanks a lot.sorry for the mistake, the error message:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00601: Invalid token in: '/*/@xbrli:periodType' -
How to query from the xml table a single, specified element.
I'm quite new in Xml Db. Pleas, can anybody tell me how to query from the xml table below a single element (i.e. the element 'rapportoparentela = NIPOTE' related to the element 'codicefiscale = CRRVNC76R52G337R', or the element 'rapportoparentela = FIGLIO' related to the element 'codicefiscale = CRRRNT51L23G337Q')?
- <dati xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<codiceinterno />
<codicefiscaleassistito>CRRMNL81R31G337H</codicefiscaleassistito>
- <famigliare>
<codicefiscale>CRRVNC76R52G337R</codicefiscale>
<rapportoparentela>NIPOTE</rapportoparentela>
</famigliare>
- <famigliare>
<codicefiscale>CRRRNT51L23G337Q</codicefiscale>
<rapportoparentela>FIGLIO</rapportoparentela>
</famigliare>
- <famigliare>
<codicefiscale>CBRPRN15S65E080W</codicefiscale>
<rapportoparentela>I.S.</rapportoparentela>
</famigliare>
- <famigliare>
<codicefiscale>CRRMNL81R31G337H</codicefiscale>
<rapportoparentela>NIPOTE</rapportoparentela>
</famigliare>
- <famigliare>
<codicefiscale>BCCCML54C50I845G</codicefiscale>
<rapportoparentela>NUORA</rapportoparentela>
</famigliare>
</dati>
Using SELECT extractValue(value(t),'/rapportoparentela') into result FROM NF_XMLT X,
TABLE ( xmlsequence (extract(value(X),'/dati/famigliare/rapportoparentela'))) t
I get all the elements 'rapportoparentela' and I want to get only one specified.
Regards.
PieroPiero,
you can add the condition "CRRVNC76R52G337R" to your xpath-expression like:
SELECT extractValue(value(t),'/rapportoparentela')
FROM NF_XMLT x
,TABLE ( xmlsequence (extract(value(X),'/dati/famigliare[rapportoparentela="CRRVNC76R52G337R"]'))) tto select only those famigliare-elements that have a child-element rapportoparentela with value "CRRVNC76R52G337R".
When you stored your XML in an XMLType column in the table, i think the following queries are better:
SELECT extractValue(x.your_XMLType_column,'/dati/famigliare/rapportoparentela')
FROM NF_XMLT x
WHERE extractValue(x.your_XMLType_column,'/dati/famigliare/codicefiscale')
= 'CRRVNC76R52G337R'or
SELECT extractValue(x.your_XMLType_column,'/dati/famigliare/rapportoparentela')
FROM NF_XMLT x
WHERE existsNode(x.your_XMLType_column,'/dati/famigliare[codicefiscale="CRRVNC76R52G337R"]')
!= 0 -
How to query uncommited transactions
Hi Does anyone know how to query Oracle database from SQL*Plus to view uncommitted transactions?
ThanksI noticed after I posted that I had used a package I found on the web called list that includes several useful functions. So in case someone wants it, here are the package and body:
***PACKAGE***
CREATE OR REPLACE PACKAGE list AUTHID CURRENT_USER IS
-- All of these functions and procedures have the following parameters:
-- list_in - A delimited list to be parsed.
-- delimiter - The delimiter to be used for parsing the list. Defaults
-- to a comma.
-- null_item - What to do with null items in the list. A null item is created
-- by consecutive occurances of the delimiter. Valid values are
-- 'KEEP' to allow items in the list to be null, or 'SKIP' to ignore
-- null items, ie. treat consecutive occurances of delimiters as a
-- single delimiter. The default is 'KEEP'.
-- delimiter_use - How the delimiter is to be interpreted. Valid values are
-- 'ANY' to treat the entire delimiter string as a single occurance
-- of a delimiter which must be matched exactly, or 'ANY' to treat
-- the delimiter string as a set of single character delimiters, any
-- of which is a delimiter. The default is 'ANY'.
-- Return the first item in a list.
FUNCTION head(
list_in IN VARCHAR2,
delimiter IN VARCHAR2 DEFAULT ',',
null_item IN VARCHAR2 DEFAULT 'KEEP',
delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN VARCHAR2;
PRAGMA RESTRICT_REFERENCES (head,WNDS,WNPS);
-- Return the remainder of a list after the first item and its delimiter.
FUNCTION tail(
list_in IN VARCHAR2,
delimiter IN VARCHAR2 DEFAULT ',',
null_item IN VARCHAR2 DEFAULT 'KEEP',
delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN VARCHAR2;
PRAGMA RESTRICT_REFERENCES (tail,WNDS,WNPS);
-- Return the nth item in a list.
-- The parameter, item_num, denotes which item to return.
FUNCTION item(
list_in IN VARCHAR2,
item_num IN INTEGER DEFAULT 1,
delimiter IN VARCHAR2 DEFAULT ',',
null_item IN VARCHAR2 DEFAULT 'KEEP',
delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN VARCHAR2;
PRAGMA RESTRICT_REFERENCES (item,WNDS);
-- Append an item to a list and return the new list.
-- The parameter, item_in, contains the new item to append.
FUNCTION append_item(
list_in IN VARCHAR2,
item_in IN VARCHAR2,
delimiter IN VARCHAR2 DEFAULT ',') RETURN VARCHAR2;
PRAGMA RESTRICT_REFERENCES (append_item,WNDS);
-- Return the number of items in a list.
FUNCTION num_items(
list_in IN VARCHAR2,
delimiter IN VARCHAR2 DEFAULT ',',
null_item IN VARCHAR2 DEFAULT 'KEEP',
delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN INTEGER;
PRAGMA RESTRICT_REFERENCES (num_items,WNDS);
-- Search a list for an item, and give its location in the list,
-- or zero IF not found.
-- The parameter, item_in, gives the item to be found in the list.
FUNCTION in_list(
list_in IN VARCHAR2,
item_in IN VARCHAR2,
delimiter IN VARCHAR2 DEFAULT ',',
null_item IN VARCHAR2 DEFAULT 'KEEP',
delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN INTEGER;
PRAGMA RESTRICT_REFERENCES (in_list,WNDS);
-- Convert an array to a delimited list.
-- The array to be input is a DBMS_UTILITY.uncl_array so that
-- the LIST package is compatible with the comma_to_table and
-- table_to_comma built ins.
-- In this function, delimiter is always treated as a single
-- string.
FUNCTION array_to_list(
array_in IN DBMS_UTILITY.UNCL_ARRAY,
arrlen_in IN INTEGER,
delimiter IN VARCHAR2 DEFAULT ',') RETURN VARCHAR2;
PRAGMA RESTRICT_REFERENCES (array_to_list,WNDS,WNPS);
-- Print a list using DBMS_OUTPUT.
PROCEDURE print_list(
list_in IN VARCHAR2,
delimiter IN VARCHAR2 DEFAULT ',',
null_item IN VARCHAR2 DEFAULT 'KEEP',
delimiter_use IN VARCHAR2 DEFAULT 'ANY');
-- Convert a list to an array and return the array and its size.
-- This is a procedure because it returns more than one value.
-- The array to be returned is a DBMS_UTILITY.uncl_array so that
-- the LIST package is compatible with the comma_to_table and
-- table_to_comma built ins.
PROCEDURE list_to_array(
list_in IN VARCHAR2,
arrlen OUT BINARY_INTEGER,
array_out OUT DBMS_UTILITY.uncl_array,
delimiter IN VARCHAR2 DEFAULT ',',
null_item IN VARCHAR2 DEFAULT 'KEEP',
delimiter_use IN VARCHAR2 DEFAULT 'ANY');
-- Sort a list
-- Null items are always skipped when sorting lists, since they would sort
-- to the end of the list anyway. CMPFNC is the name of a function to compare
-- two items. The default of '>' sorts in ascending order, '<' in descending order.
-- If you write your own function to be used for sorting, it must:
-- 1. Take two parameters of type VARCHAR2
-- 2. Return an INTEGER
-- 3. Return a negative number if the first item is to sort lower than
-- the second, a zero if they are to sort as if equal, or a positive
-- number if the first item is to sort higher than the second.
-- 4. Be executable by the user running the sort. Normal naming rules apply.
FUNCTION sort_list(
list_in IN VARCHAR2,
delimiter IN VARCHAR2 DEFAULT ',',
cmpfnc IN VARCHAR2 DEFAULT '>',
delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN VARCHAR2;
PRAGMA RESTRICT_REFERENCES (sort_list,WNDS);
end;
***END PACKAGE SPEC***
***BEGIN BODY***
CREATE OR REPLACE PACKAGE BODY list IS
current_list VARCHAR2(32760) DEFAULT '';
current_delim VARCHAR2(30) DEFAULT ',';
TYPE list_array IS TABLE OF VARCHAR2(2000)
INDEX BY BINARY_INTEGER;
current_array list_array;
current_arrlen BINARY_INTEGER DEFAULT 0;
current_null_item VARCHAR2(4) DEFAULT '';
current_delimiter_use VARCHAR2(3) DEFAULT '';
-- Find the first delimiter.
FUNCTION find_delimiter(
list_in IN VARCHAR2,
delimiter IN VARCHAR2 DEFAULT ',',
null_item IN VARCHAR2 DEFAULT 'KEEP',
delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN BINARY_INTEGER IS
delimiter_loc BINARY_INTEGER;
BEGIN
IF upper(delimiter_use) = 'ALL' THEN
delimiter_loc := INSTR(list_in,delimiter);
ELSIF upper(delimiter_use) = 'ANY' THEN
delimiter_loc := INSTR(TRANSLATE(list_in,delimiter,ltrim(RPAD(' ',LENGTH(delimiter)+1,CHR(31)))),CHR(31));
END IF;
RETURN delimiter_loc;
END find_delimiter;
-- Return the first item in a list.
FUNCTION head(
list_in IN VARCHAR2,
delimiter IN VARCHAR2 DEFAULT ',',
null_item IN VARCHAR2 DEFAULT 'KEEP',
delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN VARCHAR2 IS
delimiter_loc BINARY_INTEGER;
BEGIN
delimiter_loc := find_delimiter(list_in,delimiter,null_item,delimiter_use);
IF delimiter_loc > 1 THEN
RETURN SUBSTR(list_in,1,delimiter_loc-1);
ELSIF delimiter_loc = 1 THEN
RETURN NULL;
ELSE
RETURN list_in;
END IF;
END head;
-- Return the remainder of a list after the first item and its delimiter.
FUNCTION tail(
list_in IN VARCHAR2,
delimiter IN VARCHAR2 DEFAULT ',',
null_item IN VARCHAR2 DEFAULT 'KEEP',
delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN VARCHAR2 IS
start_ch BINARY_INTEGER;
BEGIN
start_ch := find_delimiter(list_in,delimiter,null_item,delimiter_use);
IF start_ch = 0 THEN
RETURN NULL;
ELSE
IF upper(delimiter_use) = 'ALL' THEN
start_ch := start_ch + LENGTH(delimiter);
ELSE
start_ch := start_ch + 1;
END IF;
IF start_ch > LENGTH(list_in) THEN
RETURN NULL;
ELSE
RETURN SUBSTR(list_in,start_ch);
END IF;
END IF;
END tail;
-- Convert a list to an array.
PROCEDURE parse_list(
list_in IN VARCHAR2,
delimiter IN VARCHAR2 DEFAULT ',',
null_item IN VARCHAR2 DEFAULT 'KEEP',
delimiter_use IN VARCHAR2 DEFAULT 'ANY') IS
list_to_parse VARCHAR2(32760);
BEGIN
IF list_in = current_list AND
delimiter = current_delim AND
null_item = current_null_item AND
delimiter_use = current_delimiter_use THEN
NULL;
ELSE
current_list := list_in;
current_delim := delimiter;
current_null_item := upper(null_item);
current_delimiter_use := upper(delimiter_use);
list_to_parse := list_in;
current_arrlen := 0;
WHILE list_to_parse IS NOT NULL LOOP
IF current_null_item <> 'SKIP' OR
head(list_to_parse,delimiter,null_item,delimiter_use) IS NOT NULL THEN
current_arrlen := current_arrlen + 1;
current_array(current_arrlen) := SUBSTR(head(list_to_parse,delimiter,null_item,delimiter_use),1,2000);
END IF;
list_to_parse := tail(list_to_parse, delimiter,null_item,delimiter_use);
END LOOP;
END IF;
END parse_list;
-- Convert a list to an array and return the array and its size.
PROCEDURE list_to_array(
list_in IN VARCHAR2,
arrlen OUT BINARY_INTEGER,
array_out OUT DBMS_UTILITY.uncl_array,
delimiter IN VARCHAR2 DEFAULT ',',
null_item IN VARCHAR2 DEFAULT 'KEEP',
delimiter_use IN VARCHAR2 DEFAULT 'ANY') IS
BEGIN
parse_list(list_in,delimiter,null_item,delimiter_use);
arrlen := current_arrlen;
FOR i IN 1..arrlen LOOP
array_out(i) := SUBSTR(current_array(i),1,240);
END LOOP;
END list_to_array;
-- Print a list using DBMS_OUTPUT.
PROCEDURE print_list(
list_in IN VARCHAR2,
delimiter IN VARCHAR2 DEFAULT ',',
null_item IN VARCHAR2 DEFAULT 'KEEP',
delimiter_use IN VARCHAR2 DEFAULT 'ANY') IS
BEGIN
DBMS_OUTPUT.ENABLE(100000);
parse_list(list_in,delimiter,null_item,delimiter_use);
FOR i IN 1..current_arrlen LOOP
dbms_output.put_line(SUBSTR(current_array(i),1,240));
END LOOP;
END print_list;
-- Return the number of items in a list.
FUNCTION num_items(
list_in IN VARCHAR2,
delimiter IN VARCHAR2 DEFAULT ',',
null_item IN VARCHAR2 DEFAULT 'KEEP',
delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN INTEGER is
BEGIN
parse_list(list_in,delimiter,null_item,delimiter_use);
RETURN current_arrlen;
END num_items;
-- Return the nth item in a list.
FUNCTION item(
list_in IN VARCHAR2,
item_num IN INTEGER DEFAULT 1,
delimiter IN VARCHAR2 DEFAULT ',',
null_item IN VARCHAR2 DEFAULT 'KEEP',
delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN VARCHAR2 is
BEGIN
parse_list(list_in,delimiter,null_item,delimiter_use);
IF item_num NOT BETWEEN 1 AND current_arrlen THEN
RETURN NULL;
ELSE
RETURN current_array(item_num);
END IF;
END item;
-- Append an item to a list and return the new list.
-- The parameter, item_in, contains the new item to append.
FUNCTION append_item(
list_in IN VARCHAR2,
item_in IN VARCHAR2,
delimiter IN VARCHAR2 DEFAULT ',') RETURN VARCHAR2 IS
BEGIN
IF list_in IS NULL THEN
RETURN item_in;
ELSE
RETURN list_in || delimiter || item_in;
END IF;
END append_item;
-- Search a list for an item, and give its location in the list,
-- or zero IF not found.
FUNCTION in_list(
list_in IN VARCHAR2,
item_in IN VARCHAR2,
delimiter IN VARCHAR2 DEFAULT ',',
null_item IN VARCHAR2 DEFAULT 'KEEP',
delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN INTEGER is
BEGIN
parse_list(list_in,delimiter,null_item,delimiter_use);
FOR item_num IN 1..current_arrlen LOOP
IF current_array(item_num) = item_in THEN
RETURN item_num;
END IF;
END LOOP;
RETURN 0;
END in_list;
-- Convert an array to a delimited list.
FUNCTION array_to_list(
array_in IN DBMS_UTILITY.UNCL_ARRAY,
arrlen_in IN INTEGER,
delimiter IN VARCHAR2 DEFAULT ',') RETURN VARCHAR2 IS
list_out VARCHAR2(32760):= '';
BEGIN
FOR item_num IN 1 .. arrlen_in LOOP
EXIT WHEN LENGTH(list_out) +
LENGTH(array_in(item_num)) > 32760;
list_out := list_out||array_in(item_num);
IF item_num < arrlen_in THEN
list_out := list_out||delimiter;
END IF;
END LOOP;
RETURN list_out;
END array_to_list;
-- Sort a list
FUNCTION sort_list(
list_in IN VARCHAR2,
delimiter IN VARCHAR2 DEFAULT ',',
cmpFnc IN VARCHAR2 DEFAULT '>',
delimiter_use IN VARCHAR2 DEFAULT 'ANY') RETURN VARCHAR2 IS
temp_array list_array;
temp_len PLS_INTEGER := 0;
temp_item VARCHAR2(2000);
list_out VARCHAR2(32760);
PROCEDURE swap (
first_item IN OUT VARCHAR2,
second_item IN OUT VARCHAR2) IS
temp_item VARCHAR2(2000);
BEGIN
temp_item := first_item;
first_item := second_item;
second_item := temp_item;
END swap;
FUNCTION cmp (
first_item IN VARCHAR2,
second_item IN VARCHAR2,
cmpfnc IN VARCHAR2 DEFAULT '=') RETURN INTEGER IS
return_value INTEGER;
BEGIN
IF cmpfnc = '>' THEN
IF first_item < second_item THEN
return_value := -1;
ELSIF first_item = second_item THEN
return_value := 0;
ELSIF first_item > second_item THEN
return_value := 1;
END IF;
ELSIF cmpfnc = '<' THEN
IF first_item > second_item THEN
return_value := -1;
ELSIF first_item = second_item THEN
return_value := 0;
ELSIF first_item < second_item THEN
return_value := 1;
END IF;
ELSE
EXECUTE IMMEDIATE 'BEGIN :I := '||cmpfnc||'(:A,:B); END;'
USING OUT return_value, IN first_item, IN second_item;
END IF;
RETURN return_value;
END cmp;
BEGIN
parse_list(list_in,delimiter,'SKIP',delimiter_use);
FOR item_num IN 1..current_arrlen LOOP
temp_item := current_array(item_num);
FOR i IN 1..temp_len LOOP
IF cmp(temp_array(i),temp_item,cmpfnc) > 0 THEN
swap(temp_array(i),temp_item);
END IF;
END LOOP;
temp_len := temp_len + 1;
temp_array(temp_len) := temp_item;
END LOOP;
FOR item_num IN 1..temp_len LOOP
EXIT WHEN LENGTH(list_out) +
LENGTH(temp_array(item_num)) > 32760;
list_out := list_out||temp_array(item_num);
IF item_num < temp_len THEN
list_out := list_out||delimiter;
END IF;
END LOOP;
RETURN list_out;
END sort_list;
END;
*** END BODY***
Carl -
How to query database to retrieve code to create existing objects(nonPLSQL)
Hi,
I would like to know how to query the database so I can pull out the SQL required to create objects. I can already get the code for PL/SQL objects such as triggers and procedures by using DBA_SOURCE, however I also need to pull out code for objects like indexes, synonyms, libraries and views that are not stored in DBA_SOURCE. My colleague has suggested creating an index file from a metadata export however I only want code for broken objects and I need it to run automatically across all my databases with a single windows command script. Can anyone help me with this? TOAD manages to get the code for the objects but if it isn't stored in the DB then maybe it's creating it on the fly.
Thanks
AdamIf you run an export with rows=N, you can produce a file with all the scripts.
Otherwise you might want to look at DBMS_METADATA.
We would just reference the original scripts in our source control, but hey, we're crazy like that. -
How to edit repository.properties
How to edit repository.properties.
I want to edit the file
http://<host>:<httpPort>/dtr/ws/system/config/active/registry/repository.properties
Kindly give me the step by step procedure. Precisely how can i check out this file using NWDS.
Appreciate your response.
Thanks,
Prasanna KrishnamurthyThis is the Help topic for the Apply Usage Rights operation that the Reader Extensions service provides:
http://livedocs.adobe.com/livecycle/es/wb_help/00000949.html
If you are new to LiveCycle, you should work through this tutorial to learn the basics:
http://livedocs.adobe.com/livecycle/es/wb_help/00000405.html
Scott -
How to query XML data stored in a CLOB column
I don't know XMLDB, so I have a dumb question about querying XML data which is saved as CLOB in a table.
I have a table (OLAP_AW_PRC), with a CLOB column - AW_XML_TMPL_VAL
This column contains this xml data - [click here|http://www.nasar.net/aw.xml]
Now I want to query the data using the xml tags - like returning the name of AW. This is where I am having trouble, how to query the data from AW_XML_TMPL_VAL clob column.
The following query generates error:
ORA-31011: XML parsing failed.
ORA-19202: Error occurred in XML processing
LPX-00229: input source is empty
SELECT
extractValue(value(x), '/AW/LongName') as "AWNAME"
from
OLAP_AW_PRC,
table(xmlsequence(extract (xmltype(AW_XML_TMPL_VAL), '/AWXML/AWXML.content/Create/ActiveObject/AW'))) x
where
extractValue(value(x) , '/AW/Name') = 'OMCR4'
- NasarMark,
Thanks. This is exactly what I was looking for.
After doing @Name in both places (SELECT and WHERE clause) it worked.
Now I have one more question.
There are multiple DIMENSION tags in my xml, and I want to see the NAME attribute values for all of those DIMENSIONs. The following query returns
ORA-19025: EXTRACTVALUE returns value of only one node.
Cause: Given XPath points to more than one node.
Action: Rewrite the query so that exactly one node is returned.
SELECT
extractValue(value(x), '/AW/@Name') as "AW",
extractValue(value(x), '/AW/Dimension/@Name') as "DIMENSIONS"
from
OLAP_AW_PRC,
table(xmlsequence(extract (xmltype(AW_XML_TMPL_VAL), '/AWXML/AWXML.content/Create/ActiveObject/AW'))) x
where
extractValue(value(x) , '/AW/@Name') = 'OMCR4' -
How to create repository folders to various file systems
Hi
How to create repository folders for various filesystems,and allow the user to do access those files(checkin/checkout)
PrasadPlease explain further.
You can create a file system repository for each of the file systems.
The document approval workflow is a functionality which is already available withing the portal.
However, be aware that the file system repository does not support custom properties and versioning.
In that case you might want to use a CM respository in the FSDB mode which lets you store metadata on the portal and the actual files on the file server.
Regards,
Vibhu -
How to Query E-Business Tax tables/views
I run SQL queries on the following tables:
ZX_TRANSACTION
ZX_TRANSACTION_LINES
but it returns no rows. How to query ZX tables/views?
My main purpose is to retrieve tax code which is in 12i no longer available in AP Transaction Distributions table/view.
Please advise.
Thanks in advance.Hi Srini,
I followed PL/SQL procedure stated in note 415860.1. But still can't do the query. See below.
SQL> begin
2 fnd_global.apps_initialize(1079,51569,235);
3 mo_global.init('ZX');
4 end;
5 /
PL/SQL procedure successfully completed.
SQL> select count(*) from ZX_TRANSACTION
2 /
COUNT(*)
0
SQL> select count(*) from ZX_TRANSACTION_LINES
2 /
COUNT(*)
0
Thanks,
Corry -
Hi,
I have this problem, How can query a two table?
Table A -> Table B
id table-a_id
name table_b_name
the relationship is one-to-many
How can I get the result?
Hope my question make sense
cheers.
thanks a lot.I bet you have more luck looking for an answer in a SQL forum.
-
Hi all
How to query in two different tables? Should i use the following
SET_BLOCK_PROPERTY('ins1', ONETIME_WHERE, 'serial = ''' || :GLOBAL.CODE || ''''); this is working but for one table if i want for both tables and and it display the related information in main form , eg..tables are referenced by primary key constraint and foreign key.
sarah
Edited by: SarahSarahSarah on Sep 1, 2009 4:59 AMFor the primary forign key tables no need to create two forms use the master detail functionality of forms.
create a Master/Detail form using the DEPARTMENT, EMPLOYEE tables.
DEPARTMENTwill be the Master block and EMPLOYEE will be the Detail block. The join condition between the two tables is where the deptno column of DEPARTMENT is equal to the deptno column of EMPLOYEE .
The following is an outline of the steps:
Create the DEPARTMENT data block and include the all the fields on the form.
Use the Form layout and only display one record at a time.
Go back to the Object Navigator and select the "Data Blocks" tree. Make sure the DEPARTMENT block is not selected and run the Data Block Wizard again.
Create the EMPLOYEE data block and include all of the columns.
For the master/Detail relationship, de-select the "auto" option, use a Join relationship, choose the DEPARTMENT data block as the Master and set EMPLOYEE.DEPTNO= DEPARTMENT.DEPTNO for the join relationship.
In the Layout Wizard for the Dependents data block, display all of the fields
Choose a Tabular style and display 4 up to records at once with 0 space between each record.
Save the form and run the form.
Thanks -
How to use repository in boe xi r2 to use common formula's & commands
How can the repository in boe xi r2 be used to store common formula's and commands (i.e. sql - 'add command') so that multiple developers can insert the formula's into new reports to ensure consistency in data selection etc...
Hi,
i guess you are talking here about Crystal Reports. In CR it is possible to store functions and formulas into the repository to re- use these in different Reports.
In WebI you cant. In WebI you could create Objects in the Universe to re- use them in different Reports.
Hope this clarifies a bit more.
Regards
-Seb.
Maybe you are looking for
-
How do i use udisksvm and traydvm
Using newest version of Arch with newest Openbox and Tint2. Ive installed udisksvm, which in turn installs traydvm. This package is supposed to keep watch on attached usb devices and give me a trayicon that says something was plugged in. My problem i
-
Node 1 evicted due to ORA- 29740
Hi Guys, We have a two node cluster with 10.2.0.2 on Hp unix 11.31 Yesterday node 1 was evicted by the other node due to ORA 29740 error; When I checked the alert log file I sae some IPC errors, below are some excerpts from the alert log files of bot
-
PC not detecting printer connected to iMac
My PC is not detecting the printer I have hooked up to my iMac. I've activated printer sharing, and file sharing on the iMac. In fact, my PC does not even detect my iMac, though my iMac detects the PC. Thanks in advance.
-
Restoring iOS devices and app login credentials
Mostly curious here: I have about 50 apps on my iPhone. About 20 of these apps require login credentials (e.g., Twitter). I have to restore my iPhone periodically due to syncing issues with iTunes (that's another story). When I do the restore, I am
-
My (old) Epson RX510 multifunction printer is included in the list of printers supported by Apple, but on following the procedure advised for downloading the printer drivers for Mountain Lion and/or Lion I get the error message " the printer software