XML Problems Oracle9i Enterprise Edition Release 9.2.0.7.0

Can anyone help me with my problem!
I am trying to import xml file into xmltype table (this is working fine), but then I want to extract data from this xmltype table but I get null from my request.
Please I need help. I have tried some examples and it is working, so I think that I am doing something wrong or the file that I have imported is not O.K.
Pleeeeeease help me.
I have this XML file:
<?xml version="1.0" ?>
<TecKomBS xmlns="http://www.bsi.si" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bsi.si http://www.bsi.si/_data/tecajnice/TecKomBS.xsd">
<tecajnica datum="2007-01-17" veljavnost="2007-01-18">
<tecaj oznaka="GBP" sifra="826">
<nakupni>0.65784</nakupni>
<prodajni>0.65586</prodajni>
</tecaj>
<tecaj oznaka="CZK" sifra="203">
<nakupni>27.910</nakupni>
<prodajni>27.826</prodajni>
</tecaj>
<tecaj oznaka="NOK" sifra="578">
<nakupni>8.3605</nakupni>
<prodajni>8.3355</prodajni>
</tecaj>
</tecajnica>
</TecKomBS>
I have loaded this file into xmltype table:
CREATE TABLE xml_tab (
id NUMBER(10),
filename VARCHAR2(100),
xml XMLTYPE)
For loading I have uset load_xml procedure that I've got from help file.
And it works fine. So I have xmltype table with xml data.
Now I need to get data from this table and I have tried this:
SQL> select extract(xml, '/TecKomBS/tecajnica') neki from xml_tab;
NEKI()
SQL>
(and I get nothing)
and this
SQL> select value(p)
2 from xml_tab x
3 , table(XMLSequence(
4 extract(x.xml, '/TecKomBS/tecajnica/tecaj'))) p;
no rows selected
SQL>
(and I got nothing)
I would like to get data from "tecaj (sifra)" and data from "nakupni" or "prodajni" ?
Can any one tell me what I am doing wrong, thanks?
For help this is strusture file for xml file, if it helps
<?xml version="1.0" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.bsi.si" xmlns="http://www.bsi.si" elementFormDefault="qualified">
<xsd:simpleType name="Tsif">
<xsd:restriction base="xsd:string">
<xsd:length value="3" />
<xsd:pattern value="\d{3}" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Tozn">
<xsd:restriction base="xsd:string">
<xsd:length value="3" />
<xsd:pattern value="[A-Z]{3}" />
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="TecKomBS">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="tecajnica" minOccurs="1" maxOccurs="1">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="tecaj" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="nakupni" type="xsd:decimal" />
<xsd:element name="prodajni" type="xsd:decimal" />
</xsd:sequence>
<xsd:attribute name="oznaka" type="Tozn" use="required" />
<xsd:attribute name="sifra" type="Tsif" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="datum" type="xsd:date" use="required" />
<xsd:attribute name="veljavnost" type="xsd:date" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
I think that the problem is with my XPath, can anyone help me with this example ?
THANKS .....
Message was edited by:
user448268

SQL>
SQL> var xmltext varchar2(4000)
SQL> --
SQL> begin
  2    :xmltext :=
  3  '<?xml version="1.0" encoding="UTF-8"?>
  4  <TecKomBS xmlns="http://www.bsi.si" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bsi.si http://www.bsi.si
/_data/tecajnice/TecKomBS.xsd">
  5     <tecajnica datum="2007-01-17" veljavnost="2007-01-18">
  6             <tecaj oznaka="GBP" sifra="826">
  7                     <nakupni>0.65784</nakupni>
  8                     <prodajni>0.65586</prodajni>
  9             </tecaj>
10             <tecaj oznaka="CZK" sifra="203">
11                     <nakupni>27.910</nakupni>
12                     <prodajni>27.826</prodajni>
13             </tecaj>
14             <tecaj oznaka="NOK" sifra="578">
15                     <nakupni>8.3605</nakupni>
16                     <prodajni>8.3355</prodajni>
17             </tecaj>
18     </tecajnica>
19  </TecKomBS>';
20  end;
21  /
PL/SQL procedure successfully completed.
SQL> column SIFRA format a20
SQL> column NAKUPNI format a20
SQL> column PRODAJNI format a20
SQL> --
SQL> select extractValue(value(t),'/tecaj/@sifra','xmlns="http://www.bsi.si" ') SIFRA,
  2         extractValue(value(t),'/tecaj/nakupni','xmlns="http://www.bsi.si" ') NAKUPNI,
  3         extractValue(value(t),'/tecaj/prodajni','xmlns="http://www.bsi.si" ') PRODAJNI
  4    from table(xmlsequence(extract(xmltype(:xmltext),'/TecKomBS/tecajnica/tecaj','xmlns="http://www.bsi.si" '))) t
  5  /
SIFRA                NAKUPNI              PRODAJNI
826                  0.65784              0.65586
203                  27.910               27.826
578                  8.3605               8.3355
SQL>
SQL>
SQL>
SQL

