Read xml and load fields into table + steps needed in Oracle.

Dears,
I have a xml file as below
<service>
<header>
<ID="arte23" />
</header>
<body>
<apId="1234567890" sId="012345678" sType="test">
<capId="1454567890" sId="012345678" sType="test">
</body>
</service>
just given sample xml, kindly neglec the errors.
now I need to load sID which comes along with apId in one column and capid in another column.
when tried with xmldom etc getting ORA-31011: XML parsing failed.
kindly help me out.
Edited by: 873718 on 20-Jul-2011 03:28

here is the sample full xml.
I just need to capture the values of the follwing.
under papid I need sid value i.e. "012345678"
need this 2 cdcid="112435" name="i-A B C" ( where ever it occurs whole occurences capture).
under idet need is="fine"
under all <sc>s if there the capid then need sids...
also need of <or oid="123456789" /> value.
<service>
<header>
<ID="aaaaaaaaaaaaa23Aaa" />
</header>
<body>
<papid="1234567890" sid="012345678" sType="XX X">
<capid="1234567890" sid="012345678" sType="XX X">
<cdcid="112435" name="i-A B C" icn="Switch Srv In dialling" icid="10" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" iaid="XXX#19190000#47853#2#A##" bi="false" bulkQuantity="1" at="ddd" />
<sc>
<capid="1949187621">
<cdcid="102912" name="c C" icn="Switch Feature" icid="6" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
<sc>
<capid="1949187623">
<cdcid="99611" name="c C n" icn="Switch Feature" icid="6" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
<capid="1949187624">
<cdcid="102916" name="c C ip" icn="Switch Feature" icid="6" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
<capid="1949187626">
<cdcid="102917" name="c C ip n" icn="Switch Feature" icid="6" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
<capid="1949187628">
<cdcid="102915" name="c C ip u" icn="Switch Feature" icid="6" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
</sc>
</component>
<capid="1949187629">
<cdcid="34032" name="c C ip c" icn="Switch Feature" icid="6" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
<capid="1949187631">
<cdcid="112396" name="C s" icn="Switch Feature" icid="6" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
<sc>
<capid="1949205880">
<cdcid="112397" name="I O" icn="Switch Feature" icid="6" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
</sc>
</component>
<capid="1949187632">
<cdcid="37701" name="C- T" icn="Switch Feature" icid="6" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
<capid="1949187634">
<cdcid="40537" name="I M" icn="Switch Feature" icid="6" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
<sc>
<capid="1949205882">
<cdcid="115869" name="I O P" icn="Switch Feature" icid="6" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
</sc>
</component>
<capid="1949187636">
<cdcid="99612" name="V C" icn="Switch Feature" icid="6" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
<sc>
<capid="1949187637">
<cdcid="113106" name="M b" icn="Switch Feature" icid="6" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
<capid="1949187639">
<cdcid="111930" name="val in" icn="Switch Feature" icid="6" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
<capid="1949187640">
<cdcid="111931" name="M o" icn="Switch Feature" icid="6" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
</sc>
</component>
<capid="1949205894" sid="012345678">
<cdcid="112402" name="ip ran" icn="Range" icid="11" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
<sc>
<capid="1949205895" sid="012345678">
<cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
<capid="1949205900" sid="012345671">
<cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
<capid="1949205904" sid="012345672">
<cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
<capid="1949205907" sid="012345673">
<cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
<capid="1949205910" sid="012345674">
<cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
<capid="1949205913" sid="012345675">
<cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
<capid="1949205916" sid="012345676">
<cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
<capid="1949205919" sid="012345677">
<cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
<capid="1949205922" sid="012345678">
<cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
<capid="1949205930" sid="012345679">
<cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
</sc>
</component>
<capid="1949206824" sid="023345679">
<cdcid="112401" name="ip test" icn="Range" icid="11" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
<sc>
<capid="1949206825" sid="023345679">
<cdcid="112403" name="ip test num" icn="Subscription Number" icid="7" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
</sc>
</component>
<capid="1949206828" sid="153345679">
<cdcid="112401" name="ip test" icn="Range" icid="11" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
<sc>
<capid="1949206829" sid="153345679">
<cdcid="112403" name="ip test num" icn="Subscription Number" icid="7" />
<idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
</component>
</sc>
</component>
</sc>
</component>
<or oid="123456789" />
</product>
</body>
</service>
----------------------------------------------------------------------------------------------------------------------------------------------------------------

