What tables hold Discoverer SQL?
I have to run queries that are the basis for some Discoverer reports. I don't have access to Discoverer itself, so I'm trying to find them in the database. (we have EUL5* as well, and three owners, for a total of 5 sets of tables).
I have found references to EUL4_OBJS joined to EUL4_SEGMENTS:
SELECT O.OBJ_NAME, S.SEG_CHUNK1 ||S.SEG_CHUNK2 ||S.SEG_CHUNK3 ||S.SEG_CHUNK4
FROM DISCOVERER.EUL4_OBJS O
LEFT OUTER JOIN DISCOVERER.EUL4_SEGMENTS S ON O.OBJ_ID = S.SEG_CUO_ID
WHERE UPPER(O.OBJ_NAME) LIKE '%PROMO%'
OR UPPER(O.OBJ_DEVELOPER_KEY) LIKE '%PROMO%'
OR UPPER(O.OBJ_DESCRIPTION) LIKE '%PROMO%'
ORDER BY O.OBJ_NAME, S.SEG_SEQUENCE
But some of the names of Discoverer reports aren't in EUL4_OBJS (or EUL5_OBJS, with any of our owners)
I can find them in EUL4.DOCUMENTS:
SELECT *
FROM DISCOVERER.EUL4_DOCUMENTS
WHERE UPPER(DOC_NAME) LIKE '%PROMO%';
How can I get from EUL4.DOCUMENTS to the related SQL code?
Thanks for reading
Cornell
If the SQL is stored in binary, then what is the SQL in EUL5_OBJS and EUL5_SEGMENTS?
Another developer had selected a report, in Discoverer and opened the SQL, copy/pasted it to an email for me. I found the text of the SQL in EUL5_OBJS and EUL5_SEGMENTS. Unfortunately, it turned out it was the query from the wrong report.
Anyway, there's at least two stores of SQL: EUL5_DOCUMENTS, in an illegible binary form, and EUL5_OBJS/EUL5_SEGMENTS, in clear text.
Similar Messages
-
What table hold info about Start Page
what table hold info about Start Page where responsibility and form are chosen when login to Oracle
step:-
Login to Oracle apps
Click on Preferences
Scroll down to Start page
Need to find out after you choose the responsibility and it’s value what table name holds that infoIt is a profile option and all profile option values are stored in fnd_profile_options, fnd_profile_option_values, fnd_profile_options_tl
Note: 201945.1 - How to list E-Business Suite Profile Option values for all levels using SQLPlus
Note: 282382.1 - How to Search all of the Profile Options for a Specific Value
Note: 367926.1 - How To Find All Users With A Particular Profile Option Set?
Thanks,
Hussein -
What table holds a VENDOR EMAIL ADDRESS?
Hi Forums,
I am trying to find the table that would hold the email address based on the LIFNR?
thanksHi,
It's in ADR6 table.
Regards,
Eli -
CAA3 - what table holds the address?
Hello experts,
On screen of CAA3, at the lower part of the screen, there can appear a secondary address which can be different from the address displayed at the top of the screen. I saw something about invoicing. Am I wrong?
At any rate, I need to use this secondary address on a report. So, I launched CAA3, used F1 on the field, and then the technical data. The field is comes from, or, is mapped onto a structure and not an actual table. My question is where can I find this secondary address, or if it is to be found on ADRC table, what key or address number do I use to get this particular address please?
Your help is greatly appreciated.
AGTry BUPA_ADDRESSES_GET
-
What table holds information about TCODES
Hello experts;
I need to find all the transaction codes used by certain users. Is there a specific table that holds this information.
Thank you so much for your timeHi,
TSTC is the table which holds all the transaction codes.
TSTCA and TSTCA_C gives the details of the authorization objects for the transacation codes. Using these authorization objects you can analyze whether the user is using the transaction code or not. Give a try. This may help. I am not sure.
Hope this helps.
Please reward if useful.
Thanks,
Srinivasa -
What table holds the underlying metric data for Tablespace Free Space (MB)?
10.2.0.4; Windows 64bit
I'm assuming it's in the SYSMAN schema? I can view it in DBConsole, and can see the Avergae, Low & High values for the last 31days - but want to query the raw data itself.
Cheers
GaryCheck out the Reference Manual: DBA_HIST_TBSPC_SPACE_USAGE
I suspect the averages and such are derived values in Oracle's queries.
Edited by: Centinul on Jul 12, 2012 11:08 AM -
Project Systems:Transparent Table holding ECP data
Hello experts,
Does anybody know what table holds the the ECP (Easy cost planning) for a WBS element.
Any help would be appreciated
Thanks
DavidCKHS & CKIS are the ECP specific tables
sorry i mentioned ECP tables..I will find and post right table..
Edited by: Mahalakshmi Padmanaban on Jan 29, 2010 12:34 AM -
Please tell me SQL to see, what tables are locked by which user
could you please tell me the query
so that I can see, what tables are locked by which user in a databse
ThanksThe only way you can ensure that only one transaction touches the data at any one time is to use a select .. for update nowait statement to select the rows to be updated.
Try this::
Where I select the data i want to update in a cursor Incase the row is locked due to any reason it will throw me an error as shown below;
SQL>DECLARE
2 cursor c
3 is
4 select * from emp
5 where empno = 10
6 for update nowait;
7 BEGIN
8
9 for rec in c
10 Loop
11 update emp set ename ='J' where empno = 10;
12 End Loop;
13
14 DBMS_OUTPUT.PUT_LINE('Record Updated');
15
16 EXCEPTION
17
18 WHEN OTHERS THEN
19
20 DBMS_OUTPUT.PUT_LINE(sqlcode || sqlerrm);
21
22 END ;
23 /
-54ORA-00054: resource busy and acquire with NOWAIT specified
PL/SQL procedure successfully completed.Edited by: J99 on Jul 28, 2009 4:57 PM -
Table holding Delivery shipping/billing address information
All,
Which table holds the shipping and billing addresses for a delivery?
In my query below, I have retrieved the shipping / billing address attached to the order line referenced on any one of the delivery detail lines. But there are multiple delivery detail lines on any delivery, and they may reference order lines from different orders.
Questions are:
1. Does Oracle ensure that all delivery lines on a delivery reference the same hz_locations.location_id values (alias used below is ship_loc / bill_loc)?
2. Does Oracle store the shipping and billing information for a delivery in one record in one single table? If so, what table is it? Or is retreiving this information from the below SQL via an order line the only way to get that information? (that would mean you have to retrieve this information for only one delivery detail under the delivery).
SELECT ood.organization_code site, ood.organization_name org_unit, wnd.confirm_date ship_date, oh.order_number,
NVL(wdd.cust_po_number, oh.cust_po_number) cust_po_number, wdd.source_line_number, bill_party.party_name bill_to_name,
bill_loc.country bill_to_country, ship_party.party_name ship_to_name, ship_loc.country ship_to_country,
wnd.confirmed_by end_user_name, msi.segment1 shipped_item_number, wdd.item_description shipped_item_description,
wdd.shipped_quantity, ol.unit_selling_price unit_price, ROUND((wdd.shipped_quantity * ol.unit_selling_price), 2) total_price, wdd.currency_code,
wnd.name delivery_name, wdd.delivery_detail_id
FROM hz_locations ship_loc,
hz_parties ship_party,
hz_party_sites ship_ps,
hz_cust_acct_sites_all ship_cas,
hz_cust_site_uses_all ship_su,
hz_locations bill_loc,
hz_parties bill_party,
hz_party_sites bill_ps,
hz_cust_acct_sites_all bill_cas,
hz_cust_site_uses_all bill_su,
oe_order_headers_all oh,
mtl_system_items msi,
oe_order_lines_all ol,
wsh_delivery_details wdd,
wsh_delivery_assignments wda,
org_organization_definitions ood,
wsh_new_deliveries wnd
WHERE ood.organization_id = wnd.organization_id
AND wda.delivery_id = wnd.delivery_id
AND wdd.delivery_detail_id = wda.delivery_detail_id
AND ol.line_id = wdd.source_line_id
AND msi.inventory_item_id = ol.inventory_item_id
AND msi.organization_id = ol.ship_from_org_id
AND oh.header_id = ol.header_id
AND bill_su.site_use_id = ol.invoice_to_org_id
AND bill_cas.cust_acct_site_id = bill_su.cust_acct_site_id
AND bill_ps.party_site_id = bill_cas.party_site_id
AND bill_party.party_id = bill_ps.party_id
AND bill_loc.location_id = bill_ps.location_id
AND ship_su.site_use_id = ol.ship_to_org_id
AND ship_cas.cust_acct_site_id = ship_su.cust_acct_site_id
AND ship_ps.party_site_id = ship_cas.party_site_id
AND ship_party.party_id = ship_ps.party_id
AND ship_loc.location_id = ship_ps.location_idOk Thanks, I can see that.
For my original question on table information -
Does the shipping and billing address for a delivery get stored within shipping tables (WSH%) or somewhere else? There is a ultimate_dropoff_location_id on wsh_new_deliveries. Is that the 1 single delivery location ID for each delivery?
For billing, I assume that the delivery will be billed per what each referenced order line states? -
Creating tables in pl/sql block
I have the following piece of code that I execute in sqlplusw as @c:\process.sql
On running @c:\process.sql, an input is provided as prompted. There is a
declare and begin that processes some code. What I am looking for is -- Is there
a way that I can check the all_tables view for the following 3 tables :
TABLE1, TABLE2, TABLE3. Only on finding these tables, this
anonymous sql (that is inside starting from declare ... should execute).
If these tables are not found, I want to attempt creating the tables. If the attempt
was successful, then process. If creating tables attempt fails, exit with a dbms_output.put_line message and don't process
anything....
Can this be done ? If so, any hints would be great.....
Thanks
ACCEPT input_ssn prompt 'Enter SSN :'
SET feedback off
SET serveroutput on
SET echo off
SET term off
SET heading off
SET pagesize 0
SET linesize 10000
SET verify off
undefne sdate input_ssn
COL sdate new_value sdate
COL input_ssn new_value input_ssn
SELECT TO_CHAR (SYSDATE, 'YYYYMMDD') sdate
FROM DUAL;
SPOOL C:\SCRUB_DATA_&&sdate._&&input_ssn..TXT
SELECT 'REPORT GENERATED ON : ' || SYSDATE
FROM DUAL;
ALTER TRIGGER TRIG1 DISABLE;
DECLARE
BEGIN
FOR i IN .........
LOOP
END LOOP;
BEGIN
SELECT ..........
EXCEPTION
WHEN NO_DATA_FOUND
THEN
NULL;
END;
UPDATE ...........
FOR i IN .....
LOOP
UPDATE ....
BEGIN
SELECT ...
EXCEPTION
WHEN NO_DATA_FOUND
THEN
NULL;
END;
UPDATE ...
BEGIN
SELECT ....
EXCEPTION
WHEN NO_DATA_FOUND
THEN
NULL;
END;
UPDATE ...
END LOOP;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
NULL;
WHEN OTHERS
THEN
ecode := SQLCODE;
emesg := SQLERRM;
DBMS_OUTPUT.put_line ('Error code is : '||' - '|| ecode);
DBMS_OUTPUT.put_line ('Error message is :' || ' - ' || emesg);
END;
COMMIT ;
ALTER TRIGGER TRIG1 ENABLE;
SET term on
SET HEADING on
SELECT 'Processing complete for ' || '&&input_ssn'
FROM DUAL;
SPOOL off;
SET verify on
SET feedback on
----------------------------------------------------------This is what I am doing :
ACCEPT input_ssn prompt 'Enter SSN :'
SET feedback on
SET serveroutput on
SET echo on
SET term on
SET heading on
SET pagesize 0
SET linesize 10000
SET verify on
undefne sdate input_ssn
COL sdate new_value sdate
COL input_ssn new_value input_ssn
SELECT TO_CHAR (SYSDATE, 'YYYYMMDD') sdate
FROM DUAL;
SPOOL C:\TEMP_DATA_&&sdate._&&input_ssn..TXT
ALTER TRIGGER TRIG1 DISABLE;
DECLARE
v_postal cheque.postal%TYPE;
v_count NUMBER;
l_tabexist NUMBER;
BEGIN
DBMS_OUTPUT.PUT_LINE('HELLO THERE');
BEGIN
DBMS_OUTPUT.PUT_LINE('HI THERE');
SELECT 1 INTO l_tabexist FROM all_tables
WHERE table_name = 'TABLE1_TEMP' AND owner='HARPER';
EXCEPTION
WHEN NO_DATA_FOUND THEN
EXECUTE IMMEDIATE 'CREATE TABLE TABLE1_TEMP AS SELECT * FROM TABLE1 WHERE 1=2';
EXECUTE IMMEDIATE 'ALTER TABLE TABLE1_TEMP ADD(TEMP_STATUS VARCHAR2(1))';
END;
BEGIN
SELECT 1 INTO l_tabexist FROM all_tables
WHERE table_name = 'TABLE2_TEMP' AND owner='HARPER';
EXCEPTION
WHEN NO_DATA_FOUND THEN
EXECUTE IMMEDIATE 'CREATE TABLE TABLE2_TEMP AS SELECT * FROM TABLE2 WHERE 1=2';
EXECUTE IMMEDIATE 'ALTER TABLE TABLE2_TEMP ADD(TEMP_STATUS VARCHAR2(1))';
END;
BEGIN
<my code that uses TABLE1_TEMP and TABLE2_TEMP supposed to be created above>
EXCEPTION
WHEN NO_DATA_FOUND
THEN
DBMS_OUTPUT.put_line ('No Data Found Exception encountered');
END;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.Put_Line('Something bad happened');
RAISE;
END;
COMMIT ;
ALTER TRIGGER TRIG1 ENABLE;
SET term on
SET HEADING on
SPOOL off;
SET verify on
SET feedback on
What is happening here is that until ALTER TRIGGER DISABLE, things are fine.
Then, it tries to process <my code> and cries saying 'Table or view not found'. Finally it enables the trigger back.
It is not even displaying either the 'HELLO THERE' or 'HI THERE' - which I suppose is the first thing it should have done.
Thanks -
Which table holds the link between Purchase requisition and Reservations ?
Hi Guys,
We are using MRP and as a result of the MRP run the reservations are converted to purchase requisition. When i look at transaction MD04 it shows me the Purchase requisition against a reservations.
I would like to know which table holds this information? I mean which table will give me the reservations tied to a purchase requisition or vice a versa.
I have looked into RESB and RSBD but could not find what i am looking at. RESB table has BANFN field for purchase requisition but this field is not populated. RSBD table hold the Purchase requisition and reservations but it only holds the relation for Direct procurement and not for all.
Any idea where i can find the Preq and Reservations created through MRP run?
Thanks
VJTry RKPF..
thanks
jz -
How to find a dependent row in the all tables using single SQL query
hi all,
I have created some table with master and some dependent tables.I want to mark a (row)tuple as inactive in master so that corresponding child records also should be marked as inactive.
So i decided to mark the master and dependent records as inactive starting from master table and traverse to child tables.
So I need SQL query to fetch all dependend records to the row(marked row in the master ) from the master table and dependent rows from the child row and to mark as flag inactive.
can anybody help me out to build this query or any other way to mark flag as inactive ?
Regards
punithanYou can find dependant tables from ALL_CONSTRAINTS, e.g:
SQL> CREATE TABLE m (id INT PRIMARY KEY, flag VARCHAR2(1) NOT NULL);
Table created.
SQL> CREATE TABLE d1 (m_id REFERENCES m, flag VARCHAR2(1) NOT NULL);
Table created.
SQL> CREATE TABLE d2 (m_id REFERENCES m, flag VARCHAR2(1) NOT NULL);
Table created.
SQL> SELECT table_name, owner, status
2 FROM all_constraints c
3 WHERE c.constraint_type = 'R'
4 AND ( c.r_owner, c.r_constraint_name ) IN
5 ( SELECT owner, constraint_name
6 FROM user_constraints
7 WHERE table_name = 'M'
8 AND constraint_type IN ('U','P') );
TABLE_NAME OWNER STATUS
D2 WILLIAMR ENABLED
D1 WILLIAMR ENABLED
2 rows selected.There is no SQL command to apply all updates in one go, if that's what you were looking for.
AFAIK the word "tuple" is for mathematics and relational theory, and does not refer to a physical row in a database. -
How to update many tables in PL/SQL
Hi all,
I have to update EMPNIC colum in all the tables using PL/SQL. There are over 700 tables in the database that has the same column name 'EMPNIC'
I create one table called 'UPDATEEMPNIC' According to that table I have to update all the tables.
This is my PL/SQL statement. But in this code its not updating the 'NEWEMPNIC'
PROCEDURE UPDATE_EMP_NIC IS
sql_stmt VARCHAR2(200);
newempnic VARCHAR (20);
empnic VARCHAR (20);
table_name VARCHAR(100);
BEGIN
DECLARE
CURSOR C IS
--I can find all the table names that I have to update using this query.
select table_name from all_tab_cols where table_name like 'TBL%' and column_name like 'EMPNIC';
REC C%ROWTYPE;
TYPE temp_refcur IS REF CURSOR;
temp temp_refcur;
--er temp%ROWTYPE;
type rec_emp is record
newempnic VARCHAR2 (20),
empnic VARCHAR2 (20)
er rec_emp;
begin
--for x in cur
OPEN C ;
loop
FETCH C INTO REC;
EXIT WHEN C%NOTFOUND;
open temp for 'SELECT EMPNIC, NEWEMPNIC FROM UPDATEEMPNIC';
loop
fetch temp into er;
exit when temp%notfound;
sql_stmt :='UPDATE '||REC.table_name||' SET EMPNIC ='''||er.NEWEMPNIC||'''WHERE EMPNIC ='''||er.EMPNIC||'''';
DBMS_OUTPUT.PUT_LINE(sql_stmt);
EXECUTE IMMEDIATE sql_stmt ;
end loop;
close temp;
end loop;
CLOSE C;
END;
end UPDATE_EMP_NIC;
But I can't find the whats the wrong.
Let me know anyone know to do this.
Thankyou allWhy do you open a new thread for the same question?
Please see the other thread! -
Create Partition tables in PL/SQL using Execute Immediate
Hi
I have to create a partiton table in PL/SQL using Execute Immediate. I concat the necessary Create Table syntax into a variable and use Execute Immediate variable name. This gives a error ORA-00900: invalid SQL statement. However if i cut and paste the SQL statement from DBMS_OUTPUT, the table creation goes through without any problem.
What could be the issue. Has anyone face this before please.
I am using 10G DBThanks for your reply. It is a big code. I am pasting the part required.
v_sqlstmtout :='CREATE TABLE a_10(MYDATE DATE NOT NULL,ID NUMBER(14) NOT NULL)';
v_sqlstmtout := v_sqlstmtout || ' PARTITION BY RANGE (MYDATE) ';
v_sqlstmtout := v_sqlstmtout || 'SUBPARTITION BY HASH(id) ';
v_sqlstmtout := v_sqlstmtout || 'SUBPARTITION TEMPLATE(';
v_sqlstmtout := v_sqlstmtout || 'SUBPARTITION SP1,SUBPARTITION SP2) ';
v_sqlstmtout := v_sqlstmtout || '(PARTITION mth_dummy VALUES LESS THAN ';
v_sqlstmtout := v_sqlstmtout || '('||V_SQLSTMT3||')' || v_sqlstmt||')';
EXECUTE IMMEDIATE ''''||v_sqlstmtout||'''';
variables are substituted through data from different tables.
The output looks like the following
CREATE TABLE a_10(MYDATE DATE NOT NULL,ID NUMBER(14) NOT NULL)
PARTITION BY RANGE (mydate) SUBPARTITION BY HASH(id) SUBPARTITION
TEMPLATE(SUBPARTITION SP1,SUBPARTITION SP2) (PARTITION mth_dummy VALUES
LESS THAN ('01-MAY-2006'), PARTITION mth_JAN2007 VALUES LESS THAN
('01-FEB-2007'))
The above is the output from DBMS_OUTPUT. If i run this statement the table is created. Please help.. -
Creating temporary table in pl/sql block problem
hello
i have a problem in creating and using temporary table in pl/sql block
please verify below block
begin
execute immediate 'create global temporary table alitemp1 (co_t varchar2(10),color varchar2(10))';
insert into alitemp1 (co_t,color) values ('001','red');
execute immediate 'DROP TABLE alitemp1';
end;
when i execute that block i will receive this error
insert into alitemp1 (co_t,color) values ('001','red');
ERROR at line 3:
ORA-06550: line 3, column 14:
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 3, column 2:
PL/SQL: SQL Statement ignored
i think it because that alitemp1 table don't create
but two below block run fine
begin
execute immediate 'create global temporary table alitemp1 (co_t varchar2(10),color varchar2(10))';
execute immediate 'DROP TABLE alitemp1';
end;
begin
execute immediate 'create global temporary table alitemp1 (co_t varchar2(10),color varchar2(10))';
end;
select table_name from user_tables where table_name='ALITEMP1';
TABLE_NAME
ALITEMP1
it means that problem is when the below line exists in block
insert into alitemp1 (co_t,color) values ('001','red');
if may please guide meIn addition to the comments by Justin and 3360, you cannot do what you want the way you are doing it.
All objects referred to in a PL/SQL block must exist at the time the block is compiled. In your case, since it is an anonomous block, that is run time. Since you are dynamically creating the temporary table you need to refer to it dynamically as well. More like:
BEGIN
EXECUTE IMMEDIATE 'create global temporary table alitemp1 (co_t varchar2(10),
color varchar2(10))';
EXECUTE IMMEDIATE 'insert into alitemp1 (co_t,color) values (:b1,:b2)' USING '001', 'red';
EXECUTE IMMEDIATE 'DROP TABLE alitemp1';
END;However, don't do that it is a really bad idea. Just create the temporary table, if you really need it, once and use it in your processing.
In most cases, things that SQL Server needs temporary tables for can be done easily in Oracle with a single SQL statement,
John
Maybe you are looking for
-
Hi, Hyperion Financial Reporting. how to merge 2 column values in single cell? Thanks
-
Client provisioning exception for guest flow - bug?
hi all, I encounterd one problem with guest flow and client provisioning. Please if someone could confirm that this can or can't be done I want to accomplish such a scenario: - AD user have to download the full nac agent - AD user from specific grou
-
Is it mandatory to run wcConfigure script for UCM integration????
Hi, I'm looking to integrate an already running instance of UCM 10.1.3.5.1 version with webcenter. I have tried the integration steps by following the documentation and was able to do it. But wcConfigure script is making lots of configuration changes
-
Glitchy and extremely poor performance with Red footage in AE on 16 core machine
Hello, I have set up a new Windows 7 workstation for AE CS6 based on: - ASUS Z9PE-D8 WS with dual Xeons, - 64Gb. of RAM - Nvidia Quadro K5000 (also tried my older Quadro 4000 with no difference in results) - Nvidia GTX 680 (mainly for DaVinci) - BMD
-
Anyone know of a good unix forum so i dont have to ask unix questions here?
Anyone know of a good unix forum so i dont have to ask unix questions here? and how bout a good unix tutorial?