extracting data from the CLOB using materialized views
Hello
We have xml data from clob which I have a requirement to extract (~ 50 attributes) on a daily basis, so we decided to use materialized views with refreshes full (open good suggestions)
A small snippet of code
CREATE THE MWMRPT MATERIALIZED VIEW. TASK_INBOUND
IMMEDIATE CONSTRUCTION
FULL REFRESH ON DEMAND
WITH ROWID
AS
SELECT M.TASK_ID, M.BO_STATUS_CD, b.*
OF CISADM. M1_TASK m,
XMLTABLE (' / a ' XMLPARSE PASSING ())
CONTENT '< a > | M.BO_DATA_AREA | "< /a >."
) COLUMNS
serviceDeliverySiteId varchar2 (15) PATH
"cmPCGeneralInfo/serviceDeliverySiteId"
serviceSequenceId varchar2 (3) PATH "cmPCGeneralInfo/serviceSequenceId"
completedByAssignmentId varchar2 (50) PATH "completedByAssignmentId."
Cust_id varchar2 (10) PATH "cmPCCustomerInformation/customerId,"
ACCT_SEQ varchar2 (5) PATH "customerInformation/accountId"
AGRMT_SEQ varchar2 (5) PATH cmPCCustomerAgreement/agreementId"."
COLL_SEQ varchar2 (5) PATH "cmPCGeneralInfo/accountCollectionSeq"
REVENUE_CLASS varchar2 (10) PATH "cmPCCustomerAgreement/revenueClassCode"
REQUESTED_BY varchar2 (50) PATH ' attributes customerInformation/contactName',...~50
This ddl ran > 20 hours and no materialized view created. There are certain limits that we have
- Cannot create a materialized view log
- cannot change the source as its defined provider table
- cannot do an ETL
DB is 11g R2
Any ideas/suggestions are very much appreciated
I explored a similar approach, using the following test case.
It creates a table "MASTER_TABLE" containing 20,000 lines and a CLOB containing an XML fragment like this:
09HOLVUF3T6VX5QUN8UBV9BRW3FHRB9JFO4TSV79R6J87QWVGN
UUL47WDW6C63YIIBOP1X4FEEJ2Z7NCR9BDFHGSLA5YZ5SAH8Y8
O1BU1EXLBU945HQLLFB3LUO03XPWMHBN8Y7SO8YRCQXRSWKKL4 ...
1HT88050QIGOPGUHGS9RKK54YP7W6OOI6NXVM107GM47R5LUNC
9FJ1JZ615EOUIX6EKBIVOWFDYCPQZM2HBQQ8HDP3ABVJ5N1OJA
then an intermediate table "MASTER_TABLE_XML" with the same columns with the exception of the CLOB which turns into XMLType and finally a MVIEW:
SQL > create table master_table like
2. Select level as id
3, cast ('ROW' | to_char (Level) as varchar2 (30)) as the name
4 , (
5. Select xmlserialize (content
XMLAGG 6)
7 xmlelement (evalname ('ThisIsElement' | to_char (Level)), dbms_random.string ('X', 50))
8 )
9 as clob dash
10 )
11 double
12 connect by level<=>=>
(13) as xmlcontent
14 double
15 connect by level<= 20000="">=>
Table created.
SQL > call dbms_stats.gather_table_stats (user, 'MASTER_TABLE');
Calls made.
SQL > create table (master_table_xml)
Identification number 2
3, name varchar2 (30)
4, xmlcontent xmltype
5)
binary xmltype 6 securefile XML column xmlcontent store
7;
Table created.
SQL > create materialized view master_table_mv
2 build postponed
full 3 Refresh on demand
4, as
5. Select t.id
6, t.nom
7 , x.*
master_table_xml 8 t
9, xmltable ('/ r' in passing t.xmlcontent)
10 columns
11 path of varchar2 (50) ThisIsElement1 'ThisIsElement1 '.
12, path of varchar2 (50) ThisIsElement2 'ThisIsElement2 '.
13, path of varchar2 (50) ThisIsElement3 'ThisIsElement3 '.
14, path of varchar2 (50) ThisIsElement4 'ThisIsElement4 '.
15 road of varchar2 (50) ThisIsElement5 'ThisIsElement5 '.
16, road of varchar2 (50) ThisIsElement6 'ThisIsElement6 '.
17 road of varchar2 (50) ThisIsElement7 'ThisIsElement7 '.
18 road of varchar2 (50) ThisIsElement8 'ThisIsElement8 '.
19 road to varchar2 (50) ThisIsElement9 'ThisIsElement9 '.
20, path of varchar2 (50) ThisIsElement10 'ThisIsElement10 '.
21, road to varchar2 (50) ThisIsElement11 'ThisIsElement11 '.
22 road of varchar2 (50) ThisIsElement12 'ThisIsElement12 '.
23 road of varchar2 (50) ThisIsElement13 'ThisIsElement13 '.
24, path of varchar2 (50) ThisIsElement14 'ThisIsElement14 '.
25 road of varchar2 (50) ThisIsElement15 'ThisIsElement15 '.
26, path of varchar2 (50) ThisIsElement16 'ThisIsElement16 '.
27, way to varchar2 (50) ThisIsElement17 'ThisIsElement17 '.
28 road of varchar2 (50) ThisIsElement18 'ThisIsElement18 '.
29 road of varchar2 (50) ThisIsElement19 'ThisIsElement19 '.
30, path of varchar2 (50) ThisIsElement20 'ThisIsElement20 '.
31, path of varchar2 (50) ThisIsElement21 'ThisIsElement21 '.
32 road of varchar2 (50) ThisIsElement22 'ThisIsElement22 '.
33, path of varchar2 (50) ThisIsElement23 'ThisIsElement23 '.
34 road of varchar2 (50) ThisIsElement24 'ThisIsElement24 '.
35 road of varchar2 (50) ThisIsElement25 'ThisIsElement25 '.
36, road to varchar2 (50) ThisIsElement26 'ThisIsElement26 '.
37, path of varchar2 (50) ThisIsElement27 'ThisIsElement27 '.
38, path of varchar2 (50) ThisIsElement28 'ThisIsElement28 '.
39, path of varchar2 (50) ThisIsElement29 'ThisIsElement29 '.
40, road of varchar2 (50) ThisIsElement30 'ThisIsElement30 '.
41 road of varchar2 (50) ThisIsElement31 'ThisIsElement31 '.
42, path of varchar2 (50) ThisIsElement32 'ThisIsElement32 '.
43, road to varchar2 (50) ThisIsElement33 'ThisIsElement33 '.
44, path of varchar2 (50) ThisIsElement34 'ThisIsElement34 '.
45, path of varchar2 (50) ThisIsElement35 'ThisIsElement35 '.
46, path of varchar2 (50) ThisIsElement36 'ThisIsElement36 '.
47, path of varchar2 (50) ThisIsElement37 'ThisIsElement37 '.
48, path of varchar2 (50) ThisIsElement38 'ThisIsElement38 '.
49, path of varchar2 (50) ThisIsElement39 'ThisIsElement39 '.
50 road of varchar2 (50) ThisIsElement40 'ThisIsElement40 '.
51, path of varchar2 (50) ThisIsElement41 'ThisIsElement41 '.
52, path of varchar2 (50) ThisIsElement42 'ThisIsElement42 '.
53, path of varchar2 (50) ThisIsElement43 'ThisIsElement43 '.
54, path of varchar2 (50) ThisIsElement44 'ThisIsElement44 '.
55 road of varchar2 (50) ThisIsElement45 'ThisIsElement45 '.
56, path of varchar2 (50) ThisIsElement46 'ThisIsElement46 '.
57, path of varchar2 (50) ThisIsElement47 'ThisIsElement47 '.
58 road of varchar2 (50) ThisIsElement48 'ThisIsElement48 '.
59 road of varchar2 (50) ThisIsElement49 'ThisIsElement49 '.
60 road of varchar2 (50) ThisIsElement50 'ThisIsElement50 '.
(61) x;
Materialized view created.
The discount is then performed in two steps:
- INSERT INTO master_table_xml
- Refresh the MVIEW
(Note: as we insert in an XMLType column, we need an XML (only root) document this time)
SQL > set timing on
SQL >
SQL > truncate table master_table_xml;
Table truncated.
Elapsed time: 00:00:00.27
SQL >
SQL > insert into master_table_xml
2. select id
3, name
4, xmlparse (document '
5 master_table;
20000 rows created.
Elapsed time: 00:04:38.72
SQL >
SQL > call dbms_mview.refresh ('MASTER_TABLE_MV');
Calls made.
Elapsed time: 00:00:22.42
SQL >
SQL > select count (*) in the master_table_mv;
COUNT (*)
----------
20000
Elapsed time: 00:00:01.38
SQL > truncate table master_table_xml;
Table truncated.
Elapsed time: 00:00:00.41
Tags: Database
Similar Questions
-
problem to extract data from the database using UTL_FILE
Dear members
I make use of series for the SUBSTR and INSTR function to extract the fields of a data file and carve out spaces based on the number of post mentioned in the Excel worksheet. I was able to extract the first 3 areas namely, customer, manufacturer, product, but for quantity, requested delivery date, price, I can't do it.
the flat file structure is as follows:
Sample data in the flat file is as follows:Field Position From Position To CUSTOMER_NAME 1 30 MANUFACTURER 31 70 PRODUCT_NAME 71 90 QUANTITY 91 95 REQUESTED_SHIP_DATE 96 115 REQUESTED_PRICE 116 120
My program code is the following:BESTBUY SONY ERICSSON W580i 25 1-AUG-2008 50 BESTBUY SAMSUNG BLACKJACK 50 15-JUL-2008 150 BESTBUY APPLE IPHONE 4GB 50 15-JUL-2008 BESTBUY ATT TILT 100 15-JUN-2008 BESTBUY NOKIA N73 50 15-JUL-2008 200
I was able to extract the first 3 fields of the file data, but when I use the same SUBSTR and INSTR functions to extract then three fields I am unable to do so (I get 5, 6 on the ground as well when I extract the 4th field). I've hardcoded the position values in these functions, such as mentioned in the structure of flat file.CREATE OR REPLACE PROCEDURE ANVESH.PROC_CONVERSION_API(FILE_PATH IN VARCHAR2,FILE_NAME IN VARCHAR2) IS v_file_type utl_file.file_type; v_buffer VARCHAR2(1000); V_CUSTOMER_NAME VARCHAR2(100); V_MANUFACTURER VARCHAR2(50); V_PRODUCT_NAME VARCHAR2(50); V_QUANTITY NUMBER(10); V_REQ_SHIP_DATE DATE; V_REQ_PRICE NUMBER(10); V_LOG_FILE utl_file.file_type; V_COUNT_CUST NUMBER; V_COUNT_PROD NUMBER; v_start_pos number := 1; v_end_pos number; BEGIN DBMS_OUTPUT.PUT_LINE('Inside begin 1'); v_file_type := UTL_FILE.fopen(FILE_PATH, FILE_NAME, 'r',null); DBMS_OUTPUT.PUT_LINE('Inside begin 1.1'); LOOP BEGIN DBMS_OUTPUT.PUT_LINE('Inside begin 2'); UTL_FILE.GET_LINE (v_file_type,v_buffer); DBMS_OUTPUT.PUT_LINE('Inside begin 2.1'); select instr('v_buffer',' ', 1, 1) - 1 --into v_end_pos from dual; select substr('v_buffer', 1, 7) --into V_CUSTOMER_NAME from dual; select instr('v_buffer', ' ', 31, 2)-1 --into v_end_pos from dual; select trim(substr('v_buffer', 28, 43)) --into V_MANUFACTURER from dual; select instr('v_buffer', ' ', 45, 1) - 1 --into v_end_pos from dual; select trim(substr('v_buffer', 44, 45)) --into V_PRODUCT_NAME from dual; V_LOG_FILE := UTL_FILE.FOPEN(FILE_PATH, 'LOG_FILE.dat', 'A'); IF (V_QUANTITY > 0) THEN SELECT COUNT (*) INTO V_COUNT_CUST FROM CONVERSION_CUSTOMERS WHERE CUSTOMER_NAME = V_CUSTOMER_NAME; IF(V_COUNT_CUST > 0) THEN SELECT COUNT(*) INTO V_COUNT_PROD FROM conversion_products WHERE PRODUCT_NAME = V_PRODUCT_NAME; IF(V_COUNT_PROD >0) THEN INSERT INTO XXCTS_ORDER_DETAILS_STG VALUES (V_CUSTOMER_NAME, V_PRODUCT_NAME, V_MANUFACTURER, V_QUANTITY, V_REQ_SHIP_DATE, V_REQ_PRICE, 'ACTIVE', 'ORDER TAKEN'); ELSE DBMS_OUTPUT.PUT_LINE('PRODUCT SHOULD BE VALID'); UTL_FILE.PUT_LINE(V_LOG_FILE, 'PRODUCT SHOULD BE VALID'); END IF; ELSE DBMS_OUTPUT.PUT_LINE('CUSTOMER SHOULD BE VALID'); UTL_FILE.PUT_LINE(V_LOG_FILE, 'CUSTOMER SHOULD BE VALID'); END IF; ELSE DBMS_OUTPUT.PUT_LINE('QUANTITY SHOULD BE VALID'); UTL_FILE.PUT_LINE(V_LOG_FILE, 'QUANTITY SHOULD BE VALID'); END IF; EXCEPTION WHEN NO_DATA_FOUND THEN EXIT; END; END LOOP; END; /
It would be great if someone can tell me how to extract the three fields in the flat file.
Thank you
RomaricRomaric,
Why you use v_end_pos to trim spaces when you know the beginning and end of all columns positions?
I do not see the code when you check out the values of other 3 columns (Qty, Date & price).You can use substr underneath rather do SELECT each time.
V_CUSTOMER_NAME := SUBSTR(v_buffer,1,30); V_MANUFACTURER := SUBSTR(v_buffer,31,70); V_PRODUCT_NAME := SUBSTR(v_buffer,71,90); V_QTY := SUBSTR(v_buffer,91,95); V_SHIP_DATE := SUBSTR(v_buffer,96,115); V_PRICE := SUBSTR(v_buffer,116,120);
-Raj
-
Extract data from the table on hourly basis
Hello
I have a table that has two columns date all the hours of the base and the response time. I want to extract data from the date corresponding previous hourly basis with the response time. The data will be loaded into the table every midnight.
for example: today date 23/10/2012
I want to extract data from 22/10/12 00 to the 22/10/12 23
The sub query pulls the date as demanded, but I'm not able to take the time to answer.
with one also
(select min (trunc (lhour)) as mindate, max (trunc (lhour)) as AVG_HR maxdate)
SELECT to_char (maxdate + (level/25), "dd/mm/yyyy hh24") as a LEVEL CONNECTION dates < = * (1) 24;
Please help me on this.Try this
SELECT * FROM table_nm WHERE to_char(hour,'DD') = to_char(SYSDATE-1,'DD')
-
extract data from the generic cursor xy graph
Hi, I'm new in this Forum.
In my VI I need to extract the data from the graph xy of one cursor to another, how can I do this?
I want to extract all the data between the two sliders, to develop.
Thank you
In addition to everything said altenbach, you want the slider list: property of the Index. That will tell you where in the table of data, the sliders are.
The attached VI shows how we can work and also meaningless how it can be with common types of XY data.
Lynn
-
I want to extract data from a PDF using Java
I would prefer to extract data from a PDF file and convert them to XML. Is there an API that allows to convert a PDF to an Adobe XML format? Ideally, I would like to add a few JAR files to my classpath, similar to PDFBox. I don't want to install a bunch of components side server or something like that.
Thank you!
Then Adobe does not offer a solution that meets your needs - sorry.
Our solution on the server side is our LiveCycle product family which, however, includes a collection of Java APIs.
-
Extract the data from the CLOB
Hello
I want to get the first line of a comment field. The data type is set to the clob type. I use the section to get the data in the first row
Replace (DBMS_LOB.substr (Comments, InStr (Comments, Chr (10), 1), 1), Chr (10), ") of
The question I have is that it gets only the first line if there is a second line of comment due to the nature of line break.
Is it possible to just retrieve the data in the first row even if the length of the line varies?
Thanks cordially
Adam
Published by: user3924223 on January 30, 2009 06:51user3924223 wrote:
The question I have is that it gets only the first line if there is a second line of comment due to the nature of line break.Just concatenate Chr (10) on the CLOB in INSTR type:
select substr( comments, 1 instr(comments || chr(10),chr(10)) - 1 ) from yourtable /
SY.
-
My select statement fails with the error:
The ORA-19011 string buffer too small
The select statement looks like:
SELECT TO_CLOB)
XMLELEMENT ("accounts",
XMLELEMENT ("count",
XMLATTRIBUTES)
rownum AS "recordId."
To_date('20130520','YYYYMMDD') AS "datestarted."
123456 AS "previousBatchId."
56789 AS 'previousRecordId '.
),
....
.... .
.....
XMLFOREST)
SIG_ROLE AS "SignatoryRole."
To_char(TRANSFER_DATE,'YYYY-mm-DD') AS "TransferDate."
NVL(Reason,0) AS 'reason '.
) AS the 'transfer '.
)
()) AS CRDTRPT
OF ANY_TABLE;
- It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)
I'd use the XMLGEN package. But the environment team says no mounted drives in the future with the arrival of the EXADATA.
NO HARD DRIVE MOUNTED, NO ACCESS TO THE DATABASE DIRECTORIES
No UTL_FILE
I need to use the REEL spool the resulting XML data of the SELECT query.
SQL is a standard in my org, but I can do with a PL/SQL solution also to load data into a table (cannot use a COIL with PL/SQL)
What I do is:
- a column of type CLOB to a xml_report of the loading of the above SELECT query table
- Then using SELECT * FROM xml_report to SPOOL the data to a file report.xml
No need of XMLTYPE data behind. Xml data stream is fine for me.
In addition, I need to validate the XML file, also using XSD.
Problem is that the resulting lines of the select query are supposed to be from 15000 to 20000 bytes long.
Oracle database version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
A Suggestion or a solution to this problem would be appreciated.
(Sorry for the use of "BOLD", just to make it more readable and highlight the imp points)
Bravo!
Rahul
It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)
You use the right method.
There is an implicit conversion from XMLType to the data type VARCHAR2 as expected by the function TO_CLOB, where the limitation, and the error.
To serialize XMLType to CLOB, use the XMLSerialize function:
SELECT XMLSerialize (DOCUMENT
XMLELEMENT ("accounts",
...
)
)
OF ANY_TABLE;
For the rest of the requirement, I wish you good luck trying to spool the XML correctly.
You may need to play around with the SET LONG and SET LONGCHUNKSIZE commands to operate.
-
I read data from a STI flow meter using the base series writing and reading which used the VISA. The read string begins with 'OK' or an error code, then a carriage return, then the data follows streaming rate temp pressure flow rate comma comma comma comma Temp... and so on. The string ends with a CR LF. I need to pull the flow, temperature and pressure data out of the string and write it to a file. I have difficulties to find a function that will retrieve the data for the string. Any suggestions? Thank you.
Try the subset of string in the palette of the chain.
Or match the model if you want a more direct control.
Also a good way is the string analysis, but you must be willing to read oexactly, what happens or an error, pass the entrance.
-
How to extract data from the APEX report with stored procedure?
Hi all
I am doing a report at the APEX. the user selects two dates and click on the GO button - I have a stored procedure linked to this region of outcome for the stored procedure is called.
my stored procedure does the following-
using dates specified (IN) I do question and put data in a table (this painting was created only for this report).
I want to show all the data that I entered in the table on my APEX report the same procedure call. can I use Ref cursor return? How to do this?
Currently, I use another button in the APEX that basically retrieves all the data from table. Basically, the user clicks a button to generate the report and then another button for the report. which is not desirable at all :(
I m using APEX 3.1.2.00.02 and Oracle 10 database.
pls let me know if you need more clarification of the problem. Thanks in advance.
Kind regards
Probashi
Published by: porobashi on May 19, 2009 14:53APEX to base a report out of a function that returns the sql code... Your current code goes against a Ref cursor returns the values...
See this thread regarding taking a ref cursor and wrapping it in a function to channel out as a 'table' (use a cast to cast tabular function vale)...
(VERY COOL STUFF HERE!)
Re: Tyring to dynamically create the SQL statement for a calendar of SQL
Thank you
Tony Miller
Webster, TX -
Problem of extracting data from the XLIFF XML file
Hi again,
AS3 CS6 Flash Pro
I have the XML loaded from a Flash panel language translation file strings in an XML variable. Works very well. Traces out - shown below.
When I try to extract the data as XML < trans-unit >, I get an 1120: access of undefined property unit.
function completeHandler(event:LoaderEvent):void { var stuff:XMLLoader = LoaderMax.getLoader(arrayXMLFiles[0]); var moreStuff:XML = LoaderMax.getContent(arrayXMLFiles[0]); ssDebug.trace(moreStuff); // this works with output shown below ssDebug.trace(moreStuff.xliff.file.body.trans-unit); // - error here }
The Trace is here:
<xliff version="1.0" lang="en" xmlns="http://www.w3.org/XML/1998/namespace"> <file datatype="plaintext" original="CardJam.fla" source-language="EN"> <header/> <body> <trans-unit id="001" resname="IDS_ZXP7_JAM_01"> <source>If, while you are printing, your printer stops, ...</source> </trans-unit> <trans-unit id="002" resname="IDS_ZXP7_JAM_02"> <source>look at the Operator Control Panel (OCP) for the fault description.</source> </trans-unit> <trans-unit id="003" resname="IDS_ZXP7_JAM_03"> <source>If the fault is a card jam, open and close the Print Cover (or Options Cover).</source> </trans-unit> <trans-unit id="004" resname="IDS_ZXP7_JAM_04"> <source>The printer will initialize and move the jammed card to the Reject Bin.</source> </trans-unit> <trans-unit id="005" resname="IDS_ZXP7_JAM_TITLE"> <source>Card Jam</source> </trans-unit> </body> </file> </xliff>
I found a code by looking at a similar problem - I do not know how to retrieve other data (as I guess) the rest of the HTML in the code. I need to find a better reference with details and examples.
I fixed it by changing:
ssDebug.trace(moreStuff.xliff.file.body.trans-unit); -error
TO:
ssDebug.trace (moreStuff.file.body ['trans-unit']); -no error
with results expected (no error):
-
How to copy the data from the CLOB on Varchar2?
Hi all
I have a CLOB field with data, I want to copy all the ot its data to another field of varchar2 to the same table. How, please?
I think that I should use the Update statement, but how?
Note: Iam using DB Oracle 10g R2You can just do a simple UPDATE, but if you have the adta in your CLOB which is too big to fit in your column VARCHAR2 column, you will not be able to get it all:
UPDATE my_table SET my_varchar2_column = SUBSTR(my_clob_column,1,[size of my_varchar2_column];
-
Need to extract data from the last current period of actuals
Hi, we need fill a projected account using the last current month and year of actual expenditures in the rules.
Example: S #Fcst.A #101.Y #2011.P #Mar = S #Actual.A #102.Y # (most cuurent year system). P # (more recent period of system).
Does anyone know if this is possible? We are on HFM 4.0.1
Thanks in advance!
Rick
Published by: user4631789 on February 10, 2010 13:48You can use vba, Month (Now (), and Year (Now ()) to get 3 and 2010 respectively.
-
Import data from the grid using Excel Option not available
On the grid, we have the ability to import the data in grid. However, on the Import Wizard, the only option that appears is import values separated by comma (CSV). Options for importing to Excel not displayed. Why is it other import options is not available?You may need to register the OCX that offer this feature.
You can check out a place like this OCX files:
C:\Program Files\IBM\WebSphere\AppServer\installedApps\E1DVWEB1Node01\EA_JS_Prototype.ear\webclient.war\axctls\jdeexpimpU.cab
and
C:\Program Files\IBM\WebSphere\AppServer\installedApps\E1DVWEB1Node01\EA_JS_Prototype.ear\webclient.war\axctls\jdewebctlsU.cab
Put the OCX files in a network location, and then put cela in a connection/GPO script or run it manually:
copy '\\somenetworklocation\jdeexpimpu\jdeexpimpU.ocx' 'C:\windows\system32\.
copy '\\somenetworklocation\jdeexpimpu\jdewebctlsU.ocx' 'C:\windows\system32\.
regsvr32 "c:\windows\system32\jdeexpimpU.ocx".
regsvr32 "c:\windows\system32\jdewebctlsU.ocx". -
Slow down execution SQL - extracting data from the FACT Table
taHi,
We have a SQL that runs slowly.
Select / * + ALL_ROWS PARALLEL (F 8) * /.
IA_OASIS_GRP_CAPTR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LN_PLN_DESC,
CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_PRDCT_CATEG_CD,
CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_PRDCT_CATEG_DESC,
CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_PRDCT_ID,
CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_PRDCT_DESC,
CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_MTL_LVL_CD,
CLM_CLS_PLN_CAPTR_D.HIOS_PLN_ID,
CLM_CLS_PLN_CAPTR_D.HIX_GRP_ID,
OASIS_CLM_MBR_XREF. LGCY_SBSCR_ID,
OASIS_CLM_MBR_XREF. LGCY_MBR_SFX_ID,
OASIS_CLM_MBR_XREF. FACETS_SBSCR_ID,
OASIS_CLM_MBR_XREF. FACETS_MBR_SFX_ID,
OASIS_CLM_MBR_XREF. LGCY_CUST_ID,
OASIS_CLM_MBR_XREF. LGCY_GRP_ID,
OASIS_CLM_MBR_XREF. LGCY_BIL_UNT_ID,
OASIS_CLM_MBR_XREF. FACETS_PRNT_GRP_ID,
OASIS_CLM_MBR_XREF. FACETS_GRP_ID,
OASIS_CLM_MBR_XREF. FACETS_CLS_ID,
OASIS_CLM_MBR_XREF. FACETS_CONVER_MBR_EFF_DT,
IA_OASIS_TOT_PROV_CUR_D.PROV_ID AS BEN_BILLING_PROV,
IA_OASIS_TOT_PROV_CUR_D.PROV_ID AS BEN_ATTENDING_PROV,
IA_OASIS_TOT_PROV_CUR_D.PROV_ID AS BEN_PCP_NUMBER,
IA_OASIS_TOT_PROV_CUR_D.PROV_ID AS BEN_IPA_NUMBER,
EDW. CLM_CAPITN_F.CLM_CAPITN_FRST_SVC_DT_SK,-CAL_DT Dimension is associated and had CAL_DT_SK column
EDW. CLM_CAPITN_F.CLM_CAPITN_LST_PRCS_DT_SK,-CAL_DT Dimension is associated and had CAL_DT_SK column
EDW. CLM_CAPITN_F.CLM_CAPITN_FRST_LOC_DT_SK,-CAL_DT Dimension is associated and had CAL_DT_SK column
EDW. CLM_CAPITN_F.CLM_CAPITN_CHK_DT_SK,-CAL_DT Dimension is associated and had CAL_DT_SK column
EDW. CLM_CAPITN_F.CLM_CAPITN_ADMIT_DT_SK,-CAL_DT Dimension is associated and had CAL_DT_SK column
EDW. CLM_CAPITN_F.CLM_CAPITN_ICN,
EDW. CLM_CAPITN_F.CLM_CAPITN_LN_NBR,
EDW. CLM_CAPITN_F.CLM_CAPITN_PD_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_BIL_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_ALLOW_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_ALLOW_DY_NBR,
EDW. CLM_CAPITN_F.CLM_CAPITN_UNT_OF_SVC_QTY,
EDW. CLM_CAPITN_F.CLM_CAPITN_COB_SAV_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_COINS_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_RSN_CHRG_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_WTHLD_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_DED_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_SANCT_LAT_CALL_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_SANCT_DED_PNLTY_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_SANCT_COPAY_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_SANCT_PCT_COPAY_AMT,
EDW. CLM_CAPITN_F.SANCT_FLAT_DLR_COPAY_AMT,
EDW. CLM_CAPITN_F.SANCT_HMO_ACCUM_COPAY_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_TOT_NEGOT_RT_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_LN_NEGOT_RT_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_SEC_ALLOW_AMT,
EDW. CLM_CAPITN_F.CLM_CAPITN_GATWY_ID,
EDW. CLM_CAPITN_F.CLM_CAPITN_PROV_AGR_ID,
EDW. CLM_CAPITN_F.CLM_CAPITN_F_SNPSHOT_MO_SK
OF EDW. Partition CLM_CAPITN_F (JAN2012),
EDW. IA_OASIS_GRP_CAPTR_D IA_OASIS_GRP_CAPTR_D,
EDW. IA_OASIS_MBR_CAPTR_D IA_OASIS_MBR_CAPTR_D,
EDW. IA_OASIS_CLM_SPEC_D IA_OASIS_CLM_SPEC_D,
EDW. IA_OASIS_CAPITN_CLM_D IA_OASIS_CAPITN_CLM_D,
EDW. CLM_CLS_PLN_CAPTR_D CLM_CLS_PLN_CAPTR_D,
EDW. OASIS_CLM_MBR_XREF OASIS_CLM_MBR_XREF,
EDW. IA_OASIS_TOT_PROV_CUR_D IA_OASIS_TOT_PROV_CUR_D
WHERE
EDW. CLM_CAPITN_F.CLM_CAPITN_IA_GRP_CAPTR_EDW_SK = IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_EDW_SK (+) and
EDW. CLM_CAPITN_F.CLM_CAPITN_IA_MBR_CAPTR_EDW_SK = IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_EDW_SK and
EDW. CLM_CAPITN_F.CLM_CAPITN_IA_CLM_SPEC_EDW_SK = IA_OASIS_CLM_SPEC_D.CLM_SPEC_EDW_SK and
EDW. CLM_CAPITN_F.CLM_CAPITN_IA_CLM_EDW_SK = IA_OASIS_CAPITN_CLM_D.CLM_EDW_SK and
EDW. CLM_CAPITN_F.CLM_CLS_PLN_CAPTR_EDW_SK = CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_CAPTR_EDW_SK and
EDW. CLM_CAPITN_F.MBR_XREF_SK = OASIS_CLM_MBR_XREF. MBR_XREF_SK (+) and
EDW. CLM_CAPITN_F.CLM_CAPITN_IA_BIL_PROV_EDW_SK = IA_OASIS_TOT_PROV_CUR_D.PROV_EDW_SK and
EDW. CLM_CAPITN_F.CLM_CAPITN_ATTND_PROV_EDW_SK = IA_OASIS_TOT_PROV_CUR_D.PROV_EDW_SK and
EDW. CLM_CAPITN_F.CLM_CAPITN_IA_PCP_EDW_SK = IA_OASIS_TOT_PROV_CUR_D.PROV_EDW_SK and
EDW. CLM_CAPITN_F.CLM_CAPITN_IA_IPA_PROV_EDW_SK = IA_OASIS_TOT_PROV_CUR_D.PROV_EDW_SK (+);
--------------------------------------------------------------------------------
Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production
PL/SQL Release 11.2.0.4.0 - Production
CORE Production 11.2.0.4.0
AMT for Solaris: 11.2.0.4.0 - Production Version
NLSRTL Version 11.2.0.4.0 - Production
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES boolean FALSE
optimizer_dynamic_sampling integer 2
optimizer_features_enable string 11.2.0.4
optimizer_index_caching integer 0
OPTIMIZER_INDEX_COST_ADJ integer 100
the string ALL_ROWS optimizer_mode
optimizer_secure_view_merging Boolean TRUE
optimizer_use_invisible_indexes boolean FALSE
optimizer_use_pending_statistics boolean FALSE
optimizer_use_sql_plan_baselines Boolean TRUE
Please suggest how this can be optimized.
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
db_file_multiblock_read_count integer 32
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
DB_BLOCK_SIZE integer 32768
CURSOR_SHARING EXACT string
-
How to ETL extract data from database Oracle 11.1 using Cognos Data Manager 10.1
Hello
I need to run the IBM Cognos Data Manager 10.1 version ETL tool for extracting data from the Oracle11.1 database.
My understanding is that, from the point of view of database, the best way would to have a stored procedure that will provide a reference cursor in the ETL client tool.
However, a database procedure the ETL tool running seems not to be possible in this version of the data manager.
If someone has done this before? What is the best way for this snippet to do?
Thank you
Emilija
Annabelle says:
My reading of original question: "What is the best way for this snippet to do?"
Sorry - is NOT helping.
The BEST way to extract data from a table is to use a SELECT statement.
You said you want to do.
So just repeat your original question instead of those that ask you to answer will not move forward us.
Maybe you are looking for
-
I am trying to program a simple sub - vi that accepts keyboard entry or seizure of keyboard wedge scanner with an operator in a string field. Data entry is a 9-digit number. The used scanner has a return, programmed into the scanner for other applica
-
HP7510: When you print photos they come out the right size.
Today you have the printer and it works well with the output of good quality. However if I try to print a MS Word document that contains a picture the photo comes out to about 120% of full size and overflows out of the page. Any ideas? I am an exp
-
my Windows vista does not update error code 80004002?
ive tried setting the DOF but he never to work? I am running a Windows vista operating system 32-bit service pack 2 everytime I try to update code and the error pops up? [80004002]
-
Hello! I am creating a settings screen that is similar to the system timing application settings screen. I created one level then pushed NavigationPane page main screen of the application in this pane. When the action parameters is called in the top
-
Counters of a chassis on two missing statistics
Hello I just came across a strange behavior. I currently have a small domain of ucs with 2 chassis. I just saw that I am unable to see some counters statistics on one of the two chassis. Example, the current speed of the fan is not yet displayed, as