Similar Messages

  • 1.is it possible to read a .xls file and load it into an oracle table

    1.is it possible to read a .xls file and load it into an oracle table, using oracle database or oracle forms i.e. either utl_file, or text_io, or any other oracle tool.
    As far as I know we need a csv file or a txt ( tab delimited) file ?
    2.Are there any windows tools for the same

    Hi,
    If you want to use the DDE package to read the XLS file then yes, you will neeed to know the number of rows and columns in the input file.
    i.e. How will you know :
    1) How many columns are there in the input file.
    If I have a XLS file with the following data :
    R1C1 R1C2 R1C3 R1C4 R1C5 R1C6 R1C7
    xxx xx x
    Where R represents row and C represents column, then how will you know the each row has 7 columns. If you know the answer upfront, then it's not a issue.
    Using the DDE apprach, you will have to specify the RowNum and the ColumnNo of each idividual cells to read/write data from xls sheet.
    Look at the syntax in my ealier post.
    using the other approch (i.e. comma delimited text file - CSV file) , you need not know the number of columns as you can loop thru the input record till the last column is read.
    All you have to do is to look for the 'n' occurances of the field delimiter say ',', do a substr from the current position to the point where the ',' was found.
    This process is to be repeated in a loop till all columns are read.
    The TEXT_IO package can trap for EOF (End Of File).
    Hope I made myself clear.
    -- Shailender Mehta --

  • Please recommend if we have options to read xml file and insert data into table without a temporary table.

    Please recommend if we have options to read xml file and insert data into table without a temporary table. 

    DECLARE @data XML;
    SET @data =N'<Root>
    <List RecordID="946236" />
    <List RecordID="946237" />
    <List RecordID="946238" />
    <List RecordID="946239" />
    <List RecordID="946240" />
    </Root>'
    INSERT INTO t (id) SELECT T.customer.value('@RecordID', 'INT') AS id
    FROM @data.nodes('Root/List')
     AS T(customer);
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Open an Excel file to read and load it into Oracle - Oracle COM Automation

    Hello All,
    Please I need your help for this problem:
    I need to load Excel sheet data (read the data) and load it into Oracle database (insert into a table), the excel file created and has data before, and saved with xls format. and I need to do that using the Oracle® COM Automation (ordcom package). The examples I found open and create a new workbook and deletes the old saved data, so I need to open (edit) the sheet just for reading.
    I appreciate ans sample code to help me do that, Please help me out. This is very urgent.
    Thanks alot and best regards,
    Nabil

    For reading from Excel, there are some easy ways like Oracle Heterogenious Services. If you want to use COM then:
    My orawpcom.dll file exists in the directory C:\oracle\product\10.2.0\db_2\bin
    C:\oracle\product\10.2.0\db_2\bin>dir orawpco*.dll
    Volume in drive C is C_Drive
    Volume Serial Number is 8A93-1441
    Directory of C:\oracle\product\10.2.0\db_2\bin
    03/20/2006  05:06 PM            61,440 orawpcom.dll
    10/11/2006  03:20 PM            81,920 orawpcom10.dll
                   2 File(s)        143,360 bytes
                   0 Dir(s)  65,407,717,376 bytes free
    C:\oracle\product\10.2.0\db_2\bin>Information about my database version.
    SQL> /* My databaser version */
    SQL> SELECT * FROM v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    SQL> Preparing the user SCOTT for COM automation.
    Now, I will run comwrap.sql from scott user. I have edited the comwrap.sql to adjust my library path here:
    create library utils_lib as 'C:\oracle\product\10.2.0\db_3\bin\orawpcom.dll';Running comwrap.sql and ExcelSolution.sql .....
    SQL> conn scott@orclsb
    Enter password: *****
    Connected.
    SQL> @c:\comwrap.sql
    drop library utils_lib
    ERROR at line 1:
    ORA-04043: object UTILS_LIB does not exist
    Library created.
    drop package ORDCOM
    ERROR at line 1:
    ORA-04043: object ORDCOM does not exist
    drop TYPE OAArgTable
    ERROR at line 1:
    ORA-04043: object OAARGTABLE does not exist
    Type created.
    drop TYPE OAArgTypeTable
    ERROR at line 1:
    ORA-04043: object OAARGTYPETABLE does not exist
    Type created.
    drop function OAgetNumber
    ERROR at line 1:
    ORA-04043: object OAGETNUMBER does not exist
    Function created.
    drop function OAgetStr
    ERROR at line 1:
    ORA-04043: object OAGETSTR does not exist
    Function created.
    drop function OAgetBool
    ERROR at line 1:
    ORA-04043: object OAGETBOOL does not exist
    Function created.
    drop function OAsetNumber
    ERROR at line 1:
    ORA-04043: object OASETNUMBER does not exist
    Function created.
    drop function OAsetString
    ERROR at line 1:
    ORA-04043: object OASETSTRING does not exist
    Function created.
    drop function OAsetBoolean
    ERROR at line 1:
    ORA-04043: object OASETBOOLEAN does not exist
    Function created.
    drop function OAInvokeDouble
    ERROR at line 1:
    ORA-04043: object OAINVOKEDOUBLE does not exist
    Function created.
    drop function OAInvokeBoolean
    ERROR at line 1:
    ORA-04043: object OAINVOKEBOOLEAN does not exist
    Function created.
    drop function OAInvokeString
    ERROR at line 1:
    ORA-04043: object OAINVOKESTRING does not exist
    Function created.
    drop function OACreate
    ERROR at line 1:
    ORA-04043: object OACREATE does not exist
    Function created.
    drop function OADestroy
    ERROR at line 1:
    ORA-04043: object OADESTROY does not exist
    Function created.
    drop function OAGetLastError
    ERROR at line 1:
    ORA-04043: object OAGETLASTERROR does not exist
    Function created.
    drop function OAQueryMethods
    ERROR at line 1:
    ORA-04043: object OAQUERYMETHODS does not exist
    Function created.
    Package created.
    Package body created.
    SQL>
    SQL> @c:\ExcelSolution.sql
    drop package ORDExcel
    ERROR at line 1:
    ORA-04043: object ORDEXCEL does not exist
    Package created.
    Package body created.
    SQL>
    I have modified ORDExcel a little bit and renamed it as ORDExcelSB. You need this version for reading the excel.
    SQL> @C:\ExcelSolutionSB.sql
    Package dropped.
    Package created.
    Package body created.
    SQL> The actual code of ORDExcelSB (ExcelSolutionSB.sql) Is:
    set serveroutput on;
    drop package ORDExcelSB;
    CREATE PACKAGE ORDExcelSB AS
       /* Declare externally callable subprograms. */
       FUNCTION CreateExcelApplication(servername VARCHAR2) RETURN binary_integer;
       FUNCTION OpenExcelFile(filename VARCHAR2, sheetname VARCHAR2) RETURN binary_integer;
       FUNCTION CreateExcelWorkSheet(servername varchar2) return binary_integer;
       FUNCTION InsertData(range varchar2, data binary_integer, type varchar2) return binary_integer;
       FUNCTION InsertDataReal(range varchar2, data double precision, type varchar2) return binary_integer;
       FUNCTION GetDataNum(range varchar2) return binary_integer;
       FUNCTION GetDataStr(range varchar2) return varchar2;
       FUNCTION GetDataReal(range varchar2) return double precision;
       FUNCTION GetDataDate(range varchar2) return date;
       FUNCTION InsertData(range varchar2, data varchar2, type varchar2) return binary_integer;
       FUNCTION InsertData(range varchar2, data Date, type varchar2) return binary_integer;
       FUNCTION InsertChart(xpos binary_integer, ypos binary_integer, width binary_integer,
                                  height binary_integer, range varchar2, type varchar2) return binary_integer;
       FUNCTION SaveExcelFile(filename varchar2) return binary_integer;
       FUNCTION ExitExcel return binary_integer;
    END ORDExcelSB;
    CREATE PACKAGE BODY ORDExcelSB AS
       DummyToken          binary_integer;     
       applicationToken binary_integer:=-1;
       WorkBooksToken     binary_integer:=-1;
       WorkBookToken     binary_integer:=-1;
       WorkSheetToken     binary_integer:=-1;
       WorkSheetToken1     binary_integer:=-1;
       RangeToken          binary_integer:=-1;
       ChartObjectToken     binary_integer:=-1;
       ChartObject1          binary_integer:=-1;
       Chart1Token          binary_integer:=-1;
       i                    binary_integer;
       retNum               binary_integer;
       retReal               double precision;
       retStr               varchar2(255);
       retDate               DATE;
    error_src varchar2(255);
    error_description varchar2(255);
    error_helpfile varchar2(255);
    error_helpID binary_integer;
    FUNCTION CreateExcelApplication(servername VARCHAR2) RETURN binary_integer IS
      BEGIN
        dbms_output.put_line('Creating Excel application...');
        i := OrdCOM.CreateObject('Excel.Application',
                                 0,
                                 servername,
                                 applicationToken);
        IF (i != 0) THEN
          ORDCOM.GetLastError(error_src,
                              error_description,
                              error_helpfile,
                              error_helpID);
          dbms_output.put_line(error_src);
          dbms_output.put_line(error_description);
          dbms_output.put_line(error_helpfile);
        END IF;
        dbms_output.put_line('Invoking Workbooks...');
        i := ORDCOM.GetProperty(applicationToken,
                                'WorkBooks',
                                0,
                                WorkBooksToken);
        IF (i != 0) THEN
          ORDCOM.GetLastError(error_src,
                              error_description,
                              error_helpfile,
                              error_helpID);
          dbms_output.put_line(error_src);
          dbms_output.put_line(error_description);
          dbms_output.put_line(error_helpfile);
        END IF;
        RETURN i;
      END CreateExcelApplication;
      FUNCTION OpenExcelFile(filename VARCHAR2, sheetname VARCHAR2)
        RETURN binary_integer IS
      BEGIN
        dbms_output.put_line('Opening Excel file ' || filename || ' ...');
        ORDCOM.InitArg();
        ORDCOM.SetArg(filename, 'BSTR');
        i := ORDCOM.Invoke(WorkBooksToken, 'Open', 1, DummyToken);
        IF (i != 0) THEN
          ORDCOM.GetLastError(error_src,
                              error_description,
                              error_helpfile,
                              error_helpID);
          dbms_output.put_line(error_src);
          dbms_output.put_line(error_description);
          dbms_output.put_line(error_helpfile);
        END IF;
        dbms_output.put_line('Opening WorkBook');
        i := ORDCOM.GetProperty(applicationToken,
                                'ActiveWorkbook',
                                0,
                                WorkBookToken);
        IF (i != 0) THEN
          ORDCOM.GetLastError(error_src,
                              error_description,
                              error_helpfile,
                              error_helpID);
          dbms_output.put_line(error_src);
          dbms_output.put_line(error_description);
          dbms_output.put_line(error_helpfile);
        END IF;
        dbms_output.put_line('Invoking WorkSheets..');
        i := ORDCOM.GetProperty(applicationToken,
                                'WorkSheets',
                                0,
                                WorkSheetToken1);
        IF (i != 0) THEN
          ORDCOM.GetLastError(error_src,
                              error_description,
                              error_helpfile,
                              error_helpID);
          dbms_output.put_line(error_src);
          dbms_output.put_line(error_description);
          dbms_output.put_line(error_helpfile);
        END IF;
        dbms_output.put_line('Invoking WorkSheet');
        ORDCOM.InitArg();
        ORDCOM.SetArg(sheetname, 'BSTR');
        i := ORDCOM.GetProperty(WorkBookToken, 'Sheets', 1, WorkSheetToken);
        IF (i != 0) THEN
          ORDCOM.GetLastError(error_src,
                              error_description,
                              error_helpfile,
                              error_helpID);
          dbms_output.put_line(error_src);
          dbms_output.put_line(error_description);
          dbms_output.put_line(error_helpfile);
        END IF;
        dbms_output.put_line('Opened ');
        RETURN i;
      END OpenExcelFile;
    * Invoke the Excel Automation Server and create a Workbook object as
    * well as a worksheet object
    FUNCTION CreateExcelWorkSheet(servername varchar2) return binary_integer IS
    BEGIN
         dbms_output.put_line('Creating Excel application...');
         i:=ORDCOM.CreateObject('Excel.Application', 0, servername,applicationToken);
         IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         dbms_output.put_line('Invoking Workbooks...');
         /*i:=ORDCOM.Invoke(applicationToken, 'WorkBooks',0, WorkBooksToken);*/
         i:=ORDCOM.GetProperty(applicationToken, 'WorkBooks', 0, WorkBooksToken);
         IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         dbms_output.put_line('Invoking Add to WorkBooks...');
         ORDCOM.InitArg();
         ORDCOM.SetArg(-4167,'I4');
         i:=ORDCOM.Invoke(WorkBooksToken, 'Add', 1, WorkBookToken);
    IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         dbms_output.put_line('Invoking WorkSheets..');
         ORDCOM.InitArg();
         ORDCOM.SetArg('Sheet 1','BSTR');
    /*     i:=ORDCOM.Invoke(applicationToken, 'WorkSheets', 1, WorkSheetToken);*/
    i:=ORDCOM.GetProperty(applicationToken, 'WorkSheets', 0, WorkSheetToken1);
    IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
    i:=ORDCOM.Invoke(WorkSheetToken1, 'Add', 0, WorkSheetToken);
    IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         return i;
    END CreateExcelWorkSheet;
    * Invoke the Range method to obtain a range token. Then set the property value
    * at the specified range to the data required
    FUNCTION InsertData( range varchar2,
                             data binary_integer,
                             type varchar2)
                             RETURN binary_integer IS
    BEGIN
         ORDCOM.InitArg();
         ORDCOM.SetArg(range, 'BSTR');
         i:=ORDCOM.GetProperty(WorkSheetToken, 'Range', 1, RangeToken);
         IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         i:=ORDCOM.SetProperty(RangeToken, 'Value', data, type);
         IF (i=0) THEN
               i:=ORDCOM.SetProperty(RangeToken, 'ColumnWidth', 15, 'I2');
         END IF;
         i:=ORDCOM.DestroyObject(RangeToken);
         RETURN i;
    END InsertData;
    * Invoke the Range method to obtain a range token. Then set the property value
    * at the specified range to the data required
    FUNCTION GetDataNum( range varchar2)
                             RETURN binary_integer IS
    BEGIN
         ORDCOM.InitArg();
         ORDCOM.SetArg(range, 'BSTR');
         i:=ORDCOM.GetProperty(WorkSheetToken, 'Range', 1, RangeToken);
         IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         i:=ORDCOM.GetProperty(RangeToken, 'Value', 0, retNum);
         IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         i:=ORDCOM.DestroyObject(RangeToken);
         RETURN retNum;
    END GetDataNum;
    FUNCTION GetDataReal( range varchar2)
                             RETURN double precision IS
    BEGIN
         ORDCOM.InitArg();
         ORDCOM.SetArg(range, 'BSTR');
         i:=ORDCOM.GetProperty(WorkSheetToken, 'Range', 1, RangeToken);
         IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         i:=ORDCOM.GetProperty(RangeToken, 'Value', 0, retReal);
         IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         i:=ORDCOM.DestroyObject(RangeToken);
         RETURN retReal;
    END GetDataReal;
    FUNCTION GetDataStr( range varchar2)
                             RETURN varchar2 IS
    BEGIN
         ORDCOM.InitArg();
         ORDCOM.SetArg(range, 'BSTR');
         i:=ORDCOM.GetProperty(WorkSheetToken, 'Range', 1, RangeToken);
         IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         i:=ORDCOM.GetProperty(RangeToken, 'Value', 0, retStr);
         IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         i:=ORDCOM.DestroyObject(RangeToken);
         RETURN retStr;
    END GetDataStr;
    FUNCTION GetDataDate( range varchar2)
                             RETURN Date IS
    BEGIN
         ORDCOM.InitArg();
         ORDCOM.SetArg(range, 'BSTR');
         i:=ORDCOM.GetProperty(WorkSheetToken, 'Range', 1, RangeToken);
         IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         i:=ORDCOM.GetProperty(RangeToken, 'Value', 0, retDate);
         IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         i:=ORDCOM.DestroyObject(RangeToken);
         RETURN retDate;
    END GetDataDate;
    FUNCTION InsertData( range varchar2,
                             data DATE,
                             type varchar2)
                             RETURN binary_integer IS
    BEGIN
         ORDCOM.InitArg();
         ORDCOM.SetArg(range, 'BSTR');
         i:=ORDCOM.GetProperty(WorkSheetToken, 'Range', 1, RangeToken);
         i:=ORDCOM.SetProperty(RangeToken, 'Value', data, type);
         i:=ORDCOM.DestroyObject(RangeToken);
         RETURN i;
    END InsertData;
    FUNCTION InsertDataReal( range varchar2,
                             data double precision,
                             type varchar2)
                             RETURN binary_integer IS
    BEGIN
         ORDCOM.InitArg();
         ORDCOM.SetArg(range, 'BSTR');
         i:=ORDCOM.GetProperty(WorkSheetToken, 'Range', 1, RangeToken);
         i:=ORDCOM.SetProperty(RangeToken, 'Value', data, type);
         i:=ORDCOM.DestroyObject(RangeToken);
         RETURN i;
    END InsertDataReal;
    FUNCTION InsertData( range varchar2,
                             data varchar2,
                             type varchar2)
                             RETURN binary_integer IS
    BEGIN
         ORDCOM.InitArg();
         ORDCOM.SetArg(range, 'BSTR');
         i:=ORDCOM.GetProperty(WorkSheetToken, 'Range', 1, RangeToken);
         i:=ORDCOM.SetProperty(RangeToken, 'Value', data, type);
         i:=ORDCOM.DestroyObject(RangeToken);
         RETURN i;
    END InsertData;
    * Insert a chart at the x and y position of the spreadsheet with the desired
    * height and width. Then also uses the ChartWizard to draw the graph with data
    * in a specified range area with a specified charting type.
    FUNCTION InsertChart(xpos binary_integer, ypos binary_integer,
                              width binary_integer, height binary_integer,
                              range varchar2, type varchar2) RETURN binary_integer IS
         charttype binary_integer:= -4099;
    BEGIN
         ORDCOM.InitArg();
         i:=ORDCOM.GetProperty(WorkSheetToken, 'ChartObjects', 0, ChartObjectToken);
         IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         ORDCOM.InitArg();
         ORDCOM.SetArg(xpos,'I2');
         ORDCOM.SetArg(ypos,'I2');
         ORDCOM.SetArg(width,'I2');
         ORDCOM.SetArg(height,'I2');
         i:=ORDCOM.Invoke(ChartObjectToken, 'Add', 4, ChartObject1);
         IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         i:=ORDCOM.GetProperty(ChartObject1, 'Chart', 0,Chart1Token);
         ORDCOM.InitArg();
         ORDCOM.SetArg(range, 'BSTR');
         i:=ORDCOM.GetProperty(WorkSheetToken,'Range', 1, RangeToken);
         ORDCOM.InitArg();
         ORDCOM.SetArg(RangeToken, 'DISPATCH');
         IF type='xlPie' THEN
              charttype := -4102;
         ELSIF type='xl3DBar' THEN
              charttype := -4099;
         ELSIF type='xlBar' THEN
              charttype := 2;
         ELSIF type='xl3dLine' THEN
              charttype:= -4101;
         END IF;
         ORDCOM.SetArg(charttype,'I4');
         i:=ORDCOM.Invoke(Chart1Token,'ChartWizard', 2, DummyToken);
         i:=ORDCOM.DestroyObject(RangeToken);
         i:=ORDCOM.DestroyObject(ChartObjectToken);
         i:=ORDCOM.DestroyObject(ChartObject1);
         i:=ORDCOM.DestroyObject(Chart1Token);
         RETURN i;
    END InsertChart;
    * Save the Excel File. WARNING: Do not specify a filename that already exist
    * since there is no graphical context, Oracle would not be able to pop
    * out a warning message for existing file. This causes Excel to hang
    FUNCTION SaveExcelFile(filename varchar2) return binary_integer IS
    BEGIN
         dbms_output.put_line('Saving Excel file...');
         ORDCOM.InitArg();
         ORDCOM.SetArg(filename,'BSTR');
         i:=ORDCOM.Invoke(WorkBookToken, 'SaveAs', 1, DummyToken);
         IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         RETURN i;     
    END SaveExcelFile;
    * Close the Excel spreadsheet and exit from it
    FUNCTION ExitExcel return binary_integer is
    BEGIN
         dbms_output.put_line('Closing workbook and quitting...');
         ORDCOM.InitArg();
         ORDCOM.InitArg();
         ORDCOM.SetArg(FALSE,'BOOL');
         dbms_output.put_line('Closing workbook...');
         i:=ORDCOM.Invoke(WorkBookToken, 'Close', 0, DummyToken);
         IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         i:=ORDCOM.DestroyObject(WorkBookToken);     
         ORDCOM.InitArg();
         dbms_output.put_line('Closing workbooks...');
         i:=ORDCOM.Invoke(WorkBooksToken, 'Close', 0, DummyToken);
         IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         i:=ORDCOM.DestroyObject(WorkBooksToken);
         i:=ORDCOM.Invoke(applicationToken, 'Quit', 0, DummyToken);
         IF (i!=0) THEN
         ORDCOM.GetLastError(error_src, error_description, error_helpfile, error_helpID);
         dbms_output.put_line(error_src);
         dbms_output.put_line(error_description);
         dbms_output.put_line(error_helpfile);
         END IF;
         i:=ORDCOM.DestroyObject(WorkSheetToken);     
         i:=ORDCOM.DestroyObject(WorkSheetToken1);     
         i:=ORDCOM.DestroyObject(applicationToken);
         i:=ORDCOM.DestroyObject(ChartObjectToken);
         i:=ORDCOM.DestroyObject(Chart1Token);
         i:=ORDCOM.DestroyObject(ChartObject1);
         i:=ORDCOM.DestroyObject(dummyToken);
         RETURN i;
    END ExitExcel;
    END ORDExcelSB;
    /I have created an excel named as C:\Example.xls.
    Name     SlNo     Job     Dept     Salary     Bonus
    Saubhik Banerjee     706090     IT Specialist     GBS     100     10
    Partha S Mohanty     706091     Pogrmmer     APPS     70     20
    Partha Sarkar     889300     Condultant     FIN     200     30
    Useless     98009     PM     PM     900     90
    SQL> SET SERVEROUT ON
    SQL> DECLARE
      2 
      3    v_Name          varchar2(90);
      4    v_SlNo          varchar2(100);
      5    v_Job           varchar2(200);
      6    v_Dept          varchar2(100);
      7    v_recon_remark  varchar2(50);
      8    v_sal_amt_usd   number;
      9    v_Bonus_amt_usd number;
    10 
    11    result INTEGER;
    12 
    13    i        binary_integer;
    14    filename varchar2(255);
    15 
    16  BEGIN
    17 
    18    filename := 'C:\Example.xls';
    19 
    20    result := ORDExcelSB.CreateExcelApplication('');
    21    result := ORDExcelSB.OpenExcelFile(filename, 'Sheet1');
    22 
    23    /* Excluding the header row and reading the first 5 row */
    24    FOR n in 2 .. 5 LOOP
    25   
    26      v_Name          := ORDExcelSB.GetDataStr('A' || n);
    27      v_SlNo          := ORDExcelSB.GetDataReal('B' || n);
    28      v_Job           := ORDExcelSB.GetDataStr('C' || n);
    29      v_Dept          := ORDExcelSB.GetDataStr('D' || n);
    30      v_sal_amt_usd   := ORDExcelSB.GetDataNum('E' || n);
    31      v_Bonus_amt_usd := ORDExcelSB.GetDataNum('F' || n);
    32   
    33      dbms_output.put_line(v_Name || '  ' || v_SlNo || '  ' || v_Job || '  ' ||
    34                           v_Dept || '  ' || v_sal_amt_usd || '  ' ||
    35                           v_Bonus_amt_usd);
    36   
    37    END LOOP;
    38 
    39    result := ORDExcelSB.ExitExcel();
    40  EXCEPTION
    41    WHEN OTHERS THEN
    42      result := ORDExcelSB.ExitExcel();
    43      RAISE;
    44  END;
    45  /
    Creating Excel application...
    Invoking Workbooks...
    Opening Excel file C:\Example.xls ...
    Opening WorkBook
    Invoking WorkSheets..
    Invoking WorkSheet
    Opened
    Saubhik Banerjee  706090  IT Specialist  GBS  100  10
    Partha S Mohanty  706091  Pogrmmer  APPS  70  20
    Partha Sarkar  889300  Condultant  FIN  200  30
    Useless  98009  PM  PM  900  90
    Closing workbook and quitting...
    Closing workbook...
    Closing workbooks...
    PL/SQL procedure successfully completed.
    SQL> Although, You haven't asked, but you can use this code to write to excel file (.xls)
    DECLARE
    CURSOR c1 IS     
         SELECT empno, ename, dname, sal, hiredate
         FROM emp e, dept d
         WHERE e.deptno = d.deptno;
    error_message varchar2(1200);
    n binary_integer:=2;
    i binary_integer;
    filename varchar2(255);
    cellIndex varchar2(40);
    cellValue varchar2(40);
    cellColumn varchar2(10);
    returnedTime varchar2(20);
    currencyvalue double precision;
    datevalue DATE;
    empno binary_integer;
    looptext varchar2(20);
    error_src varchar2(255);
    error_description varchar2(255);
    error_helpfile varchar2(255);
    error_helpID binary_integer;
    begin
    filename:='c:\example2.xls';
    i:=ORDExcel.CreateExcelWorkSheet('');
    i:=ORDExcel.InsertData('A1', 'EmpNo', 'BSTR');
    i:=ORDExcel.InsertData('B1', 'Name', 'BSTR');
    i:=ORDExcel.InsertData('C1', 'Dept', 'BSTR');
    i:=ORDExcel.InsertData('D1', 'Salary', 'BSTR');
    i:=ORDExcel.InsertData('E1', 'HireDate', 'BSTR');
    For c1_rec IN c1 LOOP
    cellColumn:=TO_CHAR(n);
    cellIndex:=CONCAT('A',cellColumn);
    cellValue:=TO_CHAR(c1_rec.empno);
    empno:=cellValue;
    i:=ORDExcel.InsertData(cellIndex, empno, 'I2');
    cellIndex:=CONCAT('B',cellColumn);
    cellValue:=c1_rec.ename;
    i:=ORDExcel.InsertData(cellIndex, cellValue, 'BSTR');
    cellIndex:=CONCAT('C',cellColumn);
    cellValue:=c1_rec.dname;
    i:=ORDExcel.InsertData(cellIndex, cellValue, 'BSTR');
    cellIndex:=CONCAT('D',cellColumn);
    cellValue:=c1_rec.sal;
    currencyValue:=cellValue;
    i:=ORDExcel.InsertData(cellIndex, currencyValue, 'CY');
    cellIndex:=CONCAT('E',cellColumn);
    dateValue:=c1_rec.hiredate;
    i:=ORDExcel.InsertData(cellIndex, dateValue, 'DATE');
    n:=n+1;
    END LOOP;
    i:=ORDExcel.SaveExcelFile(filename);
    i:=ORDExcel.ExitExcel();
    EXCEPTION
    WHEN OTHERS THEN
      i:=ORDExcel.ExitExcel();
      RAISE;
    END;

  • How to Extract Data from SAP and Load it into Essbase

    Hi All,
    Can you recommend some ways to extract data from SAP and load it into Essbase?. I have no knowledge about SAP, not sure how I can perform this task. Can I use ODI for this job?
    Thanks

    hi,
    Not sure if this helps but give a try
    you can create connection from EAS to SAP .. using a plug-in .. if you have access to oracle Support go for [ID 968961.1]
    or
    below are steps
    1. In EASPATH\console, open components.xml in a text editor.
    2. Under <PluginList>, enter <Plugin archiveName="SAP" packageName="com.essbase.eas.sap.ui"/> before the closing </PlugIn> tag.
    3. Save and close the file.
    4. In EASPATH\console\bin, open admincon.lax in a text editor.
    5. Search for lax.class.path= and append ;..\lib\sap_client.jar;..\lib \sap_common.jar to the entry. Save and close the file.
    6. In EASPATH\server\bin, open adminsvr.lax in a text editor.
    7. Search for lax.nl.java.option.additional, and append -DRFC_INI=EASPATH\server\saprfc.ini. Save and close the file.
    8. Create a new environment variable, RFC_INI, with a value of EASPATH\server\saprfc.ini
    9. Copy librfc.dll andsapjcorfc.dll to EASPATH\server\bin. You may need to obtain these files from SAP.
    let me know if it works :)

  • Shell Script Programming -- Loading data into table

    Hello Gurus
    I am using Oracle's sql*loader utility to load data into a table. Lately, I got an unlikely scenario where in I need to process the data file first before loading it into the table and where I need help from you guys.
    Consider the following data line
    "Emp", DOB, Gender, Subject
    "1",01/01/1980,"M","Physics:01/05/2010"
    "2",01/01/1981,"M","Chemistry:02/05/2010|Maths:02/06/2011"
    "3",01/01/1982,"M","Maths:03/05/2010|Physics:06/07/2010|Chemistry:08/09/2011"
    "4",01/01/1983,"M","Biology:09/09/2010|English:10/10/2010"Employee - 1 will get loaded as a single record in the table. But I need to put Subject value into two separate fields into table. i.e. Physics into one column and date - 01/05/2010 into separate column.
    Here big problem starts
    Employee - 2 Should get loaded as 2 records into the table. The first record should have Chemistry as subject and date as 02/05/2010 and the next record should have all other fields same except the subject should be Maths and date as 02/06/2011. The subjects are separated by a pipe "|" in the data file.
    Similarly, Employee 3 should get loaded as 3 records. One as Maths, second as Physics and third as Chemistry along with their respective dates.
    I hope I have made my problem clear to everyone.
    I am looking to do something in shell scripting such that before finally running the sql*loader script, the above 4 employees have their records repeated as many times as their subject changes.
    In summary 2 problems are described above.
    1. To load subject and date into 2 separate fields in Oracle table at the time of load.
    2. If their exists multiple subjects then a record is to be loaded that many times as there exists any changes in employee's subject.
    Any help would be much appreciated.
    Thanks.

    Here are some comments. Perl can be a little cryptic but once you get used to it, it can be pretty powerful.
    #!/usr/bin/perl -w
    my $line_count = 0;
    open FILE, "test_file" or die $!;
    # Read each line from the file.
    while (my $line = <FILE>) {
        # Print the header if it is the first line.
        if ($line_count == 0) {
            chomp($line);
            print $line . ", Date\n";
            ++$line_count;
            next;   
        # Get all the columns (as separated by ',' into an array)
        my @columns = split(',', $line);
        # Remove the newline from the fourth column.
        chomp($columns[3]); 
        # Read the fields (separated by pipe) from the fourth column into an array.
        my @subject_and_date = split('\|', $columns[3]);     
        # Loop for each subject and date.
        foreach my $sub_and_date (@subject_and_date) {
            # Print value of Emp, DOB, and Gender first.
            print $columns[0] . "," . $columns[1] . "," . $columns[2] . ",";
            # Remove all double quotes from the subject and date string.
            $sub_and_date =~ s/"//g;
            # Replace ':' with '","'
            $sub_and_date =~ s/:/","/;
            print '"' . $sub_and_date . '"' . "\n";       
        ++$line_count;
    close FILE;

  • FDMEE Import error "No periods were identified for loading data into table 'AIF_EBS_GL_BALANCES_STG'

    Hi,
    We are having trouble while importing one ledger 'GERMANY EUR GGAAP'. It works for Dec 2014 but while trying to import data for 2015 it gives an error.
    Import error shows " RuntimeError: No periods were identified for loading data into table 'AIF_EBS_GL_BALANCES_STG'."
    I tried all Knowledge docs from Oracle support but no luck. Please help us resolving this issue as its occurring in our Production system.
    I also checked all period settings under Data Management> Setup> Integration Setup > Global Mapping and Source Mapping and they all look correct.
    Also its only happening to one ledger rest all ledgers are working fine without any issues.
    Thanks

    Hi,
    there are some Support documents related to this issue.
    I would suggest you have a look to them.
    Regards

  • How can I load data into table with SQL*LOADER

    how can I load data into table with SQL*LOADER
    when column data length more than 255 bytes?
    when column exceed 255 ,data can not be insert into table by SQL*LOADER
    CREATE TABLE A (
    A VARCHAR2 ( 10 ) ,
    B VARCHAR2 ( 10 ) ,
    C VARCHAR2 ( 10 ) ,
    E VARCHAR2 ( 2000 ) );
    control file:
    load data
    append into table A
    fields terminated by X'09'
    (A , B , C , E )
    SQL*LOADER command:
    sqlldr test/test control=A_ctl.txt data=A.xls log=b.log
    datafile:
    column E is more than 255bytes
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)
    1     1     1     1234567------(more than 255bytes)

    Check this out.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch06.htm#1006961

  • What can I do to get back to a point that I can directly purchase Apps from my itouch via wi-fi. I was able to before I purchased an app on my PC and loaded it into the device via the sync cable.

    What can I do to get back to a point that I can directly purchase Apps from my itouch via wi-fi. I was able to before I purchased an app on my PC and loaded it into the device via the sync cable. My itouch 2G was bought 2nd hand, so when trying to get Apple support I was unable to register my device because I didn't know it's original purchase date. Note: I am still able to download the apps to my computer and load/sync them into the device.

    Why can you not buy from the ipod?
    What happens when you try?
    Error message?
    What does it say?
    Any info?

  • Extraction of data from Planning and load it into Oracle/SQL server (RDBMS)

    Hi All,
    ODI can extract data from Oracle/SQL server RDBMS and load it into Hyperion planning, but I wanted to know if it is possible to extract data from Hyperion Planning through ODI and load it into Oracle or SQL server RDMBS i.e the other way round.
    Kindly let me know if that is possible or not,If yes then please let me know what is the exact process to achieve this through ODI.
    Thanks & Regrads,
    Gurpreet

    Yes this can be done. Remember that Planning data is actually stored in Essbase so the Knowledge module you will need to use is LKM Essbase to SQL (DATA)

  • I used to shoot video in my Powershot S3 IS (MVI_.AVI) and load it into iPhoto, I used quicktime pro so I could convert it for emailing to family members.  That was when I was running Leopard now with Mt. Lion nothing works.  Videos do not open at all?

    I used to shoot video in my Powershot S3 IS (Format MVI_.AVI) and load them into iPhoto, I used quicktime pro so I could convert for emailing to family members.  That was when I was running Leopard now with Mt. Lion nothing works.  Videos do not open at all.  Any simple suggestions, I am not real keen on iMovie Productions and not real certain how they compress for emailing attachments.  Something simple here that I am missing?  Thanks so much.  I am a grandpa trying to share with family members far away (quickly & simply).

    I am surprised that Apple did not build a converter into Mt. Lion.
    Apple does have a converter built into Mountain Lion. It is call "Quicktime." However, in order to use this converter, you must first make sure the compression formats are playback compatible with QT. Basically, there are three levels of QT compatibility. The lowest is "Playback." These file can be played by QT but may not be conversion or edit compatible with QT. The second level is QT "Conversion" compatible. These files are playback compatible and can be converted to other compression formats using QT. "Edit" compatible media files are "Fully" compatible with QT since the can be played, converted and/or edited by QT. The main problem here is that AVI is a "legacy" file format that has not been officially supported by Microsoft for more than 11 years when it was replaced by Windows Media multimedia file/compression formats. Many of the original compression formats used in AVI files have never been transcoded for the Mac platform, use beyond system 9, or use beyond PPC platforms. In addition, some commonly used AVI codecs are proprietary or use non-standard (hybrid) profile and level combinations. In short, there is little wonder that Apple has been distancing itself from this outdated file type as it re-writes and upgrades its own QT structure to support more standardized, more scalable, more modern high definition file types and compression formats. It is really unfortunate that users continue to use this outmoded file type simply because it is freely available, easy to use, or they are simply too lazy to move on to a more modern or more efficient file types and/or compression formats.
    I tested Wondershare Video Converter Ultimate for the Mac, which seems to be the "state of the art".  I may be purchasing a new camera which might create a whole new set of variables.  This program seems to cover all bases and is great for novices.
    There are many third-party apps available if you wish to search for them. Many are even available in the App Store. Most do their job well and it is usually a matter of personal user preference as to which is best.
    HandBrake seems more suited to folks with more experience and knowledge.
    I mentioned Handbrake primarily because it is free and easy to use when you employ the included conversion presets options. (The TV options can normally be used for almost any situation depending on the source file and output requirements.) It is also excellent for more experienced users, but has a somewhat limited choice of output options as it does not access the user's system QT codec component configuration.

  • Just installed PS 13 elements and loaded pictures into organizer. after using PS editor now organizer is not reloading. I keep getting error message saying organizer unexpectedly quit, do you want to reopen.  When I click on it to reopen it doesn't and I

    just installed PS 13 elements and loaded pictures into organizer. after using PS editor now organizer is not reloading. I keep getting error message saying organizer unexpectedly quit, do you want to reopen.  When I click on it to reopen it doesn't and I get the same message again.  I rebooted computer, still did it,  I uninstalled and reinstalled the program and I am still getting the same error message.  This is on Mac OS with yosemite.  Any Ideas Please!!!

    Thread 8:
    0   libsystem_kernel.dylib         0x00007fff9219f4de mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x00007fff9219e64f mach_msg + 55
    2   com.apple.CoreFoundation       0x00007fff97717b34 __CFRunLoopServiceMachPort + 212
    3   com.apple.CoreFoundation       0x00007fff97716ffb __CFRunLoopRun + 1371
    4   com.apple.CoreFoundation       0x00007fff97716858 CFRunLoopRunSpecific + 296
    5   com.apple.AppKit               0x00007fff8e85533b _NSEventThread + 137
    6   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    7   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    8   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 9:: cr_scratch
    0   libsystem_kernel.dylib         0x00007fff921a4136 __psynch_cvwait + 10
    1   com.adobe.CameraRaw           0x000000012122478b 0x120c28000 + 6277003
    2   com.adobe.CameraRaw           0x00000001211ad48b 0x120c28000 + 5788811
    3   com.adobe.CameraRaw           0x0000000120fad001 0x120c28000 + 3690497
    4   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    5   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    6   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 10:
    0   libsystem_kernel.dylib         0x00007fff9219f4de mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x00007fff9219e64f mach_msg + 55
    2   com.apple.CoreFoundation       0x00007fff97717b34 __CFRunLoopServiceMachPort + 212
    3   com.apple.CoreFoundation       0x00007fff97716ffb __CFRunLoopRun + 1371
    4   com.apple.CoreFoundation       0x00007fff97716858 CFRunLoopRunSpecific + 296
    5   com.apple.CoreFoundation       0x00007fff977ccef1 CFRunLoopRun + 97
    6   com.adobe.ols.library         0x00000001235ebc86 OLSHTTPTransaction::Execute() + 4166
    7   com.adobe.ols.library         0x00000001236174f9 OLSServiceTask::PerformMessageExchangeServerPOST(OLSAutoRefPtr<OLSElement> const&, OLSAutoRefPtr<OLSElement> const&) + 1849
    8   com.adobe.ols.library         0x000000012360958a OLSServiceTask::PerformMessageExchangeServer(OLSAutoRefPtr<OLSElement> const&, OLSAutoRefPtr<OLSElement> const&) + 1834
    9   com.adobe.ols.library         0x000000012361626c OLSServiceTask::ProcessUnhandledMessageList(OLSAutoRefPtr<OLSElement> const&, OLSAutoRefPtr<OLSElement> const&, OLSAutoRefPtr<OLSElement> const&, OLSMessageOrigin) + 1804
    10  com.adobe.ols.library         0x00000001235c885c OLSClientSession::ProcessUnhandledMessageList(OLSAutoRefPtr<OLSElement> const&, OLSAutoRefPtr<OLSElement> const&, OLSAutoRefPtr<OLSElement> const&, OLSMessageOrigin) + 124
    11  com.adobe.ols.library         0x00000001235c6921 OLSClientSession::ProcessMessageList(OLSAutoRefPtr<OLSElement> const&, OLSAutoRefPtr<OLSElement> const&, OLSMessageOrigin) + 2593
    12  com.adobe.ols.library         0x0000000123608d3a OLSServiceTask::ExecuteStateMessageExchangeServer() + 426
    13  com.adobe.ols.library         0x00000001236010cc OLSServiceTask::ExecuteInternal() + 1196
    14  com.adobe.ols.library         0x000000012361b22e OLSTask::Execute() + 350
    15  com.adobe.ols.library         0x000000012361c874 OLSWorkerThreadTaskManager::ProcessTasks(OLSTaskThread*) + 1300
    16  com.adobe.ols.library         0x000000012361b454 OLSTaskThread::Run() + 36
    17  com.adobe.ols.library         0x000000012363fd88 OLSThread::ThreadProc(void*) + 54
    18  com.apple.CoreServices.CarbonCore 0x00007fff9c7108dc PrivateMPEntryPoint + 58
    19  libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    20  libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    21  libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 11:
    0   libsystem_kernel.dylib         0x00007fff921a475a __sigwait + 10
    1   com.adobe.ElementsOrganizer13 0x000000010dce1a84 0x10cc7e000 + 17185412
    2   com.adobe.ElementsOrganizer13 0x000000010dce5d15 0x10cc7e000 + 17202453
    3   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    4   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    5   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 12:: com.apple.NSURLConnectionLoader
    0   libsystem_kernel.dylib         0x00007fff9219f4de mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x00007fff9219e64f mach_msg + 55
    2   com.apple.CoreFoundation       0x00007fff97717b34 __CFRunLoopServiceMachPort + 212
    3   com.apple.CoreFoundation       0x00007fff97716ffb __CFRunLoopRun + 1371
    4   com.apple.CoreFoundation       0x00007fff97716858 CFRunLoopRunSpecific + 296
    5   com.apple.CFNetwork           0x00007fff8fcfac80 +[NSURLConnection(Loader) _resourceLoadLoop:] + 434
    6   com.apple.Foundation           0x00007fff90df190a __NSThread__main__ + 1345
    7   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    8   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    9   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 13:: com.apple.CFSocket.private
    0   libsystem_kernel.dylib         0x00007fff921a43fa __select + 10
    1   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    2   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    3   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 14:
    0   libsystem_kernel.dylib         0x00007fff921a4136 __psynch_cvwait + 10
    1   com.adobe.ElementsOrganizer13 0x000000010dce02fd 0x10cc7e000 + 17179389
    2   com.adobe.ElementsOrganizer13 0x000000010cd34e19 0x10cc7e000 + 749081
    3   com.adobe.ElementsOrganizer13 0x000000010dce5d15 0x10cc7e000 + 17202453
    4   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    5   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    6   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 15:
    0   libsystem_kernel.dylib         0x00007fff921a4136 __psynch_cvwait + 10
    1   com.adobe.ElementsOrganizer13 0x000000010dce02fd 0x10cc7e000 + 17179389
    2   com.adobe.ElementsOrganizer13 0x000000010cd34e19 0x10cc7e000 + 749081
    3   com.adobe.ElementsOrganizer13 0x000000010dce5d15 0x10cc7e000 + 17202453
    4   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    5   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    6   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 16:: JavaScriptCore::BlockFree
    0   libsystem_kernel.dylib         0x00007fff921a4136 __psynch_cvwait + 10
    1   libc++.1.dylib                 0x00007fff8fb2ad2e std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 126
    2   com.apple.JavaScriptCore       0x00007fff99593aaa JSC::BlockAllocator::waitForDuration(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000l> >) + 170
    3   com.apple.JavaScriptCore       0x00007fff993828f4 JSC::BlockAllocator::blockFreeingThreadMain() + 84
    4   com.apple.JavaScriptCore       0x00007fff9937814f WTF::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    6   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    7   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 17:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff921a4136 __psynch_cvwait + 10
    1   libc++.1.dylib                 0x00007fff8fb2ac95 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
    2   com.apple.JavaScriptCore       0x00007fff99382f1b JSC::GCThread::waitForNextPhase() + 171
    3   com.apple.JavaScriptCore       0x00007fff99382d78 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff9937814f WTF::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    6   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    7   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 18:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff921a4136 __psynch_cvwait + 10
    1   libc++.1.dylib                 0x00007fff8fb2ac95 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
    2   com.apple.JavaScriptCore       0x00007fff99382f1b JSC::GCThread::waitForNextPhase() + 171
    3   com.apple.JavaScriptCore       0x00007fff99382d78 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff9937814f WTF::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    6   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    7   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 19:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff921a4136 __psynch_cvwait + 10
    1   libc++.1.dylib                 0x00007fff8fb2ac95 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
    2   com.apple.JavaScriptCore       0x00007fff99382f1b JSC::GCThread::waitForNextPhase() + 171
    3   com.apple.JavaScriptCore       0x00007fff99382d78 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff9937814f WTF::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    6   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    7   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 0 crashed with X86 Thread State (64-bit):
      rax: 0x00000000000000b0  rbx: 0x00006080000b4460  rcx: 0x00007fff52f7da08  rdx: 0x00007fff52f7d8c0
      rdi: 0x00006080001d31a0  rsi: 0x0000000000000000  rbp: 0x00007fff52f7d860  rsp: 0x00007fff52f7d830
       r8: 0x00007fff52f7d9d8   r9: 0x00007fff52f7d9a0  r10: 0x0000000000000000  r11: 0x0000000110825b90
      r12: 0x00007fff52f7d9a0  r13: 0x00007fff52f7e0e8  r14: 0x00007fff52f7d8c0  r15: 0x00006080000b4460
      rip: 0x0000000110825ba6  rfl: 0x0000000000010206  cr2: 0x0000000000000000
    Logical CPU:     1
    Error Code:      0x00000004
    Trap Number:     14

  • I just stared having problems with importing files from nikon D810 into LR 5.7 it pop a window saying it can not read files on working on a imac 27" running yosemite on my mac pro after a few times it finally was able to read files and import them into LR

    I just stared having problems with importing files from nikon D810 into LR 5.7 it pop a window saying it can not read files on working on a imac 27" running yosemite on my mac pro after a few times it finally was able to read files and import them into LR I never had this problem before was there some kind of update that could of cause this?

  • Error encountered while loading data into an Essbase cube from oracle DB

    Hi All,
    I am trying to load data into an Essbase cube from Oracle db. Essbase is installed in an 64 bit HP-UX machine and oracle database on HP -UX 11.23 B server. While performing the above I am getting the below error messages:
    K/INFO - 1021013 - ODBC Layer Error: [08001] ==> [[DataDirect][ODBC Oracle Wire Protocol driver][Oracle]ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    HP-UX Error: 2: No such file or directory].
    OK/INFO - 1021014 - ODBC Layer Error: Native Error code [1034] .
    ERROR - 1021001 - Failed to Establish Connection With SQL Database Server. See log for more information.
    Can you please help me out in identifying the issue, as why it could have occured , because of network problem or is there anything related to databse?
    Regards,
    Priya

    The error is related to Oracle, I would check that it is all up and running
    ORA-01034: ORACLE not available
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to read data and load into a table

    Hi,
    I have a client requirement as below.
    Client will send the xmlpayload, based on this xml I want to read the data and store it into a database table. Could you please let me know how to achieve this functionality.
    sample xmlpayload:
    <gesws:localeAndSend xmlns:gesws="https://services.gmail.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="https://services.gmail.com docs/xsd/localeandsend.xsd" schemaVersion="1.0">
    <gesws:localer>
    <gesws:divisionstate>localeD</gesws:divisionstate>
    <gesws:division>Retail</gesws:division>
    <gesws:attributes>
    <gesws:attribute>
    <gesws:name>email</gesws:name>
    <gesws:value>[email protected]</gesws:value>
    </gesws:attribute>
    <gesws:attribute>
    <gesws:name>firstName</gesws:name>
    <gesws:value>Robin</gesws:value>
    </gesws:attribute>
    <gesws:attribute>
    <gesws:name>lastName</gesws:name>
    <gesws:value>Dan</gesws:value>
    </gesws:attribute>
    <gesws:attribute>
    <gesws:name>postalCode</gesws:name>
    <gesws:value>56302</gesws:value>
    </gesws:attribute>
    <gesws:attribute>
    <gesws:name>Mobileapp</gesws:name>
    <gesws:value>-6</gesws:value>
    </gesws:attribute>
    <gesws:attribute>
    <gesws:name>CodedString</gesws:name>
    <gesws:value>1550</gesws:value>
    </gesws:attribute>
    <gesws:attribute>
    <gesws:name>CodedBoolean</gesws:name>
    <gesws:value>true</gesws:value>
    </gesws:attribute>
    </gesws:attributes>
    </gesws:localer>
    <gesws:localerMessage>
    <gesws:mId>120098</gesws:mId>
    </gesws:localerMessage>
    </gesws:localeAndSend>
    Thanks in advance

    You can use XMLTABLE to extract data from your XMLTYPE datatype...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select xmltype('<gesws:localeAndSend xmlns:gesws="https://services.gmail.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      2  xsi:schemaLocation="https://services.gmail.com docs/xsd/localeandsend.xsd" schemaVersion="1.0">
      3    <gesws:localer>
      4      <gesws:divisionstate>localeD</gesws:divisionstate>
      5      <gesws:division>Retail</gesws:division>
      6      <gesws:attributes>
      7        <gesws:attribute>
      8          <gesws:name>email</gesws:name>
      9          <gesws:value>[email protected]</gesws:value>
    10        </gesws:attribute>
    11        <gesws:attribute>
    12          <gesws:name>firstName</gesws:name>
    13          <gesws:value>Robin</gesws:value>
    14        </gesws:attribute>
    15        <gesws:attribute>
    16          <gesws:name>lastName</gesws:name>
    17          <gesws:value>Dan</gesws:value>
    18        </gesws:attribute>
    19        <gesws:attribute>
    20          <gesws:name>postalCode</gesws:name>
    21          <gesws:value>56302</gesws:value>
    22        </gesws:attribute>
    23        <gesws:attribute>
    24          <gesws:name>Mobileapp</gesws:name>
    25          <gesws:value>-6</gesws:value>
    26        </gesws:attribute>
    27        <gesws:attribute>
    28          <gesws:name>CodedString</gesws:name>
    29          <gesws:value>1550</gesws:value>
    30        </gesws:attribute>
    31        <gesws:attribute>
    32          <gesws:name>CodedBoolean</gesws:name>
    33          <gesws:value>true</gesws:value>
    34        </gesws:attribute>
    35      </gesws:attributes>
    36    </gesws:localer>
    37    <gesws:localerMessage>
    38      <gesws:mId>120098</gesws:mId>
    39    </gesws:localerMessage>
    40  </gesws:localeAndSend>') as xml from dual)
    41  --
    42  -- end of test data
    43  --
    44  select x.mID, x.divisionstate, x.division
    45        ,y.att_name, y.att_val
    46  from   t
    47        ,xmltable(xmlnamespaces('https://services.gmail.com' as "g")
    48                 ,'g:localeAndSend'
    49                 passing t.xml
    50                 columns mID           number       path './g:localerMessage/g:mId'
    51                        ,divisionstate varchar2(10) path './g:localer/g:divisionstate'
    52                        ,division      varchar2(10) path './g:localer/g:division'
    53                        ,atts          xmltype      path './g:localer/g:attributes'
    54                 ) x
    55        ,xmltable(xmlnamespaces('https://services.gmail.com' as "g")
    56                 ,'g:attributes/g:attribute'
    57                 passing x.atts
    58                 columns att_name      varchar2(20) path './g:name'
    59                        ,att_val       varchar2(20) path './g:value'
    60*                ) y
    SQL> /
           MID DIVISIONST DIVISION   ATT_NAME             ATT_VAL
        120098 localeD    Retail     email                [email protected]
        120098 localeD    Retail     firstName            Robin
        120098 localeD    Retail     lastName             Dan
        120098 localeD    Retail     postalCode           56302
        120098 localeD    Retail     Mobileapp            -6
        120098 localeD    Retail     CodedString          1550
        120098 localeD    Retail     CodedBoolean         true
    7 rows selected.
    SQL>Once you're getting the data out, you can do what you want with it, e.g. pivot it to a single row...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select xmltype('<gesws:localeAndSend xmlns:gesws="https://services.gmail.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      2  xsi:schemaLocation="https://services.gmail.com docs/xsd/localeandsend.xsd" schemaVersion="1.0">
      3    <gesws:localer>
      4      <gesws:divisionstate>localeD</gesws:divisionstate>
      5      <gesws:division>Retail</gesws:division>
      6      <gesws:attributes>
      7        <gesws:attribute>
      8          <gesws:name>email</gesws:name>
      9          <gesws:value>[email protected]</gesws:value>
    10        </gesws:attribute>
    11        <gesws:attribute>
    12          <gesws:name>firstName</gesws:name>
    13          <gesws:value>Robin</gesws:value>
    14        </gesws:attribute>
    15        <gesws:attribute>
    16          <gesws:name>lastName</gesws:name>
    17          <gesws:value>Dan</gesws:value>
    18        </gesws:attribute>
    19        <gesws:attribute>
    20          <gesws:name>postalCode</gesws:name>
    21          <gesws:value>56302</gesws:value>
    22        </gesws:attribute>
    23        <gesws:attribute>
    24          <gesws:name>Mobileapp</gesws:name>
    25          <gesws:value>-6</gesws:value>
    26        </gesws:attribute>
    27        <gesws:attribute>
    28          <gesws:name>CodedString</gesws:name>
    29          <gesws:value>1550</gesws:value>
    30        </gesws:attribute>
    31        <gesws:attribute>
    32          <gesws:name>CodedBoolean</gesws:name>
    33          <gesws:value>true</gesws:value>
    34        </gesws:attribute>
    35      </gesws:attributes>
    36    </gesws:localer>
    37    <gesws:localerMessage>
    38      <gesws:mId>120098</gesws:mId>
    39    </gesws:localerMessage>
    40  </gesws:localeAndSend>') as xml from dual)
    41  --
    42  -- end of test data
    43  --
    44  select mID, divisionstate, division
    45        ,max(decode(att_name, 'email', att_val)) as email
    46        ,max(decode(att_name, 'firstName', att_val)) as firstname
    47        ,max(decode(att_name, 'lastName', att_val)) as lastname
    48        ,max(decode(att_name, 'postalCode', att_val)) as postalcode
    49        ,max(decode(att_name, 'CodedString', att_val)) as codedstring
    50        ,max(decode(att_name, 'CodedBoolean', att_val)) as codedboolean
    51  from (
    52        select x.mID, x.divisionstate, x.division
    53              ,y.att_name, y.att_val
    54        from   t
    55              ,xmltable(xmlnamespaces('https://services.gmail.com' as "g")
    56                       ,'g:localeAndSend'
    57                       passing t.xml
    58                       columns mID           number       path './g:localerMessage/g:mId'
    59                              ,divisionstate varchar2(10) path './g:localer/g:divisionstate'
    60                              ,division      varchar2(10) path './g:localer/g:division'
    61                              ,atts          xmltype      path './g:localer/g:attributes'
    62                       ) x
    63              ,xmltable(xmlnamespaces('https://services.gmail.com' as "g")
    64                       ,'g:attributes/g:attribute'
    65                       passing x.atts
    66                       columns att_name      varchar2(20) path './g:name'
    67                              ,att_val       varchar2(20) path './g:value'
    68                       ) y
    69       )
    70  group by mID, divisionstate, division
    71* order by 1
    SQL> /
           MID DIVISIONST DIVISION   EMAIL                FIRSTNAME            LASTNAME             POSTALCODE           CODEDSTRING          CODEDBOOLEAN
        120098 localeD    Retail     [email protected]    Robin                Dan                  56302                1550                 true

Maybe you are looking for

  • Mini displayport to dvi adapter not working

    hello, I have both a 2008 Mac Pro tower with 2 Apple Cinema Displays, and a newer MacBook Pro that I'd like to hook up to one of the monitors. The 2 monitors are both DVI, so I bought a mini displayport adapter to plug into the thunderbold port on th

  • My MBP's wifi is error! Please Help :(

    According to the topic, I've been using This macbook pro(mid 2009 model) since 2009 with OS Mavericks 10.9.4(most recently). It hasn't had any problems until yesterday. While I was using my mac with wifi network, it suddenly hanged and I cannot moved

  • Burning to disc problem

    I did a search first and found only one problem and answer dealing with the mac allowing only 1 burn to a disc. I am disappointed and not happy if this cannot be overcome. Is there a way to not have the system make the discs "read only" after just on

  • Datasources execution order

    Hi all. I have a problem on hand. I made a series of reports. Each of them use 2 SPs. One of them is used for retrieving the information which fills the columns in the report body The other SP retrieves information such as the Report Title and other

  • Install Two Database SID on Same Linux Server (AS 4)

    Hi We want to Setup/Install the Two Different SID on a same BOX what are the kernel parameter need to set to run both the instance on same server. Thanks