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):

If, while you are printing, your printer stops...

get to the control panel (OCP) operator for the error description.

If the fault is a card jam, open and close the Print cover (or cover the Options).

The printer will initialize and move the card stuck in the compartment to reject.

Card jam

Tags: Adobe Animate

Similar Questions

  • How to extract data from an arbitrary xml file and export it to a CSV friendly?

    Hallo,
    I am facing big problems in the use of XML files. I have a
    application that generates XML files with clusters containing arrays
    and scalars as in the example pasted below. My task is to
    Read it and export the data into a CSV document readable by a human.
    Since I do not know the actual content of the cluster, I need some sort
    Smart VI through the XML looking for berries
    and other data structures for export properly in the CSV file
    format (columns with headers).
    Thank you



    3


    6


    0



    1



    2



    3



    4



    5




    3.14159265358979



    Ciao

    Rather than to get the

    node, you can just go directly to the node since ' one that really interests you. Basically what it means to determine the elements of table how much you have, and it depends on if you have 1 or 2 knots . The rest is just of the child nodes and the next siblings. See attachment as a starting point. The attached XML file is a table 2D (change the .xml extension).

    Notes on the example:

    • I did not close properly references, so it's something you need to do.
    • It is limited to tables 1 d or 2D.
    • I suggest using a control path of the file to specify the input XML file and path of the file/folder control to specify the location of the output file.

  • 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:
    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
    Sample data in the flat file is as follows:
    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
    My program code is the following:

    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;
    
    /
    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.

    It would be great if someone can tell me how to extract the three fields in the flat file.


    Thank you
    Romaric

    Romaric,

    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

  • Loading data from the external XML file

    Hello people!

    I have a XML file on my server, updated by cron every 10 minutes and I want to load data to my webworks her application, but the jquery ajax function do not support the folded areas. So here's my question - how should this information? Can I somehow download this file and then use ajax?

    Welcome!

    in your config.xml file, add an authorization to access your server:

    subdomains of http://www.yourserver.com"="true"/ >

    This will get by cross-origin issues.

  • 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 Oracle into excel file

    Hello

    I have a requirement where in I need to extract data from Oracle into excel file and the worksheet excel name should be 'given '.
    for example. Excel 'AR Data_DDMMYY' file name and the name of the "Data" sheet excel

    I used the UTL_FILE API to extract the data delimited by tabs that you can open in excel, but it's not exactly an excel file as the name of the worksheet is the same as the name of the file.

    I tried to use utl_file.fcopy and frename.

    Is it possible to do it using PLSQL?

    Select * from version of v$.
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    "CORE     10.2.0.5.0     Production"
    TNS for HPUX: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
    Example Code:
    declare
    cursor c is
    select * from scott.emp;
    v varchar2(100);
    f utl_file.file_type;
    
    file_name varchar2(100) := 'AR Data.xls';
    dir varchar2(50) := 'CESDIR191710';
    
    --select * from dba_directories
    
    begin
    
    
    f := utl_file.fopen(dir, file_name, 'W');
    
    v := 'EMPNO'||chr(9)||'ENAME'||chr(9)||'JOB'||chr(9)||'SAL'||chr(9)||'HIREDATE'||chr(9)||'DEPTNO';
    utl_file.put_line(f, v);
    
    for i in c
    loop
    
    v := i.empno||chr(9)||i.ename||chr(9)||i.job||chr(9)||i.sal||chr(9)||i.hiredate||chr(9)||i.deptno;
    utl_file.put_line(f, v);
    
    end loop;
    utl_file.fclose(f);
    
    --utl_file.frename(dir, file_name, dir, replace(file_name, '.xls', '_')||to_char(sysdate, 'MMDDYY')||'.xls', false);
    utl_file.fcopy(dir, file_name, dir, replace(file_name, '.xls', '_')||to_char(sysdate, 'MMDDYY')||'.xls');
    
    end;
    Thank you
    Imran

    Hello

    I tried to change the .xlsx to .xls and it gives a note at the opening of the file "the file you are trying to open, abc.xls, is in a different format that it is specified by the file extension. Check that the file is not corrupted and precedes from a trusted source before you open the file. Do you want to open it now? »

    When you rename the file does not solve your problem.
    Anton Scheffer package generates a file in format xlsx Office 2010. When rename you it with the .xls extension, then Office 2010 will give you the warning that the file format does not match the extension.

    but the requirement has to generate excel 2003 file.

    The xml_spreadsheet package writes a format that was introduced with Office 2003, but you must use .xml as extension in other Office 2010 will give you the same caveat.
    To write the real xls version (binary), you can use Apache POI. You will need to import Java classes in your db and write a PL/SQL wrapper. Or you can use one of the options above, writing the output to a windows server and then use Excel to open and save in the required format.

    You must decide whether it is easier to write the binary xls format or to convince the customer to accept other formats that can be opened with Excel.

    Concerning
    Marcus

  • 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

  • Polish fonts - ISO 8859-2 (Latin 2) - from the external xml file

    Hello

    I need to import the Polish text in my flashapplication. I load text from an external xml file.
    so far everything I try is unable to display special characters.

    When I encode the text, it works, but it's no choice...


    more than two things: I have to dynamically create the textfield (createTextField();), and the police must be incorporated.

    can someone tell me the solution of this problem?
    any help is appreciated!

    Thank you
    Marcin

    Hello

    here a solution that worked for me:
    I just had to change the language and location settings in windows and flash would take the right code of basic police...

  • 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:

    1. INSERT INTO master_table_xml
    2. 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 '' |) XmlContent |'')

    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

  • 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:53

    APEX 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

  • Series read returns the string with excess-need information to extract data from the middle of the string

    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.

  • From the table XML file

    Hello

    Load the XML file into an Oracle Table like I did for me

    SQL> INSERT INTO EMP_DEPT (EMPNO, ENAME, SAL, DNAME)
      2 SELECT *
      3 FROM XMLTABLE('/ROWSET/ROW'
      4 PASSING XMLTYPE(BFILENAME('MYXML', 'EMP_DEPT.XML'),
      5 NLS_CHARSET_ID('CHAR_CS'))
      6 COLUMNS EMPNO NUMBER(4) PATH 'EMPNO',
      7 ENAME VARCHAR2(10) PATH 'ENAME',
      8 SAL NUMBER(7,2) PATH 'SAL',
      9 DNAME VARCHAR2(14) PATH 'DNAME'
    10 )
    11 ;
    14 rows created.
    

    Note:PASSING XMLTYPE(BFILENAME('MYXML', 'EMP_DEPT.XML')

    MYXML is directory

    EMP_DEPT. XML is the XML file for me

  • How to import data from the Excel worksheet file in a table DB using a filebrowse

    Hi friends,

    Im having a table has with the following columns as

    < Li > ID
    < Li > Employee_name
    < Li > Department

    with empty data in it.

    Im having an excel sheet that contains the data for the table has for the column ID < Employee_name < Department

    If it is possible to import excel data sheet empty table A that I have in the DB using a form of front-end APEX which is having a file navigation item only.

    So, if I store that excel sheet using a navigation button in table wwv_flows_files, then automatically all means this sheet file data in the excellent flows_files table must be inserted into the table empty i have.

    It is possible to store the data this way using a browse.

    Brgds,
    Mini

    Hello

    If you're on APEX 4.1 create data loading page. Then the end user may download the CSV data to your table.
    Excel can be saved in CSV format.

    Kind regards
    Jari

    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

  • Problem to extract data from a single column

    Hello

    I have a requirement where I have to get three records (intf. INTERFACE_DEF_ID, b2b. B2B_TPA_DEF_ID, osb. OSB_INF_DEF_ID) for the select statement for a particular column (val_id)

    The following query is in error.

    Help, please...

    Select

    (intf. INTERFACE_DEF_ID or b2b. B2B_TPA_DEF_ID or osb. OSB_INF_DEF_ID) as val_id

    Of

    ABC. INTERFACE_DEF intf,

    ABC. B2B_TPA_DEF b2b,

    ABC. OSB_INF_DEF OSB;

    Thank you.

    Although the errors because it's just syntactically incorrect in all directions.  Essentially, the SELECT statement is not yet valid.

    Create view abc_v_6 AS

    Select INTERFACE_DEF_ID val_id OF ABC. Union INTERFACE_DEF all the

    Select B2B_TPA_DEF_ID FROM ABC. B2B_TPA_DEF Union all the

    Select OSB_INF_DEF_ID FROM ABC. OSB_INF_DEF;

  • 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_D.GRP_CAPTR_GRP_ID,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_BIL_UNT_ID,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_BNF_PKG_CD,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_UNDWR_CD,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_CAC_CD,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_RTMS_HLTH_COV_CD,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_ACTUR_RSRV_CATEG_CD,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_BNF_TYP_CD,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_GRP_BGIN_DT,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_GRP_END_DT,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_PLN_SEL_CD,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_SBGRP_NM,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_SBGRP_TYP_CD,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_SBGRP_TYP_DESC,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_COBRA_IND,

    IA_OASIS_GRP_CAPTR_D.GRP_CAPTR_SBGRP_POL_NBR,

    IA_OASIS_GRP_CAPTR_D.GRP_POL_CD,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_SBSCR_ALTN_ID,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_RLNSP_CD,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_GNDR_CD,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_BTH_DT,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_MBR_ID,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_SBSCR_SCTR_CD,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_SBSCR_RGN_CD,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_SBSCR_ZIP_CD,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_BDGT_RPT_CLS_CD,

    IA_OASIS_MBR_CAPTR_D.MBR_CAPTR_WORK_DEPT_CD,

    IA_OASIS_MBR_CAPTR_D.BSC_DUAL_IN_HOUSE_IND,

    IA_OASIS_MBR_CAPTR_D.MEDCR_HICN_NUM,

    IA_OASIS_CLM_SPEC_D.CLM_PRI_DIAG_CD,

    IA_OASIS_CLM_SPEC_D.CLM_PRI_DIAG_BCKWD_MAP_IND,

    IA_OASIS_CLM_SPEC_D.CLM_PRI_ICD10_DIAG_CD,

    IA_OASIS_CLM_SPEC_D.ICD_CD_SET_TYP_CD,

    IA_OASIS_CLM_SPEC_D.CLM_APG_CD,

    IA_OASIS_CLM_SPEC_D.CLM_PTNT_DRG_CD,

    IA_OASIS_CLM_SPEC_D.CLM_PROC_CD,

    IA_OASIS_CLM_SPEC_D.CLM_PROC_MOD_1_CD,

    IA_OASIS_CLM_SPEC_D.CLM_PROC_MOD_2_CD,

    IA_OASIS_CLM_SPEC_D.CLM_POS_CD,

    IA_OASIS_CLM_SPEC_D.CLM_TOS_CD,

    IA_OASIS_CLM_SPEC_D.CLM_PGM_CD,

    IA_OASIS_CLM_SPEC_D.CLM_CLS_CD,

    IA_OASIS_CLM_SPEC_D.CLM_ADMIT_TYP_CD,

    IA_OASIS_CLM_SPEC_D.CLM_BIL_PROV_PREF_STS_CD,

    IA_OASIS_CLM_SPEC_D.CLM_BIL_PROV_PRTCP_STS_CD,

    IA_OASIS_CLM_SPEC_D.CLM_ATTND_PROV_PRTCP_STS_CD,

    IA_OASIS_CLM_SPEC_D.CLM_BIL_PROV_PLN_STS_CD,

    IA_OASIS_CLM_SPEC_D.CLM_NDC,

    IA_OASIS_CLM_SPEC_D.CLM_BRND_GNRC_CD,

    IA_OASIS_CLM_SPEC_D.CLM_ACSS_PLS_OOP_IND,

    IA_OASIS_CLM_SPEC_D.CLM_BNF_COV_CD,

    IA_OASIS_CLM_SPEC_D.CLM_TYP_OF_BIL_CD,

    IA_OASIS_CLM_SPEC_D.CLM_OOA_CD,

    IA_OASIS_CLM_SPEC_D.CLM_SANCT_LAT_CALL_IND,

    IA_OASIS_CLM_SPEC_D.CLM_SANCT_DED_PNLTY_IND,

    IA_OASIS_CLM_SPEC_D.CLM_SANCT_COPAY_IND,

    IA_OASIS_CLM_SPEC_D.CLM_SANCT_PCT_COPAY_IND,

    IA_OASIS_CLM_SPEC_D.CLM_SANCT_FLAT_DLR_COPAY_IND,

    IA_OASIS_CLM_SPEC_D.CLM_SANCT_HMO_ACCUM_COPAY_IND,

    IA_OASIS_CLM_SPEC_D.CLM_BIL_ALLOW_APPL_CD,

    IA_OASIS_CLM_SPEC_D.CLM_TMLY_FIL_APPL_CD,

    IA_OASIS_CLM_SPEC_D.CLM_TPLNT_APPL_CD,

    IA_OASIS_CLM_SPEC_D.CLM_ADJ_CD,

    IA_OASIS_CLM_SPEC_D.GRP_PRVDR_TIER_CD,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_SS_CD_CD,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_HMO_COV_LVL_CD,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_FUND_POOL_CD,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_HMO_PRDCT_CD,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_BNF_CATEG_CD,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_ADJ_TYP_CD,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_IPA_ACSS_PLS_IND,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_FUND_ID,

    IA_OASIS_CAPITN_CLM_D.CAPITN_CLM_FUND_DESC,

    CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_GRP_ID,

    CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_CLS_ID,

    CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_CLS_DESC,

    CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_PLN_ID,

    CLM_CLS_PLN_CAPTR_D.CLM_CLS_PLN_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

Maybe you are looking for