Apply Xml Button in Oracle 11g

Hi All,
Can someone tell me how to use the Apply Xml Button available in Oracle 11g's Advanced Tab.
Generally the xml for our analysis report is generated in this Advanced tab. But my question Can i apply my own xml here and by applying my own xml I should be able to make changes in my analysis.
Can someone tell me what changes are possible to do by using this APPLY XML button.
Because I tried to create the filters in my analysis by pasting the xml of another analysis's filter section. But its showing Bad xml instance error!
Please tell me what we can do with this APPLY XML part in Advanced tab?
Thanks in Advance,
Surya

876003 wrote:
Hi All,
Can someone tell me how to use the Apply Xml Button available in Oracle 11g's Advanced Tab.
Generally the xml for our analysis report is generated in this Advanced tab. But my question Can i apply my own xml here and by applying my own xml I should be able to make changes in my analysis.
Can someone tell me what changes are possible to do by using this APPLY XML button.
Because I tried to create the filters in my analysis by pasting the xml of another analysis's filter section. But its showing Bad xml instance error!
Please tell me what we can do with this APPLY XML part in Advanced tab?
Apply XML — Click this button to commit the XML code modifications that you made to the catalog.
If your XML that your are pasting is correct and as per Criteria/Analysis then it will work fine. Slightest mistake in it will ruin up the complete XML and will not allow you to use.
Hope this helps

