ORA-13285 again

Why would this query result in this error? Usually it occurs when
the coordinate systems for the two tables are different, but in
this case there is only one spatial table, which I'm looking for
overlaps within where both features meet certain criteria.
Select /*+ NO_MERGE */ a1.*
from NonSpatial a1, NonSpatial a2, SpatialTable b1, SpatialTable b2
where (((a1.ID >= '300') and (a1.ID < '400')))
and b1.IsCurrent = -1
and (b1.ID = a1.ID)
and ((sdo_relate(b1.geoloc, b2.geoloc, 'mask=ANYINTERACT querytype=JOIN') = 'TRUE')
and (b1.ID <> b2.ID))
and (((a2.ID >= '300') and (a2.ID < '400')))
and b2.IsCurrent = -1
and (b2.ID = a2.ID);

select a.geoloc.sdo_srid from spatialtable a where a.geoloc.sdo_srid <> the_srid_you_are_expecting.
If the sdo_srid field isn't set, drop the spatial index,update the geometries, then recreate the spatial index.
This would be much faster than updating the geometries with the spatial index intact.

Similar Messages

  • Error ORA-13285

    Any suggestions on what could be going wrong here?
    SQL> Select t1.* from t1, t2
    2 where (sdo_relate(t1.geoloc, t2.geoloc, 'mask=ANYINTERACT querytype=JOIN') = 'TRUE');
    where (sdo_relate(t1.geoloc, t2.geoloc, 'mask=ANYINTERACT querytype=JOIN') = 'TRUE')
    ERROR at line 2:
    ORA-13285: Geometry coordinate transformation error
    ORA-29400: data cartridge error
    ORA-22060: argument [2] is an invalid or uninitialized number
    ORA-06512: at "MDSYS.SDO_3GL", line 41
    ORA-06512: at "MDSYS.MD2", line 722
    ORA-06512: at line 1
    null

    Hi,
    This is probably related to coordinate systems.
    There are two layers specified. One of them probably has
    coordinate systems information specified (SDO_SRID), the other
    probably doesn't. When using spatial operators Oracle Spatial
    implicitly tries to convert the coordinate system of the query
    window (the second geometry) to that of the first geometry.
    In this case the implicit transformation is failing, hence the
    error.
    It is not legal in Oracle Spatial to have coordinate system
    information specified for one layer and NULL for another
    layer.
    Hope this helps.
    dan

  • Hi Simon: I'm back with ORA-28575 again :(

    If you recall from some previous posts, you were (are) helping us with Extproc issues.
    My case is bizarre. I do not have a listener.ora nor a tnsnames file on my machine - Oracle 8.1.6/linux. I think during the install - a different setup was used that bypasses these files for net9 communications. - Still a mystery. Yet, we had a BC4J app running for a while using intermedia and all was OK. Overnight - we are getting the infamous ORA-28575/06512 error again when trying to insert images into the db.
    Here is our lsnrctl status response
    [oracle@atechora dbs]$ lsnrctl status
    LSNRCTL for Linux: Version 8.1.6.0.0 - Production on 21-APR-2001 07:13:43
    (c) Copyright 1998, 1999, Oracle Corporation. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 8.1.6.0.0 - Production
    Start Date 21-APR-2001 06:29:47
    Uptime 0 days 0 hr. 43 min. 55 sec
    Trace Level off
    Security OFF
    SNMP OFF
    Listener Log File /usr/local/oracle/u01/product/8.1.6/network/log/listener.log
    Services Summary...
    atech1 has 3 service handler(s)
    Question: Where do I start applying the help you've provided in other posts when I don't have these files?
    Thanks,
    Chris

    Hi Chris,
    Sorry for not getting back to you, I've been busy "9i'ing" it. Glad to hear you've got it resolved though.
    Just to clear up some stuff and ask a question or two:
    First, its not really "interMedia writes" that is the issue. Its interMedia's use of the ExtProc functionality to call out to external procedures to perform image processing. Its always possible to write interMedia data. The issue comes with image processing such as calls to ORDImage.setProperties() [which only reads image data] and ORDImage.process() [which reads, modifies and writes image data], which are handled externally using ExtProc. Note that a "standard" BC4J app, using the built-in interMedia support in 3.2, should work even if ExtProcs aren't working, because there's a try-block around the call to OrdImage.setProperties() with a catch-block that simply writes the browser-supplied MIME type to the object. Of course, if you've built your own app, then that might be different.
    As for the problem; yes, unfortunately, there is a bug using the Multi-Threaded Server feature with ExtProc, in that MTS breaks ExtProcs. I believe this has been fixed in 8.1.7, and may also have been fixed in an 8.1.6 patch set.
    You mention that "First, unlike all reference information I've seen on Technet, the client side of your intermedia app doesn't need to reference the extproc listener - but the server side does." I hope I haven't mislead you here. You are absolutely correct, ExtProcs are server-side functionality. If you can point me at the offending information, I'll try to see about getting it fixed.
    Once again, glad to hear its working again.
    Regards,
    Simon
    null

  • ORA-30931 (again) when inserting data in XMLType table

    Hi,
    I've created a table by registrating an XML Schema in the database.
    The schema is the following :
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xdb:storeVarrayAsTable="true">
         <xsd:element name="Customer" type="customerType" xdb:defaultTable="CUSTOMER"/>
         <xsd:complexType name="customerType" xdb:maintainDOM="false">
              <xsd:sequence>
                   <xsd:element name="NAME" type="xsd:string" xdb:SQLName="NAME" xdb:SQLType="VARCHAR2"/>
                   <xsd:element name="EMAIL" type="xsd:string" xdb:SQLName="EMAIL" xdb:SQLType="VARCHAR2"/>
                   <xsd:element name="ADDRESS" type="xsd:string" maxOccurs="unbounded" xdb:SQLName="ADDRESS" xdb:SQLCollType="ADDRESS_TYPE" xdb:SQLType="VARCHAR2" xdb:maintainOrder="false"/>
                   <xsd:element name="PHONE" type="phoneType" xdb:SQLName="PHONE"/>
                   <xsd:element name="DESCRIPTION" type="contentType"/>
              </xsd:sequence>
         </xsd:complexType>
         <xsd:complexType name="contentType" xdb:SQLType="CLOB" xdb:maintainDOM="true">
              <xsd:sequence>
                   <xsd:any processContents="skip" minOccurs="0" maxOccurs="unbounded"/>
              </xsd:sequence>
         </xsd:complexType>
         <xsd:simpleType name="phoneType">
              <xsd:restriction base="xsd:string">
                   <xsd:pattern value="\\(\\d\{3\}\\)\\d\{3\}-\\d\{4\}"/>
              </xsd:restriction>
         </xsd:simpleType>
    </xsd:schema>
    Now when I try to do an insert in the table and use mixed case in the contents of the description tag I get an ORA-30931.
    Anybody got a clue why?
    Thanks for your help!
    Kris

    Kris
    xsd:any does not allow text() nodes outside of elements, it only allows child elements. If you want to add text() nodes outside of child elements this is mixed text. To get this you want to add mixed="true" to the complexType definition
    contentType
    SQL> begin
    2 dbms_xmlschema.registerSchema('http://localhost:8085/public/customer_simple_ann.xsd',
    3 xmltype('<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracl
    e.com/xdb" xdb:storeVarrayAsTable="true">
    4 <xsd:element name="Customer" type="customerType" xdb:defaultTable="CUSTOMER"/>
    5 <xsd:complexType name="customerType" xdb:maintainDOM="false">
    6 <xsd:sequence>
    7 <xsd:element name="NAME" type="xsd:string" xdb:SQLName="NAME" xdb:SQLType="VARCHAR2"/>
    8 <xsd:element name="EMAIL" type="xsd:string" xdb:SQLName="EMAIL" xdb:SQLType="VARCHAR2"/>
    9 <xsd:element name="ADDRESS" type="xsd:string" maxOccurs="unbounded" xdb:SQLName="ADDRESS" xdb:S
    QLCollType="ADDRESS_TYPE" xdb:SQLType="VARCHAR2" xdb:maintainOrder="false"/>
    10 <xsd:element name="PHONE" type="phoneType" xdb:SQLName="PHONE"/>
    11 <xsd:element name="DESCRIPTION" type="contentType"/>
    12 </xsd:sequence>
    13 </xsd:complexType>
    14 <xsd:complexType mixed="true" name="contentType" xdb:SQLType="CLOB" xdb:maintainDOM="true">
    15 <xsd:sequence>
    16 <xsd:any processContents="skip" minOccurs="0" maxOccurs="unbounded"/>
    17 </xsd:sequence>
    18 </xsd:complexType>
    19 <xsd:simpleType name="phoneType">
    20 <xsd:restriction base="xsd:string">
    21 <xsd:pattern value="\\(\\d\{3\}\\)\\d\{3\}-\\d\{4\}"/>
    22 </xsd:restriction>
    23 </xsd:simpleType>
    24 </xsd:schema>'));
    25 end;
    26 /
    PL/SQL procedure successfully completed.
    SQL> insert into customer
    2 values (XMLTYPE('<Customer><NAME>Steve Joes</NAME><EMAIL>[email protected]</EMAIL><ADDRESS
    Somewhere, Sometown, RedWood Shores, California</ADDRESS><PHONE>6505678546</PHONE><DESCRIPTION>Hes the man</DESCRIPTION></Customer>').CreateSchemaBasedXML('http://localhost:8085/public/customer_simpl
    e_ann.xsd'))
    3 /
    1 row created.
    SQL>

  • ORA-28575 again !

    Sorry for asking one more question about ORA-28575 problem but I can't find a solution.
    I'm new to Intermedia (8.1.7 on NT 4 SP6).
    I tried the package that comes in the PL/SQL demo directory (as Simon shows before). the first step of the package is working fine but the second doesn't.
    I've checked my tnsnames, listener and sqlnet.ora files but I can't find the mistake ...
    Any Idea?
    TNSNAMES.ORA
    BALEEN =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = liberte)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = baleen)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(Key = ExtProc1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    LISTENER.ORA
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = liberte)(PORT = 1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = E:\Oracle\Ora81)
    (PROGRAM = extproc)
    SQLNET.ORA
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    Thanks in advance
    null

    Hi,
    Here are a couple of ideas:
    I don't think the key name is case sensitive, but just to make sure, set the EXTPROC_CONNECTION_DATA key value to EXTPROC1 in tnsnames.ora, to match the corresponding entry in listener.ora.
    Check to make sure that you don't have multitthreaded server (MTS) mode enabled. As far as I know, this is enabled using various MTS_ settings in init.ora. Unfortunately, MTS mode breaks the extproc mechanism in a number of Oracle8i versions, though I thought it was fixed for 8.1.7, but it may require a subsequent maintenance release.
    Regards,
    Simon
    null

  • ORA-00904 when execute query

    Similar to the SRDemo Search and Results on the same page example, if I put in an invalid query in a numeric field such as "> ddd", I get the error ORA-00904: "DDD": invalid identifier. If I hit my Clear Criteria button (Delete action), I get the same message three times. I get the three messages no matter how many times I hit the button.
    If I manually clear the field and hit the button, I get two of the above messages and the result iterator shows many rows which are all blank.
    A couple of questions:
    What is the best way to validate the query before it is executed?
    I want to avoid too much coding and I can modify the error message if needed. Is there another way to reset the the query form?
    Using JDev 10.1.3.2.0 ADF BC
    Thanks,
    Tom

    Thanks Tif. I will definitely bookmark this link.
    However, my users are not that sophisticated. I really need a form based query.
    The error is easily reproducible. Just go to the SRDemo application and to the Advanced Search tab. Put in any non-numeric character in the Request field and click Find. Click the Clear button to clear the query and you'll get the ORA error several times. You'll keep getting those errors no matter how many times you click it.
    Now, blank out the value you entered in the Request field and hit Clear again. You'll get the ORA errors again but you'll also see the Results table fill with rows but they will all be blank.
    I really like the QBE feature (it gives the user flexibility with little coding from me) but I need a way (easily, hopefully) to trap the error and to be able to clear the query.
    I'm fairly new to JDev so I may be missing something obvious here.
    Thanks,
    Tom

  • Error msg:ora 12154

    Hi I installed oracleDEV 10g at my home desktop while I can't connect to company's oracle server, the user name and pswd are corrected set up while I got the error message ORA 12154 again and again, anybody can give me a help will be highly appreciated!
    you can tell me the solution to [email protected]
    Thanks

    Hi
    Check the tnsnames.ora file you are using, verify that it is accessible. Check if you have a $HOME/.tnsnames.ora file - This will be used in addition to 'tnsnames.ora'. Check TNS_ADMIN is set in your environment. - There is a readable tnsnames.ora file in $TNS_ADMIN
    Regards Raf

  • Run time Error DBIF_RSQL_SQL_ERROR while logging and executing some tcodes

    Hi all,
    Hi all,
    When i try to login into my system (ECC 6.0 with Oracle DB), i have been directed to dump -->
    Runtime Errors DBIF_RSQL_SQL_ERROR
    Except. CX_SY_OPEN_SQL_DB
    Short text
    SQL error in the database when accessing a table.
    Missing RAISING Clause in Interface
    Program SAPFSDS1
    Include FSDS1E01
    Row 365
    Module type (FORM)
    Module Name TRANSFORM_NEW_OLD
    Trigger Location of Exception
    Program SAPFSDS1
    Include FSDS1E01
    Row 380
    Module type (FORM)
    Module Name TRANSFORM_NEW_OLD
    In the source code the the cause for the error is shown in the below line"
    SELECT SINGLE * FROM TDCLD
    WHERE DOKCLASS EQ DOKCLASS.
    "How to correct the error"
    Database error text........: "ORA-32255: Message 32255 not found;
    product=RDBMS; facility=ORA#"
    Internal call code.........: "RSQL/READ/TDCLD "
    Please check the entries in the system log (Transaction SM21).
    If the error occures in a non-modified SAP program, you may be abl
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the follo
    keywords:
    "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB"
    "SAPFSDS1" or "FSDS1E01"
    "TRANSFORM_NEW_OLD"
    When i tried to look for the error ORA-32255, i am unable to get any information regarding this?
    Could you please suggest me..
    I have made the following changes trying to solve the error:
    shared_pool_size = 401832601 and
    i have executed sql command --> alter system set "_object_statistics"=false scope=spfile;
    Message from Alert Log file:
    Incremental checkpoint up to RBA [0x1076.10c61.0], current log tail at RBA [0x1076.10e4d.0]
    Message from dev_w0 file:
    OCI-call failed with -1=OCI_ERROR
    C SQL error 32255: 'ORA-32255: Message 32255 not found; product=RDBMS; facility=ORA
    C '
    C *** ERROR => Error 32255 in stmt_fetch() from oci_execute_stmt(), orpc=0
    [dbsloci.c 12720]
    C *** ERROR => ORA-32255 occurred when executing SQL stmt (parse error offset=0)
    [dbsloci.c 12739]
    C sc_p&H05B11F10,no&H110,idc_p&H00000000,con=0,act=1,sle n&H103,smax&H256,#vars=2,stmt
    8718D8,table=ATAB
    C SELECT "TABNAME" , "VARKEY" , "DATALN" , "VARDATA" FROM "ATAB" WHERE "TABNAME" = :A0 AND "VARKEY" = \
    C :A1;
    C sc_p&H05B11F10,no&H110,idc_p&H00000000,con=0,act=1,sle n&H103,smax&H256,#vars=2,stmt
    8718D8,table=ATAB
    C prep=0,lit=0,nsql=0,lobret=0,#exec=1,dbcnt=0,upsh_p &H00000000,ocistmth_p
    872784
    C IN : cols=2,rmax=1,xcnt=0,rpc=0,rowi=0,rtot=0,upto=-1,rs ize&H28,vmax&H32,bound=1,iobuf_p&H05BF4F28,vda_p
    873CA8
    C lobs=0,lmax=0,lpcnt=0,larr&H00000000,lcurr_p&H0000000 0,rret=0
    C OUT: cols=4,rmax=1,xcnt=1,rpc=0,rowi=0,rtot=0,upto=-1,rs ize&H124,vmax&H32,bound=1,iobuf_p&H05BEBAF8,vda_p
    874118
    C lobs=0,lmax=0,lpcnt=0,larr&H00000000,lcurr_p&H0000000 0,rret=0
    C SELECT "TABNAME" , "VARKEY" , "DATALN" , "VARDATA" FROM "ATAB" WHERE "TABNAME" = :A0 AND "VARKEY" = \
    C :A1;
    B ***LOG BY4=> sql error 32255 performing SEL on table ATAB [dbtran#11 @ 7512] [dbtran 7512 ]
    B ***LOG BY0=> ORA-32255: Message 32255 not found; product=RDBMS; facility=ORA
    [dbtran#11 @ 7512] [dbtran 7512 ]
    B dbtran ERROR LOG (hdl_dbsl_error): DbSl 'SEL'
    B RSLT: {dbsl=99, tran=1}
    B FHDR: {tab='ATAB', fcode&H17, mode=2, bpb=0, dbcnt=0, crsr=0,
    B hold=0, keep=0, xfer=0, pkg=0, upto=0, init:b=0,
    B init:p&H00000000, init:#=0, wa:p=0X031902F0, wa:#&H15000}
    B dbtran ERROR LOG (hdl_dbsl_error): DbSl 'SEL'
    B STMT:
    B CRSR: {tab='', id=0, hold=0, prop=0x80000, max.in@0=1, fae:blk=0,
    B con:id=0, con:vndr=5, val=2,
    B key:#=2, xfer=0, xin:#=1, row:#=0, upto=1, wa:p=0X031902F0}
    A TH VERBOSE LEVEL FULL
    A ** RABAX: level LEV_RX_PXA_RELEASE_MTX entered.
    A ** RABAX: level LEV_RX_PXA_RELEASE_MTX completed.
    A ** RABAX: level LEV_RX_COVERAGE_ANALYSER entered.
    A ** RABAX: level LEV_RX_COVERAGE_ANALYSER completed.
    A ** RABAX: level LEV_RX_ROLLBACK entered.
    A ** RABAX: level LEV_RX_ROLLBACK completed.
    A ** RABAX: level LEV_RX_DB_ALIVE entered.
    A ** RABAX: level LEV_RX_DB_ALIVE completed.
    A ** RABAX: level LEV_RX_HOOKS entered.
    A ** RABAX: level LEV_RX_HOOKS completed.
    A ** RABAX: level LEV_RX_STANDARD entered.
    A ** RABAX: level LEV_RX_STANDARD completed.
    A ** RABAX: level LEV_RX_STOR_VALUES entered.
    A ** RABAX: level LEV_RX_STOR_VALUES completed.
    A ** RABAX: level LEV_RX_C_STACK entered.
    A ** RABAX: level LEV_RX_C_STACK completed.
    A ** RABAX: level LEV_RX_MEMO_CHECK entered.
    A ** RABAX: level LEV_RX_MEMO_CHECK completed.
    A ** RABAX: level LEV_RX_AFTER_MEMO_CHECK entered.
    A ** RABAX: level LEV_RX_AFTER_MEMO_CHECK completed.
    A ** RABAX: level LEV_RX_INTERFACES entered.
    A ** RABAX: level LEV_RX_INTERFACES completed.
    A ** RABAX: level LEV_RX_GET_MESS entered.
    A ** RABAX: level LEV_RX_GET_MESS completed.
    A ** RABAX: level LEV_RX_INIT_SNAP entered.
    A ** RABAX: level LEV_RX_INIT_SNAP completed.
    A ** RABAX: level LEV_RX_WRITE_SYSLOG entered.
    A ** RABAX: level LEV_RX_WRITE_SYSLOG completed.
    A ** RABAX: level LEV_RX_WRITE_SNAP entered.
    A ** RABAX: level LEV_SN_END completed.
    A ** RABAX: level LEV_RX_SET_ALERT entered.
    A ** RABAX: level LEV_RX_SET_ALERT completed.
    A ** RABAX: level LEV_RX_COMMIT entered.
    A ** RABAX: level LEV_RX_COMMIT completed.
    A ** RABAX: level LEV_RX_SNAP_SYSLOG entered.
    A ** RABAX: level LEV_RX_SNAP_SYSLOG completed.
    A ** RABAX: level LEV_RX_RESET_PROGS entered.
    A ** RABAX: level LEV_RX_RESET_PROGS completed.
    A ** RABAX: level LEV_RX_STDERR entered.
    A Sun Apr 05 22:38:04 2009
    A
    A ABAP Program SAPFSDS1 .
    A Source FSDS1E01 Line 380.
    A Error Code DBIF_RSQL_SQL_ERROR.
    A Module $Id: //bas/700_REL/src/krn/runt/absapsql.c#9 $ SAP.
    A Function HandleRsqlErrors Line 778.
    A ** RABAX: level LEV_RX_STDERR completed.
    A ** RABAX: level LEV_RX_RFC_ERROR entered.
    A ** RABAX: level LEV_RX_RFC_ERROR completed.
    A ** RABAX: level LEV_RX_RFC_CLOSE entered.
    A ** RABAX: level LEV_RX_RFC_CLOSE completed.
    A ** RABAX: level LEV_RX_IMC_ERROR entered.
    A ** RABAX: level LEV_RX_IMC_ERROR completed.
    A ** RABAX: level LEV_RX_DATASET_CLOSE entered.
    A ** RABAX: level LEV_RX_DATASET_CLOSE completed.
    A ** RABAX: level LEV_RX_RESET_SHMLOCKS entered.
    A ** RABAX: level LEV_RX_RESET_SHMLOCKS completed.
    A ** RABAX: level LEV_RX_ERROR_SAVE entered.
    A ** RABAX: level LEV_RX_ERROR_SAVE completed.
    A ** RABAX: level LEV_RX_ERROR_TPDA entered.
    A ** RABAX: level LEV_RX_ERROR_TPDA completed.
    A ** RABAX: level LEV_RX_PXA_RELEASE_RUDI entered.
    A ** RABAX: level LEV_RX_PXA_RELEASE_RUDI completed.
    A ** RABAX: level LEV_RX_LIVE_CACHE_CLEANUP entered.
    A ** RABAX: level LEV_RX_LIVE_CACHE_CLEANUP completed.
    A ** RABAX: level LEV_RX_END entered.
    A ** RABAX: level LEV_RX_END completed.
    A ** RABAX: end no http/smtp
    A ** RABAX: end RX_BTCHLOG|RX_VBLOG
    A SQL error in the database when accessing a table..
    A
    I have started the local client copy and have stopped it in the middle. i have logged off and tried to login again, this is the start of the dump.
    I am unable to resolve it. PLEASE give a solution
    Thanks & Regards,
    Subbu.

    Hi Subbu,
    We were in touch when you previously posted this, but somehow I got an error when I tried to access the thread. I remember that your DB was still 10.2.0.1 and that this may have caused a corruption. The only explanation for ORA-32255 that looks remotely interesting is that it may occur with the OCI (Oracle Call Interface) accessing a NULL LOB (and ATAB does contain a LOB field). Do you have any chance of upgrading the database where you have the problem to 10.2.0.4?
    I don't know whether we'll learn anything useful from this (you might just get an ORA-32255 again) but could you execute the following statement in SQLPLUS:
    select count(*) from <sapuser>.ATAB where VARDATA IS NULL;
    (replace <sapuser> with the name of the SAP schema owner)
    Regards,
    Mark

  • SMON observing buffer busy waits

    select *from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE    11.1.0.7.0      Production
    TNS for Linux: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - ProductionI am truing to split one MAX partition into two partitions but my split operation is failing with ORA-0155. When i tried to find row-count in MAX partition using select count(*), i got ORA-0155 again. Table size is 32 G and partition size of MAX partition is just 2.5 GB. I have Auto Undo Management with UNDO tablespace sized at 32 GB. Compression is ENABLE (DIRECT LOAD ONLY) for every partitions. I have daily partitions and partition count is 79.
    select inst_id, max(maxquerylen)
      from gv$undostat
      group by inst_id;
       INST_ID MAX(MAXQUERYLEN)
             1            26437
    SELECT DISTINCT STATUS, SUM(BYTES), COUNT(*)  FROM DBA_UNDO_EXTENTS GROUP BY STATUS;
    STATUS            SUM(BYTES)   COUNT(*)
    UNEXPIRED        15341387776      16293
    EXPIRED            177143808        134
    ACTIVE                 65536          1
    SELECT A.SID, A.USERNAME, B.XIDUSN, B.USED_UREC, B.USED_UBLK
    FROM V$SESSION A, V$TRANSACTION B
      WHERE A.SADDR=B.SES_ADDR;
    Did not return any record
    SELECT TABLESPACE_NAME,RETENTION FROM DBA_TABLESPACES WHERE TABLESPACE_NAME='UNDO_T1';
    TABLESPACE_NAME                RETENTION
    UNDO_T1                        NOGUARANTEE
    _in_memory_undo=FALSE
    undo_management=AUTO
    undo_retention=28800
    undo_tablespace=UNDO_T1
    select sid,program,logon_time,last_call_et/60/60,sql_hash_value,sql_id,EVENT,P1,P2,P3 from v$session where sid=749;
    SID PROGRAM                                          LOGON_TIME          LAST_CALL_ET/60/60 EVENT                        P1         P2         P3
    749 [email protected] (SMON)                       2010/08/24 06:57:09         4443.34667 buffer busy waits             2        305         33
    File#=2 is an UNDO file
    select startup_time from v$instance;
    STARTUP_TIME
    24.Aug.10/06:57:08There is no locking/blocking scene in db.
    May i ask why SMON is observing BBW ? I tried to wake-up SMON by 'oradebug wakeup pid' but it did not help.
    Edited by: OraDBA02 on Feb 25, 2011 6:48 AM
    Edited by: OraDBA02 on Feb 25, 2011 6:49 AM

    my split operation is failing with ORA-0155.REALLY?
    00155, 00000, "cannot perform work outside of global transaction"
    // *Cause:  The application tried to perform some work on either an Oracle
    //          7.3 server or an Oracle8 server with local transactions disabled
    //          while outside of a global transaction.
    // *Action: Check if the application is connected to an Oracle 7.3 server. The
    //          Transaction monitor must not return a NULL XID on an AX_REG call
    //          when the resource manager is Oracle 7.3.  If the application is
    //          connected to an Oracle8 server, either set nolocal=f in the
    //          xa_open string or start a global transaction prior to attempting
    //          the work.

  • Master-Detail Multi-Row Insert

    Im still using Oracle forms 6i. How do we create here in ADF for the transaction in master-detail operation specially in inserting multi-row in detail. In forms we can use key-next item trigger next_record for new record transaction for drugs or we can use bar code scanning to insert new records & automatically go to next records waiting for another input...
    pls help me i want to upgrade & pls sorry for my english...
    just want this adf behave like forms in terms of master-detail transaction entry...
    i appreciate if someone can help me or give me demo file to download & play with it...
    Edited by: user8983555 on Nov 10, 2010 10:30 AM

    tnx for the fast reply..
    im new with jdeveloper and no knowledge in java or html. im concentrated in pl/sql , forms 6i.We still using this until now in character base in unix environment but some module in gui mode.im working in hospital which is complete informations sytem (stock,pharm..etc...gl...) which in bulk transactions specially patients outclinic & inpatients charges.now we have also this reservations system for out clinics thats the reason im like to develop for in a web that a patient can reserve on line and i dont like running our application in different front end (forms 6i &jdeveloper).
    (now currently checking form10g & just set up AS10g which is working.can deploy and connect,LAN). but im very interested in ADF when i see the demo on Oracle website.
    now our company pplanning to change our application to power builder whiich is not good in performance regarding in hadling big databases (slow query,needs burst AS...) thru to the demonstration of the
    apllication vendors.
    im very glad if you can help. can you post a links or demo file to do this as you said....(You can replicate the code in the button in some other event on your page, for example when the value of the last field in the row is changed.
    It all comes down to the question of when you actually want to create a new row, and in that event you call the createInsert method.)
    this is my only problem now to make this master-detail multi-row insert like ora form.
    again sorry for my english...

  • User_sdo_geom_metadata - how to update tolerance value

    Hello,
    I need to update my tolerance values within the DIMINFO field of the user_sdo_geom_metadata table. I'm new to updating "objects" via sql.
    Could someone provide an SQL example of how to update the tolerance value(s).
    Thanks very much,
    David Hagemann

    I need to query points at a certain distance from the interstate.
    This is my query
    =======================
    select objectid
    from Table_points , interstates
    where highway = 'I 95'
    and mdsys.sdo_within_distance (
    Table_points.shape, interstates.geom,
    'distance=2.5 layer_gtype=POINT') = 'TRUE';
    =======================
    This is the error I got
    ERROR at line 1:
    ORA-13285: Geometry coordinate transformation error
    ORA-29400: data cartridge error
    ORA-22060: argument [2] is an invalid or uninitialized number
    ORA-06512: at "MDSYS.SDO_3GL", line 160
    ORA-06512: at "MDSYS.SDO_3GL", line 266
    ORA-06512: at line 1
    =========================
    Anyone has an idea where I am wrong
    Thanks
    Tan

  • Reading bytea column over dblink

    Hi,
    I try to read bytea column from postgresql db over a dblink in Oracle DB. But I could not. How can I solve the problem?
    In windows environment there is a parameter in odbc driver bytea as LO. I could not find how to set it on unix odbc.
    Versions of products I Use:
    Postgresql 8.3.3 on redhat
    Oracle DB : 10.2.0.4 on HP/UX
    HSODBC : 10.2.0.4

    CURRENT_DATE is not supported:
    Supported SQL Syntax and Functions
    However, from reading this part:
    Supported SQL Syntax and Functions
    it becomes clear that you'll need to use a string of DATE datatype (in a fixed format) or select from a DATE column.
    You could just boldly try: to_date(CURRENT_DATE) , but you'll probably receive ORA-02070 again...

  • Dicovering Intelligent Agent on Linux fails with VD-4565

    I try to discover an Intelligent Agent 8.1.5 running on a Linux server with an Oracle 8.1.5 DB from an Oracle Enterprise Management Server 2.1. We just upgraded from OEM 2.0.4 to 2.1 and I had no problem with the Linux agent under 2.0.4.
    After starting the Agent on the Linux server the SERVICES.ORA and SNMP_RO.ORA files contain the information about the services running on the server. When I start the Discovery Wizard it fails with the error 'Discovery Failed:VD-4565:The agent of the node is already being deleted'.
    Then I stoped the agent and all service on the Linux server and did the following. I removed the SID_LIST entry from the LISTENER.ORA file and used the LOCAL_LISTENER init.ora parameter for the database. I know that the agent needs the SID_LIST to discover the database services, but I just wanted to give it a try. After restarting the database, listener and agent the SERVICE.ORA and SNMP_RO.ORA files did not contain any service information as expected. I tried to discover the agent again from the OEM 2.1 console and everything seemed to work fine. No errors this time. The Linux node was added to Nodes folder in the Navigator tree, but for sure no database or listener.
    Therefore I put the SID_LIST back into the listener.ora file and restarted the listener and agent. The service information were included in SERVICES.ORA and SNMP_RO.ORA file again. So I tried a Refresh Node from the OEM console and the error VD-4565 showed up again.
    Does anyone have any idea what's going on an how I can manage a Linux database from an OEM 2.1 console?
    Any help is appreciated.
    Thanks
    Peter
    null

    Hello Peter,
    I, alas do not have the answer for you. But... your symptom is EXACTLY LIKE MINE!!I was running OEM 2.0.4 and Oracle on a linux box (unfortunately, today I did something wrong and blew the database away!!!, I do not want to tell you how many hours I spend getting the database up, connected and communitcating with Windows NT box running OEM!) I made the switch from 2.0.4 to 2.1, and everything quit. More or less. I fixed my tnsnames.ora file on the NT side. That allowed me to connect. I got the Agent (sortof) running on the linux box and then I could discover the linux host computer name and domain, but it would not find ANY database. Although I could connect from the linux box, the nt box using oem (direct to db), sqlplus, and Access odbc!!! All listeners were there, etc. I did check the snmp*.ora files, and they would not discover anything (linux side) even though the LISTENER was listening, and tnsnames were naming and instances were instancing. My guess is yet another bug.
    Sorry for long reply. Now I will RELOAD THE ENTIRE DATABASE AND APP AGAIN!! I so far have been totally unable to run on the liux side, net assist and net easy config, but I could sucessfully bypass those apps by correctly using and configuring initSID.ora, etc and the other *.ora files.
    Eric
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Peter C:
    I try to discover an Intelligent Agent 8.1.5 running on a Linux server with an Oracle 8.1.5 DB from an Oracle Enterprise Management Server 2.1. We just upgraded from OEM 2.0.4 to 2.1 and I had no problem with the Linux agent under 2.0.4.
    After starting the Agent on the Linux server the SERVICES.ORA and SNMP_RO.ORA files contain the information about the services running on the server. When I start the Discovery Wizard it fails with the error 'Discovery Failed:VD-4565:The agent of the node is already being deleted'.
    Then I stoped the agent and all service on the Linux server and did the following. I removed the SID_LIST entry from the LISTENER.ORA file and used the LOCAL_LISTENER init.ora parameter for the database. I know that the agent needs the SID_LIST to discover the database services, but I just wanted to give it a try. After restarting the database, listener and agent the SERVICE.ORA and SNMP_RO.ORA files did not contain any service information as expected. I tried to discover the agent again from the OEM 2.1 console and everything seemed to work fine. No errors this time. The Linux node was added to Nodes folder in the Navigator tree, but for sure no database or listener.
    Therefore I put the SID_LIST back into the listener.ora file and restarted the listener and agent. The service information were included in SERVICES.ORA and SNMP_RO.ORA file again. So I tried a Refresh Node from the OEM console and the error VD-4565 showed up again.
    Does anyone have any idea what's going on an how I can manage a Linux database from an OEM 2.1 console?
    Any help is appreciated.
    Thanks
    Peter<HR></BLOCKQUOTE>
    null

  • Having trouble with lingering cursors.

    RHEL 5.2 Server
    Java: Sun JDK 1.6.0_16 (64-bit)
    Tomcat 6.0.20
    Oracle 10g (10.2.0.3)
    JDBC: ojdbc14.jar
    I'm having a problem with running out of cursors. I've searched for them with these queries:
    {noformat} SELECT a.sid,       b.status,       b.osuser,       b.machine,       to_char(b.logon_time, 'dd-mon-yyyy hh24:mi:ss') logon_time,       a.user_name,       a.sql_id,       a.sql_text   FROM v$session b,       v$open_cursor a WHERE a.sid = b.sid   AND a.user_name = 'APPUSERNAME' ORDER BY upper(a.sql_text),         b.status; SELECT count(a.sql_text) count,       a.sql_text   FROM v$session b,       v$open_cursor a WHERE a.sid = b.sid   AND a.user_name = 'APPUSERNAME' GROUP BY a.sql_text ORDER BY count desc,         upper(a.sql_text);{noformat}
    The thing is, whenever I track down the SQL shown by these queries in my Java app (a webapp running under Tomcat), the Statement objects are always guaranteed to be closed by a finally block. Statement.close() closes the current ResultSet object and all of the Statement objects I've looked at have only one ResultSet. I am at a loss for how it's possible for these cursors to still be open. They seem to linger even though their ResultSet's must have been closed.
    One thought I had was that it might be possible (though unlikely) that there are some transactions that are not properly doing a commit/rollback before returning the connection to the pool, and the next threads that get the connection may have their queries be considered part of that unfinished transaction until one of them does a commit/rollback, and if so, possibly still be considered as open cursors in the system until the transaction is committed/rolled back? Does that make sense? Is it a possibility?
    Any other ideas as to why closed ResultSet's could be showing up in v$open_cursor?

    OK. I managed to find an operation that when repeated can consistently drive
    up the cursors and get the ORA-01000 again.
    Checking for the open cursor count:
    {noformat}
    SELECT a.sid,
           a.value,
           b.name
      FROM v$sesstat a,
           v$statname b
    WHERE a.statistic# = b.statistic#
       AND a.statistic# = 3
       AND a.value > 0
    ORDER BY a.value DESC;
    SID                    VALUE                  NAME                                                            
    1074                   299                    opened cursors current                                          
    1073                   42                     opened cursors current                                          
    1096                   28                     opened cursors current                                          
    1083                   7                      opened cursors current                                          
    1084                   7                      opened cursors current                                          
    1097                   4                      opened cursors current                                          
    1080                   2                      opened cursors current                                          
    1093                   1                      opened cursors current{noformat} This query:
    {noformat}SELECT count(a.sql_text) count,
           a.sql_text
      FROM v$session b,
           v$open_cursor a
    WHERE a.sid = b.sid
       AND a.sid = 1074
    GROUP BY a.sql_text
    ORDER BY count desc,
             upper(a.sql_text);{noformat}shows an update statement with 246 records in v$open_cursor. However, they all have different SQL ids. The SQL in question is dynamically generated in Java, but it is using a PreparedStatement. The parameters being plugged are different every time (it's changing data in a different row each time).
    The statement.close() on this UPDATE is guaranteed to run from the finally clause; the same as all of the others I've tracked down.
    I can't tell for sure that a commit is being done after the update, though it looks like it is. The code for transactions is not as nicely encapsulated and linear as it is for specific SQL calls.

  • ORA-03113 and ORA-07445 ACCESS_VIOLATION (again)

    On:
    10g
    Windows 2003 server
    IIS 6
    ASP.NET 2.0
    Oracle client 10.2.0.1.0
    ODAC 10.2.0.2.21
    odp.net 2.102.2.20
    Validate Connection=true;Min Pool Size=0 in connection string
    All odp.net connection, command and parameter objects are closed/disposed after use.
    The issue:
    ORA-03113 is returned to asp.net.
    ORA-07445 ACCESS_VIOLATION is logged on database side. (see below)
    It is ALWAYS the same select query (in stored procedure).
    This is NOT a heavy query. Whole table is only 20K rows. (see below)
    The rest of web application is UNAFFECTED. oracle connection and queries working normally.
    Memory and threads used w3wp.exe are normal
    Our only solution is for DBA to re-allocate table on db server.
    I have read all related posts on this Forum but please any advice is welcome!
    Thanks,
    Adam
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [evaopn2+2896] [PC:0x15F3876] [ADDR:0x0] [UNABLE_TO_READ] []
    Edited by: user10422769 on Sep 1, 2010 12:35 AM

    according to this article:
    <span> [Oracle ORA-07445 exception tips|<a class="smarterwiki-linkify" href="http://www.dba-oracle.com/t_ora_07445_exception_encountered.htm]">http://www.dba-oracle.com/t_ora_07445_exception_encountered.htm]</a>
    </span>
    ther is a lot of reasons for this issue I suggest that you try to do some action to try to understand where is the problem:
    1. Change the connection string to contain only the schema parameter (no pooling parameters).
    2. Change the select to return only 1:
    _SELECT 1 as val_
    FROM IIL_RUN_SETS ILRS
    INNER JOIN IIL_RN_SET_STA_VALS ISSV
    ON ILRS.ILRS_ID = ISSV.ILRS_ID
    AND CURRENT_TIMESTAMP BETWEEN ISSV.TRANS_FROM AND ISSV.TRANS_TO
    INNER JOIN IIL_RN_SET_STATUSES ISST
    ON ISSV.ISST_ID = ISST.ISST_ID
    INNER JOIN IIL_RUNS ILRN
    ON ILRS.ILRS_ID = ILRN.ILRS_ID
    LEFT OUTER JOIN IIL_RUN_LABELS IRLB
    ON ILRN.IRLB_ID = IRLB.IRLB_ID
    INNER JOIN IIL_RUN_STA_VALS IRSV
    ON ILRN.ILRN_ID = IRSV.ILRN_ID
    AND CURRENT_TIMESTAMP BETWEEN IRSV.TRANS_FROM AND IRSV.TRANS_TO
    INNER JOIN IIL_RUN_STATUSES IRST
    ON IRSV.IRST_ID = IRST.IRST_ID
    INNER JOIN IIL_RUN_TYPES IRTY
    ON ILRN.IRTY_ID = IRTY.IRTY_ID
    INNER JOIN PRODUCTS PDCT
    ON ILRN.PDCT_ID = PDCT.PDCT_ID
    INNER JOIN USERS UPDATE_USER
    ON ILRN.UPDATE_USER_ID = UPDATE_USER.USER_ID
    WHERE ILRS.ILRS_ID ; = :B1
    _AND rownum=1_
    ORDER BY ILRN.ILRN_ID
    if this result will not return the value that means that the problem is in the SQL/Procedure
    3. Try to run on diffrent client - it maybe related to some ODP problem one one client.

Maybe you are looking for

  • Video using Skype - connecting to non Mac users

    Using Skype Beta 2.0.0.3 I am trying to video others on PCs. My Isight is OK, I can see them in video - but they can not see me. Have set up Preferences/ enable skype/ automatic. Is there some work around to have my video recieved by others.

  • Customer stock in projects

    Hi All, How to maintain customer stocks in projects. When a customer gives some materials for project  execution, some cases it wil be consumed and some cases it should be returned to the customer. Is it possible to have F stock in projects? Regards

  • When I try to backup catalog to DVD only a few of the pictures come through

    When I try to gackup catalog on photoshop to a DVD only a few pictures come through.  Seems to take a really long time.

  • ASM :Copy of datafiles

    Hi All, We have requirement to change the Database name of the Database which is in ASM. The question : Can we copy the datafiles with in the diskgroup as we are changing the databse name , the directory structure will change Can y ou post the proced

  • Resolution Change When I am Using "Edit a copy with lightroom adjustment"

    Hi Guys, I am using the latest version of lightroom and I have been trying to fix the error that lightroom made. 1. I open most of my photos (resolution 300dpi) on lightroom to do some adjustment 2. I am using "Edit with photoshop CS3" to continuemy