ORA-14400 error when inserting data in partition

I have a partiotioned table with 20 columns .. out of 20, I have only one defined as not null..
So when I tried inserting the data in the column alone am getting the error :
ORA-14400: inserted partition key does not map to any partition
this is the structure of the table :
partition :
PARTITION BY RANGE (TRANSDATE)
PARTITION DEC200801 VALUES LESS THAN (TO_DATE(' 2008-12-16 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION DEC200802 VALUES LESS THAN (TO_DATE(' 2009-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION JAN200901 VALUES LESS THAN (TO_DATE(' 2009-01-16 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION JAN200902 VALUES LESS THAN (TO_DATE(' 2009-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION FEB200901 VALUES LESS THAN (TO_DATE(' 2009-02-14 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION FEB200902 VALUES LESS THAN (TO_DATE(' 2009-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION MAR200901 VALUES LESS THAN (TO_DATE(' 2009-03-16 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION MAR200902 VALUES LESS THAN (TO_DATE(' 2009-04-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
PARTITION APR200902 VALUES LESS THAN (TO_DATE(' 2009-04-30 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE CALLST03
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
BUFFER_POOL DEFAULT
What could be the reason ?
Kai

From metalink
Oracle 9i Message~~~~~~~~~~~~~~~~~
Error:     ORA-14400 (ORA-14400)
Text:     inserted partition key does not map to any partition
Cause:     An attempt was made to insert a record into, a Range or Composite
     Range object, with a concatenated partition key that is beyond the
     concatenated partition bound list of the last partition -OR- An
     attempt was made to insert a record into a List object with a
     partition key that did not match the literal values specified for
     any of the partitions.
Action:     Do not insert the key. Or, add a partition capable of accepting
     the key, Or add values matching the key to a partition
     specification
>
So check the date .
What is your insert statement.
Anand
Edited by: Anand... on Mar 4, 2009 5:42 PM

Similar Messages

  • Help with ORA 14400 error while inserting data

    Hi all,
    i am facing an ora 14400 error in the following scenario , please help.
    i have created a table using the syntax:
    CREATE TABLE temp_table
    GRPKEY NUMBER(20, 0) NOT NULL,
    UKEY NUMBER(10, 0),
    ANUM VARCHAR2(250 BYTE),
    APC VARCHAR2(2 BYTE),
    SID VARCHAR2(65 BYTE),
    RDATETIME VARCHAR2(19 BYTE),
    CKEY NUMBER(20, 0),
    AVER VARCHAR2(25 BYTE),
    CVER VARCHAR2(250 BYTE),
    TNAME VARCHAR2(50 BYTE),
    SCODE VARCHAR2(30 BYTE),
    PTYPE VARCHAR2(50 BYTE),
    FILENUMB NUMBER(10, 0),
    LINENUMB NUMBER(10, 0),
    ENTRY_CREATEDDATE DATE
    , CONSTRAINT temp_table_PK PRIMARY KEY (GRPKEY))
    PARTITION BY RANGE(ENTRY_CREATEDDATE)
    (PARTITION P0 VALUES LESS THAN(TO_DATE(' 2009-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    when i try to insert data using :
    insert into temp_table values
    (1,null,null,null,null,null,null,null,null,null,null,null,null,null,'01-NOV-2010');
    i get the following error output:
    Error report:
    SQL Error: ORA-14400: inserted partition key does not map to any partition
    14400. 00000 - "inserted partition key does not map to any partition"
    *Cause:    An attempt was made to insert a record into, a Range or Composite
    Range object, with a concatenated partition key that is beyond
    the concatenated partition bound list of the last partition -OR-
    An attempt was made to insert a record into a List object with
    a partition key that did not match the literal values specified
    for any of the partitions.
    *Action:   Do not insert the key. Or, add a partition capable of accepting
    the key, Or add values matching the key to a partition specification

    Hi Chaitanya,
    Change your table script to
    CREATE TABLE temp_table
    GRPKEY NUMBER(20, 0) NOT NULL,
    UKEY NUMBER(10, 0),
    ANUM VARCHAR2(250 BYTE),
    APC VARCHAR2(2 BYTE),
    SID VARCHAR2(65 BYTE),
    RDATETIME VARCHAR2(19 BYTE),
    CKEY NUMBER(20, 0),
    AVER VARCHAR2(25 BYTE),
    CVER VARCHAR2(250 BYTE),
    TNAME VARCHAR2(50 BYTE),
    SCODE VARCHAR2(30 BYTE),
    PTYPE VARCHAR2(50 BYTE),
    FILENUMB NUMBER(10, 0),
    LINENUMB NUMBER(10, 0),
    ENTRY_CREATEDDATE DATE
    , CONSTRAINT temp_table_PK PRIMARY KEY (GRPKEY))
    PARTITION BY RANGE(ENTRY_CREATEDDATE)
    (PARTITION P0 VALUES LESS THAN(TO_DATE(' 2009-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    PARTITION P1 VALUES LESS THAN(MAXVALUE)
    insert into temp_table values
    (1,null,null,null,null,null,null,null,null,null,null,null,null,null,'01-NOV-2010');
    1 row insertedor refer question regarding "Date Partitioning a table"
    *009*
    Edited by: 009 on Nov 3, 2010 11:29 PM

  • ORA-00600 error when inserting NULL in BLOB column

    Hi,
    I want to insert NULL value into a BLOB column w/o using empty_blob(), but I am getting the following error upon submission (both through program and upon directly executing it from TOAD/SQL*):
    java.sql.SQLException: ORA-00600: internal error code, arguments: [kxtotolc_lobopt], [], [], [], [], [], [], []
    The query is as follows:
    insert into image_rendering r
    (r.Version_date_time, r.id, r.Name, r.Type, r.Image_url, r.Image_filesize, r.Html, r.Original_Text, r.Redirect_url, r.Version, r.Rendering_size) values
    (sysdate, '1963884', '468x60_1.gif', '0', '225/9-468x60_1.gif', '1471', null, null, null, '1', '30670908')
    In the table r.Html, r.Original_Text are blob and clob columns respectively.
    If I remove the column r.Html (blob) and its corresponding value the following query executes fine :
    insert into image_rendering r
    (r.Version_date_time, r.id, r.Name, r.Type, r.Image_url, r.Image_filesize, r.Original_Text, r.Redirect_url, r.Version, r.Rendering_size)
    values
    (sysdate, '1963884', '468x60_1.gif', '0', '225/9-468x60_1.gif', '1471', null, null, '1', '30670908')
    I know I can also insert the query using the string empty_blob(), but I dont want to do it without using empty_blob() since it will involve changing my generic DB classes.
    The strange thing is that I created another table involving blob and clob columns through TOAD.
    In this table I can insert NULL values in the blob column without any error.
    Is there anything that can be done to insert a NULL into my blob column? Am I missing anything?
    Is there a setting in the database that will allow me to do this? cuz one table accepts null and the other doesn't. Its strange.
    I am using Oracle8i Enterprise Edition Release 8.1.7.0.0
    The query doen't execute through toad or sql* plus or through program (I am using thin oracle drivers: the usual classes12.zip file)
    thanks in advance
    - Nilesh

    From metalink
    Oracle 9i Message~~~~~~~~~~~~~~~~~
    Error:     ORA-14400 (ORA-14400)
    Text:     inserted partition key does not map to any partition
    Cause:     An attempt was made to insert a record into, a Range or Composite
         Range object, with a concatenated partition key that is beyond the
         concatenated partition bound list of the last partition -OR- An
         attempt was made to insert a record into a List object with a
         partition key that did not match the literal values specified for
         any of the partitions.
    Action:     Do not insert the key. Or, add a partition capable of accepting
         the key, Or add values matching the key to a partition
         specification
    >
    So check the date .
    What is your insert statement.
    Anand
    Edited by: Anand... on Mar 4, 2009 5:42 PM

  • ORA-06502: error when inserting into table via db link with long datatype

    Folks,
    I am getting the following error:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small.
    This occurs when an insert is done via a database link into a table that has a LONG data type for one of the columns, and the string contains some carriage returns and or line feeds.
    I have checked by removing the db link, and inserting into a local table with identical column data types, where there is no error.
    So this might be another db link bug?
    So I need to remove the carriage returns and/or line feeds
    in my pl/sql block in the page process. I have tried
    l_text := REPLACE(l_text, CHR(10), ' ');
    l_text := REPLACE(l_text, CHR(13), NULL);
    but still getting the ORA-06502. Would really appreciate some advice here, please.
    Cheers
    KIM

    Scott,
    Time to 'fess up':
    My fault sorry, the error was coming from another page process where I had allowed insufficient string length for one of the variables, and my error message did not identify the page process clearly.
    This leads me to make a request for future releases, could the system error messages state which page process caused the problem?
    One other thing I notice, and this might be a feature not a fault, the page processes are numbered: "Page Process:      3 of 5". However process 3 is not the 3rd one to be processed, and probably refers to the order in which they are created. Should the number reflect the process order?
    Cheers
    KIM

  • ORA-28522 error when reading data from DB2 via hsodbc

    Hi All,
    I'm trying to connect to a DB2 database running on an AS/400 system, via Oracle HS.
    I'm using Oracle 9.2.08. The DB2 version is V4R5.
    My ODBC DSN is called TEST_odbc.
    The initTEST_sid.ora file contains the following:
    HS_FDS_CONNECT_INFO = TEST_odbc
    My Listener.ora file contains the following:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vm-dashboarddemo)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (PROGRAM = hsodbc)
    (ORACLE_HOME = D:\oracle\ora92)
    (SID_NAME = TEST_sid)
    My TNSNames.ora file contains:
    TEST_name =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = VM-DASHBOARDDEMO)(PORT = 1521))
    (CONNECT_DATA =
    (SID = TEST_sid)
    (HS = OK)
    When I use TNSPing, I get a successful result:
    D:\oracle\ora92\bin>tnsping TEST_name
    TNS Ping Utility for 32-bit Windows: Version 9.2.0.8.0 - Production on 04-JUL-20
    07 13:46:47
    Copyright (c) 1997, 2006, Oracle Corporation. All rights reserved.
    Used parameter files:
    D:\oracle\ora92\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = VM-DASHBOARDDEMO)(PORT = 1521))) (CONNECT_DATA = (SID = TEST_sid)) (HS =
    OK))
    OK (10 msec)
    I can then login to SQLPlus as SYSDBA, and create a database link:
    SQL> create database link TEST_link connect to "<username>" identified by "<password>" using 'TEST_name';
    Database link created.
    So far everything seems to be going well.
    But then, when I try and select some data from the linked database, i get the following:
    SQL> select * from <tablename>@TEST_link;
    select * from <tablename>@TEST_link
    ERROR at line 1:
    ORA-00942: table or view does not exist
    [Generic Connectivity Using ODBC][IBM][Client Access Express ODBC Driver
    (32-bit)][DB2/400 SQL]SQL0204 - ZASTSE00 in QGPL type *FILE not found. (SQL
    State: S0002; SQL Code: -204)
    ORA-02063: preceding 2 lines from TEST_LINK
    Does anyone have any ideas? I'd love to get this solved!!
    Many Many Thanks,
    River

    I should have mentioned that I know that the table exists in the database.
    The main reason I'm trying to do this is because I'm trying to get the data from the DB2 DB into my Oracle DB. I have been trying the EXP utility, which gives me a different error code:
    D:\oracle\ora92\bin>exp <username>/<password>@TEST_name file=TEST.dmp rows=yes indexes=no
    Export: Release 9.2.0.8.0 - Production on Wed Jul 4 13:44:06 2007
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    EXP-00056: ORACLE error 3113 encountered
    ORA-03113: end-of-file on communication channel
    Username: <username>
    Password:
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    Note: indexes on tables will not be exported
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user <username>
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user <username>
    EXP-00008: ORACLE error 942 encountered
    ORA-00942: table or view does not exist
    EXP-00024: Export views not installed, please notify your DBA
    EXP-00000: Export terminated unsuccessfully
    Thanks Again,
    Riv

  • Error when inserting data .. to check the functionality of a trigger .

    hallo,
    im trying to write a trigger like that :
    CREATE OR REPLACE TRIGGER raum_besetzt
    BEFORE DELETE OR UPDATE OR INSERT ON BUCHUNGEN
    FOR EACH ROW
    DECLARE
    v_p NUMBER;
    v_t NUMBER;
    BEGIN
    SELECT ANzahl_plaetze into v_p
    FROM RAEUME;
    SELECT ANzahl_teilnehmer into v_t
    FROM BUCHUNGEN;
    INSERT INTO BUCHUNGEN VALUES (:NEW.BUCH_ID, :NEW.RAUM_ID, :NEW.MITA_ID, :NEW.VON, :NEW.BIS, :NEW.ANZAHL_TEILNEHMER, :NEW.VART_ID);
    IF (v_t > v_p) THEN RAISE_APPLICATION_ERROR (-20001, ' diesen RAUM ist leer ');
    END IF;
    END;the trigger have to check that all participants will be booked in the room can be accommodated. On error, the reservation is cancel.
    so i implemented it the way that number of participants ( anzahl_teilnehmer ) in the Table Reservations ( Buchungen ) is greater than the number of places ( Anzahl_plaetze ) in the table Rooms ( Raeume )
    so now i want to add some data to the table BUCHUNGEN ( Reservations ), so i can see if the trigger works!
    What i get is the Error below !! :
    Fehler beim Start in Zeile 56 in Befehl:
    INSERT INTO BUCHUNGEN (BUCH_ID, RAUM_ID, MITA_ID, VON, BIS, ANZAHL_TEILNEHMER, VART_ID)
    VALUES                (5, 5, 5, '', '', 30, 3)
    Fehlerbericht:
    SQL-Fehler: ORA-01422: Exakter Abruf gibt mehr als die angeforderte Zeilenzahl zurück
    ORA-06512: in "RAUM_BESETZT", Zeile 5
    ORA-04088: Fehler bei der Ausführung von Trigger 'RAUM_BESETZT'
    01422. 00000 -  "exact fetch returns more than requested number of rows"
    *Cause:    The number specified in exact fetch is less than the rows returned.
    *Action:   Rewrite the query or change number of rows requestedcan anyone help :)
    thank you ..

    Logic such as this should be written in a little api. A trigger is possible, but it might be pretty difficult to implement the full solution in a trigger which has several restrictions. An api usually doesn't have the same technical restrictions (trigger need to prevent endless loops, therefore they will raise an mutating table error if you insert into the same table)
    The main issue is that during the execution of your trigger, another process might add a booking without commiting it yet. But your trigger can't see this new booking from the different session. This has to be solved on a logical level first before solving it on database level. How do you want to handle such a situation?

  • Error when insert data in Sql Server table(DateTime data type)

    Hello all,
    I have created a database link in oracle 11g to SQL Server 2008 using Sqlserver gateway for oracle,Oracle run on Linux and SQL Server run on Windows platform.
    I have queried a table and it fetches rows from the target table.
    I am using this syntax for insert a row in Sql Server table.
    Insert into Prod@sqlserver (NUMITEMCODE, NUMPREOPENSTOCK, NUMQNTY, NUMNEWOPENSTOCK, DATPRODDATE , TXTCOMPANYCODE, "bolstatus", NUMRESQNTY )
    Values (1118 , 1390.0 , 100.0 ,1490 , '2012-06-23 12:37:58.000','SFP' ,0 , 0 );
    but it give me error on DATPRODDATE,The data type of DATPRODDATE column in Sql Server is DATETIME.
    My Question is how can i pass the date values in INSERT statement for Sql Server DateTime data type.
    Regards

    Just as with Oracle, you have to specify the date using the to_date() function or use the native date format for the target database (if you can figure out what that is). This is good practice anyway and a good habit to get into.

  • 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>

  • Error when inserting data

    when I try to insert some data using XSQL's <insert-request> I get this message:
    Exception 'java.sql.SQLException:Non supported character set: oracle-character-set-170' encountered during processing ROW element 0All prior XML row changes were rolled back. in the XML document.
    my database is using CROATIAN_CROATIA.EE8MSWIN1250
    please tell my why?
    thanks
    null

    source xml
    <?xml version="1.0"?>
    <dokument id="">
    <broj>100006</broj>
    <datum>13.02.2001</datum>
    <partner>
    <par_id>1</par_id>
    <sifra>00001</sifra>
    <naziv>Ritam d.o.o.</naziv>
    </partner>
    <stavka id="">
    <flag>
    </flag>
    <art_id>1</art_id>
    <sifra>00001</sifra>
    <barcode>1234567890123</barcode>
    <naziv>phf
    PHF</naziv>
    <kolicina>2,00</kolicina>
    <cijena>222,00</cijena>
    </stavka>
    <stavka id="">
    <flag>
    </flag>
    <art_id>2</art_id>
    <sifra>00002</sifra>
    <barcode>12345678</barcode>
    <naziv>artikal 1</naziv>
    <kolicina>1,00</kolicina>
    <cijena>111,00</cijena>
    </stavka>
    </dokument>
    insert.xsql
    <?xml version="1.0" encoding="windows-1250" ?>
    <xsql:insert-request xmlns:xsql="urn:oracle-xsql" connection="baza817"
    table="dokument_ov" transform="insert.xsl" date-format="dd.MM.yyyy"/>
    insert.xsl
    <?xml version="1.0" encoding="windows-1250"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" version="1.0"/>
    <xsl:template match="/">
    <rowset>
    <xsl:for-each select="//dokument">
    <row>
    <dok_id><xsl:value-of select="@id"/></dok_id>
    <broj><xsl:value-of select="broj"/></broj>
    <datum><xsl:value-of select="datum"/></datum>
    <partner>
    <par_id><xsl:value-of select="./partner/par_id"/></par_id>
    <sifra><xsl:value-of select="./partner/sifra"/></sifra>
    <naziv><xsl:value-of select="./partner/naziv"/></naziv>
    </partner>
    <stavke>
    <xsl:for-each select="//stavka">
    <stavke_item>
    <kolicina><xsl:value-of select="translate(kolicina,',','.')"/></kolicina>
    <cijena><xsl:value-of select="translate(cijena,',','.')"/></cijena>
    <sta_id><xsl:value-of select="@id"/></sta_id>
    <artikal>
    <art_id><xsl:value-of select="art_id"/></art_id>
    <sifra><xsl:value-of select="sifra"/></sifra>
    <barcode><xsl:value-of select="barcode"/></barcode>
    <naziv><xsl:value-of select="naziv"/></naziv>
    </artikal>
    </stavke_item>
    </xsl:for-each>
    </stavke>
    </row>
    </xsl:for-each>
    </rowset>
    </xsl:template>
    </xsl:stylesheet>
    dokument_ov
    create or replace view dokument_ov as
    select d.dok_id, d.broj, d.datum, partner_ty(p.sifra,p.naziv,p.par_id) partner,
    cast(
    multiset(select s.kolicina, s.cijena, s.sta_id,
    artikal_ty(a.sifra, a.barcode, a.naziv, a.art_id) artikal
    from stavke s, artikli a
    where a.art_id = s.art_id and s.dok_id = d.dok_id order by sta_id) as stavke_ty
    ) stavke
    from dokumenti d, partneri p
    where d.par_id=p.par_id(+)
    order by dok_id
    dokument_ov_ins
    create or replace trigger dokument_ov_ins
    instead of insert on dokument_ov
    for each row
    declare
    m_stavke_t stavke_ty;
    m_stavka_t stavka_ty;
    m_artikal_t artikal_ty;
    m_partner_t partner_ty;
    m_par_id NUMBER;
    m_dok_id NUMBER;
    m_sta_id NUMBER;
    m_art_id NUMBER;
    begin
    if :new.dok_id < 0 then
    delete from stavke where dok_id = abs(:new.dok_id);
    delete from dokumenti where dok_id = abs(:new.dok_id);
    else
    m_partner_t := :new.partner;
    --dokument
    begin
    select dok_id into m_dok_id from dokumenti where dok_id = :new.dok_id;
    update dokumenti set broj = :new.broj, datum = nvl(:new.datum,sysdate), par_id = m_partner_t.par_id
    where dok_id = :new.dok_id;
    exception
    when no_data_found then
    insert into dokumenti(tip, broj, datum, dok_id, par_id)
    values('1', :new.broj, nvl(:new.datum,sysdate), dok_seq.nextval, m_partner_t.par_id)
    returning dok_id into m_dok_id;
    end;
    --stavke
    m_stavke_t := :new.stavke;
    for i in 1..m_stavke_t.count loop
    m_stavka_t := m_stavke_t(i);
    m_artikal_t := m_stavka_t.artikal;
    begin
    if m_stavka_t.sta_id < 0 then
    delete from stavke where sta_id = abs(m_stavka_t.sta_id);
    else
    select sta_id into m_sta_id from stavke where sta_id = m_stavka_t.sta_id and dok_id = m_dok_id;
    update stavke set kolicina = m_stavka_t.kolicina, cijena = m_stavka_t.cijena
    where sta_id = m_stavka_t.sta_id and dok_id = m_dok_id;
    end if;
    exception
    when no_data_found then
    insert into stavke(dok_id, sta_id, kolicina, cijena, art_id)
    values (m_dok_id, sta_seq.nextval, m_stavka_t.kolicina, m_stavka_t.cijena, m_artikal_t.art_id);
    end;
    end loop;
    end if;
    end dokumentview_ins;
    null

  • ORA-00054 error when loading Oracle table using Data Services

    Hello,
    we are facing ORA-00054 error when loading Oracle table using BO Data services
    (Oracle 10g database, BODS Xi 3.2 SP3)
    Test Job performs
    1- truncate table
    2- load table (tested in standard and bulk load modes)
    Scenario when issue happens is:
    1- Run loading Job
    2- Job end in error for any Oracle data base error
    3- When re-running the same Job, Job fails with following error
         ORA-00054: resource busy and acquire with NOWAIT specified
    It seems after first failure, Oracle session for loading the table stays active and locks the table.
    To be able to rerun the Job, we are forced need to kill Oracle session manually to be able to run the Job again.
    Expected behaviour would be : on error rollback modifications made on table and BODS stops Oracle session in a clean way.
    Can somebody tell me / or point me to any BODS best practice about Oracle error handling to prevent such case?
    Thanks in advance
    Paul-Marie

    the ora-0054 can occure depending how the job failed before. If this occures you will need the DBA to release the lock on the table in question
    Or
           AL_Engine.exe on The server it creates the Lock. Need to Kill Them. Or stop it..
    This Problem Occurs when we select The Bulkloading Option in orclae  We also faced the same issue,Our admin has Killed the session. Then everything alright.

  • ORA-14400  error

    when am loading the data to one infocube,I am gettin ORA-14400 error,Could any one of you please help me?

    ORA-14400: inserted partition key does not map to any partition
    Cause: An attempt was made to insert a record into, a Range or Composite Range object, with a concatenated partition key that is beyond the concatenated partition bound list of the last partition -OR- An attempt was made to insert a record into a List object with a partition key that did not match the literal values specified for any of the partitions.
    Action: Do not insert the key. Or, add a partition capable of accepting the key, Or add values matching the key to a partition specification

  • Error while insert data using execute immediate in dynamic table in oracle

    Error while insert data using execute immediate in dynamic table created in oracle 11g .
    first the dynamic nested table (op_sample) was created using the executed immediate...
    object is
    CREATE OR REPLACE TYPE ASI.sub_mark AS OBJECT (
    mark1 number,
    mark2 number
    t_sub_mark is a class of type sub_mark
    CREATE OR REPLACE TYPE ASI.t_sub_mark is table of sub_mark;
    create table sam1(id number,name varchar2(30));
    nested table is created below:
    begin
    EXECUTE IMMEDIATE ' create table '||op_sample||'
    (id number,name varchar2(30),subject_obj t_sub_mark) nested table subject_obj store as nest_tab return as value';
    end;
    now data from sam1 table and object (subject_obj) are inserted into the dynamic table
    declare
    subject_obj t_sub_mark;
    begin
    subject_obj:= t_sub_mark();
    EXECUTE IMMEDIATE 'insert into op_sample (select id,name,subject_obj from sam1) ';
    end;
    and got the below error:
    ORA-00904: "SUBJECT_OBJ": invalid identifier
    ORA-06512: at line 7
    then when we tried to insert the data into the dynam_table with the subject_marks object as null,we received the following error..
    execute immediate 'insert into '||dynam_table ||'
    (SELECT

    887684 wrote:
    ORA-00904: "SUBJECT_OBJ": invalid identifier
    ORA-06512: at line 7The problem is that your variable subject_obj is not in scope inside the dynamic SQL you are building. The SQL engine does not know your PL/SQL variable, so it tries to find a column named SUBJECT_OBJ in your SAM1 table.
    If you need to use dynamic SQL for this, then you must bind the variable. Something like this:
    EXECUTE IMMEDIATE 'insert into op_sample (select id,name,:bind_subject_obj from sam1) ' USING subject_obj;Alternatively you might figure out to use static SQL rather than dynamic SQL (if possible for your project.) In static SQL the PL/SQL engine binds the variables for you automatically.

  • Error when inserting xml with xsi:noNamespaceSchemaLocation

    Hello,
    Hopefully this isn't a stupid question....
    I am currently using Oracle 9.2.0.6.0 to try out XML.
    I haven't been able to get our DBAs to set up XML DB in its entirety so I just have the basics, i.e. I have access to the xmltype object but none of the packages like DBMS_SCHEMA and DBMS_XDB. Therefore, I haven't been able to register any schemas in the database.
    So what I'd like to know is why do I get an ORA-21700 error when I try to load an xml document which has the 'xsi:noNamespaceSchemaLocation' attribute'. If I take this out of the XML document, it loads.
    From my initial reading, I got the impression that registering a schema in order to validate documents was an optional, although probably an ideal, step to take.
    So another way of phrasing this subject might be: can one insert xml documents without the use of a schema?
    The example code is shown below.
    dbase> INSERT INTO MY_TABLE( id , message_type , status , rcvd_time, filename , xmlcol)
    2 VALUES ( 1, 0 , 'RECEIVED', sysdate , 'tempfilename' ,
    3 xmltype('<ExampleXML xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
    4 xsi:noNamespaceSchemaLocation = "ExampleXML.xsd">
    5 <tag1>
    6 <tag2 attr1="something">Some data
    7 </tag2>
    8 </tag1>
    9 </ExampleXML>')
    10 );
    xmltype('<ExampleXML xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
    ERROR at line 3:
    ORA-21700: object does not exist or is marked for delete
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    dbase> ed
    Wrote file afiedt.buf
    1 INSERT INTO MY_TABLE ( id , message_type , status , rcvd_time, filename , xmlcol)
    2 VALUES ( 1, 0 , 'RECEIVED', sysdate , 'tempfilename' ,
    3 xmltype('<ExampleXML xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
    4 >
    5 <tag1>
    6 <tag2 attr1="something">Some data
    7 </tag2>
    8 </tag1>
    9 </ExampleXML>')
    10* )
    dbase> /
    1 row created.
    The xmlcol column was created simply as an xmltype column.

    Basically using XMLType without XML DB is almost impossible in 9.2.x. Please have the DBA's install XML DB by running the script $ORACLE_HOME/rdbms/admin/catqm.sql. They can follow the installing XDB instuctions in the XML DB Developer's guide.
    What is actually happening here is that the PARSER is hard wired to always check is a document that contains an noNamespaceSchemaLocation or schemaLocation tag is associated with an XML Schema that has been registered with Oracle XML DB. If is is, special action is takem, if it isn't then no special action is taken. Unfortunately for various arcane technical reasons if the the XDB repository is not present the check fails totally. Even if we fixed this bug, which has been marked not feasible to fix in the past, there are many other issues with the inbuilt XML technology having dependancies on the presence of the XML DB repository and XDB database user.
    So the net/net is don't use XMLType or any XML related features in 9.2.x or later unless XML DB is installed. It is extremenly likely at this point in time that XML DB will become a mandatory component of the next release of the database. At that point you will no longer have an option. It will be automatically installed when a database is created or updated and there will be no way of un-installing it.

  • Error when inserting or changing in a sorted table

    Hi Experts,
    When i am executing a webdynpro application it says Error when inserting or changing in a sorted table. Can any one help for this.
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: GET_CATEGORY_LIST of program /1BCWDY/F9XHYWN4WKNMG4CDUGA8==CP
    Method: IF_COMPONENTCONTROLLER~GET_CATEGORY_LIST of program /1BCWDY/F9XHYWN4WKNMG4CDUGA8==CP
    Method: WDDOMODIFYVIEW of program /1BCWDY/F9XHYWN4WKNMG4CDUGA8==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_DO_MODIFY_VIEW of program /1BCWDY/F9XHYWN4WKNMG4CDUGA8==CP
    Method: DO_MODIFY_VIEW of program CL_WDR_DELEGATING_VIEW========CP
    Method: MODIFY_VIEW of program CL_WDR_VIEW===================CP
    Method: DO_MODIFY_VIEW of program CL_WDR_CLIENT_COMPONENT=======CP
    Method: DO_MODIFY_VIEW of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
    in ST22
    Object Definition
      DATA: lo_node                   TYPE REF TO if_wd_context_node,
            lo_node_info              TYPE REF TO if_wd_context_node_info,
            lo_element                TYPE REF TO if_wd_context_element.
    Additional Data declarations
      DATA: lv_key TYPE string.
    Get context node.
      lo_node = wd_context->get_child_node( name = 'DROPDOWNLISTS' ).
      lo_node_info = lo_node->get_node_info( ).
    Call method to fetch the categories.
      CALL METHOD cl_hap_wd_start_page_ui=>category_get_list
        EXPORTING
          add_on_application = add_on_application
        IMPORTING
          t_categories       = lt_categories.
    Append Default selection entry 'All'.
      lw_category-category_id = '00000000'.
      lw_category-category_name = 'All'.
      APPEND lw_category TO lt_categories.
    Sort table after appending the new entry.
      SORT lt_categories ASCENDING.
    Loop through the category list and populate key(category_id) value(category_name) pair for
      LOOP AT lt_categories INTO lw_category.
        lw_key_value-key = lw_category-category_id.
      625     lw_key_value-value = lw_category-category_name.
    >>>>>     APPEND lw_key_value TO lt_key_values.------>Here it throws an error
      627     CLEAR: lw_key_value, lw_category.
      628   ENDLOOP.
      629
      630 * Bind the category key-value pair to the context attribute.
      631   CALL METHOD lo_node_info->set_attribute_value_set
      632     EXPORTING
      633       name      = 'CATEGORY_LIST'
      634       value_set = lt_key_values.
      635
      636 * Make the entry 'All' as default selected.
      637   CALL METHOD lo_node->set_attribute
      638     EXPORTING
      639       value = '00000000'
      640       name  = 'CATEGORY_LIST'.
      641
      642 ENDMETHOD.
      643
      644 method GET_EMPLOYEES.
      645

    Hello Durga,
    from the error what I understood is lt_key_values is a sorted table and you are trying append a new line to it. Incase of sorted table you need to use the INSERT statement and not the APPEND statement.
    INSERT lw_key_value INTO table lt_key_values.
    BR, Saravanan

  • Error when inserting Web Dynpro script in Adobe form

    Hi
    In my WD component in one of the view I have an ADOBE form (Online scenario) and a button to save data into backend. In the ADOBE form everything is working properly, however the problem is when I click on the button to save, Its not getting into my action code. Even I am not getting any error other than the wait symbol.
    In the form I have taken ZCI layout but when i'm inserting Webdynpro Script its showing an error 'Error when inserting Web Dynpro script'.
    Please let me know why this error is getting.
    Thanks
    Ram

    Hi Ram,
    I hope  you help me,
    I have the same error, when I insert a web Dynrp Script, what version of SAPGUI do you use?
    Thanks

Maybe you are looking for

  • Cannot get my ipad to recognize my wireless printer.

    I only have an iPad and hp netbook.  iPad does not recognize my wireless hp deskjet 3050a printer.  Don't know how to connect printer to my wireless network

  • Creating a new DAQmx task after building to EXE

    Should I be able to create a new DAQmx Task while running a VI containing the DAQmx Task control that was built as an EXE? I can't but would like to know if there is a work around or if I am doing something wrong. See the attached screen shots. When

  • Sales Office wise grouping the Material:

    Dear Guru's, I have a scenario where the business wants to announce the discounts fortheir customers sales office wise and Material Group wise. But the the twist is they want Material Groups to be different from sales office to sales office. How to m

  • Not all my purchase history showing up for redownload

    OK, so I'm enjoying iOS 5 on my iPhone 4 and finally have access to download previous purchases directly from the iTunes app. The thing is, not all my songs or albums are showing up as available to redownload. I took a look at my history through iTun

  • Role Creation with Virsa

    Hi All, We have implemented ECC 6.0 and Virsa components.Can someone please provide the procedure for creating roles using Virsa. Thanks in Advance.