Oracle errors(Urgent)

Hai all,
Can you please tell me what are the critical oracle errors (critical meaning any of the these errors come then your application can not run at all . For Example DB Connection loss or Disk is out of space etc..) that can come ? If these errors come then i would gracefully shutdown my application. Is there any site which has all the ORACLE errors grouped so that i will find out all these critical errors and handle them?
Thanks,
Rajasekhar

Hai,
http://tahiti.oracle.com In the above site there are around some 30,000 erros listed. But they are not grouped as such. I want a site which has this grouping according to the criticality so that i can find out all the critical errors and handle them in the code. Hope i am clear.
Thanks,
Rajasekhar

Similar Messages

  • Oracle Application Server 10g Staging - export error - Urgent

    Dear All,
    I am trying to stage a AS 10g test environment from a production environment in a solaris environment, i am following the following document
    http://download-uk.oracle.com/docs/cd/B14099_19/core.1012/b13995/prodtest.htm
    I am at the step 4 b. trying to export the schemas i am getting the following error
    EXP-00056: ORACLE error 6550 encountered ORA-06550: line 1, column 41:PLS-00302: component 'SET_NO_OUTLINES' must be declared ORA-06550: line 1, column 15: PL/SQL: Statement ignoredEXP-00000: Export terminated unsuccessfully
    the reason is that i have two oracle homes one for Oracle 10g database and AS infrastructure database 10g.
    The version of my Oracle 10g database is 10.2.0.4.0 and the AS database is 10.1.0.5.0, so when i am invoking the exp its of version 10.2.0.4.0 and as my AS database is of lower version its throwing error.
    I am executing the exp from my AS home directory 'PRODUCTION_INFRA_HOME/bin/' i dont know why still the exp is of version 10.2.0.4 and not 10.1.0.5.0, i have even set the ORACLE_HOME to my PRODUCTION_INFRA_HOME for the session, still the error persists,
    kindly help as i am unable to proceed any further because of this,
    thanks in advance
    Edited by: user10243788 on Oct 26, 2009 2:12 AM

    Yes, expected behavior. As per documentation, the query should be executed as database user PORTAL instead of SYS :
    To list all the schemas, run the following query from SQL*Plus in the PORTAL schema:
    SET  LINESIZE 132
    SELECT USERNAME, DEFAULT_TABLESPACE, TEMPORARY_TABLESPACE FROM DBA_USERS
    WHERE USERNAME IN (user, user||'_PUBLIC', user||'_DEMO', user||'_APP', 'DISCOVERER5')
    OR USERNAME IN (SELECT DISTINCT OWNER
    FROM WWAPP_APPLICATION$
    WHERE NAME != 'WWV_SYSTEM')
    ORDER BY USERNAME;
    You can of course also change the query to prefix WWAPP_APPLICATION$ with the PORTAL account and execute it as SYS :
    SELECT USERNAME, DEFAULT_TABLESPACE, TEMPORARY_TABLESPACE FROM DBA_USERS
    WHERE USERNAME IN (user, user||'_PUBLIC', user||'_DEMO', user||'_APP', 'DISCOVERER5')
    OR USERNAME IN (SELECT DISTINCT OWNER
    FROM PORTAL.WWAPP_APPLICATION$
    WHERE NAME != 'WWV_SYSTEM')
    ORDER BY USERNAME;
    Thanks,
    EJ

  • Urgent:IMP-00017: following statement failed with ORACLE error 3113

    OS:HP_UX 11i
    Oracle 9.2.0.3.0
    when import tablespace metadata,
    comand is "imp \'sys/sysadmin AS sysdba\' TRANSPORT_TABLESPACE=y DATAFILES='/oradata/data2/
    B.dbf' TABLESPACES=A FILE=A.dmp IGNORE=Y LOG=./log/import.log"
    the error occurs as followed:
    Export file created by EXPORT:V09.02.00 via conventional path
    About to import transportable tablespace(s) metadata...
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    import server uses WE8ISO8859P1 character set (possible charset conversion)
    . importing SYS's objects into SYS
    IMP-00017: following statement failed with ORACLE error 3113:
    "BEGIN sys.dbms_plugts.beginImport ('9.2.0.3.0',31,'2000',NULL,'NULL',3626"
    "7,35051,1); END;"
    IMP-00003: ORACLE error 3113 encountered
    ORA-03113: end-of-file on communication channel
    IMP-00000: Import terminated unsuccessfully
    export is in same enviorment, the successful informantion below:
    exp \'sys/sysadmin AS sysdba\' TRANSPORT_TABLESPACE=y TABLESPACES=A FILE=A.dmp
    LOG=./log/export.log
    log file:
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    Note: table data (rows) will not be exported
    About to export transportable tablespace metadata...
    For tablespace A ...
    . exporting cluster definitions
    . exporting table definitions
    . . exporting table A
    . exporting referential integrity constraints
    . exporting triggers
    . end transportable tablespace metadata export
    Export terminated successfully without warnings.

    I do it,but the same error message.
    export message:
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.3.0 - Production
    Export done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
    Note: table data (rows) will not be exported
    About to export transportable tablespace metadata...
    For tablespace A ...
    . exporting cluster definitions
    . exporting table definitions
    . . exporting table A
    . exporting referential integrity constraints
    . exporting triggers
    . end transportable tablespace metadata export
    Export terminated successfully without warnings.
    Import Message:
    Export file created by EXPORT:V09.02.00 via conventional path
    About to import transportable tablespace(s) metadata...
    import done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
    . importing SYS's objects into SYS
    IMP-00017: following statement failed with ORACLE error 3113:
    "BEGIN sys.dbms_plugts.beginImport ('9.2.0.3.0',31,'2000',NULL,'NULL',3627"
    "7,36451,1); END;"
    IMP-00003: ORACLE error 3113 encountered
    ORA-03113: end-of-file on communication channel
    IMP-00000: Import terminated unsuccessfully

  • Urgent-Oracle Error :: ORA-39778-

    Hi
    I got following Oracle Error : ORA-39778 "the parallel load option is not allowed when loading lob columns" on production. yesterday we updated database with patchset 9.2.0.7 and DST/JVM compliant.
    Please reply me ASAP.
    Regards,
    RJ

    Sry I didn't check back this afternoon.
    As posted,
    Here's the note from metalink doc Note:396387.1
    Then e this to apply the files manually in the following way:
    Download the identified patch.
    Unzip the patch, and locate the 2 files timezone.dat and timezlrg.dat in the "files/oracore/zoneinfo" directory of the uncompressed patch (or from the relevant .jar file of a patchset). If there is also a readme.txt in this location then make a note of this as well.
    Backup your existing files in $ORACLE_HOME/oracore/zoneinfo - THIS CAN BE VITAL, DO NOT SKIP.
    Copy the 2 .dat files and possibly the readme.txt file that were found in step 2 into the $ORACLE_HOME/oracore/zoneinfo directory.
    Restart the database (in case of installation on a database), or restart the client applications (in case of client install). Note that the database did not need to be down before the time zone files were applied, but it does need to be restarted afterwards.

  • FRM-40505  Oracle Error: Unable to perform query(URGENT)

    Hi I developed a form with a control_block and table_block(based on table)
    in same Canvas.
    Based on values on control_block and pressing Find button detail block will be queried.
    Control_block ->
    textitem name "payment_type" char type
    text item name "class_code " char type
    push button "find"
    base table: --> payment_terms(termid,payment_type,class_code,other colums)
    table_block is based on above table
    Now I have written when-button-pressed trigger on find button..
    declare
    l_search varchar2(100);     
    BEGIN
    l_search := 'payment_type='|| :control_block .payment_type||' AND class_code='||:control_block .class_code ;
    SET_BLOCK_PROPERTY('table_block',DEFAULT_WHERE,l_search);
    go_block('table_block');
    EXECUTE_QUERY;
    EXCEPTION
         when others then
         null;
    END;
    I am getting
    FRM-40505 Oracle Error: Unable to perform query
    please help..

    You don't need to build the default_where at run time. Just hard-code the WHERE Clause property as:
        column_x = :PARAMETER.X
    But, if for some compelling reason, you MUST do it at run time this should work:
        Set_block_property('MYBLOCK',Default_where,
            'COLUMN_X=:PARAMETER.X');
    Note that there are NO quotes except for first and last. If you get some sort of error when you query, you should actually see :Parameter.X replaced with :1 when you do Help, Display Error.

  • Oracle Error Handling in Shell Scripts

    I need to manage 2 diferente class of errors :
    Oracle Errors(produced in compilation time) and
    Operating Syste Error(e.g. No Datbase conection ORA-1017,etc) my shell its KSH.
    Please can you help me how can I manage then?
    this my alternative but is not correct ;
    #creating conexion with sql
    exit | sqlplus -s $USERPV_DB/$PWDPV_DB @$VORDSQLPATH/ord.extractor_porven.sql $VFDESDE $VFHASTA > $VORDDATOS_PATH/ord.extractor_porven$VDATE.dat 2>> $VLOG
         #Evaluating last sentence (sqlplus . . . . )
         VERROR=$?
         #Si VERROR=0 should stop process execution and alert with echo ".."Oracle error handling before compilation time
         if [ $VERROR  != 0 ]
         then
         echo "value of VERROR are:$VERROR"
         echo "`date +"$V_FORMATDATE"` DATA EXTRACTION WAS NOT SUCESSFUL ERROR BEFORE COMPILATION TIME" >> $VLOG 2> /dev/null
         " Here show VERROR
         else #Oracle error handling in compilation time
         echo "`date +"$V_FORMATDATE"` DATA EXTRACTION WAS NOT SUCESSFUL ERROR BEFORE COMPILATION TIME " >> $VLOG
         " Here show VERROR
    else if [ $VERROR  = 0 ]
    " DATA EXTRACTION WAS SUCESSFUL"
    fi
    Would apreciate your help its very urgent.
    Best Regards
    Antonio

    user5647282 wrote:
    I need to manage 2 diferente class of errors :
    Oracle Errors(produced in compilation time) and
    Operating Syste Error(e.g. No Datbase conection ORA-1017,etc) my shell its KSH.
    Please can you help me how can I manage then?
    this my alternative but is not correct ;
    #creating conexion with sql
    exit | sqlplus -s $USERPV_DB/$PWDPV_DB @$VORDSQLPATH/ord.extractor_porven.sql $VFDESDE $VFHASTA > $VORDDATOS_PATH/ord.extractor_porven$VDATE.dat 2>> $VLOG
    Piping the output of 'exit' to sqlplus????????? what do you expect from this?
         #Evaluating last sentence (sqlplus . . . . )
         VERROR=$?any error returned by sqlplus as $? would be a fatal error of sqlplus itself, not any error returned by processing a sql statement. If your script ord.extractor_porven.sql were to generate, say, an ORA-00001, that is NOT an error in sqlplus and so does not return to the OS as an error of sqlplus.
         #Si VERROR=0 should stop process execution and alert with echo ".."Oracle error handling before compilation time
         if [ $VERROR  != 0 ]
         then
         echo "value of VERROR are:$VERROR"
         echo "`date +"$V_FORMATDATE"` DATA EXTRACTION WAS NOT SUCESSFUL ERROR BEFORE COMPILATION TIME" >> $VLOG 2> /dev/null
         " Here show VERROR
         else #Oracle error handling in compilation time
         echo "`date +"$V_FORMATDATE"` DATA EXTRACTION WAS NOT SUCESSFUL ERROR BEFORE COMPILATION TIME " >> $VLOG
         " Here show VERROR
    else if [ $VERROR  = 0 ]
    " DATA EXTRACTION WAS SUCESSFUL"
    fi
    Would apreciate your help its very urgent.
    there is no "urgent" here.
    "Urgent" means one of two things -
    1) people are dying, or
    2) you have a customer-facing, revenue-producing production system that is down.
    (And to get some perspective on the second case, keep the first in mind.)
    For the first, you call whatever civil emergency service seems appropriate.
    For the second, you open an SR with Oracle - which requires a paid-up support contract. For them to consider your problem "urgent", you will need to demonstrate that your problem falls under item #2. I seriously doubt your problem fits that criteria.
    Best Regards
    Antonio

  • Development backup error (urgent)

    Dear All,
    I m having problem while taking development backup.log file is attached.plz advice me hoe to resolve this issue.
    Detail log: bdxxiprp.ant
    BR0051I BRBACKUP 7.00 (13)
    BR0189W Expiration period equal 0 - backup volumes could be immediately overwritten
    BR0055I Start of database backup: bdxxiprp.ant 2008-05-13 17.40.29
    BR0477I Oracle pfile E:\oracle\MRD\102\database\initMRD.ora created from spfile E:\oracle\MRD\102\database\spfileMRD.ora
    BR0280I BRBACKUP time stamp: 2008-05-13 17.40.32
    BR0319I Control file copy created: G:\oracle\MRD\sapbackup\CNTRLMRD.DBF 24461312
    BR0328E Database file Q:\SAPDATA1\SR3_1\SR3.DATA1 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file Q:\SAPDATA1\SR3_2\SR3.DATA2 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file Q:\SAPDATA1\SR3_3\SR3.DATA3 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file Q:\SAPDATA1\SR3_4\SR3.DATA4 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file G:\ORACLE\MRD\SAPDATA1\SR3_5\SR3.DATA5 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file H:\ORACLE\MRD\SAPDATA2\SR3_6\SR3.DATA6 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file H:\ORACLE\MRD\SAPDATA2\SR3_7\SR3.DATA7 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file H:\ORACLE\MRD\SAPDATA2\SR3_8\SR3.DATA8 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file H:\ORACLE\MRD\SAPDATA2\SR3_9\SR3.DATA9 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file H:\ORACLE\MRD\SAPDATA2\SR3_10\SR3.DATA10 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file I:\ORACLE\MRD\SAPDATA3\SR3_11\SR3.DATA11 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file I:\ORACLE\MRD\SAPDATA3\SR3_12\SR3.DATA12 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file I:\ORACLE\MRD\SAPDATA3\SR3_13\SR3.DATA13 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file I:\ORACLE\MRD\SAPDATA3\SR3_14\SR3.DATA14 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file I:\ORACLE\MRD\SAPDATA3\SR3_15\SR3.DATA15 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file J:\ORACLE\MRD\SAPDATA4\SR3_16\SR3.DATA16 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file J:\ORACLE\MRD\SAPDATA4\SR3_17\SR3.DATA17 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file J:\ORACLE\MRD\SAPDATA4\SR3_18\SR3.DATA18 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file J:\ORACLE\MRD\SAPDATA4\SR3_19\SR3.DATA19 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file J:\ORACLE\MRD\SAPDATA4\SR3_20\SR3.DATA20 of tablespace PSAPSR3 is already in backup status
    BR0056I End of database backup: bdxxiprp.ant 2008-05-13 17.40.35
    BR0280I BRBACKUP time stamp: 2008-05-13 17.40.35
    BR0054I BRBACKUP terminated with errors
    (URGENT.......) .
    Note : If i restart my server will it kill the process and then i again can take the backup...Plz advice
    Regard's

    Basically for some reason your DB is in backup state.
    You need to find which tablespaces are in status backup and then execute command:
    alter tablespace <tablespace_name> end backup;
    That should fix the problem
    Regards
    Juan

  • DRG-50857 Oracle error in drtldml ( dml )

    Hello, i am getting this error on trying to run ctxsrv. It was indexing fine previously, but when i uploaded a batch of files ( ctxsrv running in the background ) it created this problem...
    ctx log file....
    14-09-13 12/07/00 === OCO server startup ===
    14-09-13 12/07/00 Initialized CORE
    14-09-14 12/07/00 Connected to database.
    14-09-14 12/07/00 === Initializing dispatcher ===
    14-09-14 12/07/00 === Server startup completed. ===
    14-09-17 12/07/00 DML batch: cid=1041
    14-09-19 12/07/00 End batch, return code is 1
    14-09-19 12/07/00 DRG-50857: oracle error in drtldml(dml)
    14-09-19 12/07/00 ORA-03113: end-of-file on communication channel
    14-09-19 12/07/00 === Server failure ===
    14-09-19 12/07/00 DRG-50301: server error reading request queue
    14-09-19 12/07/00 ORA-03114: not connected to ORACLE
    14-09-19 12/07/00 === Server shutting down ===============================
    please suggest the solution urgently...
    version :: ifs 1.1 NT on Oracle 8.1.7
    thank you.
    Manish.

    Sounds like there's a bad document in your ctxsys.dr$pending table which is causing a disconnect.
    We've seen problems like this when an ASCII document has what looks like XML tags in it, but which are badly formed, and Context can't handle them. (Like an unmatched ">").
    I've put in some instructions on how to isolate the document at the VERY BOTTOM of http://technet.oracle.com:89/ubb/Forum36/HTML/000327.html .
    Although that posting refers to documents which are being indexed by the external Inso filter, the steps still apply to documents which are not being indexed by the external Inso filter (which would be ASCII and HTML documents).
    Follow the steps there (at the very bottom), and see if that helps.
    null

  • Ora-06502 numeric or value error --urgent

    Hai ALL,
    In our Application some fields are blank and gives an error 'ora-06502 numeric or value error'. The blanked Fields are taken from another server. Before the error some os booting problem arises and reboot the server. no oracle maintanace and software maintanace done this place. the network connectivity is ok. How the oracle error comes? how to rectify ..please help.. Oracle version is 7..and an urgent matter.
    Shiju

    Hi Orashiju,
    ORA-06502:     PL/SQL: numeric or value error string
    Cause:     An arithmetic, numeric, string, conversion, or constraint error occurred. For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 99 to a variable declared NUMBER(2).
    Action:     Change the data, how it is manipulated, or how it is declared so that values do not violate constraints.
    For more use this link. I am certain you will get an solution.
    http://ora-06502.ora-code.com/
    Thanks
    Shivank

  • b font color ='red' Java JDBC and Oracle DB URGENT HELP PLEASE /font /b

    Hello, I am a newbie. I'm very interested in Java in relation to JDBC, Oracle and SAP.I am trying to connect to an Oracle DB and I have problems to display the output on the consule in my application. What am I doing wrong here . Please help me. This is my code: Please Explain
    import java.sql.*;
    import java.sql.DriverManager;
    import java.sql.Connection;
    public class SqlConnection {
         public static void main(String[] args) {
              Class.forName("oracle.jdbc.driver.OracleDriver"); //Loading the Oracle Driver.
              Connection con = DriverManager.getConnection
              ("jdbc:orcle:thin:@34.218.5.3:1521:ruka","data","data"); //making the connection.
              Statement stmt = con.createStatement ();// Sending a query to the database
              ResultSet rs = stmt.executeQuery("SELECT man,jean,test,kok FROM sa_kostl");
              while (rs.next()) {
                   String man = rs.getString("1");
                   String jean = rs.getString("2");
                   String test = rs.getString("3");
                   String kok = rs.getString("4");
                   System.out.println( man, jean, test,kok );//here where my the
                                                 //compiler gives me errors
              stmt.close();
              con.close();
    }

    <b><font color ='red'>Java JDBC and Oracle DB URGENT HELP PLEASE</font></b>Too bad your attempt at getting your subject to have greater attention failed :p

  • WriteToFile(doc DOMDocument,File varchar2) error-Urgent reply needed

    The problem description in our environment:-
    A xmldom package in the oracle 8.1.7 is trying to create an xml file from a DOMdocument. We are creating this DOMdocument by using an xmlparser. The input to the xmlparser is a file on the unix space.We are able to read the values ,display them. The error happens when the writeToFile method is used to update the xml file after changing the node values in the dom document. The environment seems to be okay or is there any problem with it.
    To check our logic, a sample code from the web page http://www.akadia.com/services/ora_gen_xml.html was run.It gave the same error description(ORA-20000).It had also used the same function and the error occured at the same line number.The code from the web page reads as:-
    DECLARE
    doc sys.xmldom.DOMDocument;
    main_node sys.xmldom.DOMNode;
    root_node sys.xmldom.DOMNode;
    user_node sys.xmldom.DOMNode;
    item_node sys.xmldom.DOMNode;
    root_elmt sys.xmldom.DOMElement;
    item_elmt sys.xmldom.DOMElement;
    item_text sys.xmldom.DOMText;
    CURSOR get_users(p_deptno NUMBER) IS
    SELECT empno
    , ename
    , deptno
    , rownum
    FROM emp
    WHERE deptno = p_deptno;
    BEGIN
    doc := sys.xmldom.newDOMDocument;
    main_node := sys.xmldom.makeNode(doc);
    root_elmt := sys.xmldom.createElement(
    doc
    , 'EMPSET'
    root_node := sys.xmldom.appendChild(
    main_node
    , sys.xmldom.makeNode(root_elmt)
    FOR get_users_rec IN get_users(10) LOOP
    item_elmt := sys.xmldom.createElement(
    doc
    , 'EMP'
    sys.xmldom.setAttribute(
    item_elmt
    , 'num'
    , get_users_rec.rownum
    user_node := sys.xmldom.appendChild(
    root_node
    , sys.xmldom.makeNode(item_elmt)
    item_elmt := sys.xmldom.createElement(
    doc
    , 'EMP_NO'
    item_node := sys.xmldom.appendChild(
    user_node
    , sys.xmldom.makeNode(item_elmt)
    item_text := sys.xmldom.createTextNode(
    doc
    , get_users_rec.empno
    item_node := sys.xmldom.appendChild(
    item_node
    , sys.xmldom.makeNode(item_text)
    END LOOP;
    sys.xmldom.writeToFile(doc , '/user/sb8066\docSample.xml');
    sys.xmldom.freeDocument(doc);
    END;
    The table emp was created with values in it.
    Oracle error code:-
    ORA-20000: An internal error has occurred: Permission denied
    ORA-06512: at "SYS.XMLDOM", line 37
    ORA-06512: at "SYS.XMLDOM", line 1784
    ORA-06512: at line 61
    The priveleges that were required for the above code were:-
    GRANT javauserpriv to scott;
    GRANT javasyspriv to scott;
    GRANT EXECUTE ON xmldom TO scott;
    These were also existing for our code and database user.NO clue is there about any possible environmental setting errors.
    This code was trying to do the same job that we did but created a document object and not used an existing document object(from a parsing operation).Please advice about possible solutions.It is urgent.
    with Regards
    gopal

    Hai kevin
    I tried both of what you have said .I had also some suggestions from an oracle dba.Can you please help me any idea you have about it.It's regarding the encoding of the xml file.The suggestion was:-I have enclosed the my try for the first solution he suggested.
    "ora-2000 is a very generic error ( mostly with intermedia/text/context/apps)
    but may occur in regular stuff tooo..
    in MOST OF CASES, it does not have any INDIVIDUAL IMPORTANCE at all.
    its is resultant of ANOTHER ERROR.
    in your case it is
    ORA-06512 which is numeric or value error.
    somedata is not GOOOD or unwanted character in unwanted place.
    so these would be my LOOKOUTS (though, it may not relevent, as my knowledge on XML is very less.
    I DONT DO ANY DEVELOPMENT at all. But just support lots n lots n lotsa developers).
    1. as per your posting,
    > > > sys.xmldom.writeToFile(doc ,
    --->-- > > > '/user/temp\docSample.xml');
    > > > sys.xmldom.freeDocument(doc);
    in general terms, this would be wierd naming(line 2).
    for unix '/user/temp/docsample' should do
    (beware of file system permissions and case sensitivity in UNIX)
    for windows '\usr\temp\docsample' should be used.
    except IF U ARE USING UNC / MAPPED DRIVES ( THERE IS A SPECIAL CONSIDERATION
    TO USE directory/direcotry\filname..THAT IS DIFFERENT CASE).
    check this ( this may lead to error PERMISSION DENIED ( the clasical words from UNIX)
    2. to deal with ora-6512, this may posssibly be th reason.
    The default character set for XML is UTF8 - special characters indicated would
    have an ASCII value > 127. Any character with an ASCII value > 128 is
    interpreted as being the leading byte of a multi-byte character in UTF8.
    To get around this you need to explicitly specify the character set you are
    using. For example:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    This tells the XML parser to read the file as ISO-8859-1. If you are using
    another character set, substitute the ISO name of the character set in this
    line."
    Kamal , i tried giving the '/' slash instead of '\' .The oracle reported a error,description as follows.
    63 sys.xmldom.writeToFile(doc , '/user/temp/docSample.xml',sys.xmldom.getCharset(doc));
    64 sys.xmldom.freeDocument(doc);
    65 END;
    66 /
    UTF8
    DECLARE
    ERROR at line 1:
    ORA-20000: An internal error has occurred: No such file or directory
    ORA-06512: at "SYS.XMLDOM", line 37
    ORA-06512: at "SYS.XMLDOM", line 1826
    ORA-06512: at line 63
    It reported error and when i revert back to the previously used slash,it had the old error.You must have read the dba's suggestions.Do you know about how to go about this.Anyway thaks for the help.Will be waiting for your advice.
    The UTF8 ouput you must be seeing is the document's charset after me setting it,previously i tried to get the default value after parsing ,it had the same report.
    regards
    gopal

  • Trap Oracle error.

    I am using Developer Suite 9i with Oracle 9i as the backend. I have a doubt with trapping Oracle error 'ORA-00054'. For trapping a 'frm' error, say 40401, i write this code:-
    DECLARE
    lv_errtype VARCHAR2(3) := ERROR_TYPE;
    lv_errcod NUMBER := ERROR_CODE;
    lv_errtxt VARCHAR2(80) := ERROR_TEXT;
    BEGIN
    IF lv_errcod = 40401 THEN
    null;
    END IF;
    END;
    But, how to trap this error, say ORA-00054 or any other ORA error. In the back-end, we declare a exception using 'init_pragma(name,error_code)' and handle it.
    In the forms front-end application, Developer Suite 9i, how do i handle that.
    I hope, my question is clear. Please help in solving the doubt as it is urgent.
    Regards.

    thanks for ur update, i was simulating a 'no data found' intentionally, and had written a ON-ERROR trigger at the form level using:-
    DECLARE
    lv_errtype VARCHAR2(3) := ERROR_TYPE;
    lv_errcod NUMBER := ERROR_CODE;
    lv_errtxt VARCHAR2(80) := ERROR_TEXT;
    BEGIN
    IF lv_errcod = 01403 THEN
    message('no data found');
    END IF;
    message(lv_errtype);
    END;
    But, the message 'no data found' is not being raised, 'if' condition is not getting satisfied. In 'ERROR_TYPE', it is showing 'FRM', whereas, i am trying to simulate a database error.

  • Capturing oracle error codes into a variable

    Hi
    Can someone show me how it is possible to save an Oracle defined error code into a variable? What I am trying to do is when a stored procedure fails an Oracle error is raised, such as ORA-xxxx, then pass this code into variable to be saved into a log.
    How do I achieve this?

    user633278 wrote:
    How do I achieve this?Function SQLCODE in PL/SQL exception handler returns error code. SQLERRM returns message:
    SQL> declare
      2      x number;
      3  begin
      4      x := 1/0;
      5    exception
      6      when others
      7        then
      8          dbms_output.put_line('Error code: ' || SQLCODE);
      9          dbms_output.put_line('Error message: ' || SQLERRM);
    10  end;
    11  /
    Error code: -1476
    Error message: ORA-01476: divisor is equal to zero
    PL/SQL procedure successfully completed.
    SQL> SY.

  • Oracle errors in Weblogic Error logs appear in non english

    We have a problem with weblogic error logging. Specifically, in a managed server's log file, Oracle errors such as ORA-XXXX show in Greek, not English. We are assuming
    that this is because the timezone is Europe/Athens. However, the weblogic application server runs with user.language=en, user.country=US. What's more, there are 4 application servers and 2 of them have this problem. The oracle database is accessed via weblogic datasources.
    Oracle database server Setup: Oracle Server 11gR2 running on Oracle Linux 64 bit, timezone set to Europe/Athens
    Weblogic Server: Weblogic 10.3.5 running on Oracle Linux 64 bit, timezone set to Europe/Athens
    The managed server, according to jrockit, the jvm runs with the following language related system properties:
    user.language=en, user.country=US, user.timezone=Europe/Athens
    The question is: How do we tell oracle / weblogic to log english text for the ORA errors?
    Thanks,
    Chris

    I digged in the weblogic installation directory and it seems like the domain configuration wizard messed up the jdbc configs for the data sources.
    The config xml files for the data sources in the /domain root/config/jdbc directory had oracle driver but the test query was for pointbase. I double checked from the database.xml file in the init-info directory and corrected the entry in the datasource config xmls and voila!.. the errors were gone.
    I am not sure if this was the right approach and whether i have solved the issue or simply patched it.. so I am keeping the question open. If any one has any inputs I will be grateful.
    If the mods/admins feel that the thread should be marked as solved I will surely do so.
    Thanks.

  • [SOLVED] FRM-40508:ORACLE error: unable to INSERT record

    Hi all,
    I have migrated this form from 4.5 to 10g (Version 10.1.2.0.2 ). This form inserts a record into the database table when all the fields in the form are filled and a button Save is presed.
    At the time when I press the Save button, I get this error. FRM-40508:ORACLE error: unable to INSERT record
    So I went on to see the "Display Error" from help and found to be the database error, inserting into a table.
    The error message is ORA-00932: inconsistent datatypes: expected DATE got NUMBER
    The form where I press Save button has 3 date fields and I checked the properties of them and they are Date only.
    I also generated to object list report and tried to find some answer, but no use.
    Please help me in debugging this form.
    Edited by: Charan on Aug 18, 2011 4:05 PM

    I think you need to get a description of the table and compare all the "database" columns in the form with the ones in the database table to see that the types match. Somewhere there's a mismatch. Also check the block(s) "query data source columns" and see if there's any
    columns in there that the type does not match the table. (check the sizes of things too while you're at it.)

Maybe you are looking for