Similar Messages

  • Database Hung problem in Oracle9i Enterprise Edition Release 9.2.0.7.0

    Hello,
    I am using the Oracle9i Enterprise Edition Release 9.2.0.7.0. Our database suddenly get hung and we need to give a Hard reset.
    Following are errors are in listener log.
    TNS-12571: TNS:packet writer failure
    27-OCT-2008 00:33:00 * service_died * nm45 * 12571
    TNS-12571: TNS:packet writer failure
    27-OCT-2008 00:33:13 * CONNECT_DATA=(SERVICE_NAME=<Service>)(SID=NM45)(SDU=2048)(CID=(PROGRAM=<EXE>)(HOST=<Host>(USER=<User>))) * (ADDRESS=(PROTOCOL=tcp)(HOST=<IP>)(PORT=<Port>)) * establish * <DB> * 12560
    TNS-12500: TNS:listener failed to start a dedicated server process
    TNS-12537: TNS:connection closed
    TNS-12560: TNS:protocol adapter error
    TNS-00507: Connection closed
    32-bit Windows Error: 109: Unknown error
    Error in Oracle trace:
    ORACLE V9.2.0.7.0 - Production vsnsta=0
    vsnsql=12 vsnxtr=3
    Windows 2000 Version 5.2 Service Pack 1, CPU type 586
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.7.0 - Production
    Windows 2000 Version 5.2 Service Pack 1, CPU type 586
    Instance name: <SID>
    Redo thread mounted by this instance: 1
    Oracle process number: 30
    Windows thread id: 1172, image: ORACLE.EXE
    *** 2008-10-27 00:54:04.300
    async error encountered when answering new connection:
    NS Primary Error: TNS-12560: TNS:protocol adapter error
    *** 2008-10-27 01:14:38.175
    async error encountered when answering new connection:
    NS Primary Error: TNS-12560: TNS:protocol adapter error
    async error encountered when answering new connection:
    NS Primary Error: TNS-12560: TNS:protocol adapter error
    *** 2008-10-27 01:22:48.894
    async error encountered when answering new connection:
    NS Primary Error: TNS-12560: TNS:protocol adapter error
    async error encountered when answering new connection:
    NS Primary Error: TNS-12560: TNS:protocol adapter error
    *** 2008-10-27 01:39:21.800
    async error encountered when answering new connection:
    NS Primary Error: TNS-12560: TNS:protocol adapter error
    *** 2008-10-27 01:50:40.910
    async error encountered when answering new connection:
    NS Primary Error: TNS-12560: TNS:protocol adapter error
    *** 2008-10-27 02:39:51.285
    async error encountered when answering new connection:
    NS Primary Error: TNS-12560: TNS:protocol adapter error
    What could be the reason.
    Regards
    Hemant

    Hello Hemant,
    Thanks for the response. Following error are in sqlnet.log. We are using the static id.
    Fatal NI connect error 12560, connecting to:
    (LOCAL=NO)
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 9.2.0.7.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 9.2.0.7.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 9.2.0.7.0 - Production
    Time: 27-OCT-2008 00:33:13
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12560
    TNS-12560: TNS:protocol adapter error
    ns secondary err code: 0
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    Regards
    Hemant.

  • EURO Support Oracle9i Enterprise Edition Release 9.2.0.4.0 ?

    Hi,
    Does Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production support EURO?If yes, what should be the data type I need to use to store the same?
    I have tried to store the Euro character in varchar2 data type column in the above database.When i tried to retrieve the EURO sysmbol some junk character is coming out.
    I am running the Oracle on Solaris5.9 OS.
    I have set Character set(NLS_LANG) as UTF8,
    Note:I am able to store and retrive the EURO in 9.2.0.3.0 without any problem.
    Pls help in this regard,
    Thanks in advance,
    Ravi

    When run the DUMP the following is the output from both versions.I dont know how to interpret the result..
    9.2.0.4:
    DUMP(SUBJECT)
    Typ=1 Len=12: 84,101,115,116,32,69,82,79,32,32,194,172
    9.2.0.3:
    DUMP(SUBJECT)
    Typ=1 Len=19: 84,101,115,116,32,101,114,114,114,114,114,114,114,114,114,32,226,1
    30,172
    In the second case i able to insert and retrieve the EURO ,
    How to interpret the above output,is there anything wrong?
    Actually I am not using any client, however i am using Java application to access the data,
    I can assure you that Applicationis working fine with other versions of Oracle,
    Thanks,

  • Can Apex 4 be installed on Oracle9i Enterprise Edition Release 9.2.0.8.0 -

    Hi,
    Just wondering if its possible to installe Apex 4 on Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    Thanks
    Aali
    Edited by: aali on 29-Jun-2010 03:14

    No. See requirements in Installation Guide:
    http://download.oracle.com/docs/cd/E17556_01/doc/install.40/e15513/pre_require.htm#BABFCFBC
    Thiis is not difficult.

  • Desupport Notice for Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit

    Hello,
    Is there a comprehensive published note from Oracle describing desupport notices for Oracle databases?
    Mainly - Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production, 10g r2 and 11g r1?
    If so, can anyone provide the link? I do have Metalink access, so a note id would also be good.
    Thanks,
    R

    Hi,
    Please see these docs.
    ALERT: Oracle9i Release 2 (9.2) Support Status and Alerts [ID 189908.1]
    ALERT: Oracle 10g Release 1 (10.1) Support Status and Alerts [ID 263719.1]
    ALERT: Oracle 10g Release 2 (10.2) Support Status and Alerts [ID 316900.1]
    ALERT: Oracle 11g Release 1 (11.1) Support Status and Alerts [ID 454507.1]
    Thanks,
    Hussein

  • Oracle9i Enterprise Edition Release 9.2.0.7 downloadable

    Hi,
    Please let me know where i can i find the downloadable for :Oracle9i Enterprise Edition Release 9.2.0.7 for linux
    Thank you,
    -Lokanath.

    Installation package could be downloaded here: http://www.oracle.com/technology/software/products/oracle9i/index.html (only 9.2.0.4 is downloadable).
    Then you need download 9.2.0.7 patchset from metalink.oracle.com (you must have paid support for access to this site)

  • Oracle9i Enterprise Edition Release 9.2.0.1.0 - OracleSessionStateStore

    Hi,
    I have the Oracle9i Enterprise Edition Release 9.2.0.1.0 version of Oracle DB installed.
    The client is an ASP.net 3.5 AJAX enabled web application using IIS (Developer m/c is XP SP3 with IIS 5.0 installed).
    I am trying to use the Oracle Provider for .NET for storing ASP.net sessions in Oracle Database.
    The ODP version that i have installed to the GAC and am using is : 11.1.0.7.20
    However, once i turn it on via web.config, i get the following error:-
    Unhandled Execution Error
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082
    Exception Details: Oracle.DataAccess.Client.OracleException:
    Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [OracleException (0x80004005)]
    Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck) +2657
    Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src) +80
    Oracle.DataAccess.Types.OracleBlob.get_Length() +609
    Oracle.DataAccess.Types.OracleBlob.get_Value() +476
    Oracle.Web.SessionState.OracleSessionStateStore.GetSessionStoreItem(HttpContext context, String id, Boolean getExclusive, Boolean& locked, TimeSpan& lockAge, Object& lockId, SessionStateActions& actionFlags) +2395
    Oracle.Web.SessionState.OracleSessionStateStore.GetItemExclusive(HttpContext context, String id, Boolean& locked, TimeSpan& lockAge, Object& lockId, SessionStateActions& actions) +54
    System.Web.SessionState.SessionStateModule.GetSessionStateItem() +117
    System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +487
    System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +66
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
    Someone else has posted a similar error before but there are no responses to that thread.
    Hence i am creating a new thread for this.
    Does anyone have any clues related to this error? All suggestions welcome :-)
    Thanks!

    Hi Greg,
    WOW..i think that just might be it. That does give me something to look into instead of just tearing my hair out.
    I did read the documentation for the 11g Client components when it downloaded it from the OTN and they just had a generic statement saying that it supports 9i provided its release 2.
    I found the doc your were referring to (Doc ID 207303.1). Will try out by upgrading to a newer oracle and see if that helps!
    Thanks!
    Edited by: user8904887 on Jun 22, 2010 1:07 AM

  • Oracle9i Enterprise Edition Release 9.0.1.1.1 Data Mining  API

    Is Data Mining API contained In Oracle9i Enterprise Edition Release 9.0.1.1.1 or in release 2 only?
    Thanx

    No it is not so simple. This "le signe est sur l'avant dernier octet" means that the sign is last character in number.
    The sign "é" and "I" are just in my example and they are somehow calculated but I don't know how?
    If I take my example there is field with format S9(13)V99 and with value 00000000071049é (and with last sign "é") and I think the last sign is somehow calculated from number. And then from this value I get the number.
    00000000071049é
    FFFFFFFFFFFFFFC
    000000000710490 => +0000000007104,90
    S9999999999999V99
    Everything I try, calculating from binary to hex, or anything other, I don't get the result or the last sign and I wonder if there is some function in PL/SQL that I can use to get the result I want?
    Or if you have some idea how to help me to get from "00000000071049é" to "+0000000007104,90" from example above?
    Here are some other examples, just for help:
    000000204592D
    000000183882D
    000000139441C
    000000182979H
    000000083361F
    000000083361F
    000000083361F
    000000059033F
    000000066273E
    000000069011G
    000000102615B
    000000092362F
    000000138215‚
    000000138215‚
    000000138215‚
    000000138215‚
    000000106760C
    000000106760C
    000000106760C
    000000115024A
    000000115024A
    000000115024A
    000000115024A
    000000115024A
    000000088149B
    000000084459I

  • Oracle9i Enterprise Edition Release 9.2.0.7.0 - Imp. and data conv. problem

    hello,
    I have problem with importing and conversion of external data. I have data like example below:
    --------1--------2--------3--------4--------5--------6--------7----
    0000SLOVAC IMPORTYSGA SIVACYS 0509720070227
    25112007022706881952VF7FCKFVC28871406 00ACESIEUR10100000é00000000071049é
    Data in bold are numbers with last character that is calculated like the example below.
    First number format is S9(2)V999999 -> 0100000é le signe est sur l'avant dernier octet C(+) D(-)
    Example 1, en hexa :
    0100000é => +01,000000
    FFFFFFFC S99V999999
    01000000
    Second number format is S9(13)V99 -> 00000000071049é
    Example 2, en hexa
    00000000071049é
    FFFFFFFFFFFFFFC
    000000000710490 => +0000000007104,90
    S9999999999999V99
    other example:
    example 00ACESIEUR10100000é00000000087498I
    en hexa:
    00000000087498I
    FFFFFFFFFFFFFFC
    000000000874989 => +0000000008749,89
    S9999999999999V99
    I need help with creating a function that will transform from "00000000087498I" to real number like "+0000000008749,89", but I really don't know how to do that.
    Can anyone help me with my problem or explain to me how to do that?
    Thanks for your time and best regards

    No it is not so simple. This "le signe est sur l'avant dernier octet" means that the sign is last character in number.
    The sign "é" and "I" are just in my example and they are somehow calculated but I don't know how?
    If I take my example there is field with format S9(13)V99 and with value 00000000071049é (and with last sign "é") and I think the last sign is somehow calculated from number. And then from this value I get the number.
    00000000071049é
    FFFFFFFFFFFFFFC
    000000000710490 => +0000000007104,90
    S9999999999999V99
    Everything I try, calculating from binary to hex, or anything other, I don't get the result or the last sign and I wonder if there is some function in PL/SQL that I can use to get the result I want?
    Or if you have some idea how to help me to get from "00000000071049é" to "+0000000007104,90" from example above?
    Here are some other examples, just for help:
    000000204592D
    000000183882D
    000000139441C
    000000182979H
    000000083361F
    000000083361F
    000000083361F
    000000059033F
    000000066273E
    000000069011G
    000000102615B
    000000092362F
    000000138215‚
    000000138215‚
    000000138215‚
    000000138215‚
    000000106760C
    000000106760C
    000000106760C
    000000115024A
    000000115024A
    000000115024A
    000000115024A
    000000115024A
    000000088149B
    000000084459I

  • Problem in creating queue in Oracle9i Enterprise Edition Release 9.0.1.0.0

    Hi,
    I am facing a problem in creating queue using DBMS_AQADM.CREATE_QUEUE_TABLE, in Oracle 9i.
    Have given the following command
    DBMS_AQADM.CREATE_QUEUE_TABLE ( queue_table=>'ORA_TRIG_TOPIC_TAB',
    queue_payload_type=> 'SYS.AQ$_JMS_TEXT_MESSAGE',
    storage_clause=>'',
    sort_list=>'',
    multiple_consumers=>TRUE,
    message_grouping=>DBMS_AQADM.NONE,
    comment=>'',
    auto_commit=>TRUE,
    primary_instance=>0,
    secondary_instance=>0,
    compatible=>'8.1',
    NON_REPUDIATION=>0);
    and getting the following error message
    -600 ORA-00600: internal error code, arguments: [kcbgtcr_4], [38910], [0], [1],
    Pls. let me know whether there is any work around is there for creating queues in 9i, having multiple_consumers property

    No it is not so simple. This "le signe est sur l'avant dernier octet" means that the sign is last character in number.
    The sign "é" and "I" are just in my example and they are somehow calculated but I don't know how?
    If I take my example there is field with format S9(13)V99 and with value 00000000071049é (and with last sign "é") and I think the last sign is somehow calculated from number. And then from this value I get the number.
    00000000071049é
    FFFFFFFFFFFFFFC
    000000000710490 => +0000000007104,90
    S9999999999999V99
    Everything I try, calculating from binary to hex, or anything other, I don't get the result or the last sign and I wonder if there is some function in PL/SQL that I can use to get the result I want?
    Or if you have some idea how to help me to get from "00000000071049é" to "+0000000007104,90" from example above?
    Here are some other examples, just for help:
    000000204592D
    000000183882D
    000000139441C
    000000182979H
    000000083361F
    000000083361F
    000000083361F
    000000059033F
    000000066273E
    000000069011G
    000000102615B
    000000092362F
    000000138215‚
    000000138215‚
    000000138215‚
    000000138215‚
    000000106760C
    000000106760C
    000000106760C
    000000115024A
    000000115024A
    000000115024A
    000000115024A
    000000115024A
    000000088149B
    000000084459I

  • A known issue Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit

    Hi, In our java web application we have been seeing an issue for last few months. The sequence is as follows :
    1. we create a record in a table.
    2. at a later point we check through select query if this record is present via app using OCI driver version 9.2.8.0.
    3. intermittently (once in 2 weeks) we see this select query returns zero records instead of expected 1.
    4. in such cases we wait for 10ms and retry on the same connection and we successfully get hold of this record.
    We have upgraded the driver from a lower version (guess it was 9.2.7.0) but no success. Using the retry logic was our suspicion as we couldn't find any fault within application. Anybody who has seen/heard about a similar issue ? or any suggetions ?

    You should search for possible Oracle bugs on My Oracle Support using "wrong result" as keyword. If you are lucky you can find an interim patch. If you are not lucky you should consider upgrading to Oracle 11g (or at least to Oracle 10g). Anyway you should really consider upgrading your database because Oracle 9i is no more fully supported.
    Edited by: P. Forstmann on 14 sept. 2010 13:34

  • SQL slow after upgrading to Oracle Database 10g Enterprise Edition Release

    Hi all:
    We have recently upgraded our database from Oracle9i Enterprise Edition Release 9.2.0.6.0 to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    After that we found that our some sql getting very slow
    for example query with 9i showing result in 4 seconds while in 10g showing result in 28 seconds.
    Following is the execution plan of my query in Oracle9i
    Operation     Object     PARTITION_START     PARTITION_STOP     COST
    SELECT STATEMENT ()                    9458
    NESTED LOOPS ()                    9458
      SORT (UNIQUE)                    
       INDEX (RANGE SCAN)     BL_EQ_PK_N               2
      VIEW ()     CONTAINER_INFO               2
       UNION-ALL (PARTITION)                    
        TABLE ACCESS (BY INDEX ROW     SERVICE_EVENTS               1
         NESTED LOOPS ()                    11
          NESTED LOOPS ()                    10
           NESTED LOOPS (OUTER)                    9
            NESTED LOOPS ()                    8
             NESTED LOOPS ()                    7
              NESTED LOOPS ()                    6
               NESTED LOOPS ()                    5
                NESTED LOOPS ()                    4
                 NESTED LOOPS (OUT                    3
                  TABLE ACCESS (BY     EQUIPMENT_USES               2
                   INDEX (UNIQUE S     EQUSE_PK               1
                  TABLE ACCESS (BY     SHIPPING_LINES               1
                   INDEX (UNIQUE S     LINE_PK               
                 INDEX (UNIQUE SCA     EQHT_PK               
                TABLE ACCESS (BY I     EQUIPMENT_TYPES               1
                 INDEX (UNIQUE SCA     EQTP_PK               
               TABLE ACCESS (BY IN     EQUIPMENT_SIZES               1
                INDEX (UNIQUE SCAN     EQSZ_PK               
              TABLE ACCESS (BY IND     SHIP_VISITS               2
               INDEX (RANGE SCAN)     SVISIT_UK               1
             TABLE ACCESS (BY INDE     SHIPS               1
              INDEX (UNIQUE SCAN)     SHIP_PK               
            TABLE ACCESS (BY INDEX     CARE_VIR_MAP               1
             INDEX (UNIQUE SCAN)     VIR_VESVOY               
           TABLE ACCESS (BY INDEX      EQUIPMENT               1
            INDEX (RANGE SCAN)     EQ_EQUSE_FK               
          INDEX (RANGE SCAN)     SEVENTS_EQUSE_FK_N               
        NESTED LOOPS ()                    7
         NESTED LOOPS ()                    6
          NESTED LOOPS ()                    5
           NESTED LOOPS ()                    4
            NESTED LOOPS (OUTER)                    3
             TABLE ACCESS (BY INDE     EQUIPMENT_USES               2
              INDEX (UNIQUE SCAN)     EQUSE_PK               1
             TABLE ACCESS (BY INDE     SHIPPING_LINES               1
              INDEX (UNIQUE SCAN)     LINE_PK               
            INDEX (UNIQUE SCAN)     EQHT_PK               
           TABLE ACCESS (BY INDEX      EQUIPMENT_TYPES               1
            INDEX (UNIQUE SCAN)     EQTP_PK               
          TABLE ACCESS (BY INDEX R     EQUIPMENT_SIZES               1
           INDEX (UNIQUE SCAN)     EQSZ_PK               
         TABLE ACCESS (BY INDEX RO     EQUIPMENT               1
          INDEX (RANGE SCAN)     EQ_EQUSE_FK               and following is my query plan in Oracle 10g
    Operation     Object     PARTITION_START     PARTITION_STOP     COST
    SELECT STATEMENT ()                    2881202
    NESTED LOOPS ()                    2881202
      SORT (UNIQUE)                    2
       INDEX (RANGE SCAN)     BL_EQ_PK_N               2
      VIEW ()     CONTAINER_INFO               2881199
       UNION-ALL ()                    
        NESTED LOOPS (OUTER)                    2763680
         NESTED LOOPS ()                    2718271
          NESTED LOOPS ()                    2694552
           NESTED LOOPS ()                    2623398
            NESTED LOOPS (OUTER)                    2623380
             NESTED LOOPS ()                    2393965
              NESTED LOOPS ()                    2393949
               NESTED LOOPS ()                    2164536
                NESTED LOOPS ()                    1706647
                 NESTED LOOPS ()                    854120
                  TABLE ACCESS (FU     BL_EQUIPMENT               1515
                  TABLE ACCESS (BY     EQUIPMENT_USES               1
                   INDEX (UNIQUE S     EQUSE_PK               1
                 TABLE ACCESS (BY      EQUIPMENT               1
                  INDEX (RANGE SCA     EQ_EQUSE_FK               1
                TABLE ACCESS (BY I     EQUIPMENT_TYPES               1
                 INDEX (UNIQUE SCA     EQTP_PK               1
               TABLE ACCESS (BY IN     EQUIPMENT_SIZES               1
                INDEX (UNIQUE SCAN     EQSZ_PK               1
              INDEX (UNIQUE SCAN)     EQHT_PK               1
             TABLE ACCESS (BY INDE     SHIPPING_LINES               1
              INDEX (UNIQUE SCAN)     LINE_PK               1
            INDEX (RANGE SCAN)     SEVENTS_TSERV_FK_N               1
           TABLE ACCESS (BY INDEX      SHIP_VISITS               2
            INDEX (RANGE SCAN)     SVISIT_UK               2
          TABLE ACCESS (BY INDEX R     SHIPS               1
           INDEX (UNIQUE SCAN)     SHIP_PK               1
         TABLE ACCESS (BY INDEX RO     CARE_VIR_MAP               2
          INDEX (UNIQUE SCAN)     VIR_VESVOY               1
        NESTED LOOPS (OUTER)                    117519
         NESTED LOOPS ()                    98158
          NESTED LOOPS ()                    78798
           NESTED LOOPS ()                    78795
            NESTED LOOPS ()                    59432
             TABLE ACCESS (FULL)     EQUIPMENT_USES               20788
             TABLE ACCESS (BY INDE     EQUIPMENT_TYPES               1
              INDEX (UNIQUE SCAN)     EQTP_PK               1
            TABLE ACCESS (BY INDEX     EQUIPMENT               1
             INDEX (RANGE SCAN)     EQ_EQUSE_FK               1
           INDEX (UNIQUE SCAN)     EQHT_PK               1
          TABLE ACCESS (BY INDEX R     EQUIPMENT_SIZES               1
           INDEX (UNIQUE SCAN)     EQSZ_PK               1
         TABLE ACCESS (BY INDEX RO     SHIPPING_LINES               1
          INDEX (UNIQUE SCAN)     LINE_PK               1can somebody help me regarding this?
    Thanks
    Hassan

    I would say ..gather stats on 9i/10gfor the required table and indexes , then post the expalin plan.
    --Girish                                                                                                                                                                                                                               

  • UNABLE TO SET parallel_automatic_tuning=TRUE IN Oracle9i Enterprise Edition

    Hi,
    i am trying to set parallel_automatic_tuning=TRUE . but i am unable to set it.
    My oracle version is as below.
    SQL> SELECT * FROM V$VERSION;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    PL/SQL Release 9.2.0.1.0 - Production
    CORE 9.2.0.1.0 Production
    TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
    NLSRTL Version 9.2.0.1.0 - Production
    Please help to resolve this issue.
    thanks
    sivasankar.

    hi i am unable to set the value as true for parallel_automatic_tuning parameter. ,
    SQL> SHOW PARAMETER PARALLEL
    NAME TYPE VALUE
    fast_start_parallel_rollback string LOW
    log_parallelism integer 1
    parallel_adaptive_multi_user boolean TRUE
    parallel_automatic_tuning boolean FALSE
    parallel_execution_message_size integer 2148
    parallel_instance_group string
    parallel_max_servers integer 5
    parallel_min_percent integer 0
    parallel_min_servers integer 0
    parallel_server boolean FALSE
    parallel_server_instances integer 1
    NAME TYPE VALUE
    parallel_threads_per_cpu integer 2
    recovery_parallelism integer 0

  • Oracle9i Enterprise Edition for HP/IA64, Release 2 Install Error

    Help Me!
    Oracle9i Enterprise Edition for HP/IA64, Release 2 (v9.2.0.2)
    Install Error
    OS Version : HPUX 11.23
    Me English is insufficient.
    Until end it reads and week route it wants.
    Me the help is necessary.
    The oracle before establishing, it established the gcc and the binutil first.
    Is the different package necessary?
    Error Message(make.log)
    =============================================================
    /usr/bin/make -f ins_net_client.mk mkldflags ORACLE_HOME=/oracle/app/oracle/product/9.2.0.2
    /usr/bin/make -f ins_net_client.mk ntcontab.o ORACLE_HOME=/oracle/app/oracle/product/9.2.0.2
         (if [ "compile" = "compile" ] ; then \
         /oracle/app/oracle/product/9.2.0.2/bin/gennttab > ntcontab.c ;\
         cc +DD64 -c ntcontab.c ;\
         rm -f /oracle/app/oracle/product/9.2.0.2/lib/ntcontab.o ;\
         mv ntcontab.o /oracle/app/oracle/product/9.2.0.2/lib/ ;\
         /usr/ccs/bin/ar rv /oracle/app/oracle/product/9.2.0.2/lib/libn9.a /oracle/app/oracle/product/9.2.0.2/lib/ntcontab.o ; fi)
    cc: Couldn't open the message catalog: "/opt/ansic/lib/nls/msg/C/cc.cat".
    r - /oracle/app/oracle/product/9.2.0.2/lib/ntcontab.o
    ar: file ntcontab.o is built with mismatched data abi
    Stop.
    *** Error exit code 1
    /usr/bin/make -f ins_net_client.mk ntcontab.o ORACLE_HOME=/oracle/app/oracle/product/9.2.0.2
         (if [ "compile" = "compile" ] ; then \
         /oracle/app/oracle/product/9.2.0.2/bin/gennttab > ntcontab.c ;\
         cc +DD64 -c ntcontab.c ;\
         rm -f /oracle/app/oracle/product/9.2.0.2/lib/ntcontab.o ;\
         mv ntcontab.o /oracle/app/oracle/product/9.2.0.2/lib/ ;\
         /usr/ccs/bin/ar rv /oracle/app/oracle/product/9.2.0.2/lib/libn9.a /oracle/app/oracle/product/9.2.0.2/lib/ntcontab.o ; fi)
    cc: Couldn't open the message catalog: "/opt/ansic/lib/nls/msg/C/cc.cat".
    r - /oracle/app/oracle/product/9.2.0.2/lib/ntcontab.o
    ar: file ntcontab.o is built with mismatched data abi
    *** Error exit code 1
    Stop.
    /usr/bin/make -f ins_net_client.mk nnfgt.o ORACLE_HOME =/oracle/app/oracle/product/9.2.0.2
         (if [ "compile" = "compile" ] ; then \
         /oracle/app/oracle/product/9.2.0.2/bin/gennfgt > nnfgt.c ;\
         cc +DD64 -c nnfgt.c ;\
         rm -f /oracle/app/oracle/product/9.2.0.2/lib/nnfgt.o ;\
         mv nnfgt.o /oracle/app/oracle/product/9.2.0.2/lib/ ;\
         /usr/ccs/bin/ar rv /oracle/app/oracle/product/9.2.0.2/lib/libn9.a /oracle/app/oracle/product/9.2.0.2/lib/nnfgt.o ; fi)
    cc: Couldn't open the message catalog: "/opt/ansic/lib/nls/msg/C/cc.cat".
    ar: file nnfgt.o is built with mismatched data abi
    r - /oracle/app/oracle/product/9.2.0.2/lib/nnfgt.o
    *** Error exit code 1
    =============================================================
    Error Message(InstallActions.log)
    =============================================================
    Exception String: Error in invoking target ntcontab.o of makefile /oracle/app/oracle/product/9.2.0.2/network/lib/ins_net_client.mk
    Exception Severity: 1
    Exception handling set to prompt user with options to RETRY IGNORE
    User choice : Retry
    Exception thrown from action: make
    Exception Name: MakefileException
    Exception String: Error in invoking target ntcontab.o of makefile /oracle/app/oracle/product/9.2.0.2/network/lib/ins_net_client.mk
    Exception Severity: 1
    Exception handling set to prompt user with options to RETRY IGNORE
    =============================================================

    Hi,
    I had installed Oracle 9.2 on HP-UX 11i and the configuration assistants failed to start and it showed me the same errors. Can you tell me how did u solve u r problem.
    Thanks
    Satish

  • Removing Oracle Database Enterprise Edition Release 11.2.2.0 on linux 5

    I have installed Pre-Built Developer-VM (for Oracle VM VirtualBox) named Database App Development VM, including Oracle Database 11g Release 2 Enterprise Edition.
    VirtualBox VMs for Developers&lt;/title&gt;&lt;meta name=&quot;Title&quot; content=&quot;VirtualBox VMs for Developers&q…
    I would like to remove Oracle Database Enterprise Edition Release 11.2.2.0 on linux 5, but I am getting the error "command not found".
    [oracle@localhost ~]$ cd $ORACLE_HOME
    [oracle@localhost dbhome_2]$ cd deinstall
    [oracle@localhost deinstall]$ ls -ltr
    -rwxr-xr-x 1 oracle oracle 32343 Dec 16  2009 sshUserSetup.sh
    -rw-r--r-- 1 oracle oracle 489   Nov 16  2009 readme.txt
    -rw-r--r-- 1 oracle oracle 3466  Mar 19  2010 deinstall.xml
    -rwxr-xr-x 1 oracle oracle 9369  Jun 10  2010 bootstrap.pl
    -rwxr-xr-x 1 oracle oracle 14776 Jul 15  2010 deinstall.pl
    drwxr-xr-x 2 oracle oracle 4096  Oct  2  2010 response
    drwxr-xr-x 2 oracle oracle 4096  Oct  2  2010 jlib
    -rwxr-xr-x 1 oracle oracle 8474  Oct  2  2010 deinstall
    [oracle@localhost deinstall]$ ./deinstall
    Checking for required files and bootstrapping ...
    Please wait ...
    ./deinstall: line 217: ERROR:: command not found
    Does anybody have an idea?

    Hello Asif,
    I opened deinstall.pl with vi and jumped to line 217. There is nothing in line 217. Its the end of file. In line 216 is the following command:
    $TOOL_DIR/perl/bin/perl $TOOL_DIR/deinstall.pl $HOME_VER $TEMP_LOC $TOOL_DIR $ARCHITECTURE_FLAG $TOOL_ARGS
    I cannot find the problem.
    deinstall.pl
    # $Header: install/utl/scripts/db/deinstall /main/3 2010/05/28 20:12:57 ssampath Exp $
    # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
    #    NAME
    #      deinstall - wrapper script that calls deinstall tool.
    #    DESCRIPTION
    #      This script will set all the necessary variables and call the tools
    #      entry point.
    #    NOTES
    #      <other useful comments, qualifications, etc.>
    #    MODIFIED   (MM/DD/YY)
    #    mwidjaja    04/29/10 - XbranchMerge mwidjaja_bug-9579184 from
    #                           st_install_11.2.0.1.0
    #    mwidjaja    04/15/10 - Added SHLIB_PATH for HP-PARISC
    #    mwidjaja    01/14/10 - XbranchMerge mwidjaja_bug-9269768 from
    #                           st_install_11.2.0.1.0
    #    mwidjaja    01/14/10 - Fix help message for params
    #    ssampath    12/24/09 - Fix for bug 9227535. Remove legacy version_check
    #                           function
    #    ssampath    12/01/09 - XbranchMerge ssampath_bug-9167533 from
    #                           st_install_11.2.0.1.0
    #    ssampath    11/30/09 - Set umask to 022.
    #    prsubram    10/12/09 - XbranchMerge prsubram_bug-9005648 from main
    #    prsubram    10/08/09 - Compute ARCHITECTURE_FLAG in the script
    #    prsubram    09/15/09 - Setting LIBPATH for AIX
    #    prsubram    09/10/09 - Add AIX specific code check java version
    #    prsubram    09/10/09 - Change TOOL_DIR to BOOTSTRAP_DIR in java cmd
    #                           invocation of bug#8874160
    #    prsubram    09/08/09 - Change the default shell to /usr/xpg4/bin/sh on
    #                           SunOS
    #    prsubram    09/03/09 - Removing -d64 for client32 homes for the bug8859294
    #    prsubram    06/22/09 - Resolve port specific id cmd issue
    #    ssampath    06/02/09 - Fix for bug 8566942
    #    ssampath    05/19/09 - Move removal of /tmp/deinstall<timestamp> to java
    #                           code.
    #    prsubram    04/30/09 - Fix for the bug#8474891
    #    mwidjaja    04/29/09 - Added user check between the user running the
    #                           script and inventory owner
    #    ssampath    04/29/09 - Changes to make error message better when deinstall
    #                           tool is invoked from inside ORACLE_HOME and -home
    #                           is passed.
    #    ssampath    04/15/09 - Fix for bug 8414555
    #    prsubram    04/09/09 - LD_LIBRARY_PATH is ported for sol,hp-ux & aix
    #    mwidjaja    03/26/09 - Disallow -home for running from OH
    #    ssampath    03/24/09 - Fix for bug 8339519
    #    wyou        02/25/09 - restructure the ohome check
    #    wyou        02/25/09 - change the error msg for directory existance check
    #    wyou        02/12/09 - add directory existance check
    #    wyou        02/09/09 - add the check for the writablity for the oracle
    #                           home passed-in
    #    ssampath    01/21/09 - Add oui/lib to LD_LIBRARY_PATH
    #    poosrini    01/07/09 - LOG related changes
    #    ssampath    11/24/08 - Create /main/osds/unix branch
    #    dchriste    10/30/08 - eliminate non-generic tools like 'cut'
    #    ssampath    08/18/08 - Pickup srvm.jar from JLIB directory.
    #    ssampath    07/30/08 - Add http_client.jar and OraCheckpoint.jar to
    #                           CLASSPATH
    #    ssampath    07/08/08 - assistantsCommon.jar and netca.jar location has
    #                           changed.
    #    ssampath    04/11/08 - If invoking the tool from installed home, JRE_HOME
    #                           should be set to $OH/jdk/jre.
    #    ssampath    04/09/08 - Add logic to instantiate ORA_CRS_HOME, JAVA_HOME
    #                           etc.,
    #    ssampath    04/03/08 - Pick up ldapjclnt11.jar
    #    idai        04/03/08 - remove assistantsdc.jar and netcadc.jar
    #    bktripat    02/23/07 -
    #    khsingh     07/18/06 - add osdbagrp fix
    #    khsingh     07/07/06 - fix regression
    #    khsingh     06/20/06 - fix bug 5228203
    #    bktripat    06/12/06 - Fix for bug 5246802
    #    bktripat    05/08/06 -
    #    khsingh     05/08/06 - fix tool to run from any parent directory
    #    khsingh     05/08/06 - fix LD_LIBRARY_PATH to have abs. path
    #    ssampath    05/01/06 - Fix for bug 5198219
    #    bktripat    04/21/06 - Fix for bug 5074246
    #    khsingh     04/11/06 - fix bug 5151658
    #    khsingh     04/08/06 - Add WA for bugs 5006414 & 5093832
    #    bktripat    02/08/06 - Fix for bug 5024086 & 5024061
    #    bktripat    01/24/06 -
    #    mstalin     01/23/06 - Add lib to pick libOsUtils.so
    #    bktripat    01/19/06 - adding library changes
    #    rahgupta    01/19/06 -
    #    bktripat    01/19/06 -
    #    mstalin     01/17/06 - Modify the assistants deconfig jar file name
    #    rahgupta    01/17/06 - updating emcp classpath
    #    khsingh     01/17/06 - export ORACLE_HOME
    #    khsingh     01/17/06 - fix for CRS deconfig.
    #    hying       01/17/06 - netcadc.jar
    #    bktripat    01/16/06 -
    #    ssampath    01/16/06 -
    #    bktripat    01/11/06 -
    #    clo         01/10/06 - add EMCP entries
    #    hying       01/10/06 - netcaDeconfig.jar
    #    mstalin     01/09/06 - Add OraPrereqChecks.jar
    #    mstalin     01/09/06 -
    #    khsingh     01/09/06 -
    #    mstalin     01/09/06 - Add additional jars for assistants
    #    ssampath    01/09/06 - removing parseOracleHome temporarily
    #    ssampath    01/09/06 -
    #    khsingh     01/08/06 - fix for CRS deconfig
    #    ssampath    12/08/05 - added java version check
    #    ssampath    12/08/05 - initial run,minor bugs fixed
    #    ssampath    12/07/05 - Creation
    #MACROS
    if [ -z "$UNAME" ]; then UNAME="/bin/uname"; fi
    if [ -z "$ECHO" ]; then ECHO="/bin/echo"; fi
    if [ -z "$AWK" ]; then AWK="/bin/awk"; fi
    if [ -z "$ID" ]; then ID="/usr/bin/id"; fi
    if [ -z "$DIRNAME" ]; then DIRNAME="/usr/bin/dirname"; fi
    if [ -z "$FILE" ]; then FILE="/usr/bin/file"; fi
    if [ "`$UNAME`" = "SunOS" ]
    then
        if [ -z "${_xpg4ShAvbl_deconfig}" ]
        then
            _xpg4ShAvbl_deconfig=1
            export _xpg4ShAvbl_deconfig
            /usr/xpg4/bin/sh $0 "$@"
            exit $?
        fi
            AWK="/usr/xpg4/bin/awk"
    fi
    # Set umask to 022 always.
    umask 022
    INSTALLED_VERSION_FLAG=true
    ARCHITECTURE_FLAG=32
    TOOL_ARGS=$* # initialize this always.
    # Since the OTN and the installed version of the tool is same, only way to
    # differentiate is through the instantated variable ORA_CRS_HOME.  If it is
    # NOT instantiated, then the tool is a downloaded version.
    # Set HOME_VER to true based on the value of $INSTALLED_VERSION_FLAG
    if [ x"$INSTALLED_VERSION_FLAG" = x"true" ]
    then
       ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
       HOME_VER=1     # HOME_VER
       TOOL_ARGS="$ORACLE_HOME $TOOL_ARGS"
    else
       HOME_VER=0
    fi
    # Save current working directory
    CURR_DIR=`pwd`
    # If CURR_DIR is different from TOOL_DIR get that location and cd into it.
    TOOL_REL_PATH=`$DIRNAME $0`
    cd $TOOL_REL_PATH
    DOT=`$ECHO $TOOL_REL_PATH | $AWK -F'/' '{ print $1}'`
    if [ "$DOT" = "." ];
    then
      TOOL_DIR=$CURR_DIR/$TOOL_REL_PATH
    elif [ `expr "$DOT" : '.*'` -gt 0 ];
    then
      TOOL_DIR=$CURR_DIR/$TOOL_REL_PATH
    else
      TOOL_DIR=$TOOL_REL_PATH
    fi
    # Check if this script is run as root.  If so, then error out.
    # This is fix for bug 5024086.
    RUID=`$ID|$AWK -F\( '{print $2}'|$AWK -F\) '{print $1}'`
    if [ ${RUID} = "root" ];then
    $ECHO "You must not be logged in as root to run $0."
    $ECHO "Log in as Oracle user and rerun $0."
    exit $ROOT_USER
    fi
    # DEFINE FUNCTIONS BELOW
    computeArchFlag() {
       TOOL_HOME=$1
       case `$UNAME` in
          HP-UX)
             if [ "`/usr/bin/file $TOOL_HOME/bin/kfod | $AWK -F\: '{print $2}' | $AWK -F\- '{print $2}' | $AWK '{print $1}'`" = "64" ];then
                ARCHITECTURE_FLAG="-d64"
             fi
          AIX)
             if [ "`/usr/bin/file $TOOL_HOME/bin/kfod | $AWK -F\: '{print $2}' | $AWK '{print $1}' | $AWK -F\- '{print $1}'`" = "64" ];then
                ARCHITECTURE_FLAG="-d64"
             fi
             if [ "`/usr/bin/file $TOOL_HOME/bin/kfod | $AWK -F\: '{print $2}' | $AWK '{print $2}' | $AWK -F\- '{print $1}'`" = "64" ];then
                  ARCHITECTURE_FLAG="-d64"
             fi
       esac
    if [ $HOME_VER = 1 ];
    then
       $ECHO "Checking for required files and bootstrapping ..."
       $ECHO "Please wait ..."
       TEMP_LOC=`$ORACLE_HOME/perl/bin/perl $ORACLE_HOME/deinstall/bootstrap.pl $HOME_VER $TOOL_ARGS`
       TOOL_DIR=$TEMP_LOC
    else
       TEMP_LOC=`$TOOL_DIR/perl/bin/perl $TOOL_DIR/bootstrap.pl $HOME_VER $TOOL_ARGS`
    fi
    computeArchFlag $TOOL_DIR
    $TOOL_DIR/perl/bin/perl $TOOL_DIR/deinstall.pl $HOME_VER $TEMP_LOC $TOOL_DIR $ARCHITECTURE_FLAG $TOOL_ARGS
    Best regards

Maybe you are looking for

  • How can I delete a file from Adobe Acrobat Reader DC?

    How can I delete a file from Adobe Acrobat Reader DC?

  • Is it possible to install Adobe Web Premium CS5.5 on a Windows 8?

    I have purchased Adobe Web Premium CS5.5 as a Student version. Currently I run it on a Windows 7 PC. I want to buy a new notebook and wonder whether it is possible to install my Adobe Web Premium CS 5.5 on a Windows 8 PC? Alternatively, is it possibl

  • Network controller for hp probook 4430 win 7 64bit

    Hello I'm feeling really stupid right now, but I can't seem to find the right driver for my network controller , if I download the network controller will it allow my wireless to come up long enough for windows to download the rest of the drivers I n

  • Spot Healing Brush NOT working...

    Has anybody run into this? The spot healing brush is NOT working. I am starting over on a picture I already edited, using this tool a lot (to remove weird reflections, facial flaws, etc. I "reset all tools" to see if that would help and it isn't. I t

  • Artificial Neural Network: NaN from a calculation

    Hi everyone, I'm programming a small pattern recognition neural network at the moment but have ran into a small snag. I'm recieving a NaN result from a calculation and I don't know why.     void calculateOutput()         double preSigmoidOutput = 0d;