Index space problem ORA-29902 ORA-13200 ORA-13220 ORA-06512

I have problems by running the following query. If I change the values of the SDO_ORDINATE_ARRAY, some of the values of work, some values are not. Here is an example of when it fails. I managed queries using SDO_NN, if something needs work...

How can I get for appearing on this (very new to space) question? Work on operating system Windows 7 Prof

Select p.building_polygon
spat.building p, spat.firebuilding f
where p.building_name = f.building_on_fire and
SDO_RELATE (p.building_polygon,
SDO_GEOMETRY (2003, NULL, NULL, SDO_ELEM_INFO_ARRAY (1,1003,1))
SDO_ORDINATE_ARRAY (768,278,477,504,155,115)), 'mask = ANYINTERACT') = 'TRUE '.
*
Error on line 0
ORA-29902: error in executing ODCIIndexStart() routine
ORA-13200: internal error [WINDOW_OBJECT] in spatial indexing.
ORA-13220: failed to compare the tile with the geometry
ORA-06512: at the 'MDSYS. SDO_INDEX_METHOD_10I', line 333

The script that is used to create objects:
create user spat identified by spat;
grant all privileges to spit;

Conn spat/spat;
ALTER session set current_schema = seed;
TOGETHER TO DEFINE

CREATE TABLE spit. BUILDING
(
BUILDING_ID VARCHAR2 (3),
BUILDING_NAME VARCHAR2 (50).
VERTICES_COUNT INT,
MDSYS BUILDING_POLYGON. SDO_GEOMETRY,
CONSTRAINT BUILDING_PK PRIMARY KEY (BUILDING_ID)
);

CREATE TABLE spit. FIREHYDRANT
(
FIREHYDRANT_ID VARCHAR2 (3),
MDSYS HYDRANT_POINT. SDO_GEOMETRY,
CONSTRAINT FIREHYDRANT_PK PRIMARY KEY (FIREHYDRANT_ID)
);

CREATE TABLE spit. FIREBUILDING
(
BUILDING_ON_FIRE VARCHAR (50),
CONSTRAINT FIREBUILDING_PK PRIMARY KEY (BUILDING_ON_FIRE)
);

INSERT IN USER_SDO_GEOM_METADATA
VALUES ('CONSTRUCTION', 'BUILDING_POLYGON',
SDO_DIM_ARRAY (SDO_DIM_ELEMENT ('X', 0, 820, 0.005),
SDO_DIM_ELEMENT ('Y', 0, 580, 0.005)), NULL);

INSERT IN USER_SDO_GEOM_METADATA
VALUES ('FIREHYDRANT', 'HYDRANT_POINT',
SDO_DIM_ARRAY (SDO_DIM_ELEMENT ('X', 0, 820, 0.005),
SDO_DIM_ELEMENT ('Y', 0, 580, 0.005)), NULL);

COMMIT;

CREATE classic INDEX. BUILDING_SPATIAL_IDX
THE spat. BUILDING (BUILDING_POLYGON)
INDEXTYPE IS MDSYS. SPATIAL_INDEX;

CREATE classic INDEX. FIREHYDRANT_SPATIAL_IDX
THE spat. FIREHYDRANT (HYDRANT_POINT)
INDEXTYPE IS MDSYS. SPATIAL_INDEX;

COMMIT;

==================UPDATE==========================
OK, I noticed something interesting. If I have 3 points in my table ordered, errors are thrown. If I have more than 3 points in my table ordered, it works. Could someone explain why this is and if there is a way around it?