Similar Messages

  • XML parsing in Oracle 11g

    Hello all,
    I'm using the below database.
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE 11.2.0.3.0 Production
    TNS for Linux: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    I have a XML and I have to parse this and I need to store it in table.
    Please give solution to parse.
    <?xml version="1.0" encoding="UTF-8"?>
    <data>
    <passengerinformation>
      <passengerno>0001</passengerno>
      <title>Mr</title>
      <firstname>Test First Name</firstname>
      <familyname>family name</familyname>
      <email>[email protected]</email>
      <country>India</country>
      <contacttype>Mobile : +91 465465487979</contacttype>
    </passengerinformation>
    <bookinginformation>
      <bookingreferencenumber>FA45454</bookingreferencenumber>
      <vehicleno>AW123</vehicleno>
      <origin>Chennai</origin>
      <destination>Delhi</destination>
      <departuredate>24 Jun 13</departuredate>
      <classoftravel>Sleeper</classoftravel>
      <complaintcategory>baggagedelivery</complaintcategory>
      <comments>Test</comments>
    </bookinginformation>
    <bookinginformation>
      <bookingreferencenumber>ER12345</bookingreferencenumber>
      <vehicleno>AW124</vehicleno>
      <origin>Chennai</origin>
      <destination>Noida</destination>
      <departuredate>24 May 13</departuredate>
      <classoftravel>Sleeper</classoftravel>
      <complaintcategory>baggagedelivery</complaintcategory>
      <comments>Test</comments>
    </bookinginformation>
    <bookinginformation>
      <bookingreferencenumber>FA45454</bookingreferencenumber>
      <vehicleno>AW125</vehicleno>
      <origin>Chennai</origin>
      <destination>Mumbai</destination>
      <departuredate>24 Jul 13</departuredate>
      <classoftravel>Sleeper</classoftravel>
      <complaintcategory>baggagedelivery</complaintcategory>
      <comments>Test</comments>
    </bookinginformation>
    <bookinginformation>
      <bookingreferencenumber>FA45454</bookingreferencenumber>
      <vehicleno>AW126</vehicleno>
      <origin>Chennai</origin>
      <destination>Hyd</destination>
      <departuredate>24 Aug 13</departuredate>
      <classoftravel>Sleeper</classoftravel>
      <complaintcategory>baggagedelivery</complaintcategory>
      <comments>Test</comments>
    </bookinginformation>
    </data>

    To give you a starting point
    with xmldata as (
    select xmlparse (document
    '<?xml version="1.0" encoding="UTF-8"?>
    <data>
    <passengerinformation>
      <passengerno>0001</passengerno>
      <title>Mr</title>
      <firstname>Test First Name</firstname>
      <familyname>family name</familyname>
      <email>[email protected]</email>
      <country>India</country>
      <contacttype>Mobile : +91 465465487979</contacttype>
    </passengerinformation>
    <bookinginformation>
      <bookingreferencenumber>FA45454</bookingreferencenumber>
      <vehicleno>AW123</vehicleno>
      <origin>Chennai</origin>
      <destination>Delhi</destination>
      <departuredate>24 Jun 13</departuredate>
      <classoftravel>Sleeper</classoftravel>
      <complaintcategory>baggagedelivery</complaintcategory>
      <comments>Test</comments>
    </bookinginformation>
    <bookinginformation>
      <bookingreferencenumber>ER12345</bookingreferencenumber>
      <vehicleno>AW124</vehicleno>
      <origin>Chennai</origin>
      <destination>Noida</destination>
      <departuredate>24 May 13</departuredate>
      <classoftravel>Sleeper</classoftravel>
      <complaintcategory>baggagedelivery</complaintcategory>
      <comments>Test</comments>
    </bookinginformation>
    <bookinginformation>
      <bookingreferencenumber>FA45454</bookingreferencenumber>
      <vehicleno>AW125</vehicleno>
      <origin>Chennai</origin>
      <destination>Mumbai</destination>
      <departuredate>24 Jul 13</departuredate>
      <classoftravel>Sleeper</classoftravel>
      <complaintcategory>baggagedelivery</complaintcategory>
      <comments>Test</comments>
    </bookinginformation>
    <bookinginformation>
      <bookingreferencenumber>FA45454</bookingreferencenumber>
      <vehicleno>AW126</vehicleno>
      <origin>Chennai</origin>
      <destination>Hyd</destination>
      <departuredate>24 Aug 13</departuredate>
      <classoftravel>Sleeper</classoftravel>
      <complaintcategory>baggagedelivery</complaintcategory>
      <comments>Test</comments>
    </bookinginformation>
    </data>') x from dual)
    select
    passengerno
    from xmldata, xmltable( '/data/passengerinformation' passing xmldata.x
    columns
      passengerno varchar2(30) path 'passengerno'
    PASSENGERNO
    0001

  • Improve XML readability in Oracle 11g for binary XMLType storage for huge files

    I have one requirement in which I have to process huge XML files. That means there might be around 1000 xml files and the whole size of these files would be around 2GB.
    What I need is to store all the data in these files to my Oracle DB. For this I have used sqlloader for bulk uploading of all my XML files to my DB and it is stored as binary XMLTYPE in my database.Now I need to query these files and store the data in relational tables.For this I have used XMLTable Xpath queries. Everything is fine when I try to query single xml file within my DB. But if it is trying to query all those files it is taking too much time which is not acceptable.
    Here's my one sample xml content:
    <ABCD>
      <EMPLOYEE id="11" date="25-Apr-1983">
        <NameDetails>
          <Name NameType="a">
            <NameValue>
              <FirstName>ABCD</FirstName>
              <Surname>PQR</Surname>
              <OriginalName>TEST1</OriginalName>
              <OriginalName>TEST2</OriginalName>
            </NameValue>
          </Name>
          <Name NameType="b">
            <NameValue>
              <FirstName>TEST3</FirstName>
              <Surname>TEST3</Surname>
            </NameValue>
            <NameValue>
              <FirstName>TEST5</FirstName>
              <MiddleName>TEST6</MiddleName>
              <Surname>TEST7</Surname>
              <OriginalName>JAB1</OriginalName>
            </NameValue>
            <NameValue>
              <FirstName>HER</FirstName>
              <MiddleName>HIS</MiddleName>
              <Surname>LOO</Surname>
            </NameValue>
          </Name>
          <Name NameType="c">
            <NameValue>
              <FirstName>CDS</FirstName>
              <MiddleName>DRE</MiddleName>
              <Surname>QWE</Surname>
            </NameValue>
            <NameValue>
              <FirstName>CCD</FirstName>
              <MiddleName>YTD</MiddleName>
              <Surname>QQA</Surname>
            </NameValue>
            <NameValue>
              <FirstName>DS</FirstName>
              <Surname>AzDFz</Surname>
            </NameValue>
          </Name>
        </NameDetails>
      </EMPLOYEE >
    </ABCD>
    Please note that this is just one small record inside one big xml.Each xml would contain similar records around 5000 in number.Similarly there are more than 400 files each ranging about 4MB size approx.
    My xmltable query :
    SELECT t.personid,n.nametypeid,t.titlehonorofic,t.firstname,
            t.middlename,
            t.surname,
            replace(replace(t.maidenname, '<MaidenName>'),'</MaidenName>', '#@#') maidenname,
            replace(replace(t.suffix, '<Suffix>'),'</Suffix>', '#@#') suffix,
            replace(replace(t.singleStringName, '<SingleStringName>'),'</SingleStringName>', '#@#') singleStringName,
            replace(replace(t.entityname, '<EntityName>'),'</EntityName>', '#@#') entityname,
            replace(replace(t.originalName, '<OriginalName>'),'</OriginalName>', '#@#') originalName
    FROM xmlperson p,master_nametypes n,
             XMLTABLE (
              --'ABCD/EMPLOYEE/NameDetails/Name/NameValue'
              'for $i in ABCD/EMPLOYEE/NameDetails/Name/NameValue        
               return <row>
                        {$i/../../../@id}
                         {$i/../@NameType}
                         {$i/TitleHonorific}{$i/Suffix}{$i/SingleStringName}
                        {$i/FirstName}{$i/MiddleName}{$i/OriginalName}
                        {$i/Surname}{$i/MaidenName}{$i/EntityName}
                    </row>'
            PASSING p.filecontent
            COLUMNS
                    personid     NUMBER         PATH '@id',
                    nametypeid   VARCHAR2(255)  PATH '@NameType',
                    titlehonorofic VARCHAR2(4000) PATH 'TitleHonorific',
                     firstname    VARCHAR2(4000) PATH 'FirstName',
                     middlename  VARCHAR2(4000) PATH 'MiddleName',
                    surname     VARCHAR2(4000) PATH 'Surname',
                     maidenname   XMLTYPE PATH 'MaidenName',
                     suffix XMLTYPE PATH 'Suffix',
                     singleStringName XMLTYPE PATH 'SingleStringName',
                     entityname XMLTYPE PATH 'EntityName',
                    originalName XMLTYPE        PATH 'OriginalName'
                    ) t where t.nametypeid = n.nametype and n.recordtype = 'Person'
    But this is taking too much time to query all those huge data. The resultset of this query would return about millions of rows. I tried to index the table using this query :
    CREATE INDEX myindex_xmlperson on xml_files(filecontent) indextype is xdb.xmlindex parameters ('paths(include(ABCD/EMPLOYEE//*))');
    My Database version :
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production"
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Index is created but still no improvement with the performance though. It is taking more than 20 minutes to query even a set of 10 similar xml files.Now you can imagine how much will it take to query all those 1000 xml files.
    Could someone please suggest me how to improve the performance of my database.Since I am new to this I am not sure whether I am doing it in proper way. If there is a better solution please suggest. Your help will be greatly appreciated.

    Hi Odie..
    I tried to run your code through all the xml files but it is taking too much time. It has not ended even after 3hours.
    When I tried to do a single insert select statement  for one single xml it is working.But stilli ts in the range of ~10sec.
    Please find my execution plan for one single xml file with your code.
    "PLAN_TABLE_OUTPUT"
    "Plan hash value: 2771779566"
    "| Id  | Operation                                     | Name                                     | Rows   | Bytes | Cost (%CPU)| Time     |"
    "|   0 | INSERT STATEMENT                   |                                              |   499G |   121T |   434M  (2) |999:59:59  |"
    "|   1 |  LOAD TABLE CONVENTIONAL    | WATCHLIST_NAMEDETAILS  |            |           |                 |                 |"
    "|   2 |   SORT AGGREGATE                   |                                             |     1      |     2    |                 |          |"
    "|   3 |    XPATH EVALUATION                 |                                             |             |          |                 |          |"
    "|   4 |   SORT AGGREGATE                   |                                             |     1      |     2    |                 |          |"
    "|   5 |    XPATH EVALUATION                 |                                             |             |          |                 |          |"
    "|   6 |   SORT AGGREGATE                   |                                             |     1       |     2   |                 |          |"
    "|   7 |    XPATH EVALUATION                 |                                             |              |         |                 |          |"
    "|   8 |   SORT AGGREGATE                   |                                             |     1        |     2  |                 |          |"
    "|   9 |    XPATH EVALUATION                 |                                             |              |         |                 |          |"
    "|  10 |   NESTED LOOPS                       |                                             |   499G    | 121T |   434M (2) | 999:59:59 |"
    "|  11 |    NESTED LOOPS                      |                                             |    61M     |  14G |  1222K (1) | 04:04:28 |"
    "|  12 |     NESTED LOOPS                     |                                             | 44924      |  10M |    61   (2) | 00:00:01 |"
    "|  13 |      MERGE JOIN CARTESIAN      |                                             |     5         | 1235 |     6   (0) | 00:00:01 |"
    "|* 14 |       TABLE ACCESS FULL          | XMLPERSON                        |     1          |  221 |     2   (0) | 00:00:01 |"
    "|  15 |       BUFFER SORT                     |                                             |     6          |  156 |     4   (0) | 00:00:01 |"
    "|* 16 |        TABLE ACCESS FULL         | MASTER_NAMETYPES        |     6          |  156 |     3   (0) | 00:00:01 |"
    "|  17 |      XPATH EVALUATION             |                                             |                |         |               |          |"
    "|* 18 |     XPATH EVALUATION              |                                             |               |          |               |          |"
    "|  19 |    XPATH EVALUATION               |                                              |               |         |              |          |"
    "Predicate Information (identified by operation id):"
    "  14 - filter(""P"".""FILENAME""='PFA2_95001_100000_F.xml')"
    "  16 - filter(""N"".""RECORDTYPE""='Person')"
    "  18 - filter(""N"".""NAMETYPE""=CAST(""P1"".""C_01$"" AS VARCHAR2(255) ))"
    "Note"
    "   - Unoptimized XML construct detected (enable XMLOptimizationCheck for more information)"
    Please note that this is for a single xml file. I have like more than 400 similar files in the same table.
    And for your's as well as Jason's Question:
    What are you trying to accomplish with
    replace(replace(t.originalName, '<OriginalName>'),'</OriginalName>', '#@#') originalName 
    originalName XMLTYPE PATH 'OriginalName'
    Like Jason, I also wonder what's the purpose of all those XMLType projections and strange replaces in the SELECT clause
    What I was trying to achieve was to create a table containing separate rows for all the multi item child nodes for this particular xml.
    But since there was an error beacuse of multiple child nodes like 'ORIGINALNAME' under 'NAMEVALUE' node, I tried this script to insert those values by providing a delimiter and replacing the tag names.
    Please see the link for more details - http://stackoverflow.com/questions/16835323/construct-xmltype-query-to-store-data-in-oracle11g
    This was the execution plan for one single xml file with my code :
    Plan hash value: 2851325155
    | Id  | Operation                                                     | Name                                         | Rows  | Bytes   | Cost (%CPU)  | Time       |    TQ  | IN-OUT | PQ Distrib |
    |   0 | SELECT STATEMENT                                   |                                                 |  7487   |  1820K |    37   (3)        | 00:00:01 |           |             |            |
    |*  1 |  HASH JOIN                                                 |                                                 |  7487   |  1820K  |    37   (3)        | 00:00:01 |           |             |            |
    |*  2 |   TABLE ACCESS FULL                                | MASTER_NAMETYPES            |     6     |   156     |     3   (0)         | 00:00:01 |           |             |            |
    |   3 |   NESTED LOOPS                                        |                                                 |  8168   |  1778K  |    33   (0)        | 00:00:01 |           |             |            |
    |   4 |    PX COORDINATOR                                    |                                                 |            |             |                      |               |           |             |            |
    |   5 |     PX SEND QC (RANDOM)                           | :TQ10000                                  |     1    |   221      |     2   (0)        | 00:00:01 |  Q1,00 | P->S     | QC (RAND)  |
    |   6 |      PX BLOCK ITERATOR                              |                                                 |     1    |   221      |     2   (0)        | 00:00:01 |  Q1,00 | PCWC   |            |
    |*  7 |       TABLE ACCESS FULL                            | XMLPERSON                            |     1    |   221      |     2   (0)        | 00:00:01 |  Q1,00 | PCWP   |            |
    |   8 |    COLLECTION ITERATOR PICKLER FETCH  | XQSEQUENCEFROMXMLTYPE |  8168  | 16336    |    29   (0)       | 00:00:01  |           |               |            |
    Predicate Information (identified by operation id):
       1 - access("N"."NAMETYPE"=CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(SYS_XQEXTRACT(VALUE(KOKBF$),'/*/@NameType'),0,0,20971520,0),50,1,2
                  ) AS VARCHAR2(255)  ))
       2 - filter("N"."RECORDTYPE"='Person')
       7 - filter("P"."FILENAME"='PFA2_95001_100000_F.xml')
    Note
       - Unoptimized XML construct detected (enable XMLOptimizationCheck for more information)
    Please let me know whether this has helped.
    My intention is to save the details in the xml to different relational tables so that I can easily query it from my application. I have similarly many queries which inserts the xml values to different tables like the one which I have mentioned here. I was thinking of creating a stored procedure to insert all these values in the relational tables once I receive the xml files. But even a single query is taking too much time to complete. Could you please help me in this regard. Waiting for your valuable feedback.

  • Error importing with impdp after applying a patch for oracle 11g

    Hello guys,
    I recently unistalled all the oracle software with my database in order to start all fresh. I then installed the database and applied a patch from the version 11.1.0.6.0 to 11.1.0.7. I used the DBUA to do such a thing and it worked wonderfully.
    I'm now trying to do a full import but it seems there's something wrong with the connection. Below is the syntax and am using Windows 7 BTW.
    C:\>impdp \"sys/2learn@practicante as sysdba\" full=y DIRECTORY=export DUMPFILE=expdp.sgtc.01052012.dmp logfile=impdpPRACTICANTE.log
    Import: Release 11.1.0.7.0 - Production on Lunes, 07 Mayo, 2012 15:20:55
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    UDI-12154: la operaci¾n ha generado un error ORACLE 12154
    ORA-12154: TNS:no se ha podido resolver el identificador de conexión especificado
    C:\>
    Thanks!

    Thanks for the reply!
    You may be right about not using the sysdba to logon but just changed it...am still having the same issue though.
    SQL> ALTER USER scott IDENTIFIED BY tiger ACCOUNT UNLOCK;
    Usuario modificado.
    SQL> GRANT READ, WRITE ON DIRECTORY export TO scott;
    Concesión terminada correctamente.
    SQL> connect scott;
    Introduzca la contraseña:
    Conectado.
    C:\>impdp scott/tiger@practicante full=y DIRECTORY=export DUMPFILE=expdp.sgtc.01052012.dmp logfile=impdpPRACTICANTE.log
    Import: Release 11.1.0.7.0 - Production on Lunes, 07 Mayo, 2012 16:05:23
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    UDI-12154: la operación ha generado un error ORACLE 12154
    ORA-12154: TNS:no se ha podido resolver el identificador de conexi¾n especificado
    C:\>type D:\Oracle2practice\NETWORK\ADMIN\tnsnames.ora
    # tnsnames.ora Network Configuration File: D:\Oracle2practice\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    PRACTICA.cre.com.bo =
    (DESCRIPTION =
    (ADDRESS_LIST=
    (ADDRESS = (PROTOCOL = TCP)(HOST = GGTPRACTICANTE.cre.com.bo)(PORT = 15
    21))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = practicante)
    C:\>sqlplus scott/tiger@practicante
    SQL*Plus: Release 11.1.0.7.0 - Production on Lun May 7 16:57:30 2012
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    ERROR:
    ORA-12154: TNS:no se ha podido resolver el identificador de conexi¾n
    especificado
    C:\>tnsping fubar
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.7.0 - Production on 07-MAY-2012 17:00:16
    Copyright (c) 1997, 2008, Oracle. All rights reserved.
    Archivos de parßmetros utilizados:
    D:\Oracle2practice\network\admin\sqlnet.ora
    TNS-03505: Fallo al resolver el nombre
    C:\>sqlplus scott/P@ssW0rde@practicante
    SQL*Plus: Release 11.1.0.7.0 - Production on Lun May 7 17:14:49 2012
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    ERROR:
    ORA-12154: TNS:no se ha podido resolver el identificador de conexi¾n especificado
    I tried to fix the error but it is still there...any other way that could help or is there anything wrong with what I have done so far?

  • How to create simple XML database in oracle 11g

    Hi,
    what are the steps to followed to create a simeple custormer XML database.
    Like storing .xml file into XMLType, writing simple xml schema.....like that
    how to register the .xsd
    how to insert the xml data
    how to querying the the data base with xquery
    Thanks in Advance

    Have a look a the FAQ on the main page of this XMLDB forum. That's a good source to start (besides the XMLDB Developer Guide manual).

  • Importing XML into oracle 11g database

    I am having some difficulty parsing an XML file into oracle 11g database.
    Currently using Oracle 11g Express Edition (XE)
    Here is how my XML file looks like:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <AccountMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <Accounts>
    - <AccountMapping>
    <AccountID>0000000000000-000</AccountID>
    <AccountName>XLS</AccountName>
    <AccountType>Excel</AccountType>
    <AccountOwner>System</AccountOwner>
    </AccountMapping>
    - <AccountMapping>
    <AccountID>0000000000000-001</AccountID>
    <AccountName>XLSS</AccountName>
    <AccountType>Excel2</AccountType>
    <AccountOwner>System2</AccountOwner>
    </AccountMapping>
    - <AccountMapping>
    and so on the file continues.. I have the xml file saved on my local hard disk
    I have created a package in SQL Developer
    create or replace
    PACKAGE XML_FILEHANDLER AS
    type TRecord is record (
    Account_ID varchar2(100)
    , AccountName varchar2(100)
    , AccountType varchar2(30)
    , AccountOwner varchar2(100)
    type TRecordTable is table of TRecord;
    function getRows (p_directory in varchar2, p_filename in varchar2) return TRecordTable pipelined;
    END XML_FILEHANDLER;
    -- BODY
    create or replace
    PACKAGE BODY XML_FILEHANDLER AS
    function getRows (p_directory in varchar2, p_filename in varchar2) return TRecordTable pipelined AS
    nb_rec NUMBER := 1;
    tmp_xml CLOB;
    tmp_file CLOB;
    rec TRecord;
    BEGIN
    dbms_lob.createtemporary(tmp_file, true);
    tmp_file := dbms_xslprocessor.read2clob(p_directory, p_filename);
    rec.Account_ID := regexp_replace(tmp_file, '.*<Account_ID>(.*)</Account_ID>.*', '\1', 1, 1, 'n');
    rec.AccountName := regexp_replace(tmp_file, '.*<AccountName>(.*)</AccountName>.*', '\1', 1, 1, 'n');
    rec.AccountType := regexp_replace(tmp_file, '.*<AccountType >(.*)</AccountType >.*', '\1', 1, 1, 'n');
    rec.AccountOwner := regexp_replace(tmp_file, '.*<AccountOwner>(.*)</AccountOwner>.*', '\1', 1, 1, 'n');
    loop
    -- this regexp finds occurrence(s) of this pattern : "<?xml ... ?><root_tag> ... </root_tag>"
    tmp_xml := regexp_substr(tmp_file, '<\?xml[^?]+\?>\s+<([^>]+)>.*?</\1>', 1, nb_rec, 'n');
    exit when length(tmp_xml) = 0;
    --dbms_output.put_line(tmp_rec);
    nb_rec := nb_rec + 1;
    SELECT Account_ID, AccountName, AccountType, AccountOwner
    into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
    from xmltable(
    'Accounts/AccountMapping' passing xmltype(tmp_xml) columns
    Account_ID varchar2(100) path 'Account_ID'
    , AccountName varchar2(100) path 'AccountName'
    , AccountType varchar2(30) path 'AccountType'
    , AccountOwner varchar2(100) path 'AccountOwner'
    pipe row ( rec );
    end loop;
    dbms_lob.freetemporary(tmp_file);
    END getRows;
    END XML_FILEHANDLER;
    -- I am calling my function using the following sql query
    select * from table(XML_FileHandler.getRows('XML', 'test.xml'));
    Here is the error I am receiving
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.UTL_FILE", line 536
    ORA-29283: invalid file operation
    ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 265
    ORA-06512: at "user.XML_FILEHANDLER", line 13
    29283. 00000 - "invalid file operation"
    *Cause:    An attempt was made to read from a file or directory that does
    not exist, or file or directory access was denied by the
    operating system.
    *Action:   Verify file and directory access privileges on the file system,
    and if reading, verify that the file exists.
    I have done the following
    - Provided appropriate access to user (read, write) including directory access rights
    - ensured that directory exists
    - ensured that file exists
    I have searched all over google and metalink but am unable to get this to run.. please help!

    >
    SELECT Account_ID, AccountName, AccountType, AccountOwner
    into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
    from xmltable(
    'Accounts/AccountMapping' passing xmltype(tmp_xml) columns
    Account_ID varchar2(100) path 'Account_ID'
    , AccountName varchar2(100) path 'AccountName'
    , AccountType varchar2(30) path 'AccountType'
    , AccountOwner varchar2(100) path 'AccountOwner'
    >
    change to
    SELECT Account_ID, AccountName, AccountType, AccountOwner
    into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
    from xmltable(
    'AccountMap/Accounts/AccountMapping' passing xmltype(tmp_xml) columns
    Account_ID varchar2(100) path 'Account_ID'
    , AccountName varchar2(100) path 'AccountName'
    , AccountType varchar2(30) path 'AccountType'
    , AccountOwner varchar2(100) path 'AccountOwner'
    SQL> SELECT Account_ID, AccountName, AccountType, AccountOwner
      2  --into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
      3  from xmltable(
      4  'AccountMap/Accounts/AccountMapping' passing
      5  xmltype('<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
      6  <AccountMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      7  <Accounts>
      8  <AccountMapping>
      9  <AccountID>0000000000000-000</AccountID>
    10  <AccountName>XLS</AccountName>
    11  <AccountType>Excel</AccountType>
    12  <AccountOwner>System</AccountOwner>
    13  </AccountMapping>
    14  <AccountMapping>
    15  <AccountID>0000000000000-001</AccountID>
    16  <AccountName>XLSS</AccountName>
    17  <AccountType>Excel2</AccountType>
    18  <AccountOwner>System2</AccountOwner>
    19  </AccountMapping>
    20  </Accounts>
    21  </AccountMap>')
    22  columns
    23  Account_ID varchar2(100) path 'Account_ID'
    24  , AccountName varchar2(100) path 'AccountName'
    25  , AccountType varchar2(30) path 'AccountType'
    26  , AccountOwner varchar2(100) path 'AccountOwner'
    27  );
    ACCOUNT_ID                                                                       ACCOUNTNAME                                                                      ACCOUNTTYPE                    ACCOUNTOWNER
                                                                                     XLS                                                                              Excel                          System
                                                                                     XLSS                                                                             Excel2                         System2
    SQL> for AccountID use AccountID not Account_ID
    Account_ID varchar2(100) path 'AccountID'Edited by: AlexAnd on Aug 9, 2012 12:35 AM

  • The java error which i meet in the oracle 11g when i using jdm

    I have finish a java data mining program,it can work in oracle 10g.But now ,i  have to apply this program in oracle 11g.
    What should i do to make it still work in oracle 11g?
    The jar have been replaced with 11g's jar.But when i debug the program,the BuildTask's m_ programName is still "dmsys.build_program" and it should be "sys.build_program".
    Then when run to the executeTask,the Error occurred.
    **************the  error**********************************
    19:19:55,734 DEBUG AprioriExecuteUtil:248 - ---------------------------------------------------
    19:19:55,734 DEBUG AprioriExecuteUtil:249 - --- Build Model                                 ---
    19:19:55,734 DEBUG AprioriExecuteUtil:250 - ---------------------------------------------------
    19:21:52,328 ERROR AprioriExecuteUtil:114 - executeError:
    java.lang.ArrayIndexOutOfBoundsException: 0
      at oracle.dmt.jdm.task.OraBuildTask.mapJobArgs(OraBuildTask.java:410)
      at oracle.dmt.jdm.base.OraTask.retrieveObjectFromDatabase(OraTask.java:535)
      at oracle.dmt.jdm.base.OraTask.removeTaskContents(OraTask.java:229)
      at oracle.dmt.jdm.base.OraTask.removeObjectFromDatabase(OraTask.java:214)
      at oracle.dmt.jdm.resource.OraPersistanceManagerImpl.removeObject(OraPersistanceManagerImpl.java:297)
      at oracle.dmt.jdm.resource.OraConnection.removeObject(OraConnection.java:389)
      at oracle.dmt.jdm.OraMiningObject.saveObjectInDatabase(OraMiningObject.java:150)
      at oracle.dmt.jdm.resource.OraPersistanceManagerImpl.saveObject(OraPersistanceManagerImpl.java:245)
      at oracle.dmt.jdm.resource.OraConnection.saveObject(OraConnection.java:383)
      at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.executeTask(AprioriExecuteUtil.java:324)
      at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.buildModel(AprioriExecuteUtil.java:303)
      at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.execute(AprioriExecuteUtil.java:108)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    So,if there someone know the reason,please tell me how to solve this error.Thank you!!!!

    Thanks for your response!
    The JDK version is 1.6.0_02.
    DB version is 11.2.0.1.0.
    This is the code.
    public class AprioriExecuteUtil {
      private static Logger logger=Logger.getLogger(AprioriExecuteUtil.class);
      * 连接数据库对象
      private static Connection m_dmeConn;
      private static ConnectionFactory m_dmeConnFactory;
      * 在进程中使用的工厂对象
      private static PhysicalDataSetFactory m_pdsFactory;
      private static PhysicalAttributeFactory m_paFactory;
      private static AssociationSettingsFactory m_assoFactory;
      private static RulesFilterFactory m_filterFactory;
      private static BuildTaskFactory m_buildFactory;
      * 全局常量
      private static DecimalFormat m_df = new DecimalFormat("##.####");
      * modelId:数据挖掘模型Id
      private String modelId = "";
      *<p>Title: execute</p>
      *<p>Description:执行数据挖掘,响应页面上的执行按钮</p>
      * @param @return 设定文件
      * @return  String 返回类型
      * @throws
      public String execute(){
      try{
      dataminingManager().updateModelById(modelId, "schedule", "10");
      dataminingManager().updateModelById(modelId, "startTime", DateUtil.getNow());
      dataminingManager().updateModelById(modelId, "endTime", "");
      dataminingManager().deleteModelRules(modelId,"TblSpModelRulesAr");
      m_dmeConnFactory = new OraConnectionFactory();
      ConnectionSpec connSpec = m_dmeConnFactory.getConnectionSpec();
      connSpec.setURI("jdbc:oracle:thin:@"+SystemParamUtil.getSystemParameValue("数据挖掘.数据库.地址"));
      connSpec.setName(SystemParamUtil.getSystemParameValue("数据挖掘.数据库.用户名"));
      connSpec.setPassword(SystemParamUtil.getSystemParameValue("数据挖掘.数据库.密码"));
      m_dmeConn = m_dmeConnFactory.getConnection(connSpec);
      clean();
      initFactories();
      prepareData();
      dataminingManager().updateModelById(modelId, "schedule","20");
      buildModel();
      dataminingManager().updateModelById(modelId, "schedule","100");
             dataminingManager().updateModelById(modelId, "endTime", DateUtil.getNow());
             clean();
      return null;
      }catch(Exception e) {
      logger.error("executeError:",e);
      return "error";
      finally {
      try {
      m_dmeConn.close();
      } catch(Exception e) {
      logger.error("closeConnectError:",e);
      return "error";
      *<p>Title: clean</p>
      *<p>Description:清理所有之前构造的临时表</p>
      * @param  设定文件
      * @return  void 返回类型
      * @throws
      public void clean(){
      java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
         Statement stmt = null;
         try{
          stmt = dbConn.createStatement();
          StringBuffer sql = new StringBuffer("select object_name from dba_objects where object_type in('TABLE','VIEW') and object_name like '%DM$%' ");
          sql.append("and owner = '").append(SystemParamUtil.getSystemParameValue("数据挖掘.数据库.用户名")).append("'");
          logger.info(sql.toString());
          ResultSet rs = stmt.executeQuery(sql.toString());
          while(rs.next()){
          try{
          stmt.executeUpdate("DROP VIEW "+rs.getString("object_name"));
          }catch(SQLException e){}
         try{
          stmt.executeUpdate("DROP VIEW SALES_TRANS_CUST_V");
         } catch(SQLException e) {}
         try{
          stmt.executeUpdate("DROP VIEW SALES_TRANS_CUST_AR_V");
         } catch(SQLException e) {}
         try {
          m_dmeConn.removeObject("arModel_jdm", NamedObject.model );
         }catch(JDMException e) {}
         try {
          m_dmeConn.removeObject("arSettings_jdm", NamedObject.buildSettings );
         }catch(JDMException e) {}
         try {
          m_dmeConn.removeObject("arBuildData_jdm", NamedObject.physicalDataSet );
         }catch(JDMException e) {}
         try {
          m_dmeConn.removeObject("arBuildTask_jdm", NamedObject.task );
         }catch(JDMException e) {}
         }catch(SQLException e) {
          logger.error("cleanViewError:",e);
         }finally{
          try {
          stmt.close();
          }catch(Exception e){
          logger.error("closeConnectError:",e);
      *<p>Title: initFactories</p>
      *<p>Description:初始化挖掘使用的工厂</p>
      * @param @throws JDMException 设定文件
      * @return  void 返回类型
      * @throws
      public void initFactories() throws JDMException{
         m_pdsFactory = (PhysicalDataSetFactory)m_dmeConn.getFactory("javax.datamining.data.PhysicalDataSet");
         m_paFactory = (PhysicalAttributeFactory)m_dmeConn.getFactory("javax.datamining.data.PhysicalAttribute");
         m_assoFactory = (AssociationSettingsFactory)m_dmeConn.getFactory("javax.datamining.association.AssociationSettings");
         m_buildFactory = (BuildTaskFactory)m_dmeConn.getFactory("javax.datamining.task.BuildTask");
         m_filterFactory = (RulesFilterFactory)m_dmeConn.getFactory("javax.datamining.association.RulesFilter");
      *<p>Title: prepareData</p>
      *<p>Description:准备数据</p>
      * @param @throws Exception 设定文件
      * @return  void 返回类型
      * @throws
      public void prepareData() throws Exception{
      logger.debug("---------------------------------------------------");
      logger.debug("--- Prepare Data                                ---");
      logger.debug("---------------------------------------------------");
      this.createBuildData();
      this.executeColumnFormatTransformation();
      *<p>Title: createBuildData</p>
      *<p>Description:用之前选择的产品构造视图</p>
      * @param @throws Exception 设定文件
      * @return  void 返回类型
      * @throws
      public void createBuildData() throws Exception{
      logger.debug("Create build data view...");
      java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
      PreparedStatement pStmt = null;
      String custProductTableName= SystemParamUtil.getSystemParameValue("数据挖掘.订购关系表.表名");
      TblSpDataMiningModel dataMiningmodel = dataminingManager().getDataMiningModel(modelId);
      StringBuffer createView = new StringBuffer("CREATE VIEW SALES_TRANS_CUST_V AS SELECT cp.user_no as USER_NO, cp.product_id as PRODUCT_ID, 1 has_it ");
      createView.append(" from ").append(custProductTableName).append(" cp ");
      createView.append(" where cp.area_code = '").append(dataMiningmodel.getArea()).append("' GROUP BY USER_NO, PRODUCT_ID");
      logger.debug(createView.toString());
      pStmt = dbConn.prepareStatement(createView.toString());
      pStmt.execute();
      public void executeColumnFormatTransformation() throws Exception{
      logger.debug("Execute column format transformation...");
      StringBuffer createNestedColumn = new StringBuffer("CREATE VIEW SALES_TRANS_CUST_AR_V as ");
      createNestedColumn.append(" SELECT D.USER_NO,CAST(MULTISET(SELECT DM_Nested_Numerical(C.PRODUCT_ID, has_it) FROM SALES_TRANS_CUST_V C ");
      createNestedColumn.append(" WHERE C.USER_NO = D.USER_NO) AS DM_Nested_Numericals) CUSTPRODS FROM SALES_TRANS_CUST_V D group by D.USER_NO");
      java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
      PreparedStatement pStmt = null;
      logger.debug(createNestedColumn.toString());
      pStmt = dbConn.prepareStatement(createNestedColumn.toString());
      pStmt.execute();
      *<p>Title: buildModel</p>
      *<p>Description:建立模型</p>
      * @param @throws JDMException 设定文件
      * @return  void 返回类型
      * @throws
      public void buildModel() throws Exception{
      logger.debug("---------------------------------------------------");
      logger.debug("--- Build Model                                 ---");
      logger.debug("---------------------------------------------------");
      PhysicalDataSet buildData = m_pdsFactory.create( "SALES_TRANS_CUST_AR_V", false );
      PhysicalAttribute pa = m_paFactory.create("USER_NO", AttributeDataType.integerType, PhysicalAttributeRole.caseId );
      buildData.addAttribute(pa);
      m_dmeConn.saveObject("arBuildData_jdm", buildData, false );
      AssociationSettings buildSettings = m_assoFactory.create();
      //计算支持度和可信度以及最多分析多少个产品
      /*java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
      PreparedStatement pStmt = null;
      String custProductTableName= SystemParamUtil.getSystemParameValue("数据挖掘.订购关系表.表名");
      TblSpDataMiningModel dataMiningModel = dataminingManager().getDataMiningModel(modelId);
      StringBuffer sql = new StringBuffer("select (trunc((count(*) /(count(distinct user_no) * count(distinct product_id))) * 50,2.2)) as destiny ");
      sql.append(" from ").append(custProductTableName).append(" cp ");
      sql.append(" where cp.area_desc = '").append(dataMiningModel.getArea()).append("'");
      logger.debug(sql.toString());
      pStmt = dbConn.prepareStatement(sql.toString());
      ResultSet res = pStmt.executeQuery();
      Float density = 0F;
      while(res.next()){
      density = res.getFloat("destiny");
      if(density!=0){
      buildSettings.setMinSupport(density);
      buildSettings.setMinConfidence(density);
      logger.debug("density = "+density);
      }else{
      buildSettings.setMinSupport(10f);
      buildSettings.setMinConfidence(10f);
      sql = new StringBuffer("select round(avg(COUNT(product_id))) as maxLength ");
      sql.append(" from ").append(custProductTableName).append(" cp ");
      sql.append(" where cp.area_desc = '").append(dataMiningModel.getArea()).append("' group by user_no ");
      logger.debug(sql.toString());
      pStmt = dbConn.prepareStatement(sql.toString());
      res = pStmt.executeQuery();
      int maxProductLength = 0;
      while(res.next()){
      maxProductLength = res.getInt("maxLength");
      if(maxProductLength != 0 && maxProductLength >= 2){
      buildSettings.setMaxRuleLength(maxProductLength);
      logger.debug("maxProductLength = "+maxProductLength);
      }else{
      buildSettings.setMaxRuleLength(3);
      logger.debug("maxProductLength = "+maxProductLength+" change to 3");
      buildSettings.setMinSupport(1);
      buildSettings.setMinConfidence(10);
      buildSettings.setMaxRuleLength(3);
      m_dmeConn.saveObject("arSettings_jdm", buildSettings, true );
      BuildTask buildTask = m_buildFactory.create("arBuildData_jdm","arSettings_jdm","arModel_jdm");
      buildTask.setDescription("arBuildTask_jdm" );
      executeTask(buildTask,"arBuildTask_jdm");
      AssociationModel model = (AssociationModel)m_dmeConn.retrieveObject("arModel_jdm", NamedObject.model);
      if(buildSettings == null){
      throw new Exception("Failure to restore build settings.");
      }else{
      displayAssociationRules( model );
      *<p>Title: executeTask</p>
      *<p>Description:执行任务</p>
      * @param @param taskObj
      * @param @param taskName
      * @param @return
      * @param @throws JDMException 设定文件
      * @return  boolean 返回类型
      * @throws
      public boolean executeTask(Task taskObj, String taskName) throws JDMException {
      boolean isTaskSuccess = false;
      m_dmeConn.saveObject(taskName, taskObj, true);
      ExecutionHandle execHandle = m_dmeConn.execute(taskName);
      logger.debug(taskName + " is started, please wait. ");
      ExecutionStatus status = execHandle.waitForCompletion(Integer.MAX_VALUE);   
      isTaskSuccess = status.getState().equals(ExecutionState.success);
      if( isTaskSuccess ) {
      logger.debug(taskName + " is successful.");
      } else {
      logger.debug(taskName + " is failed.\nFailure Description: " +
      status.getDescription() );
      return isTaskSuccess;
    247*******************the buildTask's m_programName is “dmsys.build_program” but it should be "sys.build_program" when i contact the 11g.I have tried many ways to compile the program,but it still can't be changed.
    270*******************m_dmeConn.saveObject(taskName, taskObj, true);
                                 the error:java.lang.ArrayIndexOutOfBoundsException: 0                                  
    If you  need the data table
    These are the sql :
    -- Create table
    create table TBL_MINING_CUST_HB
      mobile_tele_no        VARCHAR2(40),
      area                  VARCHAR2(4),
      user_dinner           VARCHAR2(200),
      re_flag               VARCHAR2(2),
      re_type               VARCHAR2(40),
      is_3gzd               VARCHAR2(2),
      arpu                  NUMBER,
      net_on_duration       NUMBER,
      if_ring               VARCHAR2(2),
      if_gprs               VARCHAR2(2),
      gprs_fee              NUMBER,
      if_gprs_free          VARCHAR2(2),
      if_gprs_pkg           VARCHAR2(2),
      sms_fee               NUMBER,
      if_sms_free           VARCHAR2(2),
      if_sms_pkg            VARCHAR2(2),
      mms_fee               NUMBER,
      if_mms_pkg            VARCHAR2(2),
      if_mms_free           VARCHAR2(2),
      sen_fee               NUMBER,
      sen_in_fee            NUMBER,
      sen_out_fee           NUMBER,
      sen_free              NUMBER,
      sen_fact              NUMBER,
      one_cnt_10010         NUMBER,
      three_cnt_10010       NUMBER,
      one_cancel_business   VARCHAR2(4000),
      three_cancel_business VARCHAR2(4000),
      sp                    VARCHAR2(4000)
    tablespace CSS_APP
      pctfree 10
      initrans 1
      maxtrans 255
      storage
        initial 64
        next 1
        minextents 1
        maxextents unlimited
    -- Add comments to the columns
    comment on column TBL_MINING_CUST_HB.mobile_tele_no
      is '电话号码';
    comment on column TBL_MINING_CUST_HB.area
      is '地市';
    comment on column TBL_MINING_CUST_HB.user_dinner
      is '用户套餐';
    comment on column TBL_MINING_CUST_HB.re_flag
      is '是否融合业务;1-是;0-否';
    comment on column TBL_MINING_CUST_HB.re_type
      is '套餐类别;2G后付费、2GOCS、3G后付费、3GOCS';
    comment on column TBL_MINING_CUST_HB.is_3gzd
      is '是否为3G终端(1-是,0非)';
    comment on column TBL_MINING_CUST_HB.arpu
      is 'ARPU;单位:元';
    comment on column TBL_MINING_CUST_HB.net_on_duration
      is '在网时长;单位:月';
    comment on column TBL_MINING_CUST_HB.if_ring
      is '是否开通炫铃功能,1-是;0-否';
    comment on column TBL_MINING_CUST_HB.if_gprs
      is '是否开通GPRS功能,1-是;0-否';
    comment on column TBL_MINING_CUST_HB.gprs_fee
      is 'GPRS流量使用情况;单位: M';
    comment on column TBL_MINING_CUST_HB.if_gprs_free
      is '套餐内是否自带优惠或赠送流量;1-是;0-否';
    comment on column TBL_MINING_CUST_HB.if_gprs_pkg
      is '是否定制优惠流量包;1-是;0-否';
    comment on column TBL_MINING_CUST_HB.sms_fee
      is '短信使用情况;单位:条';
    comment on column TBL_MINING_CUST_HB.if_sms_free
      is '套餐内是否自带优惠或赠送短信;1-是;0-否';
    comment on column TBL_MINING_CUST_HB.if_sms_pkg
      is '是否定制优惠短信包;1-是;0-否';
    comment on column TBL_MINING_CUST_HB.mms_fee
      is '彩信使用情况;单位:条';
    comment on column TBL_MINING_CUST_HB.if_mms_pkg
      is '是否定制优惠彩信包;1-是;0-否';
    comment on column TBL_MINING_CUST_HB.if_mms_free
      is '套餐内是否自带优惠或赠送彩信;1-是;0-否';
    comment on column TBL_MINING_CUST_HB.sen_fee
      is '本地长途合计分钟数;单位:分钟';
    comment on column TBL_MINING_CUST_HB.sen_in_fee
      is '本地长途省内长途;单位:分钟';
    comment on column TBL_MINING_CUST_HB.sen_out_fee
      is '本地长途省际长途;单位:分钟';
    comment on column TBL_MINING_CUST_HB.sen_free
      is '本地通话时长本地优惠分钟数;单位:分钟';
    comment on column TBL_MINING_CUST_HB.sen_fact
      is '本地通话时长实际使用分钟数:单位:分钟';
    comment on column TBL_MINING_CUST_HB.one_cnt_10010
      is '1月内拨打10010次数';
    comment on column TBL_MINING_CUST_HB.three_cnt_10010
      is '3月内拨打10010次数';
    comment on column TBL_MINING_CUST_HB.one_cancel_business
      is '1月内取消的增值业务';
    comment on column TBL_MINING_CUST_HB.three_cancel_business
      is '3月内取消的增值业务名称';
    comment on column TBL_MINING_CUST_HB.sp
      is '已开通的增值业务名称';
    -- Create table
    create table TBL_MINING_CUST_PRODUCT_HB
      product_name VARCHAR2(1000),
      product_id   VARCHAR2(40),
      user_no      NUMBER,
      area_code    VARCHAR2(8)
    tablespace CSS_APP
      pctfree 10
      initrans 1
      maxtrans 255
      storage
        initial 16
        next 1
        minextents 1
        maxextents unlimited
    -- Create/Recreate indexes
    create bitmap index IDX_PRODUCT_ID on TBL_MINING_CUST_PRODUCT_HB (PRODUCT_ID)
      tablespace CSS_APP
      pctfree 10
      initrans 2
      maxtrans 255
      storage
        initial 64K
        next 1M
        minextents 1
        maxextents unlimited
    create bitmap index IDX_USER_NO on TBL_MINING_CUST_PRODUCT_HB (USER_NO)
      tablespace CSS_APP
      pctfree 10
      initrans 2
      maxtrans 255
      storage
        initial 64K
        next 1M
        minextents 1
        maxextents unlimited
    -- Create table
    create table TBL_MINING_PRODUCT_HB
      product_name  VARCHAR2(1000),
      product_id    VARCHAR2(30) not null,
      coverage_rate NUMBER
    tablespace CSS_APP
      pctfree 10
      initrans 1
      maxtrans 255
      storage
        initial 16
        next 1
        minextents 1
        maxextents unlimited
    -- Add comments to the columns
    comment on column TBL_MINING_PRODUCT_HB.product_name
      is '产品名称';
    comment on column TBL_MINING_PRODUCT_HB.product_id
      is '产品ID';
    comment on column TBL_MINING_PRODUCT_HB.coverage_rate
      is '产品覆盖率=某一个产品的购买总数/所有产品的购买总数';
    -- Create/Recreate primary, unique and foreign key constraints
    alter table TBL_MINING_PRODUCT_HB
      add constraint PK_PRODUCT_ID primary key (PRODUCT_ID)
      using index
      tablespace CSS_APP
      pctfree 10
      initrans 2
      maxtrans 255
      storage
        initial 64K
        next 1M
        minextents 1
        maxextents unlimited
    Thanks!

  • How to validate XML Digital Signature with XML DB (o PL/SQL) in Oracle 11g

    Hi,
    Do you know if there is possibility to validate XML Digital Signature using XML DB (or PL/SQL) in Oracle 11g?
    Let say I have CLOB/XMLType containing Digitally Signed XML, and I want to validate, that thsi is proper signature. I also have public key of signer (I could store it in CLOB or file or Oracle wallet).
    Is it possible to do?
    If there is need to install additional component - then which one?
    Regards,
    Paweł

    Hi,
    this is what i got from someone...
    but the links he gave are not opening up...
    u have to place a picture there and have to load the digital signatures as Jpegs on to the server to OA top
    and have to refer them in the XML for dynamically get the signature on the reports
    when u select the properties of the picture placed in the XML template,
    there will be one tab with "URL"... in that u have to give the path for that jpegs
    Pls refer the following documents for enabling digital signature on pdf documents.
    http://iasdocs.us.oracle.com/iasdl/bi_ee/doc/bi.1013/e12187/T421739T481159.htm#5013638    (refer section 'Adding or Designating a Field for Digital Signature'
    http://iasdocs.us.oracle.com/iasdl/bi_ee/doc/bi.1013/e12188/T421739T475591.htm#5013688
    (Implementing a Digital Signature
    Is the BI Publisher installed on your instance of version 10.1.3.4 or higher?
    Pls procure a digital signature as soon as possible. The process can take time. OR we could use any certificate that you already might have OR generate a certificate using Oracle Certificate Authority for demo.

  • Oracle 11g Client and XML DB

    We have moved our applications in a mix environment (DB on Linux and App. Server on Windows) on Oracle 11g.
    On the past we have tested the applications and they were working, now seems nothing is ok, it is like the 10g instant client on Windows is unable to communicate with Oracle 11g DB working on XMLDB.
    May I ask if someone have seen the same problems?
    Testing on Windows all the environment it was all working, but it was installed all on the same machine.
    Stefano

    Ozark DBA wrote:
    Just need confirmation that the old 10g Java based Enterprise Manager is gone forever with 11g and there is no management console in the 11g client installation (at least I cannot find one). Confirmed. Same as in the Database install.
    And after searching the threads ond Oracle documentation, it appears that I can install 11g database on my local pc and then have a dbconsole (not grid control). Please confirm that this dbconsole only points to the specific database installed on the same local pc, and it cannot be used to manage remotely located 10 or 11g databases. Confirmed. The DB Console is tied to one ORACLE_HOME one one HOST for one INSTANCE. The HOST and INSTANCE are used in the directory naming (of all stupidity) and configuration file contents under the ORACLE_HOME.
    I am still in the planning stages for grid control installation and would like to use the smaller enterprise manager - java control. But again, there is no such Oracle application for 11g now? I must use grid control to manage multiple databases?Confirmed. Fortunately, the Grid Control is included in the Database license as per the database Licensing manual, and you can put the Grid Control on a separate machine. Since the Grid Control is fed using a single agent for all product (database, and anything else) on the target host, the Grid Control puts on a much smaller footprint on a database machine than even the old Java console.
    Note that the 11g Grid Control will be (at least) announced tomorrow by WebCast - check OTN.

  • Help Apply Patch to Oracle 11g

    Hello!
    Currently I have a single stand alone server (RHEL 5.8 Linux) running Oracle 11.2.0.1. I'm being told that the latest patch level is 11.2.0.3. I would like to get my current production database patched / updated to the latest version so I was told to do a "Out-of-place" manual upgrade from 11.2.0.1 to 11.2.0.3. In generic online tutorials and documentation, here is what I did. Currently my $ORACLE_HOME on Linux is:
    echo $ORACLE_HOME
    /oracle/u01/app/oracle/product/11.1.0/db_1
    I've downloaded the 1st two zip files for 11.2.0.3. I'm told that this will basically be a fresh / new installation of Oracle 11.2.0.3 on my server but installing in a new directlry structure or $ORACLE_HOME.
    So I create the following new $ORACLE_HOME path on my existing production server:
    /oracle/u01/app/oracle/product/11.2.0/db_1
    Here I extracted the 1st two .ZIP files for 11.2.0.3. Once the two files were successfully extracted, I now had a sub-sirectory called $ORACLE_HOME/database and in this new 'database' folder I see the 'runInstaller' script to kick off the OUI (Oracle Universal Installer).
    I walked through the failrly straight forward installer process and it said it completed successfully but now I'm confused on how or what methods do I need to take to migrate the data from my current $ORACLE_HOME to the newly created one. I know virtually nothing about Oracle 11g database systems but I'm eager to learn. I've used Google for most of my help with the exeption of some other forums. Can someone please help me with the correct / best way to finish the upgrade? So far I just installed Oracle over again on the same server just under a new folder path. The database listener and everything is still pointing to the 11.2.0.1 installation. I'm guessing I either have to use RMAN backupset from the 11.2.0.1 and recover it to the 11.2.0.3 install or perhaps there's some kind of migration step(s) / process.
    Sorry if this seems very basic or well documented for most but I couldn't find any info and or perhaps the lingo was over my head. I appreciate any supprt and or info in helping me. If you can, please note that this is my production server and it's an Enterprise stand-alone database server so if I need to take the database down or offline, please be specific in the steps needed as I have NEVER done anything like this before. I do have daily backups that I run manually using RMAN but I'd like to avoid using those at all cost unless it's required.
    Thank you in advance!

    Hi Carl,
    If you want to have your current database 11.2.0.1 to be upgraded in out of place.
    first being safe is better take a backup of the current database.
    As you have installed software 11.2.0.3 in out of place from previous home directory,
    Now using DBUA you can upgrade your database.
    NONUDAY

  • Oracle 11g  Quartz Scheduler 1.8.5 running under JBOSS 5.1

    Basically I'm getting this error when running Quartz configured for the jobStore
    org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreCMT
    I've got two data sources setup.
    One data source is setup to be looked up via JNDI (presumably for the one that may participate in distributed JTA XA transactions) and one that
    supposedly is not to participate in JTA transactions in which quartz can call commit/rollback on it's own.
    The problem I'm seeing with the interaction of the two is the following exception:
    05:21:27,292 ERROR [TxPolicy] javax.ejb.EJBTransactionRolledbackException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [9
    9999]; error code [29875];
    --- The error occurred in XXXXX_COORDINATE_SqlMap.xml.
    --- The error occurred while applying a parameter map.
    --- Check the XXXX_COORDINATE.insert-InlineParameterMap.
    --- Check the statement (update failed).
    --- Cause: java.sql.SQLException: ORA-29875: failed in the execution of the ODCIINDEXINSERT routine
    ORA-29400: data cartridge error
    ORA-14450: attempt to access a transactional temp table already in use
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 720
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 225
    ; nested exception is com.XXXXXibatis.common.jdbc.exception.NestedSQLException:
    --- The error occurred in XXXXX_COORDINATE_SqlMap.xml.
    --- The error occurred while applying a parameter map.
    --- Check the XXXXX_COORDINATE.insert-InlineParameterMap.
    --- Check the statement (update failed).
    --- Cause: java.sql.SQLException: ORA-29875: failed in the execution of the ODCIINDEXINSERT routine
    ORA-29400: data cartridge error
    ORA-14450: attempt to access a transactional temp table already in use
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 720
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 225
    Has anyone seen this error before with the following configuration of Quartz 1.8.5, Oracle 11g, Oracle Spatial?
    I've googled and seen reference to Oracle spatial using temp tables and not compatible with transactions... but not sure
    exactly how to solve this problem.
    Thanks in advacce.

    Hi;
    Can any one advise me where and how can I download proper RPM packages and how do I resolve swap space requirement failure as mentioned above. Please let me know if further information required.You can find all related rpm from your DVD. For rpm please see below thread:
    RPM confirmation
    Re: Package install for oracle11gr2
    For swap:
    swap size increase-linux
    How to increase swap size?
    Regard
    Helios

  • Oracle 11g SOA-BPM PS3 Installation Help

    I'm not a super techie, so installing the latest release from Oracle was a challenge, but I encountered a number of problems and kept notes of what I did to solve it. Many of these hints came from the Forum, but nothing had all of the relevant info under one thread. So here is what I pieced together. If this is helpful to anybody, I'd love to hear it - either on this thread or at my e-mail address of [email protected]. My thanks to Linus Chow of Oracle for some help and allowing me to think I could do this!
    Comments/Suggestions on Oracle 11g SOA-BPMN PS3 Installation_
    Suggest downloading all files into a common directory. I stuck this folder at the root (C:) drive. At collectively just over 5 GBs, the downloading will take several hours (for me it was a full day, as did the installation). You will need an OTN account to be able to download the software. A good overview of PS3 is at the following link: http://blogs.oracle.com/bpm/2011/01/bpm_suite_11gr1_ps3_released.html.
    General comment/suggestion. Be sure to name the aforementioned folder without any spaces (big problems if this is done because of how unzipped files do/don’t work with a path name with spaces in it). As the installs get started, note that an Oracle directory (under the root) with a default name for the middleware directory, named Middleware, is created as the default.
    The link with the installation is actually helpful, but it is incomplete (http://www.oracle.com/technetwork/middleware/bpm/downloads/index.html). Some of the detail needed is in the quick installation guide (http://download.oracle.com/docs/cd/E17904_01/install.1111/e14318/toc.htm, and I suggest downloading the PDF version), but the order conflicts with the previous information. I resolved this by using the latter for detail, but the former for the sequence. I also had to turn to several blogs/forums (the main one being: http://blogs.oracle.com/SOA/2009/08/installing_oracle_soa_suite_11.html) to get help on troubleshooting problems with the installation (see below for others).
    I have a Windows 7 Professional 64-bit version, but I ended up following the path for the 32-bit install path (see the main link cited above), mostly because it was unclear to me what the 64-bit path would be. I also already had the 32-bit version of the JRE installed. The following links cover identifying the differences and what you may have installed as well as alternative versions to download: http://www.java.com/en/download/faq/index_general.xml?user_os=Windows%207; http://www.java.com/en/download/faq/java_win64bit.xml; and http://www.java.com/en/download/manual.jsp.
    Another general comment/suggestion. I found it useful to reboot after each step. It shut down services that I would otherwise have to search for and shut down manually. Some of the installations require services activated by previous steps to be turned off, so you’re better off doing something like this rather than encountering such an error in a subsequent step.
    Step 1: Installing the XE database. The file is an .exe file, and will execute upon a double click. However, the instruction regarding RCU is best saved until the 3rd step, doing it just before you install the RCU. More importantly, there are some things to keep in mind about the database install. First, after installation, you should sign on to the DB, using the Go To DB Home Page option under the Express Edition (XE) folder or set of menu options (created as part of the installation), under the SYSTEM user account. During installation, you’ll have to have given a password for this account, so make sure it is one you can remember. After signing on as SYSTEM, give the SYS user account another (or same) password that you can remember. You will use the SYS account in subsequent steps. Second, there is a parameter for the database that must be changed from the default. This is covered in the links below: http://blogs.oracle.com/tridib_samanta/2010/03/rcu-6107db_init_param_prerequisite_failure_for_processes.html and http://cn.forums.oracle.com/forums/thread.jspa?threadID=1004605. To solve this, select SQL button on the DB home page, then SQL Commands button on the next page, paste/enter into the pane at the top the following command, “ALTER SYSTEM SET processes=300 SCOPE=SPFILE;” (but without the quotes), and then click on the Run button. (The parameter must be greater than or equal to 200, but I found references to setting in equal to 300 or 500.) Then you can log out and close the web page.
    At times, the DB might not be started when you are expecting it to be running (e.g., after a reboot), which is covered in this link: Oracle 10g database homepage not working? (You’ll know that it is isn’t running if you try to open the Go To DB Home Page option and it won’t open, displaying an error page instead.) I found that the simplest way to fix this was to go to the Control Panel, Administrative Tools, Services, and then look to see if the OracleServiceXE service is started. If not, then restart by right-clicking on that service listing and choosing the appropriate option to execute.
    Step 2: Installing WebLogic Server. Either before or during this process, you will need to set up an Oracle Support Account. However, you need a customer ID to be able to create a profile. I was thus not able to complete a profile, so the WLS installation defaulted to the Anonymous registration option. This still needed an e-mail address though, the same one with which you would create the Oracle Support profile, so you should have one at the ready. (It would not accept the e-mail address for my OTN account.) As far as I can tell, the consequence of this path is that I cannot automatically get patches and such. I figure this is a problem to be solved another day. The Oracle Support links are: https://support.oracle.com/CSP/ui/faq_en.html#SignIn and https://support.oracle.com/CSP/ui/flash.html.
    If you go with the default, the middleware directory is just Middleware under the Oracle directory. If you select a different name or location, you will need to remember where it is and what the name is. You should also note the folder name for where the JDK was stuck, which for me was JDK160_21 under the Middleware directory.
    Step 3:  Installing RCU. The trickiest of the steps. Unlike with the previous two steps, this installation first happens after the downloaded file is unzipped. You MUST unzip into a directory for which the full path name (and not just the one you create upon extraction) is without any spaces. (You can use the underscore symbol instead of a space to indicate separation.) Unzip the folder/files, and then open the Command Prompt window. Using the cd command, work your way to the full path name to where you just unzipped these files. Next, continue to work your way down to subfolders created during the extraction process. You want to end up at the rcuHome\BIN\ subfolder. THEN do the RCU-related command cited in Step 1. Type in at the prompt the following command and hit enter: set RCU_JDBC_TRIM_BLOCKS = TRUE. Then, type in rcu.bat at the prompt and hit enter, which will run the installation and configuration sequence. This is realized through a series of windows that open for you to input information and make selections. Use the document at the following link of specific guidance as to what the configuration screens should have entered on them: http://blogs.oracle.com/SOA/2009/08/installing_oracle_soa_suite_11.html. This includes things like the service name (XE) and the host name (localhost) to enter, assuming you are installing this on a laptop or PC for local use only. Some other helpful links for troubleshooting the RCU installation are located at: http://download.oracle.com/docs/cd/E12839_01/doc.1111/e14259/rcu.htm#CIHGHDBG; http://oraclebi.blogspot.com/2010/08/rcu-and-what-it-means-for-you.html ; Re: RCU 11.1.1.4 install fails on Oracle XE and http://cn.forums.oracle.com/forums/thread.jspa?threadID=2162409&tstart=0&messageID=9336791.
    The RCU sets up DB schemas and the like for the BPMN and SOA stuff. The screenshots in the previously mentioned document should be followed exactly. You can also refer to pp. 5-6 of the Quick Installation Guide. You should use the SYS user account (the default, I think), so have the password handy.
    I also found it more comforting to shutdown the RCU installation/configuration via the cancel option than to keep going back a screen to fix something. This may not have been necessary, but it made me feel better. Be prepared for interim screens that pop up to show that the installation/configuration is happening, which will also tell you there are errors. One such screen says that XE isn’t supported for RCU, but you can ignore that (as the supporting guidelines indicate).
    Step 4:  Installing JDev. This is an executable, and you just install with all of the defaults. This process will start the WLS as part of the installation, so you must turn it off before going to the next step. Again, I just rebooted to do this.
    Step 5:  Installing SOA Extensions for JDev. Instructions on the page at the main link are clear and correct. The 2 screen shots must be reviewed and adhered to completely in checking off options. The first selection defines the areas where updates are to be sought out, while the second selection is from the available option(s) from those areas. In this case, you are only installing the SOA Composite Editor, though there are several other updates/extensions from which to select (but don’t, at least for now).
    Step 6: Installing BPM Extensions for JDev. Same comment as for Step 5, except that the option you want to select is not as what is indicate (the BPM Composite Editor) but the BPM Process Studio! I would advise against doing these as part of the same update sequence. In fact, I closed out JDev completely (though I did not reboot) between Step 5 and Step 6.
    Step 7 and 8:  Installing SOA Suite. I suggest unzipping both of the downloaded zip files. Again, it is critical that the full path name into which files are extracted contains no spaces. Once unzipped, you should navigate to the Disk1 folder under the directory into which the first zip file was extracted, but you should do this with the Command Prompt window and the cd command. From this prompt, you should type in “setup.exe -jreLoc {location of JDK}” (without the quotes) and hit enter. The {location of JDK} is where the JDK was installed as part of the WLS installation. For me this was in folder JDK160_21 under the Middleware folder in the Oracle directory. Refer to pp. 12-15 of the Quick Installation Guide. This took me a couple of tries before I actually got the installation screen to show up correctly. Some of what this looks like is also in the following link: http://blogs.oracle.com/SOA/2009/08/installing_oracle_soa_suite_11.html.
    What you may eventually figure out is that 5 installation disks are stretched across two zip files. Once the installation of disks 1 and 2 are done, a popup window will ask you to browse to the folder where each of the next 3 disks are, which is in the folder created by the extraction of files/folders from the second zip file for the SOA Suite. As with previous steps, I rebooted after all of this was done.
    Step 9:  Installing the Business Process Converter. Unzip the downloaded file, and open the Installation Instructions Word file. It will instruct you to point JDev’s update sequence to another zip file extracted during the unzipping of the downloaded zip file for the converter. JDev will install this without much fuss or muss, but this installation is to the Studio and not to BPA. (For installation to BPA, you need to have installed BPA, and followed the other guidance in the instructions.) To get to JDev’s update sequence, follow the same first step as in Step 5, but check the option to browse for and upload from a local file. This local file will be the previously mentioned other zip file.
    -------------------------------------------------

    Create a new user oracle and proceed with the installation
    --> useradd -g oinstall oracle
    If your are forwarding your GUI using xming or vnc you would need to copy the xauth of root user and set it to oracle
    [server1:root] xauth list
    bangvmpllE.com/unix:11 MIT-MAGIC-COOKIE-1 b23d63374fe25a3577751b6b95b2210e
    [server1:root] sudo su - oracle
    [server1:oracle] export DISPLAY=localhost:10.0
    [server1:oracle] xauth add bangvmpllE.com/unix:11 MIT-MAGIC-COOKIE-1 b23d63374fe25a3577751b6b95b2210e

  • Create workspace in Oracle 11g + APEX 2.2 fails

    Anybody come across this one?
    I have Oracle 11g database installed where I have removed APEX 3.0 and downgraded to APEX 2.2 (due to my clients not having upgraded yet).
    I'm using the embedded PL/SQL gateway in the Oracle XML DB HTTP server.
    Navigating to APEX login page and logging in as ADMIN is OK but when I want to create a new workspace (based on existing schema) it returns following error:-
    ORA-20001: Request 824807541251920 could not be processed. -20001 ORA-20001: Unable to grant initial privs. ORA-20001: Error with: GRANT CREATE JOB TO "IPP" ORA-01031: insufficient privileges
    I followed the post-installation steps that came with the installation guide of 11g but they really apply to APEX 3.0. Should I not have done that and instead followed the APEX 2.2 post-installation steps? Those are not clear however on configuring the embedded HTTP server.

    SOLVED.
    All I needed to do was log in as system and:-
    GRANT CREATE JOB TO FLOWS_020200 WITH ADMIN OPTION
    Not sure why it was missing though.

  • Xpath difference between Oracle 10g and Oracle 11g

    All,
    I'm working on moving our existing stored functions from Oracle 10g (10.2.0.4.0) to Oracle 11g (11.2.0.1.0) and so far, everything has worked just fine on Oracle 11g...execpt for one xpath statement.
    The statement below works fine in Oracle 10g (10.2.0.4.0):
    extractValue(inv_dtl_img, '/service//ground/sortKeyCode') AS "srt_key_cd",
    Please note: I need to use the double slash "//" in order to ignore the two different elements in the schema.
    However, in Oracle 11g (11.2.0.1.0), when this statement is executed in the stored function, I get this:
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected - got -
    The extractValue command is pulling data out of an XMLType column, and the corresponding XML schema looks like:
    <service>
    <trans>
    <ground>
    <sortKeyCode>
    </sortKeyCode>
    </ground>
    </trans>
    <nontrans>
    <ground minOccurs=0>
    <sortKeyCode>
    </sortKeyCode>
    </ground>
    </nontrans>
    </service>
    Please note: In the XML message, the "trans" and "nontrans" elements are exclusive, so both will never be populated at the same time. A typical XML message would look like this:
    <service><trans><ground><sortKeyCode>3</sortKeyCode></ground></trans></service>
    or this:
    <service><nontrans><ground><sortKeyCode>5</sortKeyCode></ground></nontrans></service>
    In the schema, the sortKeyCode has been defined in both places as "string maxlen=3", so the datatype of that element is exactly the same in both the "trans" and "nontrans" sections of the schema. The only difference in the schema (outside of the trans and nontrans tags) is the fact that the second "ground" tag is defined with a "minOccurs=0". Could Oracle 11g be treating the schema differently than Oracle 10g, resulting in the error?
    Any thoughts would be appreciated.

    The only way to get an quick answer to that one is to file a service request with Oracle support. It could be a bug or a correct change regarding W3C behavior. Despite this, you moving to 11.2, the extract/extractvalue etc propriety Oracle solutions are deprecated from 11.2 and onwards. The more sensible way to move forward, although, I know more work intensive, is to apply the XQuery alternatives like xmlexist, xquery or xmltable functions.
    Moving to EXTRACT is a bad idea, because this alway will be treated as an XML fragment. If you unlucky then Oracle will deal with this in memory via DOM (the standard solution regarding XML parsing if every smart thing within Oracle can not be applied) and this will result in a performance downgrade due to high CPU and Memory consumption/overhead...
    Your pick...

  • Error while creating a JDBC connection to Oracle 11g using WLS 6.1

    Hi
    I am trying to connect to Oracle 11g database on Weblogic 6.1 server.
    First of all i would like to know if this is compatible?
    The environement that i have is this
    1. JDK 1.3
    2. Database 11g is on remote system
    3. Oracle client on my local system ( Connecting to the 11g DB through the client works fine)
    4. Weblogic server 6.1
    5. Currently the application is connected to Oracle 10g DB and working fine(We are attempting to move it to 11g)
    Below are the steps that i followed to create the connection:
    1. Made an entry for the datasource in config.xml under <WLS_DOMAIN>/config folder as below
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    MaxCapacity="4" Name="CADConnectionPool"
    Properties="user=abc_proxy;password=proxy_abc;dll=ocijdbc8;protocol=thin"
    RefreshMinutes="5" ShrinkPeriodMinutes="10" Targets="CAsvr"
    TestConnectionsOnRelease="true" TestConnectionsOnReserve="true"
    TestTableName="dual" URL="jdbc:oracle:thin:@gen11t-ora.db.lab.xyz.com:1530:GEN11T"/>
    2. Restarted the server.
    3. Ran the application and get the following error on the server console:
    <Aug 22, 2011 12:39:42 AM CDT> <Error> <JDBC> <Cannot startup connection pool "C
    ADConnectionPool" weblogic.common.ResourceException:
    Could not create pool connection. The DBMS driver exception was:
    java.lang.ArrayIndexOutOfBoundsException
    at oracle.security.o3logon.C0.r(C0)
    at oracle.security.o3logon.C0.l(C0)
    at oracle.security.o3logon.C1.c(C1)
    at oracle.security.o3logon.O3LoginClientHelper.getEPasswd(O3LoginClientH
    elper)
    at oracle.jdbc.ttc7.O3log.<init>(O3log.java:289)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:251)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:246)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
    nectionEnvFactory.java:193)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
    nectionEnvFactory.java:134)
    at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllo
    cator.java:705)
    at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.j
    ava:282)
    at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
    ava:650)
    at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
    oymentTarget.java:360)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
    loymentTarget.java:285)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
    ments(DeploymentTarget.java:239)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
    DeploymentTarget.java:199)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
    eanImpl.java:636)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
    .java:621)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
    ionMBeanImpl.java:360)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    57)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    25)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy31.updateDeployments(Unknown Source)
    at weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
    yments(ServerMBean_CachingStub.java:2977)
    at weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
    er(ApplicationManager.java:372)
    at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
    nManager.java:160)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
    eanImpl.java:636)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
    .java:621)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
    ionMBeanImpl.java:360)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    57)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    25)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy42.start(Unknown Source)
    at weblogic.management.configuration.ApplicationManagerMBean_CachingStub
    .start(ApplicationManagerMBean_CachingStub.java:480)
    at weblogic.management.Admin.startApplicationManager(Admin.java:1234)
    at weblogic.management.Admin.finish(Admin.java:644)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:524)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:207)
    at weblogic.Server.main(Server.java:35)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
    nectionEnvFactory.java:209)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
    nectionEnvFactory.java:134)
    at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllo
    cator.java:705)
    at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.j
    ava:282)
    at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
    ava:650)
    at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
    oymentTarget.java:360)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
    loymentTarget.java:285)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
    ments(DeploymentTarget.java:239)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
    DeploymentTarget.java:199)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
    eanImpl.java:636)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
    .java:621)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
    ionMBeanImpl.java:360)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    57)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    25)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy31.updateDeployments(Unknown Source)
    at weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
    yments(ServerMBean_CachingStub.java:2977)
    at weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
    er(ApplicationManager.java:372)
    at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
    nManager.java:160)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
    eanImpl.java:636)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
    .java:621)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
    ionMBeanImpl.java:360)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    57)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    25)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy42.start(Unknown Source)
    at weblogic.management.configuration.ApplicationManagerMBean_CachingStub
    .start(ApplicationManagerMBean_CachingStub.java:480)
    at weblogic.management.Admin.startApplicationManager(Admin.java:1234)
    at weblogic.management.Admin.finish(Admin.java:644)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:524)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:207)
    at weblogic.Server.main(Server.java:35)
    Can't load scjd12.dll, file not found java.library.path=C:\jdk1.3.1_11\bin;.;C:\WINDOWS\system32;C:\WINDOWS;.\bin;C:\P
    rogram Files\Lotus\Notes\Data;C:\Program Files\Lotus\Notes;C:\Program Files\Java
    \jre1.5.0_17\bin;C:\Program Files\Java\j2re1.4.2_06\bin;C:\Oracle\bin;C:\Program
    Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\sys
    tem32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\sys
    tem32\nls\ENGLISH;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Rational
    \common;C:\Program Files\Rational\ClearCase\bin;C:\apache-ant-1.6.5\bin;C:\jdk1.
    3.1_11\bin;C:\Program Files\Citrix\ICAService\;C:\Program Files\Citrix\System32\
    ;Z:.
    <Aug 22, 2011 12:38:06 AM CDT> <Info> <JDBC> <Sleeping in createResource()>
    <Aug 22, 2011 12:38:07 AM CDT> <Error> <JDBC> <Cannot startup connection pool "c
    ispool" weblogic.common.ResourceException:
    Could not load 'com.neon.jdbc.Driver
    If this is a type-4 JDBC driver, it could occur if the JDBC
    driver is not in the system CLASSPATH.
    If this is a type-2 JDBC driver, it may also indicate that
    the Driver native layers(DBMS client lib or driver DLL)
    have not been installed properly on your system
    or in your PATH environment variable.
    This is most likely caused by one of the following:
    1. The native layer SO, SL, or DLL could not be found.
    2. The file permissions on the native layer SO, SL, or DLL
    have not been set properly.
    3. The native layer SO, SL, or DLL exists, but is either
    invalid or corrupted.
    For more information, read the installation documentation
    for your JDBC Driver, available from:
    http://e-docs.bea.com
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
    nectionEnvFactory.java:212)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
    nectionEnvFactory.java:134)
    at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllo
    cator.java:705)
    at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.j
    ava:282)
    at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
    ava:650)
    at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
    oymentTarget.java:360)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
    loymentTarget.java:285)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
    ments(DeploymentTarget.java:239)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
    DeploymentTarget.java:199)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
    eanImpl.java:636)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
    .java:621)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
    ionMBeanImpl.java:360)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    57)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    25)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy31.updateDeployments(Unknown Source)
    at weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
    yments(ServerMBean_CachingStub.java:2977)
    at weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
    er(ApplicationManager.java:372)
    at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
    nManager.java:160)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
    eanImpl.java:636)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
    .java:621)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
    ionMBeanImpl.java:360)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    57)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    25)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy42.start(Unknown Source)
    at weblogic.management.configuration.ApplicationManagerMBean_CachingStub
    .start(ApplicationManagerMBean_CachingStub.java:480)
    at weblogic.management.Admin.startApplicationManager(Admin.java:1234)
    at weblogic.management.Admin.finish(Admin.java:644)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:524)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:207)
    at weblogic.Server.main(Server.java:35)
    Would like some help on this asap as the project is in critical stage.
    Thanks

    The driver being used by your weblogic is too old and incompatible with the DBMS. Upgrade the driver.

Maybe you are looking for

  • Variable naming method

    What is the good way to name the variable name? my method is first 3characters is datatype : int intNumber; String strName; JButton btnGo;Any comment for my naming conversion? I think all expert java programmers not like this right? why?

  • RSS feeds on Nokia E61i

    Does anyone have a solution to this bug in the Nokia RSS browser? The first time I subscribed to a feed was while connected to my home WLAN. Since then, whenever I try and connect to any feed (even newly created ones) it tries to use the home WLAN co

  • How to make a realistic rope segment

    This might be quite simple. I am trying to make a rope segment that would look like the rope in ( http://www.letsmoondance.nl/  and  http://www.youtube.com/watch?v=8rgXxNnMaRI&feature=related ) when joined. I don't know much photoshop, can someone pl

  • Loading alternate hierarchy

    Hi, We have a source file that contains only the alternate hierarchy(Shared members). Finding a way to load it in EPMA dimension library. Is that possible? I couldnt find a suitable option in the import profile. we are on 11.1.2.2.300. However it was

  • Hunt-group description on CME 4.0(3)

    Hi all, I set up a CME with release 12.4(4)XC4 with 3 hunt-group. See config: ephone-hunt 1 sequential pilot <omitted> list 105, 104, 103, 102, 101 max-timeout 120 timeout 10, 10, 10, 10, 10 statistics collect description PostOperatore ephone-hunt 2