Errors: ORA-29913 ORA-29400 KUP-03154, when executing SEM_APIS.LOAD_INTO_STAGING_TABLE

Hi all,
I use Oracle 12c Spatial and Graph and I need to load a N-QUAD file with large literals.
To do so I first create a directory and a source external table
SQL> CREATE DIRECTORY DATA_DIR AS '/tmp';
SQL> EXECUTE sem_apis.create_source_external_table(source_table => 'STAGE_TABLE_SOURCE', def_directory => 'DATA_DIR', bad_file => 'CLOBrows.bad');
SQL> ALTER TABLE "STAGE_TABLE_SOURCE" LOCATION ('data.nq');
then I change the READSIZE parameter of the external table (because the literals of the file are more than 512KB).
SQL> ALTER TABLE STAGE_TABLE_SOURCE DEFAULT DIRECTORY DATA_DIR ACCESS PARAMETERS (READSIZE 1048576);
the I try to load data into the staging table
SQL> EXECUTE SEM_APIS.LOAD_INTO_STAGING_TABLE(staging_table => 'STAGE_TABLE', source_table  => 'STAGE_TABLE_SOURCE', input_format  => 'N-QUAD');
but I get the following error:
ERROR at line 1:
ORA-13199: During LST: SQLERRM=ORA-29913: error in executing ODCIEXTTABLEOPEN
callout
ORA-29400: data cartridge error
KUP-03154: kudmxo-03:invalid_dump_header
(Arguments:  staging_table=STAGE_TABLE source_table=STAGE_TABLE_SOURCE
input_format=N-QUAD parallel= source_table_owner= staging_table_owner= flags=)
[ORA-06512: at "MDSYS.SDO_RDF", line 884
ORA-06512: at "MDSYS.MD", line 1723
ORA-06512: at "MDSYS.MDERR", line 17
ORA-06512: at "MDSYS.SDO_RDF", line 906
ORA-06512: at "MDSYS.RDF_APIS", line 883
ORA-06512: at line 1
I could not find any information about error KUP-03154.
Any hint about how to solve this problem will be very appreciated.

Yes all privileges and permissions seem to be OK.
To be more specific, the linux user (oracle) that executes sqlpls has both read and write permissions both on data directory and the input N-QUAD file.
The SQL user is the owner of the directory object and it has also been granted the SELECT privilege on external table and SELECT, UPDATE on staging table.
I think that the problem is something about the external table and the large literals of my input file (e.g., a literal consists 658KB). Because after changing the location of the external table to this file, even a simple query like counting its tuples causes the same error. On the other hand if I use a file with smaller literals everything works fine.
Best regards

Similar Messages

  • Error:ora-01031 Insuffiecient Privileges when using "conn / as sysdba"?

    HI all,
    I used oracle to login and used dbca to create a database.
    export ORACLE_SID=db9i
    sqlplus /nolog
    conn / as sysdba
    Error:ora-01031 Insuffiecient Privileges
    Notes: I can use "conn sys/pwd as sysdba" to connect instance.

    Verify your oracle installation as of document available at this URL : http://www.oracle.com/technology/pub/articles/smiley_10gdb_install.html

  • Error ORA-01031: insufficient privileges when backup via DB13

    Hi expert,
    Currently, I have system on SuSE 10 SP2 with ECC6 and Oracle 10.2 installed.
    Database backup works fine when using BRTOOLS from command line.
    Error like this :
    BR0278E Command output of 'SHELL=/bin/sh /oracle/I20/920_32/bin/rman
    nocatalog':
    Recovery Manager: Release 9.2.0.4.0 - Production
    Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.
    RMAN>
    RMAN> connect target /;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    ORA-01031: insufficient privileges
    RMAN> *end-of-file*
    happened when I try to schedule backup through DB13.
    I try to solved this with SAP Note 776505 but still doesn't work.
    Any suggestion ?
    ardhian

    Hi,
    Execute the following command at sql prompt.
    grant dba,resource,connect,sapdba to OPS$<SID>ADM  OPS$ORA<SID>
    grant dba,resource,connect,sapdba to O OPS$ORA<SID>
    grant dba,resource,connect,sapdba to  SAPSR3 or SAP<SID>(YOUR SCHEMA NAME)
    Also check owner of SAPUSER table
    SELECT OWNER FROM DBA_TABLES WHERE TABLE_NAME = 'SAPUSER';
    If it returns value OPS$<SID>ADM than its ok, otherwise you have to drop this & recreate with command
    CREATE TABLE "OPS$QASADM".SAPUSER
           (USERID VARCHAR2(256), PASSWD VARCHAR2(256));
            INSERT INTO "OPS$<sid>ADM".SAPUSER VALUES ('<sapowner>',
    '<password>');
    For more info go through the snote 400241
    [https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=400241]
    Thanks & Regards
    Karan

  • Error ORA-01426: numeric overflow when Creating table with double data type

    Hi,
    I am using ODP.NET to create a table with data from SQL to Oracle. The problem is with double data type fields that is equivalent to FLOAT(49) in Oracle. My syntax is:
    CREATE TABLE SCOTT.ALLTYPES
    F1 NUMBER(10),
    F10 DATE,
    F2 NUMBER(10),
    F3 NUMBER(5),
    F4 NUMBER(3),
    F5 FLOAT(23),
    F6 FLOAT(49),
    F7 NUMBER (38,5),
    F8 NVARCHAR2(500),
    F9 NVARCHAR2(500)
    Th error is with field F6 but I am not sure what is the correct type equivalent to double in SQL.
    I woul appreciate if anyone can help me with this problem.
    Sunny

    Does this simple test work for you?
    In database:
    create table float_test
      f1 float(49)
    );C# code:
    using System;
    using System.Data;
    using System.Text;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    namespace FloatTest
      /// <summary>
      /// Summary description for Class1.
      /// </summary>
      class Class1
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
          // connect to local db using o/s authenticated account
          OracleConnection con = new OracleConnection("User Id=/");
          con.Open();
          // will hold the value to insert
          StringBuilder sbValue = new StringBuilder();
          // create a string of 49 number 9's
          for (int i = 0; i < 49; i++)
            sbValue.Append("9");
          // command object to perform the insert
          OracleCommand cmd = con.CreateCommand();
          cmd.CommandText = "insert into float_test values (:1)";
          // bind variable for the value to be inserted
          OracleParameter p_value = new OracleParameter();
          p_value.OracleDbType = OracleDbType.Double;
          p_value.Value = Convert.ToDouble(sbValue.ToString());
          // add parameter to collection
          cmd.Parameters.Add(p_value);
          // execute the insert operation
          cmd.ExecuteNonQuery();
          // clean up
          p_value.Dispose();
          cmd.Dispose();
          con.Dispose();
    }SQL*Plus after executing above code:
    SQL> select * from float_test;
            F1
    1.0000E+49
    1 row selected.- Mark

  • Error ORA-12514 Product = RDBMS80 on execute fmx

    Hi!! i have this error when i try to execute a fmx... i have oracle forms 6i and Database 10g!
    it works fine some days but today have crashed!!
    Why i get this error??

    This is my listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = Ignacio1)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    My sqlnet.ora:
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    #SQLNET.AUTHENTICATION_SERVICES = (NTS)
    SQLNET.AUTHENTICATION_SERVICES = (NONE)
    and my tnsnames.ora:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Ignacio1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    Help please!! any suggestions??

  • Error ora-24338 happened  when change data source on crystal report

    Hi Guys:
    I made a report on my test envariment (this report involve stored procedure and it return a ref cursor from oracle database to the report). after i test it, i decided to move this report to the production database. However when i updated the database location, it shows me the following error:
    database connector error: 'ORA-24338': statement handle not executed [database wender code: 24338]
    then it shows:
    some tables could not be replaced, as no match was found in the new data source. please spacify the table required for any unmodified tables.
    then it shows:
    database connection error
    all the tables and code in test database and production database are same.
    anyone can help me?
    thanks
    Howard

    after you went to database
    set datasource location
    updated it.
    did a mapping box come up
    did you then verify the database to pull in the new records or tables?
    i would run the query on the server to see if it returns values.
    you may also need to set your overqualified table name
    database
    set datasource
    locate the table or sp in the top box
    the + next to the sp or table
    click
    open properities +
    overqualified table name F2
    enter the table or sp in there
    then verify your database and try to run against the prod server

  • ORA-29400 and ORA-00600

    I registered the following schema:
    xs:schema targetNamespace="http://www.imsglobal.org/ims_qtiasiv1p2.xsd" xmlns="http://www.imsglobal.org/ims_qtiasiv1p2.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:x="http://www.w3.org/XML/1998/namespace" elementFormDefault="qualified" version="QTIASI1.2">
    <!-- ****************** -->
         <!-- ** Root Element ** -->
         <!-- ****************** -->
         <xs:element name="questestinterop" type="questestinteropType"/>
         <!-- ************************** -->
         <!-- ** Element Declarations ** -->
         <!-- ************************** -->
         <xs:element name="assessment" type="assessmentType"/>
    <xs:element name="flow" type="flowType"/>
         <xs:element name="flow_mat" type="flow_matType"/>
         <xs:element name="item" type="itemType"/>
    <xs:element name="material" type="materialType"/>
         <xs:element name="mattext" type="mattextType"/>
    <xs:element name="presentation" type="presentationType"/>
         <xs:element name="qticomment" type="qticommentType"/>
         <xs:element name="render_choice" type="render_choiceType"/>
    <xs:element name="response_lid" type="response_lidType"/>
    <xs:element name="response_labelType" type="response_labelType"/>
    <xs:element name="section" type="sectionType"/>
    <!-- **************** -->
         <!-- ** assessment ** -->
         <!-- **************** -->
         <xs:complexType name="assessmentType">
              <xs:sequence>
                   <xs:element name="qticomment" type="qticommentType" minOccurs="0"/>
                   <xs:element name="section" type="sectionType"/>
              </xs:sequence>
              <xs:attribute name="ident" type="xs:string" use="required"/>
              <xs:attribute name="title" type="xs:string"/>
         </xs:complexType>
    <!-- ********** -->
         <!-- ** flow ** -->
         <!-- ********** -->
         <xs:complexType name="flowType">
              <xs:choice maxOccurs="unbounded">
                   <xs:element name="flow" type="flowType"/>
                   <xs:element name="material" type="materialType"/>
                   <xs:element name="response_lid" type="response_lidType"/>
              </xs:choice>
              <xs:attribute name="class" type="xs:string" default="Block"/>
         </xs:complexType>
         <!-- ************** -->
         <!-- ** flow_mat ** -->
         <!-- ************** -->
         <xs:complexType name="flow_matType">
              <xs:choice maxOccurs="unbounded">
                   <xs:element name="flow_mat" type="flow_matType"/>
                   <xs:element name="material" type="materialType"/>
              </xs:choice>
              <xs:attribute name="class" type="xs:string" default="Block"/>
         </xs:complexType>
         <!-- ********** -->
         <!-- ** item ** -->
         <!-- ********** -->
         <xs:complexType name="itemType">
              <xs:sequence>
                   <xs:element name="qticomment" type="qticommentType" minOccurs="0"/>
                   <xs:element name="presentation" type="presentationType" minOccurs="0"/>               
              </xs:sequence>
              <xs:attribute name="maxattempts" type="xs:string"/>
              <xs:attribute name="label" type="xs:string"/>
              <xs:attribute name="ident" type="xs:string" use="required"/>
              <xs:attribute name="title" type="xs:string"/>
         </xs:complexType>
    <!-- ************** -->
         <!-- ** material ** -->
         <!-- ************** -->
         <xs:complexType name="materialType">
              <xs:sequence>
                   <xs:element name="qticomment" type="qticommentType" minOccurs="0"/>
                   <xs:choice maxOccurs="unbounded">
                        <xs:element name="mattext" type="mattextType"/>
                   </xs:choice>
              </xs:sequence>
              <xs:attribute name="label" type="xs:string"/>
         </xs:complexType>
         <!-- ************* -->
         <!-- ** mattext ** -->
         <!-- ************* -->
         <xs:complexType name="mattextType">
              <xs:simpleContent>
                   <xs:extension base="xs:string">
                        <xs:attribute name="texttype" type="xs:string" default="text/plain"/>
                        <xs:attribute name="label" type="xs:string"/>
                        <xs:attribute name="charset" type="xs:string" default="ascii-us"/>
                        <xs:attribute name="uri" type="xs:string"/>
                        <xs:attribute name="entityref" type="xs:ENTITY"/>
                        <xs:attribute name="width" type="xs:string"/>
                        <xs:attribute name="height" type="xs:string"/>
                        <xs:attribute name="y0" type="xs:string"/>
                        <xs:attribute name="x0" type="xs:string"/>
                   </xs:extension>
              </xs:simpleContent>
         </xs:complexType>
         <!-- ****************** -->
         <!-- ** presentation ** -->
         <!-- ****************** -->
         <xs:complexType name="presentationType">
              <xs:sequence>
                   <xs:element name="qticomment" type="qticommentType" minOccurs="0"/>
                   <xs:choice>
                        <xs:element name="flow" type="flowType"/>
                        <xs:choice maxOccurs="unbounded">
                             <xs:element name="material" type="materialType"/>
                             <xs:element name="response_lid" type="response_lidType"/>
                        </xs:choice>
                   </xs:choice>
              </xs:sequence>
              <xs:attribute name="label" type="xs:string"/>
              <xs:attribute name="y0" type="xs:string"/>
              <xs:attribute name="x0" type="xs:string"/>
              <xs:attribute name="width" type="xs:string"/>
              <xs:attribute name="height" type="xs:string"/>
         </xs:complexType>
    <!-- **************** -->
         <!-- ** qticomment ** -->
         <!-- **************** -->
         <xs:complexType name="qticommentType">
              <xs:simpleContent>
                   <xs:extension base="xs:string"/>
              </xs:simpleContent>
         </xs:complexType>
         <!-- ********************* -->
         <!-- ** questestinterop ** -->
         <!-- ********************* -->
         <xs:complexType name="questestinteropType">
              <xs:sequence>
                   <xs:element name="qticomment" type="qticommentType" minOccurs="0"/>
                   <xs:choice>
                        <xs:element name="assessment" type="assessmentType"/>
                        <xs:choice maxOccurs="unbounded">
                             <xs:element name="section" type="sectionType"/>
                             <xs:element name="item" type="itemType"/>
                        </xs:choice>
                   </xs:choice>
              </xs:sequence>
         </xs:complexType>
         <!-- ******************* -->
         <!-- ** render_choice ** -->
         <!-- ******************* -->
         <xs:complexType name="render_choiceType">
              <xs:sequence>
                   <xs:choice minOccurs="0" maxOccurs="unbounded">
                        <xs:element name="material" type="materialType"/>
                        <xs:element name="response_label" type="response_labelType"/>
                   </xs:choice>
              </xs:sequence>
              <xs:attribute name="shuffle" default="No">
                   <xs:simpleType>
                        <xs:restriction base="xs:NMTOKEN">
                             <xs:enumeration value="Yes"/>
                             <xs:enumeration value="No"/>
                        </xs:restriction>
                   </xs:simpleType>
              </xs:attribute>
              <xs:attribute name="minnumber" type="xs:string"/>
              <xs:attribute name="maxnumber" type="xs:string"/>
         </xs:complexType>
    <!-- ************************ -->
         <!-- ** response_lableType ** -->
         <!-- ************************ -->
         <xs:complexType name="response_labelType" mixed="true">
              <xs:choice minOccurs="0" maxOccurs="unbounded">
                   <xs:element name="qticomment" type="qticommentType"/>
                   <xs:element name="material" type="materialType"/>
                   <xs:element name="flow_mat" type="flow_matType"/>
              </xs:choice>
              <xs:attribute name="rshuffle" default="Yes">
                   <xs:simpleType>
                        <xs:restriction base="xs:NMTOKEN">
                             <xs:enumeration value="Yes"/>
                             <xs:enumeration value="No"/>
                        </xs:restriction>
                   </xs:simpleType>
              </xs:attribute>
              <xs:attribute name="labelrefid" type="xs:string"/>
              <xs:attribute name="ident" type="xs:string" use="required"/>
         </xs:complexType>
         <!-- ****************** -->
         <!-- ** response_lid ** -->
         <!-- ****************** -->
         <xs:complexType name="response_lidType">
              <xs:sequence>
                   <xs:choice minOccurs="0">
                        <xs:element name="material" type="materialType"/>
                   </xs:choice>
                   <xs:choice>
                        <xs:element name="render_choice" type="render_choiceType"/>
                   </xs:choice>
                   <xs:choice minOccurs="0">
                        <xs:element name="material" type="materialType"/>
                   </xs:choice>
              </xs:sequence>
              <xs:attribute name="ident" type="xs:string" use="required"/>
         </xs:complexType>
    <!-- ************* -->
         <!-- ** section ** -->
         <!-- ************* -->
         <xs:complexType name="sectionType">
              <xs:sequence>
                   <xs:element name="qticomment" type="qticommentType" minOccurs="0"/>
                   <xs:choice minOccurs="0" maxOccurs="unbounded">
                        <xs:element name="item" type="itemType"/>
                        <xs:element name="section" type="sectionType"/>
                   </xs:choice>
              </xs:sequence>
              <xs:attribute name="ident" type="xs:string" use="required"/>
              <xs:attribute name="title" type="xs:string"/>
         </xs:complexType>
    </xs:schema>     
    Then I created a table of XMLTYPE based on this schema, then I inserted the following xml file:
    <questestinterop xmlns="http://www.imsglobal.org/ims_qtiasiv1p2.xsd" xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglo
    bal.org/ims_qtiasiv1p2.xsd http://www.imsglobal.org/ims_qtiasiv1p2.xsd">
    <assessment title="European Geography" ident="A01">
    <qticomment>A Complex Assessment example.</qticomment>
    <section title="European Capitals" ident="S01">
    <item title="Capital of France" ident="I01" maxattempts="6">
    <qticomment>This Item is the first example to be used in the QTI XML Bin
    ding Base Document.</qticomment>
    <presentation label="Resp001">
    <flow>
    <material>
    <mattext>What is the Capital of France ?</mattext>
    </material>
    <response_lid ident="LID01">
    <render_choice shuffle="Yes">
    <response_label ident="LID01_A">
    <flow_mat>
    <material>
    <mattext>London</mattext>
    </material>
    </flow_mat>
    </response_label>
    <response_label ident="LID01_B">
    <flow_mat>
    <material>
    <mattext>Paris</mattext>
    </material>
    </flow_mat>
    </response_label>
    </render_choice>
    </response_lid>
    </flow>
    </presentation>
    </item>
    </section>
    </assessment>
    </questestinterop>
    It returned the correct result when I did:
    SQL> select extract(value(x), '/questestinterop/assessment/section/item/presentation/flow')
    from XML_TEST x;
    But I got the following error when I tried:
    SQL> select extract(value(x), '/questestinterop/assessment/section/item/presentation/flow/material')
    from XML_TEST x;
    ERROR:
    ORA-29400: data cartridge error
    ORA-00600: internal error code, arguments: [invalid_mem_type], [0], [], [], [],
    Thank you for help.

    Thanks for the information.
    I checked oracle9i download page, it seems that there is no release 9.2.0.2.0 available for Windows NT/2000/XP. (I am on WinXP). Is there anywhere else I can check to upgrade database?
    By the way, here is another problem I got with the same schema and same xml file.
    It return the correct result when I did
    SQL> select extractValue(value(t), '/qticomment')
    2 from XML_TEST x,
    3 TABLE (xmlsequence (extract(value(x), '/questestinterop/assessment/qticomment'))
    4 )t;
    EXTRACTVALUE(VALUE(T),'/QTICOMMENT')
    A Complex Assessment example.
    I got empty return result, when I tried
    SQL> set feedback on
    SQL> select extractValue(value(t), '/qticomment')
    2 from XML_TEST x,
    3 TABLE (xmlsequence (extract(value(x), '/questestinterop/assessment/section/item/qticomment'))
    4 )t;
    EXTRACTVALUE(VALUE(T),'/QTICOMMENT')
    1 row selected

  • 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

  • Running a Disciverer report gives the following error ORA-20001

    While running one of the discoverer reports under a certain responsibility i got the following error
    ORA-20001: Oracle error -20001: ORA-20001: Error occurred during product initialization for MO when executing 'begin MO_GLOBAL.INIT; end;'. SQLCODE = -20001 SQLERROR = ORA-20001: SQL_PLSQL_ERROR: N, ROUTINE, fnd.plsql.MO_GLOBAL.INIT, N, ERRNO, -20001, N, REASON, ORA-20001: SQL_PLSQL_ERROR: N, ROUTINE, fnd.plsql.MO_GLOBAL.SET_ORG_ACCESS, N, ERRNO, -20001, N, REASON, ORA-20001: SQL_PLSQL_ERROR: N, ROUTINE, fnd.plsql.MO_GLOBAL.SET_ORG_ACCESS_INTERNAL, N, ERRNO, -25153, N, REASON, ORA-25153: Temporary Tables Location: http://batcrmt2.btc.com.bh:8075/discoverer4i/viewer?Connect=[APPS_SECURE]batcrm1_ebst&SessionCookieName=batcrm1_ebst&eul=EUL4_US&opendbid=PDC_LISTING_BY_CHEQUE_NUMBER&FrameDisplayStyle=separate&acf=222206780&NLS_LANG=AMERICAN_AMERICA&NLS_DATE_FORMAT=DD-MON-RRRR&NLS_NUMERIC_CHARACTERS=.%2C&NLS_DATE_LANGUAGE=AMERICAN&NLS_SORT=BINARY
    running reports under different responsibilities does give any errors ,
    Any suggestions why ?

    ORA-20001 isn't an Oracle error message it was coded into your application by a developer: Look it up.
    Consider too the following:
    EXCEPTION
       WHEN NO_DATA_FOUND THEN NULL;so if the employee identifier is not found ... is this really what you want? If an employee isn't valid shouldn't you know it?

  • Getting ORA-01031: Insufficient privileges when connecting as sys as sysdba

    Hi There,
    I am running Linux AS version 4, oracle 102.0.1, and logginging as oracle user which belongs to dba group. I got error "ORA-01031: Insufficient privileges" when trying to connect as sys user to bring up database. I wondered what is causing the error. Here is an example
    oracle-dev>sqlplus /nolog
    SQL>conn as sys/oracle@dev as sysdba
    ERROR:
    ORA-01031: Insufficient privileges
    Any suggestions would be greatly appreciated. Thanks again.
    Rich,

    Did you create a password file ?
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b15658/admin_ora.htm#sthref142
    Message was edited by:
    Paul M.
    BTW, the syntax is
    SQL>conn sys/oracle@dev as sysdba

  • ORA-10722 Invalid Number when trying to Associate Asset to Activity

    Hello experts,
    For Activities created by API, we are getting an error (ORA-10722 Invalid Number) when attempting to associate a asset to the activity using the activity Association Form. Has anyone run across this before?
    Thanks,
    Tom

    ORA-01722: invalid number
    It can be because of The attempted conversion of a character string to a number failed because the character string was not a valid numeric literal.
    Only numeric fields or character fields containing numeric data may be used in arithmetic functions or expressions.
    Only numeric fields may be added to or subtracted from dates.
    Check the character strings in the function or expression.
    Check that they contain only numbers, a sign, a decimal point, and the character "E" or "e" and retry the operation .
    Check API design.
    Regards
    Kamal

  • I´m getting these error ORA-00936:missing expression runnig a Task on Info

    I´m getting these error ORA-00936: missing expression, when running the SDE_ORA_Reverse_GLJournals task.
    I´m setting the variables $$FILTER_BY_LEDGER_ID, $$FILTER_BY_LEDGER_TYPE, $$LEDGER_ID_LIST and $$LEDGER_TYPE_LIST in the DAC correctly. I see the values asigned to those variables in the parameters file( SDE_ORA_Reverse_GLJournals.txt)
    But when the task is executing, those values comes empty. Does someone have encountered with the same mistake?
    Thanks in advanced.

    Hi,
    Im finding a similar issue but with task SDE_ORA_GLJournals,
    the code is :
    AND DECODE(, 'Y', GL.LEDGER_ID, 1) IN ()
    AND DECODE(, 'Y', GL.LEDGER_CATEGORY_CODE, 'NONE') IN ()]
    the parameters are also fine in the parameters file.
    Has anyone found a solution or an explanation for this?
    Thanks a lot, regards
    Nestor

  • OLS: error ORA-07445

    Hi Community
    I am writing because I was informed of your knowledge in Label Segurity and I have a problem with a customer in Venezuela. The customer is Liberty Mutual Insurance Caracas.
    The architecture was implemented where Label Security has a RAC Database 10g (1) and a DB PHYSICAL STANDBY mode (2) implemented with Dataguard).
    When the policies were implemented on the production database (1) everything worked perfectly, and Dataguard replied installing Label Segurity on stand by without any problems.
    When you run a SELECT on one of the tables in the DB PHYSICAL STANDBY (2) which have implemented policies, presents the error ORA-07445.
    Then when you start the Policy Manager on the DB PHYSICAL STANDBY (2) the same error appeared. ORA-07445
    But if we SELECT with the user owner of the object or the user SYS SELECT runs without errors.
    Ask. In an architecture like this, Label Security can not be installed? Or does not work?

    Hi Mark,
    the example script was created only for a more simple reproducibility test. The original SQL statement that causes the error is:
    SELECT SE0010, SE0030, SE0040, SE0050, SE0060, SE0070, SE0005, (SELECT COUNT(*) FROM G1SEGN01 WHERE SE0010 = SE1010) AS ALLEGATICOUNT
    FROM G1SEGN00
    WHERE SE0060 = 'INSERTED' AND (SELECT COUNT(*) FROM G1PATT00 WHERE EXISTSNODE(SE0080,PA0020)=1) > 0 AND SE0070 = 0
    and the tables structure are
    Table: G1SEGN00
    Nome Nullo? Tipo
    SE0005 NUMBER(15)
    SE0010 NOT NULL VARCHAR2(30)
    SE0020 NOT NULL VARCHAR2(100)
    SE0030 NOT NULL VARCHAR2(25)
    SE0040 NOT NULL VARCHAR2(255)
    SE0050 NOT NULL DATE
    SE0060 NOT NULL VARCHAR2(10)
    SE0070 NOT NULL NUMBER(8)
    SE0080 NOT NULL SYS.XMLTYPE
    SE0090 VARCHAR2(100)
    SE0065 VARCHAR2(1)
    Table: G1SEGN01
    Nome Nullo? Tipo
    SE1005 NUMBER(15)
    SE1010 NOT NULL VARCHAR2(30)
    SE1020 NOT NULL DATE
    SE1030 NOT NULL VARCHAR2(1000)
    SE1040 NOT NULL VARCHAR2(2000)
    Table: G1PATT00
    Nome Nullo? Tipo
    PA0005 NUMBER(15)
    PA0010 NOT NULL NUMBER(8)
    PA0015 NOT NULL NUMBER(5)
    PA0020 NOT NULL VARCHAR2(1000)
    PA0030 VARCHAR2(2000)
    PA0040 NUMBER(3)
    Clearly the field SE0080 contains an XML document and the field PA0020 contains an XPATH expression.
    The SQL statement is executed from an .NET application (using c#)
    Tell me if more lines of trace file could help.
    Thanks again, bye.

  • Urgent: ORA-24338: statement handle not executed

    Hello,
    /*===================================================*/
    PL/SQL code:
    SQL> create or replace package p3 is
    2 type t_c is ref cursor;
    3 procedure p(p_c out t_c);
    4 end p3;
    5 /
    Package created.
    SQL> show errors;
    No errors.
    SQL>
    SQL>
    SQL> create or replace package body p3 is
    2
    3 procedure p(p_c out t_c)
    4 is
    5 v_c t_c;
    6 begin
    7 open v_c for
    8 select job_number
    9 from rep_adhoc_invoices
    10 where rownum<5;
    11 end p;
    12 end p3;
    13 /
    Package body created.
    SQL> show errors;
    No errors.
    /*===================================================*/
    C# code:
    OracleConnection dbConnection = null; /* see finalize{} */
    OracleCommand dbCommand = null;
    OracleDataAdapter dbAdapter = null;
    try
         dbConnection = new OracleConnection(GetConnectionString());
         dbConnection.Open();
         dbCommand = new OracleCommand();
         dbCommand.Connection = dbConnection;
         dbCommand.CommandText = "p3.p";                    dbCommand.CommandType = CommandType.StoredProcedure;
         dbCommand.Parameters.Add("p_c", OracleDbType.RefCursor, DBNull.Value, ParameterDirection.Output);
         dbAdapter = new OracleDataAdapter(dbCommand);
         System.Data.DataSet ds = new DataSet();
         dbAdapter.Fill(ds);
         return(ds);
    catch (Exception e)
         Console.WriteLine(e.Message);
    /*===================================================*/
    Problem:
    When code executes:
    dbAdapter.Fill(ds);
    I constantly get the ORA-24338.
    The same result if I try from console with "set autoprint on" (v_c is defined beforehand):
    SQL> execute p3.p(:v_c)
    PL/SQL procedure successfully completed.
    ERROR:
    ORA-24338: statement handle not executed
    It seems to me, that the problem is on the server.
    Does anyone know, WHAT is the problem?
    Thanks a lot beforehand!
    Edgar.

    In your procedure implementation (below), you forgot to assign the local variable v_c to the out parameter p_c before exiting the rountine. This means that the ref cursor parameter is never opened.
    The error you got occurs because when ODP.NET gets back the ref cursor it tries to fetch from it without checking whether it's open or not. If you look up the ORA-24338 error code in the documentation, it'll tell you as much. Typcially, when I get an error I don't understand, I head straight for the docs. They not only tell me what it means, but often suggest a solution.
    This behaviour of ODP must be for performance reasons, since doing the check everytime would be wasted most of the time. Still, it would have been nice if they'd emulated MSDAORA, which DOES check.
    3 procedure p(p_c out t_c)
    4 is
    5 v_c t_c;
    6 begin
    7 open v_c for
    8 select job_number
    9 from rep_adhoc_invoices
    10 where rownum<5;
    11 end p;
    12 end p3;
    13
    Frankly, I'm surprised you didn't get ORA-3113: end of communication channel. This is what happened to me when I exited a function without assigning the ref cursor. To solve it, I'd changed the declaration of the PL/SQL function and OracleCommand parameters to IN OUT instead of just OUT. THEN, I got ORA-24338. Anyway, watch out for these things as you progress.
    Happy coding.
    Clarence

  • ORA-27369: job of type EXECUTABLE failed with exit code:Operation notpermit

    I am getting this error
    ORA-27369: job of type EXECUTABLE failed with exit code: Operation not permitted.
    We have been using this for such a long time without any problems.this is the plsql scheduler :
    Please help
    BEGIN
    SYS.DBMS_SCHEDULER.CREATE_JOB
    job_name => 'PROD_LOAD_SL_FILES'
    ,start_date => TO_TIMESTAMP_TZ('2005/12/02 17:05:00.000000 -05:00','yyyy/mm/dd hh24:mi:ss.ff tzh:tzm')
    ,repeat_interval => NULL
    ,end_date => NULL
    ,job_class => 'DEFAULT_JOB_CLASS'
    ,job_type => 'EXECUTABLE'
    ,job_action => '/home/oracle/actual/payment_files/slc_prod/load_sl_files.sh'
    ,comments => 'Loads SL files, uploads logs to database and sends email to Disbursement and DBA teams'
    SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
    ( name => 'PROD_LOAD_SL_FILES'
    ,attribute => 'RESTARTABLE'
    ,value => FALSE);
    SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
    ( name => 'PROD_LOAD_SL_FILES'
    ,attribute => 'LOGGING_LEVEL'
    ,value => SYS.DBMS_SCHEDULER.LOGGING_RUNS);
    SYS.DBMS_SCHEDULER.SET_ATTRIBUTE_NULL
    ( name => 'PROD_LOAD_SL_FILES'
    ,attribute => 'MAX_FAILURES');
    SYS.DBMS_SCHEDULER.SET_ATTRIBUTE_NULL
    ( name => 'PROD_LOAD_SL_FILES'
    ,attribute => 'MAX_RUNS');
    BEGIN
    SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
    ( name => 'PROD_LOAD_SL_FILES'
    ,attribute => 'STOP_ON_WINDOW_CLOSE'
    ,value => FALSE);
    EXCEPTION
    -- could fail if program is of type EXECUTABLE...
    WHEN OTHERS THEN
    NULL;
    END;
    SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
    ( name => 'PROD_LOAD_SL_FILES'
    ,attribute => 'JOB_PRIORITY'
    ,value => 1);
    SYS.DBMS_SCHEDULER.SET_ATTRIBUTE_NULL
    ( name => 'PROD_LOAD_SL_FILES'
    ,attribute => 'SCHEDULE_LIMIT');
    SYS.DBMS_SCHEDULER.SET_ATTRIBUTE
    ( name => 'PROD_LOAD_SL_FILES'
    ,attribute => 'AUTO_DROP'
    ,value => FALSE);
    END;
    and this is part of the unix script get executed:
    [oracle@USAC-S009 slc_prod]$ cat load_sl_files.sh
    #!/bin/sh
    # FILEME: /home/oracle/actual/paytment_files/load_sl_files.sh
    # PURPOSE: Load SL files, email .log files
    # INSTRUCTIONS/COMMENTS/ASSUMPTIONS: Two SL files will be pulled down
    # MAINTENANCE LOG
    # REV# DATE AUTHOR QA-ed BY CHANGE DESCRIPTION KEY
    DATE=`/bin/date +%d%b%y_%H%M`
    HOME=/home/oracle
    export HOME
    ORACLE_HOME=/u01/app/oracle/product/10.2
    export ORACLE_HOME
    ORACLE_SID=em
    export ORACLE_SID
    PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin:/etc:/usr/local/bin:/u01/app/oracle/product/10.2/bin:/bin:/sbin:/usr/bin:/usr/sbin; export PATH
    SL_HOME=/home/oracle/actual/payment_files/slc_prod
    FILE_HOME=/opt/u02/home/usair
    # Call slc.sh to load files
    ssh usac09.usacad.loc > /home/oracle/actual/payment_files/slc_prod/slc.sh.log <<EOT
    /u01/app/oracle/slc.sh 2>&1
    sleep 120
    EOT
    # Move logs from usac09 to usac-s009
    #ssh usac09.usacad.loc >> /home/oracle/actual/payment_files/slc_prod/slc.sh.log <<EOT
    # /u01/app/oracle/move_logs.sh 2>&1
    # sleep 15
    #EOT
    .............

    Hi!
    I have shell scripts with number of mandatory parameters.
    How can I write it in sql procedure in order to create exact command line that shuold be executed in Linux?
    the procedure looks like :
    CREATE OR REPLACE procedure CRM.run_tts (p_tts_name in varchar2 )
    is
    v_tts_name varchar2(2000);
    v_job_name varchar2(2000);
    v_source varchar2(200);
    v_target varchar2(200);
    Begin
    v_tts_name := upper(p_tts_name);
    --if p_instance_type='P' then
    v_source := 'psdwh';
    v_target := 'pudwh';
    --end if;
    if v_tts_name is not null then
    v_job_name := 'run_tts_'||v_tts_name;
    v_source := '/-ssid/'||v_source;
    v_target := '/-tsid/'||v_target;
    v_tts_name := '/-tbsname/'||v_tts_name;
    DBMS_SCHEDULER.create_job (
    job_name => v_job_name,
    job_type => 'EXECUTABLE',
    job_action => '/tmp/trans_asm',
    start_date => SYSTIMESTAMP,
    number_of_arguments => 3,
    enabled => false,
    auto_drop => false);
    --dbms_scheduler.set_job_argument_value(job_name=>v_job_name,argument_position=>1,argument_value=>'/software/oracle/dba/scripts/bin/trans_asm.sh'||' '||c_rec.id||' '||'"'||c_rec.view_name||'"'||' '||v_setnum||' '||'"'||V_MACHINE_TYPE||'"'||' '||'"'||p_mode||'"');
    dbms_scheduler.set_job_argument_value(job_name=>v_job_name,argument_position=>1,argument_value=>v_source);
    dbms_scheduler.set_job_argument_value(job_name=>v_job_name,argument_position=>2,argument_value=>v_target);
    dbms_scheduler.set_job_argument_value(job_name=>v_job_name,argument_position=>3,argument_value=>v_tts_name);
    -- dbms_scheduler.set_job_argument_value(job_name=>v_job_name,argument_position=>1,argument_value=>'/software/oracle/dba/scripts/bin/trans_asm_ps.sh');
    --dbms_scheduler.set_job_argument_value(job_name=>v_job_name,argument_position=>1,argument_value=>'/tmp/test.sh');
    -- trans_asm -ssid tsdwh -tsid tudwh -tbsname DW_BILLING_TTS
    dbms_scheduler.enable(name=>v_job_name);
    end if;
    end;
    the command looks like :
    trans_asm -ssid psdwh -tsid pudwh -tbsname YOAV_TTS
    Thank you !
    Valerie

Maybe you are looking for

  • Spool file error

    hi I have a requirement that i have a sql file in location and take output sql file put to another file as dat in aonther location . these all have to be done in .sqlfile(and register as concurrent program) i had thought before register concurrent pr

  • Firefox has stopped working in Windows 7 but works in Windows safe mode

    I am sending this from a different computer on which Firefox works fine. My problem is on a Windows 7 PC -- in the past few days Firefox has stopped working in normal mode but works ok in Windows safe mode. I keep getting a Windows error message that

  • Help. Imessaging isn't working!

    All of a sudden my apple ID doesn't work and when I go to settings it's stuck on "waiting for activation" for a day or 2... What can I do to fix this (keep in mind I am overseas and have no phone only the Internet and iMessage is 1 of few ways to con

  • ACCEPT in SQL script not working

    G'day Why does the following use of the 'accept' keyword not work? I want a user to be prompted to either commit or rollback but it does not work in the following 'experiment' set echo on set termout on set feedback on update emp set sal = sal*2 wher

  • Access Profile

    Hi All, I have a query on the access profile, for a single user who is assigned to a role called FIELD SALES has two access profiles DEFAULT & OWNER. DEFAULT = Will be the acccess levels for the records not onwed by him & in the same book (book funct