Select p.building_polygon
spat.building p, elkordy.firebuilding f
where p.building_name = f.building_on_fire
and SDO_ANYINTERACT (p.building_polygon
, SDO_GEOMETRY (2003, NULL, NULL, SDO_ELEM_INFO_ARRAY (1,1003,1))
((, - SDO_ORDINATE_ARRAY (232,91,149,226,277,198))) = "TRUE"; -USE ONLY ONE
((, - SDO_ORDINATE_ARRAY (165,84,168,484,769,534,743,108))) = "TRUE"; -USE ONLY ONE

Published by: AmeerE on March 17, 2013 12:19 AM

Ameer,

You say that you are new to the space.

The issue that you are facing is that the 3 vertices are not enough for a polygon. For Oracle Spatial, an outside edge of the polygon (1003) must have 4 peaks with the first being the last.

So:

select sdo_geom.validate_geometry(SDO_GEOMETRY(2003,NULL,NULL,SDO_ELEM_INFO_ARRAY(1,1003,1),SDO_ORDINATE_ARRAY(232,91,149,226,277,198)),0.05) as  from dual;
VGEOM
-----
13343

The Oracle error documentation;

ORA-13343: less than four coordinates polygon geometry
Cause: Specified geometry as a polygon, less than four coordinates in its definition.
Action: A polygon must have at least four distinct coordinates. Correct the geometric definition or set the appropriate for this geometry SDO_GTYPE or SDO_ETYPE attribute.

So, the solution is to repeat the first vertex:

select sdo_geom.validate_geometry(SDO_GEOMETRY(2003,NULL,NULL,SDO_ELEM_INFO_ARRAY(1,1003,1),SDO_ORDINATE_ARRAY(232,91,149,226,277,198,232,91)),0.05) as geom from dual;
VGEOM
-----
13367

13357 is another error...

ORA-13367: misdirection of the rings interiors/exteriors
Cause: In an Oracle Spatial geometry, the outer and/or inner rings are not geared properly.
Action: Make sure that the outer rings are oriented to the left and the inner rings are oriented in a clockwise direction.

Note that Action tells you exactly the right command for the rings.

This has been solved by reversing the coordinates as follows:

select sdo_geom.validate_geometry(SDO_GEOMETRY(2003,NULL,NULL,SDO_ELEM_INFO_ARRAY(1,1003,1),SDO_ORDINATE_ARRAY(232,91,277,198,149,226,232,91)),0.05) as vgeom from dual;
VGEOM
-----
TRUE

It is now a geometry valid and will work in your sdo_anyinteract etc requests.

Always make sure that your geometries times stored in the column of a table and provided to a request otherwise, are VALID.

If this answers your query, please grant me the points that you think I deserve.

concerning
SImon

Tags: Database

Similar Questions

  • ORA-06533: index beyond County ORA-06512:

    Hello

    I tried to insert the collection of data (below) in two individual tables, when I tried to insert a unique collection of data in two individual tables, it has been introduced.

    But when I tired to insert several collections into two individual tables, I am getting below error.

    Einf is my PLSQL CODE with details of the error,

    could you please give me solution.

    Thanks in advance .

    Set serveroutput on

    DECLARE

    /*

    PL ORG_ADDRESSES_PHONES_TAB: = ORG_ADDRESSES_PHONES_TAB (ORG_ADDRESSES_PHONES_TYPE ('a1', 'c1', 's1', 'p1', 1, ORG_PHONES_TAB (ORG_PHONES_TYPE ('a2', 'p1', 's1', 'e1')));)

    If inserted unique collections

    */

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    ------------------------------------------------------------------------          But Below data is not inserting because of multiple collections          ----------------------------------------------------------------------------------------------

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    PL ORG_ADDRESSES_PHONES_TAB: = ORG_ADDRESSES_PHONES_TAB (ORG_ADDRESSES_PHONES_TYPE ("a1", "c1", "s1", "p1", 1, ORG_PHONES_TAB (ORG_PHONES_TYPE ("a2", "p1", "s1", "e1"))), ORG_ADDRESSES_PHONES_TYPE ('a2', 'c2', 's3', 'p4', 2, ORG_PHONES_TAB (ORG_PHONES_TYPE ('d3', 'f3', 'ws3', 're3')));)

    BEGIN

    I'm IN pl. FIRST... LAST pl.

    LOOP

    PL. EXTEND;

    dbms_output.put_line (i);

    dbms_output.put_line ('next': pl (i) .ORG_PHONES.) Next (1));

    PL of YEW. (I) exists, THEN - if the element exists then display

    dbms_output.put_line (' ADDRESS ': pl (i).) ADDRESS);

    dbms_output.put_line (' CITY ' | pl (i).) IN TOWN);

    dbms_output.put_line ('STATE_CODE' | pl (i).) STATE_CODE);

    dbms_output.put_line (' zip_code ' | pl (i).) ZIP_CODE);

    dbms_output.put_line ('PRIMARY_YESNO': (i) pl.) PRIMARY_YESNO);

    dbms_output.put_line ('POSTAL Code': pl (i) .ORG_PHONES (i).) AREA CODE);

    dbms_output.put_line ('PREFIX': pl (i) .ORG_PHONES (i).) PREFIX);

    dbms_output.put_line ('SUFFIX' | pl (i) .ORG_PHONES (i).) SUFFIX);

    dbms_output.put_line ('EXTENSION' | pl (i) .ORG_PHONES (i).) EXTENSION);

    -pl. EXTEND;

    -pl (i) .ORG_PHONES. EXTEND;

    END IF;

    PL (i) .ORG_PHONES. EXTEND;

    END LOOP;

    COMMIT;

    -dbms_output.put_line ('hii');

    end;

    ----------------------------------------

    Failed query see the settings

    Error from line: 3 in command.

    DECLARE

    -declare a variable of type projecttable

    PL ORG_ADDRESSES_PHONES_TAB: = ORG_ADDRESSES_PHONES_TAB (ORG_ADDRESSES_PHONES_TYPE ("a1", "c1", "s1", "p1", 1, ORG_PHONES_TAB (ORG_PHONES_TYPE ("a2", "p1", "s1", "e1"))), ORG_ADDRESSES_PHONES_TYPE ('ta2', 'uc2', 'vs3', 'wp4', 2, ORG_PHONES_TAB (ORG_PHONES_TYPE ('d3', 'f3', 'ws3', 're3')));)

    -How to display the values in the table

    BEGIN - beginning of the main block

    I'm in pl.first... pl. Last

    loop

    dbms_output.put_line (i);

    dbms_output.put_line (' ADDRESS ': pl (i).) ADDRESS);

    dbms_output.put_line (' CITY ' | pl (i).) IN TOWN);

    dbms_output.put_line ('STATE_CODE' | pl (i).) STATE_CODE);

    dbms_output.put_line (' zip_code ' | pl (i).) ZIP_CODE);

    dbms_output.put_line ('PRIMARY_YESNO': (i) pl.) PRIMARY_YESNO);

    dbms_output.put_line ('POSTAL Code': pl (i) .ORG_PHONES (i).) AREA CODE);

    dbms_output.put_line ('PREFIX': pl (i) .ORG_PHONES (i).) PREFIX);

    dbms_output.put_line ('SUFFIX' | pl (i) .ORG_PHONES (i).) SUFFIX);

    dbms_output.put_line ('EXTENSION' | pl (i) .ORG_PHONES (i).) EXTENSION);

    -pl. EXTEND;

    PL (i) .ORG_PHONES. EXTEND;

    end loop;

    COMMIT;

    -dbms_output.put_line ('hii');

    end;

    Error report-

    ORA-06533: index beyond County

    ORA-06512: at line 19

    06533 00000 - 'County beyond index'

    * Cause: A limit index was greater than the number of a varray

    or too big for a nested table.

    * Action: Verify program logic and extend explicitly if necessary.

    1

    ADDRESS a1

    CITY c1

    STATE_CODE s1

    Zip_code p1

    PRIMARY_YESNO 1

    CODEZONE a2

    PREFIX p1

    SUFFIX s1

    E1 EXTENSION

    2

    ADDRESS ta2

    Uc2 CITY

    STATE_CODE vs3

    Zip_code wp4

    PRIMARY_YESNO 2

    You have to LOOP in your table of pl (I) .ORG_PHONES (I)

    CREATE OR REPLACE PROCEDURE myproc AS
    
       pl ORG_ADDRESSES_PHONES_TAB := ORG_ADDRESSES_PHONES_TAB(ORG_ADDRESSES_PHONES_TYPE('a1'
                                                                                        ,'c1'
                                                                                        ,'s1'
                                                                                        ,'p1'
                                                                                        ,1
                                                                                        ,ORG_PHONES_TAB(ORG_PHONES_TYPE('a2'
                                                                                                                       ,'p1'
                                                                                                                       ,'s1'
                                                                                                                       ,'e1')
                                                                                                       )
                                                                                       )
                                                              ,ORG_ADDRESSES_PHONES_TYPE('a2'
                                                                                        ,'c2'
                                                                                        ,'s3'
                                                                                        ,'p4'
                                                                                        ,2
                                                                                        ,ORG_PHONES_TAB(ORG_PHONES_TYPE('d3'
                                                                                                                       ,'f3'
                                                                                                                       ,'ws3'
                                                                                                                       ,'re3')
                                                                                                       )
                                                                                        )
                                                              );
    
    BEGIN
    
       DBMS_OUTPUT.PUT_LINE('First: ' || TO_CHAR(pl.FIRST));
       DBMS_OUTPUT.PUT_LINE('Last: ' || TO_CHAR(pl.LAST));
    
       FOR I IN pl.FIRST..pl.LAST LOOP
    
          pl.EXTEND;
    
          DBMS_OUTPUT.PUT_LINE(I);
          DBMS_OUTPUT.PUT_LINE('next ' || pl(I).ORG_PHONES.NEXT(1));
    
          IF(pl.EXISTS(I)) THEN                       -- if item exists then display
    
             DBMS_OUTPUT.PUT_LINE('ADDRESS  ' || pl(I).ADDRESS);
             DBMS_OUTPUT.PUT_LINE('CITY  ' || pl(I).CITY);
             DBMS_OUTPUT.PUT_LINE('STATE_CODE  ' || pl(I).STATE_CODE);
             DBMS_OUTPUT.PUT_LINE('POSTAL_CODE  ' || pl(I).POSTAL_CODE);
             DBMS_OUTPUT.PUT_LINE('PRIMARY_YESNO  ' || pl(I).PRIMARY_YESNO);
    
             FOR j IN pl(I).org_phones.FIRST..pl(I).org_phones.LAST LOOP
    
                DBMS_OUTPUT.PUT_LINE('AREACODE  ' || pl(I).ORG_PHONES(j).AREACODE);
                DBMS_OUTPUT.PUT_LINE('PREFIX  ' || pl(I).ORG_PHONES(j).PREFIX);
                DBMS_OUTPUT.PUT_LINE('SUFFIX  ' || pl(I).ORG_PHONES(j).SUFFIX);
                DBMS_OUTPUT.PUT_LINE('EXTENSION  ' || pl(I).ORG_PHONES(j).EXTENSION);
    
             END LOOP;
    
          --pl.EXTEND;
          --pl(i).ORG_PHONES.EXTEND;
    
          END IF;
    
          pl(I).ORG_PHONES.EXTEND;
    
       END LOOP;
    
       COMMIT;
    
       --dbms_output.put_line('hii');
    
    EXCEPTION
    
       WHEN OTHERS THEN
          DBMS_OUTPUT.PUT_LINE(DBMS_UTILITY.FORMAT_ERROR_STACK);
    
    END myproc;
    
  • How to solve the problem of the ORA-29273 and ORA-06512

    Hey, guys:

    I had a problem to get Google geocoding when I used a government licensed Google API key. This project is developed for the Government, so we should be able to use this API key. And the agent of the Government told me that as long as I use this API key and they add to the area of our company to their list, we should be able to get free Google geocoding indefinitely. I'm using Oracle 11 g 2, Apex 4.1. Google returns a result (1600 geocoding) and after awhile my program was exception. However, I got the following problem:

    ORA-29273: HTTP request failed
    ORA-06512: at "SYS." UTL_HTTP", line 1722
    ORA-29259: end-of-input reached
    ORA-06512: at "get OUT. SOR_TEST_SERVICE', line 24
    ORA-06512: at "get OUT. SOR_TEST_SERVICE', line 187
    ORA-06512: at line 6
    29273 00000 - "the HTTP request failed.
    * Cause: The UTL_HTTP package cannot run the HTTP request.
    * Action: Use get_detailed_sqlerrm to check the detailed error message.
    Correct the error and restart the HTTP request.

    and I searched online and found the thread following OTN:

    Anyone incorporating the Google Apps Provisioning via Oracle or APEX API?

    It looks like, I have to get Google API certificate and install it on Oracle wallet. I do not experience this issue. Can someone give me a roadmap to this topic? For example, how can I get a certificate of Google? Should I get in touch with Google, or send the request with API license key? or API key is a certificate? an example would be very useful!


    Here is my code
      procedure Get_Geocoding(P_s_Address in varchar2, P_s_Geocoding out varchar2, P_n_accuracy out number, P_b_success out boolean) is
      
      l_address varchar2(4000);
      l_url varchar2(32000);
      l_response varchar2(3200);
      n_first_comma number;
      n_second_comma number;
      n_level_length number;
      
      BEGIN
        /* TODO implementation required */
        
        l_address:=APEX_UTIL.URL_ENCODE(P_s_Address);
        l_address := replace(l_address,' ','+');
         
        l_url := 'http://maps.google.com/maps/geo?q='||l_address||'&'||'output=csv'||'&'||'key=my API key';
        l_response := utl_http.request(l_url, APEX_APPLICATION.G_PROXY_SERVER);
        
        --dbms_output.put_line(l_response);
        
        n_first_comma:=instr(l_response,',',1,1);
        n_second_comma:=instr(l_response,',',1,2);
        n_level_length:=n_second_comma-n_first_comma-1;
    
        P_n_accuracy:=to_number(substr(l_response,n_first_comma+1, n_level_length));
        
         l_response:=substr(l_response,instr(l_response,',',1,2)+1);
        
           
        
        P_s_Geocoding:=l_response;
        if (P_s_Geocoding<>'0,0') then
          P_b_success:=true;
         else
          P_b_success:=false;
        end if;
      
      END;
    Thank you very much!

    Sam

    Published by: lxiscas on August 22, 2012 16:33

    Published by: lxiscas on August 23, 2012 08:27

    To access the HTTPS site, you will need portfolio information.
    Portfolio is created through the Oracle Wallet Manager. It is available in standard edition database or Oracle HTTP server.
    If you have installed, go to Oracle Wallet Manager and create a portfolio.
    Then, you need to import the certificates on this portfolio.

    When you open the https://maps.google.com/ website in your web browser, you will see a lock symbol just before https. Double click on that and click on certificate information.
    Then click path of certificate, and then click the top node and click View Certificate and click on details and then copy in the file. The Certificate Export Wizard will start select
    Message Syntax cryptographice and check include all certification path.

    He followed even for all nodes in the main certificate

    This will create a file. Once the file is created. Double click on that and start the Certificate Import Wizard. Follow the online instructions. (It is need in the server)
    Once done. Open the Oracle Portfolio Manager and import it there also. Right-click on the wallet, and select Import.
    Then log in as administrator of the apex
    Workspace - internal
    User - Admin
    Password - passowrd you created everything by the installation

    Go to the setting of the instance and select portfolio information. And put the path of the portfolio in the file format: and password wallet.

    Once done, I think that you will be able to access.

    See you soon,.
    Mehabub

  • Description of the problem: ORA-07445: exception encountered: core dump [(drexumcx)

    Hello

    I would like to know which solution option, I want to continue:

    1. unreleased the fix for Bug 5160122 'TEXT QUERY IMPASSE WITH GATHER_STATS_JOB, THEN COREDUMP ORA-7445 [DREXUMCX]' are included in
    Oracle RDBMS 11.1.0 and newer. In Oracle RDBMS 11.1.0 and newer, this problem is no longer.

    OR

    2 new the fix for Bug 5160122 'TEXT QUERY IMPASSE WITH GATHER_STATS_JOB, THEN COREDUMP ORA-7445 [DREXUMCX]' are included in
    Oracle RDBMS 10.2.0.5.0. With the 10.2.0.5.0 group of hotfixes installed, it is no longer a problem.

    OR

    3. with the fix for new Bug 5160122 ' TEXT QUERY DEADLOCK WITH GATHER_STATS_JOB, THEN COREDUMP ORA-7445 [DREXUMCX] ' installed
    against 10.2.0.4.0 on Linux x 86-64, is more problem.

    Kind regards.
    Prasad

    Description of the problem: ORA-07445: exception encountered: core dump [(drexumcx)

    stop multi - DISPLAY same problem

  • ORA-13033 ORA-06512 at 11.1.0.7

    I have a single shape that seems to cause of ORA-13033 11.1.0.7 but not 11.1.0.6. Wondering if I am missing something stupid, or if someone else has experienced this problem. I did a quick search of positions, but found nothing. It could also be that space has a problem on the 11.1.0.7 server...

    Thank you

    -on 11.1.0.7

    SQL > drop index foo_spatial_index;

    The index is deleted.

    SQL > drop table foo;

    Deleted table.

    SQL > delete from user_sdo_geom_metadata where table_name = 'FOO ';

    1 line removal.

    SQL >
    SQL > create table foo (shape sdo_geometry);

    Table created.

    SQL > insert into foo values (SDO_GEOMETRY (3002, NULL, NULL, SDO_ELEM_INFO_ARRAY (1, 4, 1, 1, 2, 2), SDO_ORDINATE_ARRAY (484893.192, 1845442.68))
    0, 484881.786, 1845444.7,.5, 484871.639, 1845450.28, 1)));

    1 line of creation.

    SQL > insert into user_sdo_geom_metadata values ("FOO", "SHAPE", SDO_DIM_ARRAY (SDO_DIM_ELEMENT(, 484719.102, 484904.266,.0000005), SDO_DI
    (M_ELEMENT(null, 1845366.11, 1845513.86,.0000005), SDO_DIM_ELEMENT (NULL, 0, 5368.70912,.0000005)), null);

    1 line of creation.

    SQL > create index foo_spatial_index on foo (shape) indextype is mdsys.spatial_index;
    create index foo_spatial_index on foo (shape) indextype is mdsys.spatial_index
    *
    ERROR on line 1:
    ORA-29855: an error has occurred in the execution of routine ODCIINDEXCREATE
    ORA-13249: internal error in the Spatial index: [mdidxrbd]
    ORA-13249: error in the Spatial index: index build failed
    ORA-13249: error in the spatial index: [mdrcrtxfergm]
    ORA-13249: error in the spatial index: [mdpridxtxfergm]
    ORA-13200: internal error [ROWID:AAFV8VAAHAAAGUtAAA] in spatial indexing.
    ORA-13206: [] internal error creating the spatial index
    ORA-13033: invalid data in the SDO_ELEM_INFO_ARRAY in the SDO_GEOMETRY object
    ORA-06512: at the 'MDSYS. SDO_INDEX_METHOD_10I', line 10

    -on a different 11.1.0.6

    SQL > drop index foo_spatial_index;
    Drop index foo_spatial_index
    *
    ERROR on line 1:
    ORA-01418: specified index does not exist


    SQL > drop table foo;
    drop table foo
    *
    ERROR on line 1:
    ORA-00942: table or view does not exist


    SQL > delete from user_sdo_geom_metadata where table_name = 'FOO ';

    0 rows deleted.

    SQL >
    SQL > create table foo (shape sdo_geometry);

    Table created.

    SQL > insert into foo values (SDO_GEOMETRY (3002, NULL, NULL, SDO_ELEM_INFO_ARRAY (1, 4, 1, 1, 2, 2), SDO_ORDINATE_ARRAY (484893.192, 1845442.68))
    0, 484881.786, 1845444.7,.5, 484871.639, 1845450.28, 1)));

    1 line of creation.

    SQL > insert into user_sdo_geom_metadata values ("FOO", "SHAPE", SDO_DIM_ARRAY (SDO_DIM_ELEMENT(, 484719.102, 484904.266,.0000005), SDO_DI
    (M_ELEMENT(null, 1845366.11, 1845513.86,.0000005), SDO_DIM_ELEMENT (NULL, 0, 5368.70912,.0000005)), null);

    1 line of creation.

    SQL > create index foo_spatial_index on foo (shape) indextype is mdsys.spatial_index;

    The index is created.

    There are a number of things wrong with your geometry.

    The record says that for compound geometries (sdo_etype = 4) SDO_INTERPRETATION (in this case with sdo_etype = 4) gives the number of subitems. This should be more then 1 large:

    http://download.Oracle.com/docs/CD/B28359_01/AppDev.111/b28400/sdo_objrelschema.htm#BGHDGCCE

    4

    n > 1

    Compound line string with some vertices connected by straight segments and some by circular arcs. The value n in the interpretation column specifies the number of contiguous subelements that make up the line string.

    The triplets following n in the Ansdo_elem_info table describe each of these sub-elements. Subitems cannot SDO_ETYPE 2. The last point of a subelement is the first point of the next subelement, and should not be repeated.

    In your case, you will either need a string of single line that makes the first triplet even unnecessary or incorrect in the Ansdo_elem_info, or you are missing a third triplet in the Ansdo_elem_info.

    You should always validate your geometry first, if you do this also on your 11.1.0.6 version you will get:

    SDO_GEOM. VALIDATE_GEOMETRY_WITH_CONTEXT

    ---------------------------------------

    54506 point: 0, Edge: 2,.

    ORA-54506: compound curve not supported for 3D geometries
    Cause: The 3D geometry contained one or more compound curves, which are not
    support for 3D geometries.
    Action: Remove all the curves of geometry.

    As you can see also compound curveare not supported in 3D geometries.

    IF it is not a compound (with SDO_ELEM_INFO_ARRAY = (1,2,2), you will see that this geometry will validate.

    Looks like the validation could be integrated now in creating indexes in 11.1.0.7.

    Published by: lucvanlinden on March 20, 2009 09:07

  • ORA-06512: at "SYS." UTL_HTTP"ORA-29259: end-of-entry available on UTL_HTTP. GET_RESPONSE

    Hi all

    I call using UTL_HTTP and SOAP_API Web services, mentioned below, similarly

    FUNCTION to CREATE or REPLACE add_numbers (p_int_1 in NUMBER, p_int_2 number)

    RETURN NUMBER

    AS

    l_request soap_api.t_request;

    l_response soap_api.t_response;

    l_return VARCHAR2 (32767).

    l_url VARCHAR2 (32767).

    l_namespace VARCHAR2 (32767).

    l_method VARCHAR2 (32767).

    l_soap_action VARCHAR2 (32767).

    l_result_name VARCHAR2 (32767).

    BEGIN

              l_url := ' http://oracle-base.com/webservices/server.php';

    " l_namespace: = ' xmlns =" http://Oracle-base.com/webservices/ "';

    l_method: = 'ws_add ';

    l_soap_action: = ' http://oracle-base.com/webservices/server.php/ws_add';

    l_result_name: = 'back ';

    l_request: = soap_api.new_request (p_method = > l_method,)

    p_namespace = > l_namespace);

    soap_api.add_parameter (p_request = > l_request,)

    p_name = > 'int1 ',.

    p_type = > ' xsd: Integer.

    p_value = > p_int_1);

    soap_api.add_parameter (p_request = > l_request,)

    p_name = > "int2"

    p_type = > ' xsd: Integer.

    p_value = > p_int_2);

    l_response: = soap_api.invoke (p_request = > l_request,)

    p_url = > l_url,

    p_action = > l_soap_action);

    l_return: = soap_api.get_return_value (p_response = > l_response,)

    p_name = > l_result_name,

    p_namespace = > NULL);

    RETURN l_return;

    END;

    It works very well when the number of records is less (the XML output is small), but when the number of records in the source database is passed then I'm not able to get the output XML file.

    I get the error message,

    error code:-29273, msg error: ORA-29273: HTTP request failed

    ORA-06512: at "SYS." UTL_HTTP", line 1369

    ORA-29259: end-of-input reached

    I am gettting error on line,

    L_HTTP_RESPONSE: = UTL_HTTP. GET_RESPONSE (L_HTTP_REQUEST);

    Can someone help me with this problem? Is it possible to increase the size HTTP_RESPONSE?

    Thank you

    Abbas Qureshi

    Hello

    have you checked the end of your XML data? You wrote:

    > Looped it returns two values XML we have a length 32767 and other is 122.
    Perhaps you can see which part of your HTTP response is missing.

    Kind regards

    WoG

  • ERROR / T_ITEMS in the TABLE is changing, function of triggering/can not see ORA-06512... ?

    Hi all

    I CREATED THE TRIGGER TO CHECK NOM_ELEMENT BEFORE UPDATE ON THE T_ITEMS TABLE IF AN ANOTHER NOM_ELEMENT LIKE NOM_ELEMENT CURRENT OR NOT, IF AS AN ANOTHER NOM_ELEMENT DON'T SAVE UPDATED CURRENT NOM_ELEMENT.

    MY NO IS:

    1 - I CREATED the FUNCTION CALL CH_UNIQUE_ITEM_NAME

    CREATE OR REPLACE FUNCTION CH_UNIQUE_ITEM_NAME
    (NUMBER OF P_ID, P_ITEM_NAME IN VARCHAR2)
    RETURN NUMBER
    AS
    NUMBER OF X_COUNT;
    -FUNCTION "CH_UNIQUE_ITEM_NAME" TO CHECK NOM_ELEMENT LIKE OTHER NOM_ELEMENT OR NOT.
    BEGIN
    SELECT COUNT (ITEM_NAME)
    IN X_COUNT
    OF T_ITEMS
    WHERE ID! P_ID =
    AND UPPER (ITEM_NAME) AS UPPER (P_ITEM_NAME);
    RETURN X_COUNT;
    END CH_UNIQUE_ITEM_NAME;

    2. I CREATED TRIGGER CALL TRG_CH_UNIQUE_T_ITEMS

    CREATE OR REPLACE 'TRG_CH_UNIQUE_T_ITEMS' before FIRING
    UPDATE
    ON T_ITEMS FOR EACH LINE
    DECLARE
    NUMBER OF X_CHECK;
    BEGIN
    SELECT CH_UNIQUE_ITEM_NAME (: OLD.ID,: NEW.) NOM_ELEMENT) IN DOUBLE X_CHECK;
    IF (: NEW.) NOM_ELEMENT DISLIKES: OLD. Nom_element AND X_CHECK > 0)
    THEN RAISE_APPLICATION_ERROR (-20007, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
    END IF;
    END;

    NOW WHEN I UPDATE ANY ITEMS FOUND ERROR "ERROR / T_ITEMS in the TABLE is changing, function of triggering/can not see ORA-06512.

    Form on T_ITEMS22222.png

    Please help me TO RESOLVE THIS ERROR. I TIRED TO SOLVE...

    Thank you

    You don't realize that you have just set a UNIQUE INDEX of several columns?

    create unique index index_name_uq on table_name( user#, upper(item_name) );
    

    In addition, a GUI Design point, (using the terms of the APEX) that you want to validate the data before submit you.

    (use a Page-level Validation)

    MK

  • OEM12c: Container of data in case of failure to schedule the backup-ORA 20411 - ORA-06512

    Oracle Enterprise Manager Cloud control 12 c - 12.1.0.3

    Oracle Database Enterprise Edition 11.2.0.3

    Oracle Enterprise Linux 5

    Database container:

    Oracle Database Enterprise Edition 12.1.0.5

    Windows Server 2012 R2 Standard

    OEM12c: Container for database fail to schedule backup

    ORA-20411: the following parameters have a NULL value: db_connect_string ORA-06512: at "SYSMAN.". EM_JOB_OPS', line 290 ORA-06512: at "SYSMAN.". GC_JOB', line 29 ORA-06512: at line 1

    Thank you

    Marcelo brands

    ESRI, technical director, OCP

    I solved the problem by following these steps.

    1 OEM12c > target > all targets > 'remove the motor pump target database '.

    2 OEM12c > target > all targets > systems > "to ensure that the target database system is also removed.

    3 OEM12c > Setup > manage Cloud control > Agents

    -Restart the agent database of the target container

    -It refreshes the C:\oracloud\agent_inst\sysman\emd\target.xml in the target database server where the agent is running

    4. in the server database, make a backup of the C:\oracloud\agent_inst\sysman\emd\target.xml file

    5 edit the file C:\oracloud\agent_inst\sysman\emd\target.xml

    -Remove all the entries that refer to the database of the target container

    -my case the xml file has several entries with different target system names pointing to the same target, weird container base, do not know how this could happen

    -J' removed all the and saved the xml file

    6, OEM12c > Setup > manage Cloud control > Agents

    -yet again, restart the agent database of the target container

    7 OEM12c > Add Target > manually add targets

    -Add the database to the target return container to oem12c

    8 OEM12c > target > databases

    -wait a few minutes for the target container of database state, to be 'green '.

    -Click on the database of the container link

    -Click availability > Backup & Recovery > scheduled backup...

    !!! It works fine now! I can create the backup job.

    Thank you

    Marcelo brands

    ESRI, technical director, OCP

  • ORA-01578: block of data corrupted ORACLE ORA-01110: data file 46:, ORA-06512: at line 1 ScanningError 1038246

    We get error below of the application team. Please find attached the file backup rman error.

    ORA-01578: ORACLE corrupt data (file # 46, block # 64626) ORA-01110: data file 46: ' / db04_hlt/PHCLMDB/PHCLMDB_DATA/phclm21.dbf' ORA-06512: at "HCLM_ADMIN. SCANPROC_INSUPLOADTEMP", line 16 ORA-06512: at line 1 ScanningError 1038246

    fe40282660394026b5f76bf3f5d649e4 SCANPROC_INSUPLOADTEMP-ORA-01578: data block (file # 46, block # 64626) corrupted ORACLE ORA-01110: data file 46:

    Hello

    Please follow the steps to format corrupt block a used the procedure mentioned in the document below, please note that you need to do several times for all the block corrupted in free space.
    Doc-ID 336133.1===> how corrupt Format block is not part of any Segment.

    Following the notes 293515.1 -->> ORA-1578 ORA-26040 in a LOB segment - Script to resolve errors

    This note is for these errors, but the procedure is exactly the same, we must:

    1 - identify the ROWID affected
    2 - Put the ROWID corrupted on EMPTY_LOB
    3. When you MOVE the LOB to a new Tablespace

    These are essentially the steps, the note shows how

    Kind regards

    Alok

  • ORA-06512: at "SYS." DBMS_XMLGEN", (ORA-00942: table or view does not exist)

    Hey guys, it's Xev.

    I decide to use SQL and XML and it works in a scenario, but in another scenario, is not.

    Here's the Code, I'm passing to two variables, first of all, I spend in the table table_name, and then I spend in the schema.

    If I connected it with "user" and that it seeks it's own pattern, he found the results, as for example, but if I try to run this code while not

    connected to the same user I'm looking for more, I get this error.

    ORA-19202: an error has occurred in the processing of XML

    ORA-00942: table or view does not exist

    ORA-06512: at "SYS." DBMS_XMLGEN", line 288

    ORA-06512: at line 1

    19202 00000 - "an error has occurred in the treatment of XML %s.

    * Cause: An error occurred during the processing of the XML function

    * Action: Check the given error message and resolve the problem appropriate

    /*-------------------------------------------------------------------------------

    This code works only you are connected to the user you are looking on.

    But if you're looking for a different user tables, it is kicking up and gives the above XML error...

    */

    SET SERVEROUTPUT ON

    exec DBMS_OUTPUT. ENABLE (1000000);

    Search_string VAR VARCHAR2 (28)

    EXEC: search_string: = ' ^ [0-9]{3}-[0-9]{2}-[0-9]{4}$']

    COLUMN "Keyword" FORMAT A28

    COLUMN 'Table' FORMAT A9

    COLUMN ' column value / "FORMAT A50

    SELECT DISTINCT SUBSTR (: search_string, 1: 28) "keyword."

    SUBSTR (table_name, 1, 14) "table."

    SUBSTR (t.column_value.getstringval (), 1, 50) ' / value of the column.

    OF dba_tab_cols.

    -where owner = ('& SCHEMA_NAME')

    TABLE

    (XMLSEQUENCE

    (DBMS_XMLGEN. GETXMLTYPE

    ("SELECT" | column_name |)

    'FROM ' | table_name |

    "WHERE REGEXP_LIKE.

    (' | column_name |) ','''

    || : search_string. ''')'

    () .extract (' LINES/rowset / * ""))) t

    -WHERE table_name IN ("FIND_TEST")

    WHERE table_name = upper ('& table_name')

    AND the OWNER = upper ('& SCHEMA_NAME')

    ORDER BY "Table".

    /

    Can someone please explain how works (DBMS_XMLGEN) and why it is throwing this error?

    Thank you

    Xev.

    It has nothing to do with DBMS_XMLGEN. GETXMLTYPE. It simply means the user running your SQL has no select privileges on the table & SCHEMA_NAME. & TABLE_NAME.

    SY.

  • tablespace expdp 10g default ORA-31626 31633 - ORA ORA-06512 ORA-06512 ORA-01647

    Hello

    I have currently a database 10g running on a server, AIX, one of its tablespace (CTSPRODDOC) data files located in two places;

    1 /doc/ctsproddoc.dbf

    2 /image/ctsproddoc_01.dbf

    As he tried to export the tablespace for help after a command;

    Directory of cts/cts expdp = tablespaces dumpfile = CTSPRODDOC.dmp dmpdir1 = CTSPRODDOC

    It fails with following error messages;

    ORA-31626: there is no job

    ORA-31633: could not create the main table 'CTSPRODDOC. SYS_EXPORT_TABLESPACE_05 ".

    ORA-06512: at "SYS." DBMS_SYS_ERROR', line 95

    ORA-06512: at "SYS." "KUPV$ FT", line 863

    ORA-01647: tablespace "CTSPRODDOC" is read-only, cannot allocate space inside

    I was able to export a different tablespace with success of the same database to the same directory. But I'm unable to export CTSPRODDOC.

    Can someone please advise.

    Thank you

    Hem

    Hello

    I suspect that the default tablesapce for the user of the CTS is CTSPRODDOC. You can change this something else? or do some export under a different name that has a different default tablespace?

    See you soon,.

    Harry

  • Invalid operation UTL_SMTP, ORA-06512: at "SYS." UTL_SMTP", LINE 161

    Hello

    I have a requirement to send the data in the table (retrieved via a select clause) through an email.

    Here is the procedure that uses to send email that includes data from the table through trigger.

    I don't find any problem during execution of the procedure and the relaxation.

    but when inserting the data in table 1 (present to SCHEMA1 please refer to line 37 and 55) I get the following error and the message will not be delivered

    ERRORS

    ORA-29277: invalid SMTP Operation

    ORA-06512: at "SYS." UTL_SMTP", LINE 55

    ORA-06512: AT "SYS." UTL_SMTP", LINE 161

    ORA-06512: AT "SYS." UTL_SMTP", LINE 452

    ORA-06512: AT "SYS." UTL_SMTP", LINE 463

    But when I remove the code from line 33 to 44

    am able to send mail.

    That is to say

    / * IMMEDIATE EXECUTION

    "SELECT."

    A.BATCHNO, B.PCSBOX, B.AMOUNT

    Of

    SCHEMA1. Table1: A, SChEMA2.TABLE2 B

    WHERE

    A.BATCHID = B.BATCHNO AND B.PRODOAID =' | PRODOAID

    BULK COLLECT INTO BATCHNO, PCSBOX, AMOUNT;

    FOR indx IN 1.BATCHNO. COUNTY

    LOOP

    UTL_SMTP. WRITE_DATA (A, BATCHNO (indx) |) ' -- '|| PCSBOX (indx) |' --' || Amount (indx) | UTL_TCP. CRLF);

    END LOOP; */

    I checked the sender and recipient addresses that they are fine.

    so, this is my code

    1 CREATE OR REPLACE PROCEDURE SEND_TABLE_DATA (FROMAD IN VARCHAR2: =' <[email protected]> ', )

    TOAD 2 IN VARCHAR2: = ' < [email protected] > ',

    3 under RESERVE IN VARCHAR2: = 'Data Table ',.

    4 MESSAGE IN VARCHAR2: = "Dear all,

    5                                    Docid :    ' ,

    DOCID 6 IN VARCHAR2,

    DOCDT DATE 7.

    8 PRODOAID IN NUMBER)

    9, ACCORDING TO

    10 TYPE NumList IS TABLE OF NUMBER;

    11 TYPE NameList IS TABLE OF THE VARCHAR2 (32767).

    12 BATCHNO NameList;

    13 PCSBOX NumList;

    AMOUNT 14 NumList;

    15 SMTPHOST VARCHAR2 (255): = ' XX. XX. XX. XX ";

    16. A UTL_SMTP. CONNECTION;

    BEGIN 17

    18 A: = UTL_SMTP. OPEN_CONNECTION(SMTPHOST,25);

    19 UTL_SMTP. HELO (A, SMTPHOST);

    20 UTL_SMTP. MAIL (A, FROMAD);

    21 UTL_SMTP. RCPT (A, TOAD);

    22 UTL_SMTP. OPEN_DATA (A);

    UTL_SMTP 23. WRITE_DATA (A, UTL_TCP. CRLF);

    24 UTL_SMTP. WRITE_DATA (A, UTL_TCP. CRLF. UTL_TCP. CRLF. UTL_TCP. CRLF);

    25 UTL_SMTP. WRITE_DATA (, ' Date: ' |) TO_CHAR (SYSDATE, ' DD/MM/YYYY HH24:MI:SS'). UTL_TCP. CRLF);

    26 UTL_SMTP. WRITE_DATA (, ' from: ' |) FROMAD | UTL_TCP. CRLF);

    UTL_SMTP 27. WRITE_DATA (, ' from: ' |) TOAD | UTL_TCP. CRLF);

    28 UTL_SMTP. WRITE_DATA (, ' subject: ' |) TOPIC | UTL_TCP. CRLF);

    UTL_SMTP 29. WRITE_DATA (ONE, MESSAGE |) DOCID | "Documented on ' | DOCDT | UTL_TCP. CRLF);

    30 UTL_SMTP. WRITE_DATA (A, UTL_TCP. CRLF. UTL_TCP. CRLF. UTL_TCP. CRLF);

    UTL_SMTP 31. WRITE_DATA (A, "it's for your information" |) UTL_TCP. CRLF);

    UTL_SMTP 32. WRITE_DATA (, ' BATCHNO ' |) ' -- '||' PCSBOX ' |' --' ||' AMOUNT '. UTL_TCP. CRLF);

    33 IMMEDIATE EXECUTION

    34 ' SELECT

    35 A.BATCHNO, B.PCSBOX, B.AMOUNT

    36 FROM

    37 SCHEMA1. Table1: A, SChEMA2.TABLE2 B

    38. WHERE THE

    39 A.BATCHID = B.BATCHNO AND B.PRODOAID =' | PRODOAID

    40 BULK COLLECT INTO BATCHNO PCSBOX, AMOUNT;

    41 FOR indx IN 1.BATCHNO. COUNTY

    42 LOOP

    UTL_SMTP 43. WRITE_DATA (A, BATCHNO (indx) |) ' -- '|| PCSBOX (indx) |' --' || Amount (indx) | UTL_TCP. CRLF);

    44 END OF LOOP;

    UTL_SMTP 45. WRITE_DATA (A, CHR (13) |) CHR (13) | CHR (13));

    UTL_SMTP 46. CLOSE_DATA (A);

    UTL_SMTP 47. QUIT (A);

    EXCEPTION OF 48

    49 THEN THAN OTHERS THEN

    50 UTL_SMTP. QUIT (A);

    RAISE 51;

    END 52;

    53.

    54, create or replace trigger trg_table_mail_sricity_prodoa

    55 after insertion on SCHEMA1. TABLE1:

    56 for each line

    start at 57

    (58) SENd_table_data

    59 DOCID = >: new.docid,.

    DOCDT 60 = >: new.docdt,.

    PRODOAID 61 = >: new.prodoaid

    (62);

    end 63;

    Can what changes I make to the code to meet my needs?

    Please correct me if am wrong anywhere,

    in the case where if a bad method used to send data (retrieved using a select clause)

    Show me another method to achieve my requirement.

    Thanks in advance,

    Pradeep cordially.

    Line 19 is not going. The HELO command is used to identify the SMTP client. The SMTP server knows its IP address and the host name. No need to tell him that via the HELO command. He wants to know who is the appellant. The order is intended to say "Hello, I am a customer ". "" See the SMTP RFC for more details. (and Yes, examples of the Oracle are wrong)

    Run immediately? Why? There is no true used dynamic SQL.

    Collect in bulk? Why? There is not analysis or the treatment performed. Use a cursor loop FOR and call write data from the inside of the loop.

    Also consider a fall 80's standard mainframe coding style (and abusing capital letters) and use modern standards that are common in Java. .NET, C/C++, etc. Specifically, as PL/SQL is derived and an implementation of the Ada language, look at Ada 95 quality and Style Guide for standards, and good logic.

  • ORA-06512 online

    Hello
    im getting the following error:


    ORA-20000: Oracle text error:
    DRG-10599: the column is not indexed
    ORA-06512: at "JOBSDEV. CC_PKG_RESUME_RANK_REF', line 1332
    ORA-06512: at line 1

    If anyone can suggest me what that means? and what exactly I need to change?


    Thank you
    MaheshM

    Hello

    you try to use the CONTAINS (or maybe another feature of Oracle Text), but this requires an Oracle text index and not a normal type of index. Therefore, first to create an Oracle text index to get this successfully. Take a look at the documentation: http://download.oracle.com/docs/cd/E11882_01/text.112/e24435/toc.htm

    For more questions about the Oracle text, you can use the forum for Oracle Text: text

    If you think that you have done nothing qrong, then please post requests and the creation of the index.

    Herald tiomela
    http://htendam.WordPress.com

  • ORA-06512: at "OLAPSYS. CWM2_OLAP_UTILITY', line 1865

    Hello

    I'm changing the description of a mesuares in an existing cube.

    I executed the following command.

    run cwm2_olap_measure.set_short_description ("'REFMNE', 'CUBE_VENTES', 'VTE_MT_PR', ' sales ');

    I get the following error:

    ORA-06510: PL/SQL: not supported by the user-defined exception
    ORA-06512: at "OLAPSYS. CWM2_OLAP_UTILITY', line 1865
    ORA-01403: no data found
    ORA-06512: at "OLAPSYS. CWM2_OLAP_MEASURE', line 19
    ORA-06512: at "OLAPSYS. CWM2_OLAP_MEASURE', line 30
    ORA-06512: at "OLAPSYS. CWM2_OLAP_MEASURE', line 192
    ORA-06512: at line 1

    I checked all my comments
    The procedure is defined as set_short_description (p_Cube_Owner varchar2-"REFMNE" - is the owner of the schema
    , p_Cube_Name varchar2-"CUBE_VENTES".
    , p_Measure_Name varchar2-"VTE_MT_PR".
    p_Short_Description varchar2); -' Sales amount '.


    This cube has been created using template xml via AWM and the cube works very well. The database is 11.2.0.1.0. I'm running the statement as the owner of work/cube space

    Any ideas awm. I need to change the description of each object in the workspace.

    Thank you

    The cwm2_olap_measure package and any other that begines with MCG, is frowned upon in 11.2. AWM does not use this API to create cubes. If you have created your cube in AWM then you need to use dbms_cube.import_xml (if you are dealing with a style of 11g AW) or dbms_aw_xml.execute (if you are dealing with a 10g AW style). You can also use documented interfaces for Java ('OLAP API' and 'AWXML' for 11g and 10g respectively).

  • ORA-06512, ora-04088 pls help

    version database - Oracle Database 10 g Enterprise Edition Release 10.2.0.3.0

    Hi I create a trigger.

    create or replace TRIGGER INSERT_STOCK_RECORDS
    AFTER INSERTION
    ON MAKESS. MST_ITEM
    FOR EACH LINE
    DECLARE
    fin_start_date DATE;
    fin_end_date DATE;
    BEGIN
    BEGIN
    SELECT dt_current_start_date, dt_current_end_date
    IN fin_start_date, fin_end_date
    OF finance.fin_account_year
    WHERE vc_comp_code =:NEW.vc_comp_code
    AND ch_year_closing_flag = 'o';
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    SELECT dt_current_start_date, dt_current_end_date
    IN fin_start_date, fin_end_date
    OF finance.fin_account_year
    WHERE vc_comp_code =:NEW.vc_comp_code
    AND ch_year_closing_flag = 'C ';

    WHILE OTHERS THEN
    RAISE_APPLICATION_ERROR (-20101, 'Error encountered with your exercise');
    END;


    (- 1).
    INSERT INTO invent.stock_summary
    (vc_comp_code, vc_item_code, NU_BALANCE_QTY, NU_QTY_REJECTED,
    NU_QTY_REWORKABLE, NU_QTY_DEFECTIVE, NU_QTY_ORDERED, NU_QTY_REQUESTED
    NU_QTY_TO_ORD, NU_QTY_AVAILABLE, NU_QTY_REQUIRED, vc_default_comp)
    VALUES (: NEW.vc_comp_code,: NEW.vc_item_code, NVL(:NEW.nu_opening_qty,0), 0,)
    0, 0, 0, 0.
    0, NVL(:NEW.nu_opening_qty,0), 0,: NEW.vc_default_comp);
    (- 2).
    INSERT INTO production.prod_stock
    (vc_comp_code, NU_AREA_CODE, vc_item_code, NU_BALANCE_QTY, NU_QTY_REJECTED,
    NU_QTY_REWORKABLE, NU_QTY_DEFECTIVE, NU_QTY_ORDERED, NU_QTY_REQUESTED
    NU_QTY_TO_ORD, NU_QTY_AVAILABLE, nu_qty_required, vc_default_comp)
    VALUES (: NEW.vc_comp_code, 1: NEW.vc_item_code, 0, 0)
    0, 0, 0, 0.
    0, 0, 0,:NEW.vc_default_comp);
    (- 3).
    INSERT INTO invent.stk_lot_summary
    (vc_comp_code, vc_item_code, NU_BALANCE_QTY, NU_QTY_REJECTED,
    NU_QTY_REWORKABLE, NU_QTY_DEFECTIVE, VC_LOT_NO, VC_BIN_NO, NU_COST, vc_default_comp)
    VALUES (: NEW.vc_comp_code,: NEW.vc_item_code, NVL(:NEW.nu_opening_qty,0), 0,)
    0, 0,: NEW.vc_lot_no,: NEW.vc_bin_no, NVL (: NEW .nu_eval_rate, 0),: NEW .vc_default_comp);

    (- 4).

    INSERT INTO invent.mst_month_summary
    (vc_comp_code, dt_fin_start_date, dt_fin_end_date, vc_item_code,
    nu_year_open_balance, nu_tot_received, vc_default_comp)
    VALUES (: NEW.vc_comp_code, fin_start_date, fin_end_date,: NEW.vc_item_code,)
    NVL(:New.nu_opening_qty,0), NVL(:NEW.nu_opening_qty,0),
    (: NEW.vc_default_comp);

    EXCEPTION
    WHILE OTHERS THEN
    RAISE_APPLICATION_ERROR (-20101, 'Error');
    END;

    but when I insert in this table, it is in error-

    INSERT INTO MST_ITEM (VC_DEFAULT_COMP, VC_COMP_CODE, VC_ITEM_CODE, VC_ITEM_DESC, VC_TECH_DESC, NU_BASIC_PRICE,
    NU_EVAL_RATE, NU_SCRAP_RATE, NU_WASTE_PER, VC_UNIT, VC_CLASSIFICATION, NU_OPENING_QTY, VC_ITEM_GROUP,
    VC_UNIT_CODE, VC_LOT_NO, VC_BIN_NO, DT_MOD_DATE, VC_AUTH_CODE, VC_ABC_CLASS, VC_VED_CLASS)
    VALUES ('01 ', ' 01', 'RMPR000025', 'NEW ITEM', 'NEW', 1, 1, 0, 0, "KGS, 'NEWT', 0, '23', '1', '1', '1', SYSDATE,' 01', 'A', 'V')
    /


    INSERT INTO MST_ITEM (VC_DEFAULT_COMP, VC_COMP_CODE, VC_ITEM_CODE, VC_ITEM_DESC, VC_TECH_DESC, NU_BASI
    *
    ERROR on line 1:
    ORA-20101: encountered error
    ORA-06512: at "MAKESS. INSERT_STOCK_RECORDS', line 58
    ORA-04088: error during execution of trigger ' MAKESS. ' INSERT_STOCK_RECORDS


    pls help me why this problem occurs.

    Hello

    ERROR on line 1:
    ORA-20101: encountered error

    What meaningful message...

    Please remove each WHEN of OTHER blocks in the exception handlers and let the real error.

Maybe you are looking for