VALIDATE_GEOMETRY_WITH_CONTEXT  Worked in 10g not in 11gR2 Database

Within our application, the following call to SDO_VALIDATE_GEOMETRY_Context worked in our 10g database.
Select SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(MDSYS.SDO_GEOMETRY(3001,8307, MDSYS.SDO_POINT_TYPE( 066.00000000, -34.00000000,-28.655),NULL,NULL), MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X',-180,180,5E-8),MDSYS.SDO_DIM_ELEMENT('Y',-90,90,5E-8),MDSYS.SDO_DIM_ELEMENT('Z',-999999,999999,5E-8))) from dual
But when the 11GR2 database was stood up against the application, it caused an ORA 54668. We would like the application to be 10g as well as 11GR2 compatable, so any suggestions would be gladly appreciated.
Thanks in advance
VB

Hi Boatenv.
You can read the following.
select sdo_geom.validate_geometry_with_context(MDSYS.SDO_GEOMETRY(2002, NULL, NULL,
MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1), MDSYS.SDO_ORDINATE_ARRAY(50.0, 15.0, 55.0, 15.0, 55.0, 15.0, 15.0, 60.0)),0.005) as contextError
from dual;
CONTEXTERROR
13356 [Element <1>] [Coordinate <2>]
-- Multiple duplicates in single linestring
select sdo_geom.validate_geometry_with_context(MDSYS.SDO_GEOMETRY(2002, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),
MDSYS.SDO_ORDINATE_ARRAY(50.0, 15.0, 55.0, 15.0, 55.0, 15.0, 55.0, 15.0, 60.0, 15.0)),0.005) as contextError
from dual;
CONTEXTERROR
13356 [Element <1>] [Coordinate <2>]
-- Two duplicates in first element, single duplicate in second of multilinestring
select sdo_geom.validate_geometry_with_context(MDSYS.SDO_GEOMETRY(2006, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1,7,2,1),
MDSYS.SDO_ORDINATE_ARRAY(50.0, 15.0, 55.0, 15.0, 55.0, 15.0, 60.0, 15.0, 60.0, 15.0, 65.0, 15.0)),0.005) as contextError
from dual;
CONTEXTERROR
13356 [Element <1>] [Coordinate <2>]
-- No duplicates in first element, single duplicate in second of multilinestring
select sdo_geom.validate_geometry_with_context(MDSYS.SDO_GEOMETRY(2006, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1,5,2,1),
MDSYS.SDO_ORDINATE_ARRAY(50.0, 15.0, 55.0, 15.0, 60.0, 15.0, 60.0, 15.0, 65.0, 15.0)),0.005) as contextError
from dual;
CONTEXTERROR
13356 [Element <2>] [Coordinate <1>]
-- Triple duplicate in first element, single duplicate in second of multilinestring
select sdo_geom.validate_geometry_with_context(MDSYS.SDO_GEOMETRY(2006, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1,9,2,1),
MDSYS.SDO_ORDINATE_ARRAY(50.0, 15.0, 55.0, 15.0, 55.0, 15.0, 55.0, 15.0, 60.0, 15.0, 60.0, 15.0, 65.0, 15.0)),0.005) as contextError
from dual;
CONTEXTERROR
13356 [Element <1>] [Coordinate <2>]
I would have expected that all duplicate points would have been reported.
Oracle should fix this, of course, but in the meantime, if I get time, I will write a function that reports all duplicate points.
I hope this is of help to someone.
and the following url
Oracle 11 sdo_geom.validate_geometry_with_context ERROR
Please let me know if this solved your problem.
Regards,

Similar Messages

  • DBMS_SPACE works in 10g not in 11g

    Hi,
    I have a code that uses DBMS_SPACE that works in Oracle 10g but not in 11g.
    Any clarification is appreciated.
    SQL> select * from v$version ;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL>
      1  declare
      2   -- IN vars
      3   v_segment_owner VARCHAR2(100):='HR';
      4   v_segment_name VARCHAR2(100) :='NAMES';
      5   v_segment_type VARCHAR2(100) :='TABLE';
      6   v_partition_name VARCHAR2(100) :=null;
      7   -- OUT vars
      8   v_unformatted_blocks   NUMBER;
      9   v_unformatted_bytes   NUMBER;
    10   v_fs1_blocks   NUMBER;
    11   v_fs1_bytes   NUMBER;
    12   v_fs2_blocks   NUMBER;
    13   v_fs2_bytes   NUMBER;
    14   v_fs3_blocks   NUMBER;
    15   v_fs3_bytes   NUMBER;
    16   v_fs4_blocks   NUMBER;
    17   v_fs4_bytes   NUMBER;
    18   v_full_blocks   NUMBER;
    19   v_full_bytes   NUMBER;
    20   v_segment_size_blocks NUMBER;
    21   v_segment_size_bytes NUMBER;
    22   v_used_blocks NUMBER;
    23   v_used_bytes NUMBER;
    24   v_expired_blocks NUMBER;
    25   v_expired_bytes NUMBER;
    26   v_unexpired_blocks NUMBER;
    27   v_unexpired_bytes NUMBER;
    28  begin
    29  DBMS_SPACE.SPACE_USAGE(
    30   segment_owner => v_segment_owner ,
    31   segment_name => v_segment_name ,
    32   segment_type => v_segment_type ,
    33   unformatted_blocks => v_unformatted_blocks ,
    34   unformatted_bytes => v_unformatted_bytes ,
    35   fs1_blocks => v_fs1_blocks  ,
    36   fs1_bytes => v_fs1_bytes ,
    37   fs2_blocks => v_fs2_blocks ,
    38   fs2_bytes => v_fs2_bytes ,
    39   fs3_blocks => v_fs3_blocks ,
    40   fs3_bytes => v_fs3_bytes ,
    41   fs4_blocks => v_fs4_blocks ,
    42   fs4_bytes => v_fs4_bytes ,
    43   full_blocks => v_full_blocks ,
    44   full_bytes => v_full_bytes ,
    45   partition_name => v_partition_name  );
    46* end;
    SQL> /
    declare
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_SPACE", line 190
    ORA-06512: at line 29
    SQL> show user
    USER is "SYS"
    SQL> select * from v$version ;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL> declare
      2   -- IN vars
      3   v_segment_owner VARCHAR2(100):='HR';
      4   v_segment_name VARCHAR2(100) :='NAMES';
      5   v_segment_type VARCHAR2(100) :='TABLE';
      6   v_partition_name VARCHAR2(100) :=null;
      7 
      8   -- OUT vars
      9   v_unformatted_blocks   NUMBER;
    10   v_unformatted_bytes   NUMBER;
    11   v_fs1_blocks   NUMBER;
    12   v_fs1_bytes   NUMBER;
    13   v_fs2_blocks   NUMBER;
    14   v_fs2_bytes   NUMBER;
    15   v_fs3_blocks   NUMBER;
    16   v_fs3_bytes   NUMBER;
    17   v_fs4_blocks   NUMBER;
    18   v_fs4_bytes   NUMBER;
    19   v_full_blocks   NUMBER;
    20   v_full_bytes   NUMBER;
    21   v_segment_size_blocks NUMBER;
    22   v_segment_size_bytes NUMBER;
    23   v_used_blocks NUMBER;
    24   v_used_bytes NUMBER;
    25   v_expired_blocks NUMBER;
    26   v_expired_bytes NUMBER;
    27   v_unexpired_blocks NUMBER;
    28   v_unexpired_bytes NUMBER;
    29  begin
    30  DBMS_SPACE.SPACE_USAGE(
    31   segment_owner => v_segment_owner ,
    32   segment_name => v_segment_name ,
    33   segment_type => v_segment_type ,
    34   unformatted_blocks => v_unformatted_blocks ,
    35   unformatted_bytes => v_unformatted_bytes ,
    36   fs1_blocks => v_fs1_blocks  ,
    37   fs1_bytes => v_fs1_bytes ,
    38   fs2_blocks => v_fs2_blocks ,
    39   fs2_bytes => v_fs2_bytes ,
    40   fs3_blocks => v_fs3_blocks ,
    41   fs3_bytes => v_fs3_bytes ,
    42   fs4_blocks => v_fs4_blocks ,
    43   fs4_bytes => v_fs4_bytes ,
    44   full_blocks => v_full_blocks ,
    45   full_bytes => v_full_bytes ,
    46   partition_name => v_partition_name  );
    47  end;
    48  /
    PL/SQL procedure successfully completed.
    SQL> show user
    USER is "SYS"

    You make feel embarressed!!
    You are right.. the table wasn't there. I was connecting to the wrong database.
    Sorry for that.

  • Transform method works in 10g, not in 11g !?

    Hello,
    I've some trouble with transform method in Oracle 11g !
    I'va built a special test case to illustrate that.
    Here it is (PL/SQL) :
    DECLARE
       data_xml   XMLTYPE;
       data_xsl   XMLTYPE;
       data_out   XMLTYPE;
    BEGIN
       data_xsl :=
          XMLTYPE
             ('<?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
        xmlns:idfx="http://www.socgen.com/idfx/pivot" xmlns="urn:swift:saa:xsd:saa.2.0">
        <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
        <xsl:variable name="SenderDN">ou=opc,ou=ppe,o=pipofrpp,o=swift</xsl:variable>
        <xsl:variable name="SenderBIC11">PIPOFRPPXXX</xsl:variable>
        <xsl:template match="/*">
            <DataPDU xmlns="urn:swift:saa:xsd:saa.2.0">
                <Header>
                    <Message>
                        <SenderReference>
                            <xsl:value-of select="idfx:infos/idfx:reference_tech"/>
                        </SenderReference>
                        <MessageIdentifier>
                            <xsl:value-of select="idfx:routage/idfx:feuille/idfx:MessageIdentifier"/>
                        </MessageIdentifier>
                        <Format>MX</Format>
                        <Sender>
                            <DN>
                                <xsl:value-of select="$SenderDN"/>
                            </DN>
                            <FullName>
                                <X1>
                                    <xsl:value-of select="$SenderBIC11"/>
                                </X1>
                            </FullName>
                        </Sender>
                        <xsl:apply-templates select="idfx:routage/idfx:feuille/idfx:Receiver"/>
                        <InterfaceInfo>
                            <UserReference>
                                <xsl:value-of select="idfx:infos/idfx:reference_tech"/>
                            </UserReference>
                        </InterfaceInfo>
                        <NetworkInfo>
                            <Priority>
                                <xsl:value-of select="idfx:routage/idfx:feuille/idfx:Priority"/>
                            </Priority>
                            <Service>
                                <xsl:value-of select="idfx:routage/idfx:feuille/idfx:Service"/>
                            </Service>
                        </NetworkInfo>
                    </Message>
                </Header>
                <Body>
                    <AppHdr xmlns="urn:swift:xsd:$ahV10">
                        <MsgRef>
                            <xsl:value-of select="./idfx:infos/idfx:reference_tech"/>
                        </MsgRef>
                        <CrDate>
                            <xsl:value-of select="./idfx:infos/idfx:generated"/>
                        </CrDate>
                    </AppHdr>
                </Body>
            </DataPDU>
        </xsl:template>
        <xsl:template match="idfx:Receiver">
            <xsl:variable name="ReceiverDN-BIC11">
                <xsl:choose>
                    <xsl:when test="(. = ''PIPOFRP0OPC'') or (. = ''PIPOFRPPOPC'')">
                        <xsl:text>ou=opc,ou=ppe,o=pipofrpp,o=swift</xsl:text>
                        <xsl:text>|</xsl:text>
                        <xsl:text>PIPOFRPPXXX</xsl:text>
                    </xsl:when>
                    <xsl:when test="substring(., 1, 8) = ''DUDUFRP0''">
                        <xsl:text>ou=funds,ou=tandt,o=dudufrpp,o=swift</xsl:text>
                        <xsl:text>|</xsl:text>
                        <xsl:text>DUDUFRPPXXX</xsl:text>
                    </xsl:when>
                    <xsl:when test="substring(., 1, 8) = ''DUDUFRPP''">
                        <xsl:text>ou=funds,ou=live,o=dudufrpp,o=swift</xsl:text>
                        <xsl:text>|</xsl:text>
                        <xsl:text>DUDUFRPPXXX</xsl:text>
                    </xsl:when>
                    <xsl:otherwise>
                        <xsl:text>o=</xsl:text>
                        <xsl:value-of
                            select="translate(substring(., 1, 8), ''ABCDEFGHIJKLMNOPQRSTUVWXYZ'',
              ''abcdefghijklmnopqrstuvwxyz'')"/>
                        <xsl:text>,o=swift</xsl:text>
                        <xsl:text>|</xsl:text>
                        <xsl:value-of select="substring(., 1, 8)"/>
                        <xsl:text>XXX</xsl:text>
                    </xsl:otherwise>
                </xsl:choose>
            </xsl:variable>
            <Receiver>
                <DN>
                    <xsl:value-of select="substring-before($ReceiverDN-BIC11, ''|'')"/>
                </DN>
                <FullName>
                    <X1>
                        <xsl:value-of select="substring-after($ReceiverDN-BIC11, ''|'')"/>
                    </X1>
                </FullName>
            </Receiver>
        </xsl:template>
    </xsl:stylesheet>'
       data_xml :=
          XMLTYPE
             ('<?xml version="1.0" encoding="ISO-8859-1"?>
    <SOCFC xmlns="http://www.socgen.com/idfx/pivot">
      <infos>
        <generated>2010-07-01T14:04:27</generated>
        <reference_tech>IDFX20100701E000015</reference_tech>
      </infos>
      <RECEDEP>DUDUFRP0FDA</RECEDEP>
      <SENDERM>OPC</SENDERM>
      <REFSEND>5100163024</REFSEND>
      <INDPREA>N</INDPREA>
      <REFINTE>0010000934956</REFINTE>
      <CENTRDT>20090909</CENTRDT>
      <VALORDT>20090909</VALORDT>
      <STTLMDT>00000000</STTLMDT>
      <VLIQDEV>EUR</VLIQDEV>
      <VLIQMNT>4.4550</VLIQMNT>
      <PLATRAD>FR</PLATRAD>
      <TYPSORA>SOU</TYPSORA>
      <SEAMDEV>EUR</SEAMDEV>
      <TYPCOMM>STD</TYPCOMM>
      <BUYRBIC>PIPOFRP0EDE</BUYRBIC>
      <BUYRLB1 />
      <SELLBIC>PIPOFRPPOPC</SELLBIC>
      <SELLLB1 />
      <INVEBIC />
      <INVELB1 />
      <IDCTCOM />
      <QUANTFI>39.705</QUANTFI>
      <IFICODI>QS0012909854</IFICODI>
      <IFILIBE>FLOFLUZE SECURITE 207 FCPE....</IFILIBE>
      <CODAFFD>00000000</CODAFFD>
      <CODAFFR>00000000</CODAFFR>
      <ADHEOFD>00000</ADHEOFD>
      <ADHEOFR>00000</ADHEOFR>
      <PSETQUA>SICVFRPPXXX</PSETQUA>
      <DEALAMO>176.89</DEALAMO>
      <SEAMMNT>187.50</SEAMMNT>
      <MTTCOMM>10.61</MTTCOMM>
      <MTTBAKL>1.77</MTTBAKL>
      <MTTENTF />
      <VALUEDT>20090909</VALUEDT>
      <IDCPTIT>301230568900080788952</IDCPTIT>
      <TYPORDR />
      <routage>
        <feuille name="SOCFC_setr.012.001.03_standard">
          <Destinataire>SNAP</Destinataire>
          <MessageIdentifier>setr.012.001.03</MessageIdentifier>
          <Receiver>DUDUFRP0FDA</Receiver>
          <Priority>Normal</Priority>
          <IsNotificationRequested>false</IsNotificationRequested>
          <Service>swift.if.ia!p</Service>
        </feuille>
      </routage>
    </SOCFC>'
       SELECT data_xml.transform (data_xsl)
         INTO data_out
         FROM DUAL d;
       DBMS_OUTPUT.put_line (data_out.getstringval ());
    END;This script succeeds with 10g and fails with 11g.
    Does someone can help me ?
    Thanks.

    I tried with Saxon9 and it also generates the correct output (added exclude-result-prefixes="idfx" as well in the stylesheet) :
    C:\TEMP\XSLT>java -jar saxon9he.jar -s:test_otn.xml -xsl:test_otn.xsl -versionmsg:off
    <?xml version="1.0" encoding="UTF-8"?>
    <DataPDU xmlns="urn:swift:saa:xsd:saa.2.0">
       <Header>
          <Message>
             <SenderReference>IDFX20100701E000015</SenderReference>
             <MessageIdentifier>setr.012.001.03</MessageIdentifier>
             <Format>MX</Format>
             <Sender>
                <DN>ou=opc,ou=ppe,o=pipofrpp,o=swift</DN>
                <FullName>
                   <X1>PIPOFRPPXXX</X1>
                </FullName>
             </Sender>
             <Receiver>
                <DN>ou=funds,ou=tandt,o=dudufrpp,o=swift</DN>
                <FullName>
                   <X1>DUDUFRPPXXX</X1>
                </FullName>
             </Receiver>
             <InterfaceInfo>
                <UserReference>IDFX20100701E000015</UserReference>
             </InterfaceInfo>
             <NetworkInfo>
                <Priority>Normal</Priority>
                <Service>swift.if.ia!p</Service>
             </NetworkInfo>
          </Message>
       </Header>
       <Body>
          <AppHdr xmlns="urn:swift:xsd:$ahV10">
             <MsgRef>IDFX20100701E000015</MsgRef>
             <CrDate>2010-07-01T14:04:27</CrDate>
          </AppHdr>
       </Body>
    </DataPDU>As for the 11.2 issue, it seems that it's complaining about this part in the xsl :
    <AppHdr xmlns="urn:swift:xsd:$ahV10">Apparently, it can't deal with a second default namespace on a child element.

  • Conditional formatting in the chart  does not work after 10g to 11g upgrade

    W e have upgraded from 10g to 11.1.1.6.8 recently. For all the reports conditional formatting for charts is not working for us which used to work in 10g.
    While researching , i have found that advanced xml needs to be modified. So i changed xml where there is 'untypedLiteral' to 'decimal' and saved the report. Inspite of saving , xml wouldnt change . It still shows as untypedLiteral.
    I also tried to delete the conditional format and recreate again. But still it wouldn't work.
    Please advise.

    W e have upgraded from 10g to 11.1.1.6.8 recently. For all the reports conditional formatting for charts is not working for us which used to work in 10g.
    While researching , i have found that advanced xml needs to be modified. So i changed xml where there is 'untypedLiteral' to 'decimal' and saved the report. Inspite of saving , xml wouldnt change . It still shows as untypedLiteral.
    I also tried to delete the conditional format and recreate again. But still it wouldn't work.
    Please advise.

  • Why i can't not create new database in oracle 10g express

    why i can't not create new database in oracle 10g express?
    should i use oracle 11g standard edition?
    thanks

    In Oracle a schema is what a 'database' is in Sqlserver.
    And if you would have been aware about the limitations of XE, you would have known you can only create *1* (one) database using Oracle XE.
    However, probably you don't need a new database at all, and a schema will suffice.
    Sybrand Bakker
    Senior Oracle DBA

  • Could not see oracle database homepage in oracle 10g version

    hi ,
    i am trying to open database home page option of oracle 10g software, but could not do it.
    i have started the services ORACLEXETNS listener,oracle service XE, and could not see the database home page.
    i am new to oracle 10g,
    i am getting the error 'page cannot be displayed' .
    could some one help me regarding this.

    Are you taking about enterprise manager .Type a correct address in address bar to run web base enterprise manager.you can check whether enterprise manager is running or not by using command >emctl status dbconsole .Or you have some other issue.please write if there is any error.
    Regards

  • 11gR2 Install Error, Listener is not up or database service is not registered with it

    Hi all,
    I'm currently studying towards my OCA, I've passed 1z0-051 (SQL Fundementals I), and now I'm moving onto 1z0-052 (Admin 1).
    Im really having trouble creating a database in Oracle 11g R2 Enterprise Edition. I install the software no problem. Then I create a database, and during the creation I have to createsa listener which uses TCP (default port:1521) and IPC. whilst creating the database I get the following error
    'Listener is not up or database service is not registered with it. Start the Listener and register database service and run EM configuration Assistant again.'
    Now, before you lynch me, I have searched this forum for answer to this for a day and a half. I've also tried google, i just can't find a answer that sorts out my problem. please assist me.
    I'm running on Windows 7 Professional (32bit) (I have previously tried on the 64 bit version with teh same results).
    Here's teh contents of my listener.ora file:
    # listener.ora Network Configuration File: C:\app\Damien\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\app\Damien\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:C:\app\Damien\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = ipc))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.4)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    ADR_BASE_LISTENER = C:\app\Damien
    Here's the contents of my tsnames.ora:
    # tnsnames.ora Network Configuration File: C:\app\Damien\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    Here is the last fe lines of my emConfig.log:
    Jan 18, 2014 9:38:22 AM oracle.sysman.emcp.util.GeneralUtil isLocalConnectionRequired
    CONFIG: isLocalConnectionRequired: true
    Jan 18, 2014 9:38:22 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
    CONFIG: isLocalConnectionRequired: true. Connecting to database instance locally.
    Jan 18, 2014 9:38:22 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
    CONFIG: SQLEngine connecting with SID: orcl, oracleHome: C:\app\Damien\product\11.2.0\dbhome_1, and user: SYSMAN
    Jan 18, 2014 9:38:22 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
    CONFIG: SQLEngine created successfully and connected
    Jan 18, 2014 9:38:23 AM oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControl
    CONFIG: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1655)
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeSql(SQLEngine.java:1903)
    at oracle.sysman.emcp.ParamsManager.checkListenerStatusForDBControl(ParamsManager.java:3230)
    at oracle.sysman.emcp.EMReposConfig.unlockMGMTAccount(EMReposConfig.java:1001)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:346)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:158)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
    at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:583)
    at oracle.sysman.assistants.dbca.backend.PostDBCreationStep.executeImpl(PostDBCreationStep.java:968)
    at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
    at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
    at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2667)
    at java.lang.Thread.run(Thread.java:595)
    Jan 18, 2014 9:38:23 AM oracle.sysman.emcp.EMConfig perform
    SEVERE: Listener is not up or database service is not registered with it. Start the Listener and register database service and run EM Configuration Assistant again .
    Refer to the log file at C:\app\Damien\cfgtoollogs\dbca\orcl\emConfig.log for more details.
    Jan 18, 2014 9:38:23 AM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Listener is not up or database service is not registered with it. Start the Listener and register database service and run EM Configuration Assistant again .
    at oracle.sysman.emcp.ParamsManager.checkListenerStatusForDBControl(ParamsManager.java:3245)
    at oracle.sysman.emcp.EMReposConfig.unlockMGMTAccount(EMReposConfig.java:1001)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:346)
    at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:158)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
    at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:583)
    at oracle.sysman.assistants.dbca.backend.PostDBCreationStep.executeImpl(PostDBCreationStep.java:968)
    at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
    at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
    at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2667)
    at java.lang.Thread.run(Thread.java:595)
    Jan 18, 2014 9:38:23 AM oracle.sysman.emcp.EMConfig restoreOuiLoc
    CONFIG: Restoring oracle.installer.oui_loc to C:\app\Damien\product\11.2.0\dbhome_1\oui
    My Listner status output is here:
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 18-JAN-2014 10:14:39
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=ipc)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
    Start Date                18-JAN-2014 09:27:34
    Uptime                    0 days 0 hr. 47 min. 6 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\app\Damien\product\11.2.0\dbhome_1\network\admin\listener.ora
    Listener Log File         c:\app\damien\diag\tnslsnr\LONDON\listener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\ipcipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.4)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    I can login as sys into my database through sqlplus, so it seems the database is up and running, it just seems to be a listener problem maybe??
    Many thanks for any assistance that you give. I'm learning so be gentle...
    Damien

    SOLVED!
    OK all solved now, thanks to the link to Ed Stevens website that Baris posted (mucho respect )
    Seems that like Barus said I was not using Dynamic Registration, which means that I would need to manua
    ly update the listerner.ora file. On top of that it seems that for some my tnsnames.ora wasn't resolving mt database name so the tnsping wasfailing.
    What I did to solve the name resolution problem
    1. Opened the
    Network Configuration Assistant and saw that my listener didnt have my DB registered with it. So I added it. What this horrible GUI tool does is update the tnsnames and listener.ora files for you. So once that was done I went to the command prompt and did ;'tnsping <dn name> and hey presto it was getting a nice response.
    Then I re-ran my DB Configuration Assistant and tried to reconfigure my database. However it aing failed and gave me the same message that I was originally getting about the DB Service not being registered etc..the lister status still said that same thing:
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    the 'unknown' means that the DB  didnt tell the listener that it was there but instead the listener is in manual mode and will just use the configuration in the listener.ora to know where the DB is.
    So then I followed the steps on the ED Stevens website (follow the link). He has steps which show how to enable Dynanmic registration so that your DB regusters itself with the listener. In a nutshell, he states that he listener actually doesnt need the listerner.ora if using dynamic registration. I shutdown the DB, stopped the listener then I renamed the lsitener.ora to listerner.old, then started the lietener and checked the status and it said 'the listener supports no service' I then started the DB and, then resched teh listener status, it then read 'status: READY'... hooray!, the DB had dynamically registered itself with the listener. I then was able to successfully start up and run Enterprise Manager.
    Thanks for all your help Baris, and Ed Steven website.
    I know more now than when I started so I'm happy.
    Thanks.

  • Can SCAN be used for non 11gR2 databases ?

    I am in the processes of database consolidation phase, where in I am consolidating 15 server to a 6 node single Grid for RAC , non -RAC & RAC one node.
    I have non -RAC standalone database on NFS mount , visible on all the 6 nodes , idea is to be able to start the db from any node I like for maintenance which I can do with RAC & RAC ONE NODE.
    I am planning to run SCAN on 3 node , but the question is, can I use SCAN listener for all the databases ?.
    Currently started with a 2 node cluster where I have 11gR2 and couple of RAC one nodes and a 10g rac .
    I am able to point to scan LISTENER and able to connect to 10g db , to me SCAN looks very pomissing for our kind of environment where db's can run on any node with out impacting client changes.
    Before I present this to the management which I am planning to do This Thursday ( big day for me as I am projecting to save quite a bit of money ).
    I don't want to push some thing that's not going to work , even thoug I can prove it now that it works.
    And more importantly I have not see a document in google or ORACLE support that says I can nor a sign that any one using for non 11gR2.
    How is this SCAN compared to OID or SUN OPEN DS ?

    Hi,
    generally, SCAN can be used for 10g databases and you discovered the first half: for 10g databases you will have to modify the REMOTE_LISTENER entry for each 10g database instance to point to the SCAN listeners (as opposed to pointing to the remote local listeners, which is the default in 10g). You could even have the databases registers themselves with SCAN and the remote listeners, if you wanted to... It's more or less a matter of configuration. But for simplification reasons, I will stick to the case where you have your 10g databases register with the SCAN listeners only.
    Now the other half is the client and the client configuration. An 11g Rel. 2 client configured for RAC would have a TNSNAMES entry that has only one address line for the RAC databases. The host entry in this one address line should point to the SCAN (the SCAN name is ideally resolved in DNS). A 10g client configured for RAC would have as many address lines in the TNSNAMES as you have nodes in the cluster.
    The 10g client SCAN configuration would then be in the middle so to speak: You would have 3 address lines in your TNSNAMES, in which each host entry would resolve to one SCAN address (I assume you will use the recommended default of 3 SCAN IPs). If you choose, you can have a name resolution for each of your SCAN IPs, but this would not be required. Now, why would you do it this way? Because this configuration will always work and does not make you dependent on certain functionality that your DNS server may or may not offer.
    For the remaining questions: SCAN is a DNS entry resolving one name to more than one (typically 3) IP addresses. OID is short for Oracle Internet Directory, which is a complete LDAP server. And you are right that there is no document how to configure 10g clients for SCAN from Oracle yet. However, there is a quite good document on SCAN on otn.oracle.com/rac, but I am sure you are aware of it already.
    Hope that helps. Thanks,
    Markus

  • Crystal Report Viewer Not Releasing Oracle Database Connections

    I have a very simple vb.net 3.5 web application that uses the Crystal Report viewer 2008 to open a report. My requirements are as follows:
    1. Reports are built by another company and provided to us and used in a web environment
    2. All reports contain parameter fields
    3. The web application must be generic enough that a report can be added to a list and the user simply selects the report and provides database login information. The Crystal report viewer with handle the request for parameter values and prompt the user for their values.
    4. All reports connect to an Oracle 10g server.
    The above requirements have been meet and we have an extremely simple web application that runs the reports. It is working very well other than the crystal report viewer is not releasing the database connections. This is bad because the credentials are on a per user basis and that same user must login to a different oracle application simultaneously. They are being denied access because the credentials are already in use. We do not have control nor influence over the policies in use on the Oracle server. Ideally we would like to control the Crystal Report viewer so that it closes connections after use.
    The web application code is:
    Private Sub viewReports_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
    If Not IsPostBack Then
    ConfigureCrystalReport()
    End If
    End Sub
    Private Sub ConfigureCrystalReport()
    'Load the Crystal Report viewer with a report.
    Try
    Dim reportPath As String = Server.MapPath(Session("reportname"))
    crViewer.ReportSource = reportPath
    Catch ex As Exception
    Response.Write(Server.MapPath(Session("reportname")) & "
    " & ex.Message.ToString & "
    " & ex.StackTrace.ToString)
    End Try
    End Sub
    Can anyone shed some light on this topic? Thank you

    Hello, Timothy;
    By default, having the report in session will hold it open for 20 minutes.
    If you create the report as a ReportDocument object you can take it out of session and release it more efficiently. That will release the connection.
        Private Sub ConfigureCrystalReports()
            If (Session("hierarchicalGroupingReport") Is Nothing) Then
                hierarchicalGroupingReport = New ReportDocument()
                hierarchicalGroupingReport.Load(Server.MapPath("Hierarchical Grouping.rpt"))
                Session("hierarchicalGroupingReport") = hierarchicalGroupingReport
            Else
                hierarchicalGroupingReport = CType(Session("hierarchicalGroupingReport"), ReportDocument)
            End If
            myCrystalReportViewer.ReportSource = hierarchicalGroupingReport
        End Sub
    In the Form Unload of the Viewer:
                'Take the report out of session
                Session("hierarchicalGroupingReport")  = Nothing
                Session.Contents.Remove("hierarchicalGroupingReport")
                'Clean up the ReportDocument object
                hierarchicalGroupingReport.Close
                hierarchicalGroupingReport.Dispose()
                hierarchicalGroupingReport = Nothing
                GC.Collect()
    Elaine

  • Need help for importing oracle 10G dump into 9i database

    hi, Someone help me to import oracle 10G dump into 9i database. I'm studying oracle . Im using oracle 10G developer suite(downloaded from oracle) and oracle 9i database. I saw some threads tat we can't import the higher version dumps into lower version database. But i'm badly need help for importing the dump...
    or
    someone please tell me the site to download oracle 9i Developer suite as i can't find it in oracle site...

    I didnt testet it to import a dump out of a 10g instance into a 9i instance if this export has been done using a 10g environment.
    But it is possible to perform an export with a 9i environment against a 10g instance.
    I am just testing this with a 9.2.0.8 environment against a 10.2.0.4.0 instance and is working so far.
    The system raises an EXP-00008 / ORA-37002 error after exporting the data segments (exporting post-schema procedural objects and actions).
    I am not sure if it is possible to perform an import to a 9i instance with this dump but maybe worth to give it a try.
    It should potentially be possible to export at least 9i compatible objects/segments with this approach.
    However, I have my doubts if this stunt is supported by oracle ...
    Message was edited by:
    user434854

  • Oracle Database 10g Express Edition (Oracle Database XE)/ BI Publisher

    Hi,
    I have installed Oracle Database 10g Express Edition (Oracle Database XE) on my windows machine and would like to work with BI publisher for reporting in APEX applications.
    Question: Can I install and work with BI publisher on ORACLE DATABASE XE?
    If not any other options available?
    Appreciate any help.
    Thanks,
    Lakshmi

    hi,
    yes you can install.. try
    Oracle Discoverer 10g (Oracle BI Suite Standard Edition)
    regards,
    Deepak

  • R0 Rollback Segment in Import of 10gR2 into 11gR2 Database

    I have a new install of Oracle Database Server Enterprise Edition 11.2.0.3.6 on AIX 7.1.
    I used the DBCA to create two databases and used export datapump and import datapump to upgrade two 10gR2 database to 11gR2.
    One of the import logs includes the following messages:
    Processing object type DATABASE_EXPORT/ROLLBACK_SEGMENT
    ORA-39083: Object type ROLLBACK_SEGMENT failed to create with error:
    ORA-02221: invalid MAXEXTENTS storage option value
    Failing sql is:
    CREATE ROLLBACK SEGMENT "R0" TABLESPACE "SYSTEM" STORAGE(INITIAL 131072 NEXT 131072 MINEXTENTS 2 MAXEXTENTS 2147483645)
    I verified that the source database has R0 with maxextents of 2147483645.
    I can copy and modify the CREATE ROLLBACK statement and lower the value assigned to MAXEXTENTS, or use MAXEXTENTS UNLIMITED, then run the command in the target database.
    In light of the fact that the DBCA did not create R0 in my two 11gR2 databases, I want to know if I still need to create R0 in the one that showed the error in the import log. Has anyone else noticed the disappearance of R0?
    Here are the rollback segments that exist in the 11gR2 database at this time:
    SQL> Select SEGMENT_NAME, OWNER, TABLESPACE_NAME, INITIAL_EXTENT, NEXT_EXTENT, MIN_EXTENTS, MAX_EXTENTS, PCT_INCREASE, STATUS
    from SYS.DBA_ROLLBACK_SEGS;
    SEGMENT_NAME OWNER TABLESPACE_NAME INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE STATUS
    SYSTEM                         SYS       SYSTEM     114688 57344 1 32765 ONLINE
    _SYSSMU1_3638931391$ PUBLIC UNDOTBS1 131072 65536 2 32765 ONLINE
    _SYSSMU2_3033359625$ PUBLIC UNDOTBS1 131072 65536 2 32765 ONLINE
    _SYSSMU3_2670780772$ PUBLIC UNDOTBS1 131072 65536 2 32765 ONLINE
    _SYSSMU4_286801445$ PUBLIC UNDOTBS1 131072 65536 2 32765 ONLINE
    _SYSSMU5_1738828719$ PUBLIC UNDOTBS1 131072 65536 2 32765 ONLINE
    _SYSSMU6_3548494004$ PUBLIC UNDOTBS1 131072 65536 2 32765 ONLINE
    _SYSSMU7_700714424$ PUBLIC UNDOTBS1 131072 65536 2 32765 ONLINE
    _SYSSMU8_2755301871$ PUBLIC UNDOTBS1 131072 65536 2 32765 ONLINE
    _SYSSMU9_2087597455$ PUBLIC UNDOTBS1 131072 65536 2 32765 ONLINE
    _SYSSMU10_3267518184$ PUBLIC UNDOTBS1 131072 65536 2 32765 ONLINE
    11 rows selected.
    Thanks,
    Bill

    Srini,
    Both the 10gR2 and 11gR2 versions of the database are using automatic undo management.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> show parameter undo
    NAME TYPE VALUE
    _undo_autotune boolean TRUE
    undo_management string AUTO
    undo_retention integer 14400
    undo_tablespace string UNDOTBS1
    SQL>
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> show parameter undo
    NAME TYPE VALUE
    undo_management string AUTO
    undo_retention integer 14400
    undo_tablespace string UNDOTBS1
    SQL>
    Do you know anything about Oracle no longer automatically creating R0 in 11gR2?
    Thanks,
    Bill

  • Oracle 10g - Cross-Platform Transportable Database (with or without RMAN?)

    Hello guys,
    i am currently on a project for migrating oracle databases from one platform to another platform (both platforms are on the same endianess):
    -> From Linux 64-Bit to Windows 64-Bit
    -> From HP-UX 64-Bit to AIX 64-Bit
    All databases are on Oracle 10g (10.2.0.4) and i have tested two different ways:
    1) The "official" way with RMAN CONVERT DATABASE
    http://youngcow.net/doc/oracle10g/backup.102/b14191/dbxptrn002.htm#CHDEEEAG
    2) "Copy & Paste"
    - Copy & Paste of the database files
    - Recreate controlfile manually on target platform (with help of "backup controlfile to trace" on source platform)
    Both ways are working well and the migrated test databases are running fine.
    Now i am wondering why there is a "RMAN CONVERT DATABASE" command, if it possible to copy and paste the data files and perform two steps manually afterwards.
    The "RMAN CONVERT DATABASE" is time consuming and you still need to copy the RMAN output files to the target platform.
    Is there any special reason, why you need the "RMAN CONVERT DATABASE"? Does the "RMAN CONVERT DATABASE" change some things in the database files internally?
    Thanks and Regards

    Hello,
    Anurag Tibrewal wrote:
    If the source platform and the target platform are of different endianness, then an additional step must be done on either the source or target platform to convert the tablespace being transported to the target format. Of course .. in this case you can not use the "Cross-Platform Transportable Database" - you have to use the "Cross-Platform Tranportable Tablespace" (with RMAN CONVERT DATAFILE or TABLESPACE).
    Anurag Tibrewal wrote:
    If they are of the same endianness, then no conversion is necessary and tablespaces can be transported as if they were on the same platform.Yes, but oracle provides this with RMAN and the command "RMAN CONVERT DATABASE" .. as i already wrote i have already performed the two ways "RMAN CONVERT DATABASE" and "just copy & paste" and both are working fine.
    So my question is if there is any special case in which you should use the RMAN way with "RMAN CONVERT DATABASE" instead of just "copy & paste" if you stay on the same endianness?
    Thanks and Regards

  • How to Install & Migrate APEX 4.2x on 11gR2 database.

    Hi All,
    What is the best way to migrate APEX software and Applications FROM APEX 4.1.1.00.23 on 10g TO APEX 4.2.1.00.08 on 11gR2.
    I have enabled APEX 3x with Embedded PL/SQL Gateway on 11gR2 database. The older version APEX4.1 is uses HTTP server.
    Anyone’s help is much appreciated.
    Regards

    The best way (I had problems with this last week), is to go Oracle Support (do not use the upgrade patch from OTN), and download patch #14732511 from Oracle Support. This will automatically upgrade and migrate your Apex applications to the current 4.2.1.00.8. It should take around 15-30 minutes, depending on your hardware. The one I tried using from OTN wouldn't run, and the supposed upgrade would finish in about 15 seconds.

  • If we use result_cache_mode=force in oracle 11gr2 database then we don't ..

    If we use result_cache_mode=force in oracle 11gr2 database then we don't need QSEl (third party software).
    is the result cache feature is work same as qsel.
    I am not able to find anything regarding it..please help...
    http://www.qsel4oracle.com/FramePage_files/FramePageData.htm

    I don't know anything about QSEL, but can guess that it is some sort of caching solution sitting on Oracle.
    Ideally, RESULT_CACHE_MODE should not be set to FORCE, as it will try to cache each and every SQL (and its results for different bind values).
    But, if you have reasonably big SGA and within that SGA, if you have reasonably big result cache and you do RESULT_CACHE_MODE=FORCE, then you might not need third party caching solution.
    Key question is, how big is reasonably big? that depends on size of data you are dealing with.
    Good thing about result caching is, it works for user defined functions as well.
    Also, you can enable result caching in certain sessions and disable it in certain session.

Maybe you are looking for

  • Error message  - and iTunes will not play anything at all

    After scouring forums for similar issues, I have tried a complete uninstall and reinstall of iTunes with MacAfee firewall disabled. Nada. iTunes starts with an error message saying 'Configuration error, audio and video files may not play back correct

  • Cenavt on Hold Account - Capital Goods 50% Credit

    Hi Gurus, As per PO , Basic Duty is 800.00 + 2% Cess - 16.00 + 1% Secc - 8.00, but when I Post the Excise Duty, 50% Duty is correctly posted in respective G/L Account as 40084 , but the balance 50% credit in Cenvat on Hold A/c is showing value as onl

  • HDMI cable hook up to laptop

    Does it matter what thickness or type of HDMI cable I use to connect my Mac Pro laptop to a TV Monitor?  I'm using one that is thicker than what I usually use and when I hooked it up (I have a Belkin HDMI adapter), my computer would no longer go into

  • Iweb will not open in older bversions of internet explorer

    many of the people I want to see my website like non-profits can't open it in internet explorer. Can i fix this somehow?

  • Very simple jstl question

    I for the life of me have not been able to find the answer to this very simple question, googling and looking at various documentation. What is the difference between accessing properties using $ or #? Is there a difference? Thanks