Oracle 9i clob segment possible corruption

Hello all,
We are experiencing some select issues from a table containing a CLOB segment. Since I don't know too much about CLOBs and we are suspecting a possible corruption. What would be the next step besides a DBV on the datafile housing hat table?
I have read that there is a package called DBMS_LOB ... but not sure how to use
Much appreciated

Corruption? logical or physical?
SQL> desc dbms_lob
PROCEDURE APPEND
Argument Name               Type               In/Out Default?
DEST_LOB               BLOB               IN/OUT
SRC_LOB               BLOB               IN
PROCEDURE APPEND
Argument Name               Type               In/Out Default?
DEST_LOB               CLOB               IN/OUT
SRC_LOB               CLOB               IN
PROCEDURE CLOSE
Argument Name               Type               In/Out Default?
LOB_LOC               BLOB               IN/OUT
PROCEDURE CLOSE
Argument Name               Type               In/Out Default?
LOB_LOC               CLOB               IN/OUT
PROCEDURE CLOSE
Argument Name               Type               In/Out Default?
FILE_LOC               BINARY FILE LOB      IN/OUT
FUNCTION COMPARE RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
LOB_1                    BLOB               IN
LOB_2                    BLOB               IN
AMOUNT                NUMBER(38)          IN     DEFAULT
OFFSET_1               NUMBER(38)          IN     DEFAULT
OFFSET_2               NUMBER(38)          IN     DEFAULT
FUNCTION COMPARE RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
LOB_1                    CLOB               IN
LOB_2                    CLOB               IN
AMOUNT                NUMBER(38)          IN     DEFAULT
OFFSET_1               NUMBER(38)          IN     DEFAULT
OFFSET_2               NUMBER(38)          IN     DEFAULT
FUNCTION COMPARE RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
FILE_1                BINARY FILE LOB      IN
FILE_2                BINARY FILE LOB      IN
AMOUNT                NUMBER(38)          IN
OFFSET_1               NUMBER(38)          IN     DEFAULT
OFFSET_2               NUMBER(38)          IN     DEFAULT
PROCEDURE CONVERTTOBLOB
Argument Name               Type               In/Out Default?
DEST_LOB               BLOB               IN/OUT
SRC_CLOB               CLOB               IN
AMOUNT                NUMBER(38)          IN
DEST_OFFSET               NUMBER(38)          IN/OUT
SRC_OFFSET               NUMBER(38)          IN/OUT
BLOB_CSID               NUMBER               IN
LANG_CONTEXT               NUMBER(38)          IN/OUT
WARNING               NUMBER(38)          OUT
PROCEDURE CONVERTTOCLOB
Argument Name               Type               In/Out Default?
DEST_LOB               CLOB               IN/OUT
SRC_BLOB               BLOB               IN
AMOUNT                NUMBER(38)          IN
DEST_OFFSET               NUMBER(38)          IN/OUT
SRC_OFFSET               NUMBER(38)          IN/OUT
BLOB_CSID               NUMBER               IN
LANG_CONTEXT               NUMBER(38)          IN/OUT
WARNING               NUMBER(38)          OUT
PROCEDURE COPY
Argument Name               Type               In/Out Default?
DEST_LOB               BLOB               IN/OUT
SRC_LOB               BLOB               IN
AMOUNT                NUMBER(38)          IN
DEST_OFFSET               NUMBER(38)          IN     DEFAULT
SRC_OFFSET               NUMBER(38)          IN     DEFAULT
PROCEDURE COPY
Argument Name               Type               In/Out Default?
DEST_LOB               CLOB               IN/OUT
SRC_LOB               CLOB               IN
AMOUNT                NUMBER(38)          IN
DEST_OFFSET               NUMBER(38)          IN     DEFAULT
SRC_OFFSET               NUMBER(38)          IN     DEFAULT
PROCEDURE CREATETEMPORARY
Argument Name               Type               In/Out Default?
LOB_LOC               BLOB               IN/OUT
CACHE                    BOOLEAN           IN
DUR                    BINARY_INTEGER          IN     DEFAULT
PROCEDURE CREATETEMPORARY
Argument Name               Type               In/Out Default?
LOB_LOC               CLOB               IN/OUT
CACHE                    BOOLEAN           IN
DUR                    BINARY_INTEGER          IN     DEFAULT
PROCEDURE ERASE
Argument Name               Type               In/Out Default?
LOB_LOC               BLOB               IN/OUT
AMOUNT                NUMBER(38)          IN/OUT
OFFSET                NUMBER(38)          IN     DEFAULT
PROCEDURE ERASE
Argument Name               Type               In/Out Default?
LOB_LOC               CLOB               IN/OUT
AMOUNT                NUMBER(38)          IN/OUT
OFFSET                NUMBER(38)          IN     DEFAULT
PROCEDURE FILECLOSE
Argument Name               Type               In/Out Default?
FILE_LOC               BINARY FILE LOB      IN/OUT
PROCEDURE FILECLOSEALL
FUNCTION FILEEXISTS RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
FILE_LOC               BINARY FILE LOB      IN
PROCEDURE FILEGETNAME
Argument Name               Type               In/Out Default?
FILE_LOC               BINARY FILE LOB      IN
DIR_ALIAS               VARCHAR2          OUT
FILENAME               VARCHAR2          OUT
FUNCTION FILEISOPEN RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
FILE_LOC               BINARY FILE LOB      IN
PROCEDURE FILEOPEN
Argument Name               Type               In/Out Default?
FILE_LOC               BINARY FILE LOB      IN/OUT
OPEN_MODE               BINARY_INTEGER          IN     DEFAULT
PROCEDURE FREETEMPORARY
Argument Name               Type               In/Out Default?
LOB_LOC               BLOB               IN/OUT
PROCEDURE FREETEMPORARY
Argument Name               Type               In/Out Default?
LOB_LOC               CLOB               IN/OUT
FUNCTION GETCHUNKSIZE RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
LOB_LOC               BLOB               IN
FUNCTION GETCHUNKSIZE RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
LOB_LOC               CLOB               IN
FUNCTION GETLENGTH RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
LOB_LOC               BLOB               IN
FUNCTION GETLENGTH RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
LOB_LOC               CLOB               IN
FUNCTION GETLENGTH RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
FILE_LOC               BINARY FILE LOB      IN
FUNCTION GET_STORAGE_LIMIT RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
LOB_LOC               CLOB               IN
FUNCTION GET_STORAGE_LIMIT RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
LOB_LOC               BLOB               IN
FUNCTION INSTR RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
LOB_LOC               BLOB               IN
PATTERN               RAW               IN
OFFSET                NUMBER(38)          IN     DEFAULT
NTH                    NUMBER(38)          IN     DEFAULT
FUNCTION INSTR RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
LOB_LOC               CLOB               IN
PATTERN               VARCHAR2          IN
OFFSET                NUMBER(38)          IN     DEFAULT
NTH                    NUMBER(38)          IN     DEFAULT
FUNCTION INSTR RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
FILE_LOC               BINARY FILE LOB      IN
PATTERN               RAW               IN
OFFSET                NUMBER(38)          IN     DEFAULT
NTH                    NUMBER(38)          IN     DEFAULT
FUNCTION ISOPEN RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
LOB_LOC               BLOB               IN
FUNCTION ISOPEN RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
LOB_LOC               CLOB               IN
FUNCTION ISOPEN RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
FILE_LOC               BINARY FILE LOB      IN
FUNCTION ISTEMPORARY RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
LOB_LOC               BLOB               IN
FUNCTION ISTEMPORARY RETURNS NUMBER(38)
Argument Name               Type               In/Out Default?
LOB_LOC               CLOB               IN
PROCEDURE LOADBLOBFROMFILE
Argument Name               Type               In/Out Default?
DEST_LOB               BLOB               IN/OUT
SRC_BFILE               BINARY FILE LOB      IN
AMOUNT                NUMBER(38)          IN
DEST_OFFSET               NUMBER(38)          IN/OUT
SRC_OFFSET               NUMBER(38)          IN/OUT
PROCEDURE LOADCLOBFROMFILE
Argument Name               Type               In/Out Default?
DEST_LOB               CLOB               IN/OUT
SRC_BFILE               BINARY FILE LOB      IN
AMOUNT                NUMBER(38)          IN
DEST_OFFSET               NUMBER(38)          IN/OUT
SRC_OFFSET               NUMBER(38)          IN/OUT
BFILE_CSID               NUMBER               IN
LANG_CONTEXT               NUMBER(38)          IN/OUT
WARNING               NUMBER(38)          OUT
PROCEDURE LOADFROMFILE
Argument Name               Type               In/Out Default?
DEST_LOB               BLOB               IN/OUT
SRC_LOB               BINARY FILE LOB      IN
AMOUNT                NUMBER(38)          IN
DEST_OFFSET               NUMBER(38)          IN     DEFAULT
SRC_OFFSET               NUMBER(38)          IN     DEFAULT
PROCEDURE LOADFROMFILE
Argument Name               Type               In/Out Default?
DEST_LOB               CLOB               IN/OUT
SRC_LOB               BINARY FILE LOB      IN
AMOUNT                NUMBER(38)          IN
DEST_OFFSET               NUMBER(38)          IN     DEFAULT
SRC_OFFSET               NUMBER(38)          IN     DEFAULT
PROCEDURE OPEN
Argument Name               Type               In/Out Default?
LOB_LOC               BLOB               IN/OUT
OPEN_MODE               BINARY_INTEGER          IN
PROCEDURE OPEN
Argument Name               Type               In/Out Default?
LOB_LOC               CLOB               IN/OUT
OPEN_MODE               BINARY_INTEGER          IN
PROCEDURE OPEN
Argument Name               Type               In/Out Default?
FILE_LOC               BINARY FILE LOB      IN/OUT
OPEN_MODE               BINARY_INTEGER          IN     DEFAULT
PROCEDURE READ
Argument Name               Type               In/Out Default?
LOB_LOC               BLOB               IN
AMOUNT                NUMBER(38)          IN/OUT
OFFSET                NUMBER(38)          IN
BUFFER                RAW               OUT
PROCEDURE READ
Argument Name               Type               In/Out Default?
LOB_LOC               CLOB               IN
AMOUNT                NUMBER(38)          IN/OUT
OFFSET                NUMBER(38)          IN
BUFFER                VARCHAR2          OUT
PROCEDURE READ
Argument Name               Type               In/Out Default?
FILE_LOC               BINARY FILE LOB      IN
AMOUNT                NUMBER(38)          IN/OUT
OFFSET                NUMBER(38)          IN
BUFFER                RAW               OUT
FUNCTION SUBSTR RETURNS RAW
Argument Name               Type               In/Out Default?
LOB_LOC               BLOB               IN
AMOUNT                NUMBER(38)          IN     DEFAULT
OFFSET                NUMBER(38)          IN     DEFAULT
FUNCTION SUBSTR RETURNS VARCHAR2
Argument Name               Type               In/Out Default?
LOB_LOC               CLOB               IN
AMOUNT                NUMBER(38)          IN     DEFAULT
OFFSET                NUMBER(38)          IN     DEFAULT
FUNCTION SUBSTR RETURNS RAW
Argument Name               Type               In/Out Default?
FILE_LOC               BINARY FILE LOB      IN
AMOUNT                NUMBER(38)          IN     DEFAULT
OFFSET                NUMBER(38)          IN     DEFAULT
PROCEDURE TRIM
Argument Name               Type               In/Out Default?
LOB_LOC               BLOB               IN/OUT
NEWLEN                NUMBER(38)          IN
PROCEDURE TRIM
Argument Name               Type               In/Out Default?
LOB_LOC               CLOB               IN/OUT
NEWLEN                NUMBER(38)          IN
PROCEDURE WRITE
Argument Name               Type               In/Out Default?
LOB_LOC               BLOB               IN/OUT
AMOUNT                NUMBER(38)          IN
OFFSET                NUMBER(38)          IN
BUFFER                RAW               IN
PROCEDURE WRITE
Argument Name               Type               In/Out Default?
LOB_LOC               CLOB               IN/OUT
AMOUNT                NUMBER(38)          IN
OFFSET                NUMBER(38)          IN
BUFFER                VARCHAR2          IN
PROCEDURE WRITEAPPEND
Argument Name               Type               In/Out Default?
LOB_LOC               BLOB               IN/OUT
AMOUNT                NUMBER(38)          IN
BUFFER                RAW               IN
PROCEDURE WRITEAPPEND
Argument Name               Type               In/Out Default?
LOB_LOC               CLOB               IN/OUT
AMOUNT                NUMBER(38)          IN
BUFFER                VARCHAR2          IN
SQL>

Similar Messages

  • Does oracle import datapump fix block corruption?

    Dear all,
    I am having a data block corruption on production. I want to export this DB and import it to a test environment using datapump, in order to do some tests on it.
    However I am concerned whether impdp will resolve this scenario... and therefore I will lose my test case...
    so will oracle import datapump fix block corruption?
    Thank you

    so will oracle import datapump fix block corruption?.No. It detects Logical corruption (corruption and the corrupted segment will not be exported or imported.
    Fix the issue by identifying the segment.
    Get the block information from your alert.log
    select segment_type,owner.segment_name
    from dba_extents
    where file_id = [&file_id] and [&block] between block_id and block_id+blocks -1; if it is index then drop and recreate index
    if it is table and you have backup of that table then restore backup on another database and exp/imp the table.

  • If undo segments got corrupted

    if undo segments got corrupted thn wht will be the database position and how to recover from it

    Dear 782191,
    Like Aman.... has mentioned in the previous post, you may recover it
    OR
    I think you can also try to drop it if you can not recover it. Please refer to the following link for how to drop an undo segment from the undo tablespace or drop the undo tablespace entirely for the new and default undo tablespace;
    http://arjudba.blogspot.com/2008/08/ora-01548-active-rollback-segment.html
    Bear in mind that when you have chosen the "drop undo tablespace" path rather than recovering the undo segment, the undo information will be written into the system tablespace. The database will maintain its current operational jobs and create undo in the system tablespace but it is not recommended by the Oracle.
    Hope That Helps.
    Ogan

  • Problem with java.sql.Clob and oracle.sql.CLOB

    Hi,
    I am using oracle9i and SAP web application server. I am getClob method and storing that in java.sql.Clob and using the getClass().getName() I am getting the class name as oracle.sql.CLOB. But when I am trying to cast this to oracle.sql.CLOB i am getting ClassCastException. The code is given below
    java.sql.Clob lOracleClob = lResultSet.getClob(lColIndex + 1);
    lPrintWriter = new PrintWriter(new BufferedWriter (((oracle.sql.CLOB) lOracleClob).getCharacterOutputStream()));
    lResourceStatus = true;
    can anybody please tell me the what is the problem with this and solution.
    thanks,
    Ashok.

    Hi Ashok
    You can get a "ClassCastException" when the JVM doesn't have access to the specific class (in your case, "oracle.sql.CLOB").
    Just check your classpath and see if you are referring to the correct jar files.
    cheers
    Sameer
    PS: Please award points if you find the answer useful

  • MacBook pro will not boot up. Blank screen with message File is possibly corrupted. Checksum does not match etc

    MacBook Pro suddenly will not boot up. Blank screen with message File is possibly corrupt. Header checksum does not match, etc

    Hi s.cheslik,
    It seems your MacBook Pro will not boot properly and it displaying an error message. Based on the information you have provided, it appears your MacBook Pro needs to be serviced. The following link should help you get started with the process and has links with additional information on topics such as warranty and service pricing, battery replacement, and express replacement service.
    Apple - Support - Service Answer Center
    Thank you for contributing to Apple Support Communities.
    Take care,
    Bobby_D

  • Error with XSU: oracle.jdbc2.Clob

    When I try to insert data I get the following error.
    java.lang.NoClassDefFoundError: oracle.jdbc2.Clob
    void samp10.main(java.lang.String[])
    Exception in thread main.
    I use classes112.zip with Oracle 8.1.7.
    I have Included following libraries in JDeveloper: Oracle XML SQL Utility, Oracle XML Parser 2.0, JServer, Connection Manager and Oracle 8.1.6 JDBC.
    The sourcecode of my .java file is:
    /** Simple example on using Oracle XMLSQL API; this class inserts the data from a XML document into the database*/
    import oracle.xml.sql.dml.*;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    import oracle.jdbc.*;
    import java.net.*;
    public class samp10
    //========================================
    // main() - public static void
    public static void main(String args[]) throws SQLException
    String tabName = "XMLTEST_TAB1"; // table into which to insert
    String fileName = "sampdoc.xml"; // file name containing the xml doc
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    //initiate a JDBC connection
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:SJEFEN",
    "scott","tiger");
    OracleXMLSave sav = new OracleXMLSave(conn, tabName);
    URL url = sav.createURL(fileName);
    int rowCount = sav.insertXML(url);
    System.out.println(" successfully inserted "+rowCount+
    " rows into "+ tabName);
    conn.close();
    The source code for the XML Document is:
    <?xml version="1.0"?>
    <ROWSET>
    <ROW num="1">
    <EMPNO>7369</EMPNO>
    <ENAME>SMITH</ENAME>
    <JOB>CLERK</JOB>
    </ROW>
    <ROW num="2">
    <EMPNO>7499</EMPNO>
    <ENAME>ALLEN</ENAME>
    <JOB>SALESMAN</JOB>
    </ROW>
    <ROW num="3">
    <EMPNO>7521</EMPNO>
    <ENAME>WARD</ENAME>
    <JOB>SALESMAN</JOB>
    </ROW>
    </ROWSET>
    I hope someone can help me!
    null

    This occurs when you mismatch the xsu jar file with the classes1x.zip file (the jdbc driver).
    xsu12.jar goes with classes12.zip
    xsu111.jar goes with classes111.zip

  • Problem while using oracle.sql.CLOB

    Hello,
    I was trying to use oracle.sql.CLOB to update CLOB types in database. I was able to successfully run the update when I use the connection obtained from normal DriverManager.getConnection method. But have issues when I use a datasource lookup, Am using Websphere as my JDBC provider environ.
    The exception I get during the execution of this line is
    oracle.sql.CLOB newClob = oracle.sql.CLOB.createTemporary((java.sql.Connection)conn, false, oracle.sql.CLOB.DURATION_CALL);
    java.lang.ClassCastException: com.ibm.ws.rsadapter.jdbc.WSJdbcConnection
    as my connection is obtained by DataSource.getConnection() method.
    Is this a documented limitation of Oracle SQL CLOB class or is there a way I can tweak the code to work.
    Am using a oracle 9i thin driver
    Thanks
    Message was edited by:
    caniknow

    With the new Oracle drivers there is no need to do it that complicated.
    Finally Oracle has implemented the standard JDBC calls, and inserting a CLOB is really easy now:
    String clobContent  = populateClobData(); // whatever...
    stmt = con.prepareStatement("INSERT INTO clob_table (id, clob_col) VALUES (?,?)";
    stmt.setInt(1, 42);
    Reader r = new StringReader(clobContent);
    stmt.setCharacterStream(2, r, clobContent.length());
    stmt.executeUpdate();
    con.commit();This works with UPDATE as well. If you need to deal with BLOBs simply use setBinaryStream().
    Reading is done using getCharacterStream() or getBinaryStream()
    This actually works across all (or at leas all major) database systems

  • WARNING: Flash Archive IDs do not match (possible corrupt archive)

    I'm running into problems when trying to use a newly patched Solaris 10 system's flash image via my Solaris 9 Jumpstart server. I'm able to use other flash's (Solaris 9 and 10) fine, but when I use this flash I get:
    Extracted 823.00 MB ( 99% of 824.99 MB archive)
    Extracted 824.00 MB ( 99% of 824.99 MB archive)
    Extracted 824.99 MB (100% of 824.99 MB archive)
    WARNING: Flash Archive IDs do not match (possible corrupt archive)
    Extraction complete
    Postdeployment processing
    No local customization defined
    cp: cannot create /a/etc/init.d/flash_reboot_processing: No such file or directory
    Can not set reboot customization scripts
    ERROR: Error while processing system postdeployment script
    ERROR: Postdeployment processing failure
    ERROR: Flash installation failed
    Solaris installation program exited.
    I've use the same script I've always used twice to create the flash to no avail.
    Any ideas?

    Hi,
    I have the same problem, How did yoy fix this. /usr at this stage is a ram disk i assume. Can you increase this.
    Cheers
    Paul

  • Possible corrupt or injected data

    Hello,
    I have a question for the SQL Server security experts.
    My scenario is as follows:  I am currently migrating data off a legacy system, and into another.  This system is notoriously hard to work with, and has been severely abused over the years.  Many logical associations were broken, and band aided
    back together.  It is a sunset system, however demographic data still needs to be retrieved.
    Upon loading the data into a slowly changing dimension in another system, I am running into an issue where the same values will not equal themselves.  I have tried converting the data types, stripping all non-ascii characters from the string data. 
    I have checked the data lengths, all equal similarly length and stored string data.  I am detecting no hidden characters within the string as well.  There is no reason why this data won't equal itself.  My only conclusion at this point is that
    it is either corrupted or injected.
    Are there any suggestions on how to detect possible corruption or injection?  I have read many articles around sql injection, and I suspect that I am dealing with binary data injected onto the end of the string data.  However, when I check the
    byte size it looks normal.

    Physical corruption you would detect with DBCC CHECKDB
    Corrupted foreign keys you could detect with DBCC CHECKCONSTRAINTS
    If someone has maliciously manipulated the data in order to conduct any kind of second order attack via SQL Injection or otherwise, it really depends on the skillfulness of the attack how easily one could detect & comprehend that.
    Hidden character may also have gotten into the system by badly written applications and imho are not necessarily an indication of an attack.
    Maybe you could show us a sample.
    If you truly suspect an attack going on though, you should follow your hopefully existing escalation procedures and get the system ready for a forensic investigation by making sure nothing can get changed any more. Unless you want to keep
    that system running to try to catch the attacker “live”. But I do not recommend using a production system as a honeypot if you don’t know exactly what you are doing (and probably not even then).
    Andreas Wolter (Blog |
    Twitter)
    MCSM: Microsoft Certified Solutions Master Data Platform, MCM, MVP
    www.SarpedonQualityLab.com |
    www.SQL-Server-Master-Class.com

  • No booting up, file is possibly corrupt

    Please I need help. I turned my laptop off and went to turn it back on it would nt boot up.
    I am a technophob.
    The message that comes up reads "The file is possibly corrupt. The file header checksum does not match the computed checksum.
    Please help I need it thankyou in advance
    James

    Hi rockjedi,
    In my opinion you should give us a little bit more details about your notebook and operating system.
    What do you think?
    Im not sure but I think now its time for reinstalling Windows. You can choose the HDD recovery feature if your notebook does it have or Toshiba recovery disk.

  • Ipod screen frozen - itunes detects possible corruption

    ipod was on pause mode and locked and now screen has frozen and won't unlock (even when I slide the unlock button). I have plugged the ipod into my itunes and the device is not registered and I got an error message appear saying that itunes detected a possible corrupted ipod.
    Help please?
      Windows XP Pro  

    Followed the 5 R's and found that resetting the ipod worked a treat!

  • Possible Corruption in old Oracle 9i table - Fixed problem with WinXP Mode

    EDIT: This was not a corruption in my database. It was a communication problem between Windows 7 (where my app runs) and Windows XP Mode (where my Oracle 9i database runs). Skip to the bottom of page 2 to see the solution I found.
    I have an old program that I use constantly. It connects to an Oracle 9i database (version 9.2.0.5). Within the past month, one of the processes has slowed to a crawl. This process saves an Excel file to an Oracle table. The files are no larger than 6MB. The field that holds the spreadsheet is a LONG RAW data type. I cannot figure out why the process is taking to long now. It takes up to an hour to save the file to the table. The code has not changed. Here's what I've tried so far. I'm not an Oracle DBA.
    1. Tried running VALIDATE STRUCTURE on table and all indexes. No corruption found.
    2. Tried truncating the table to remove all existing data. No change.
    3. Tried running DBMS_REPAIR on table. No corruption found.
    4. Tried running DB_VERIFY on all data files. No corruption found.
    5. Tried dropping and recreating the table with no data in it. No change.
    I'm not sure that this is a corruption problem, but I can't think of what else has changed. Nothing has happened recently that should have caused this.
    What else can I look for?
    Thank you for your help.
    EDIT: Changed title to help other people using Oracle in WinXP Mode find this solution.

    JavaUser wrote:
    I figured out how to turn on tracing for my Java program at the point where it is taking a very long time. The trace shows that it takes 205.66 second to execute my INSERT statement. Here is the trace output translated by TKProf for this INSERT statement:
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      2.18     205.66          0         75        508           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      2.18     205.66          0         75        508           1
    Misses in library cache during parse: 0
    Optimizer goal: CHOOSEI'm seeing how long the query is taking, but I'm not seeing why. What else should I be looking for?
    Thanks for your help!
    Edited by: JavaUser on Apr 18, 2012 2:32 PMtwo different ways below
    DBMS_SESSION.SESSION_TRACE_ENABLE(TRUE,TRUE,'ALL_EXECUTIONS');
    alter session set events '10046 trace name context forever, level 12';
    -- invoke the SQL code
    DBMS_SESSION.SESSION_TRACE_ENABLE(FALSE,FALSE,NULL);
    DBMS_MONITOR.SESSION_TRACE_ENABLE(
        session_id   IN  BINARY_INTEGER DEFAULT NULL,
        serial_num   IN  BINARY_INTEGER DEFAULT NULL,
        waits        IN  BOOLEAN DEFAULT TRUE,
        binds        IN  BOOLEAN DEFAULT FALSE,
        plan_stat    IN  VARCHAR2 DEFAULT NULL);

  • Oracle XML CLOB out of memory error

    I am running several of Oracle's XML tools
    to store large XML documents in Oracle.
    I am successful with a 3 MB file, but not
    with a 20 MB file. I get an "out of memory"
    exception in LobPlsqlUtil.class.
    The CLOB is accessed through the method
    CLOB.getCharacterStream(), which is then
    handed off to an XMLParser class. The
    exact exception is below:
    Any ideas? Thanks, Rich
    ==========================================
    Unhandled exception breakpoint occurred at line 135 in file [D:\programs\jdev\jdbc\lib\oracle8.1.7\classes12.zip]\oracle\sql\LobPlsqlUtil.class: java.lang.OutOfMemoryError.
    ==============================

    I have some more information to add to the
    original post. I found that if I access the
    CLOB very fast then I can get all 20 MB of
    data from the CLOB. If I access it slowly
    (meaning that I pass CLOB.getCharacterStream
    to a parser) then it fails.
    I wrote my own InputStream as a wrapper
    around CLOB, using the CLOB.getChars()
    function. If I pass this input stream to
    a parser (one of Oracles, or Xerces) and
    get the data chunks on demand, it still
    fails. If, instead, I read all the CLOB
    data as fast as possible, and buffer it
    locally before passing it on to the parser,
    then I get all 20 MB. Go figure!!
    Also, when the CLOB reading fails, it doesn't
    help to get a new ResultSet, or to close and
    open a new Connection and try to start where
    it left off.

  • Error during up2date oracle-validated gives segmentation fault

    Hi all,
    I am trying to run the up2date oracle-validated command for Oracle Enterprise Linux 5 64 bit and it
    fails on memory dump errors.
    [root@tstdb01]# up2date oracle-validated
    Fetching Obsoletes list for channel: el5_x86_64_latest...
    Fetching rpm headers...
    Segmentation fault
    Any ideas how to resolve this?
    Edited by: 783904 on Aug 19, 2010 9:09 AM

    # cat /etc/sysconfig/rhn/up2date
    # Automatically generated Red Hat Update Agent config file, do not edit.
    # Format: 1.0
    enableRollbacks[comment]=Determine if up2date should create rollback rpms
    enableRollbacks=0
    noSSLServerURL[comment]=Remote server URL without SSL
    noSSLServerURL=http://linux-update.oracle.com/XMLRPC
    useNoSSLForPackages[comment] =Use the noSSLServerURL for package, package list, and header fetching
    useNoSSLForPackages=0
    debug[comment]=Whether or not debugging is enabled
    debug=0
    noReplaceConfig[comment]=When selected, no packages that would change configuration data are automatically installed
    noReplaceConfig=1
    retrieveOnly[comment]=Retrieve packages only
    retrieveOnly=0
    keepAfterInstall[comment]=Keep packages on disk after installation
    keepAfterInstall=0
    systemIdPath[comment]=Location of system id
    systemIdPath=/etc/sysconfig/rhn/systemid
    serverURL[comment]=Remote server URL
    serverURL=https://linux-update.oracle.com/XMLRPC
    pkgSkipList[comment]=A list of package names, optionally including wildcards, to skip
    pkgSkipList=kernel*;
    pkgsToInstallNotUpdate[comment]=A list of provides names or package names of packages to install not update
    pkgsToInstallNotUpdate=kernel;kernel-modules;kernel-devel;
    adminAddress[comment]=List of e-mail addresses for update agent to communicate with when run in batch mode
    adminAddress=root@localhost;
    storageDir[comment]=Where to store packages and other data when they are retrieved
    storageDir=/var/spool/up2date
    fileSkipList[comment]=A list of file names, optionally including wildcards, to skip
    fileSkipList=;
    removeSkipList[comment]=A list of package names, optionally including wildcards that up2date will not remove
    removeSkipList=kernel*;
    enableProxy[comment]=Use a HTTP Proxy
    enableProxy=0
    retrieveSource[comment]=Retrieve source RPM along with binary package
    retrieveSource=0
    versionOverride[comment]=Override the automatically determined system version
    versionOverride=
    httpProxy[comment]=HTTP proxy in host:port format, e.g. squid.redhat.com:3128
    httpProxy=
    useGPG[comment]=Use GPG to verify package integrity
    useGPG=1
    gpgKeyRing[comment]=The location of the gpg keyring to use for package checking
    gpgKeyRing=/etc/sysconfig/rhn/up2date-keyring.gpg
    noBootLoader[comment]=To disable modification of the boot loader (lilo, silo, etc)
    noBootLoader=0
    noReboot[comment]=Disable the reboot actions
    noReboot=0
    networkRetries[comment]=Number of attempts to make at network connections before giving up
    networkRetries=5
    updateUp2date[comment]=Allow up2date to update itself when possible
    updateUp2date=1
    disallowConfChanges[comment]=Config options that can not be overwritten by a config update action
    disallowConfChanges=noReboot;sslCACert;useNoSSLForPackages;noSSLServerURL;serverURL;disallowConfChanges;
    sslCACert[comment]=The CA cert used to verify the ssl server
    sslCACert=/usr/share/rhn/ULN-CA-CERT
    [root@tstdb01 up2date]# *up2date --show-channels*el5_x86_64_latest                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Oracle 9i System file get corrupted. How to remove the corruption.

    Hello,
    I am facing problem during backup of oracle database (Oracle 9i, 32 bit windows). Pls see the following error messages.
    Sep 16 10:48:41 mnmccbr.mci.sc: * mnmcfs.mci.sc:E:\SC\SC12.1\Databases\Oracleconfig\oraBackupNM45 ORA-19566:
    exceeded limit of 0 corrupt blocks for file E:\SC\SC12.1\DATABASES\ORACLECONFIG\SYS1NM45.ORA
    Output of dbverify.
    DBVERIFY: Release 9.2.0.6.0 - Production on Sat Oct 11 09:40:42 2008
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    DBVERIFY - Verification starting : FILE = E:\SC\SC12.1\DATABASES\ORACLECONFIG\SYS1NM45.ORA
    Page 28093 is marked corrupt ***
    Corrupt block relative dba: 0x00406dbd (file 1, block 28093)
    Bad check value found during dbv:
    Data in bad block -
    type: 6 format: 2 rdba: 0x00406dbd
    last change scn: 0x0000.09abd22e seq: 0x2 flg: 0x06
    consistency value in tail: 0xd22e0602
    check value in block header: 0x8b91, computed block checksum: 0x800
    spare1: 0x0, spare2: 0x0, spare3: 0x0
    DBVERIFY - Verification complete
    Total Pages Examined : 31616
    Total Pages Processed (Data) : 21138
    Total Pages Failing (Data) : 0
    Total Pages Processed (Index): 7246
    Total Pages Failing (Index): 0
    Total Pages Processed (Other): 1451
    Total Pages Processed (Seg) : 0
    Total Pages Failing (Seg) : 0
    Total Pages Empty : 1780
    Total Pages Marked Corrupt : 1
    Total Pages Influx : 0
    Highest block SCN : 224578617 (0.224578617)
    The Backup is enabled in our machine but we are not able to take backup since we we get the error (6 Sept). I am not sure whether archive log are available since 6th Sept. Even oracle is working fine but backup is not possible.
    Pls note that this is customer testbed. Any idea to remove the corruption from the system file.
    Thanks
    With Regards
    Hemant Joshi

    Hello All,
    I tried the resize procedure but the corruption doesn't cleared.
    SQL> ALTER DATABASE DATAFILE 'E:\SC\SC12.1\DATABASES\ORACLECONFIG\SYS1NM45.ORA' RESIZE 246 M;
    Database altered.
    SQL> ALTER DATABASE DATAFILE 'E:\SC\SC12.1\DATABASES\ORACLECONFIG\SYS1NM45.ORA' RESIZE 245 M;
    Database altered.
    SQL> ALTER DATABASE DATAFILE 'E:\SC\SC12.1\DATABASES\ORACLECONFIG\SYS1NM45.ORA' RESIZE 244 M;
    ALTER DATABASE DATAFILE 'E:\SC\SC12.1\DATABASES\ORACLECONFIG\SYS1NM45.ORA' RESIZE 244 M
    ERROR at line 1: ORA-03297: file contains used data beyond requested RESIZE value
    SQL> ALTER DATABASE DATAFILE 'E:\SC\SC12.1\DATABAES\ORACLECONFIG\SYS1NM45.ORA' RESIZE 400 M;
    Database altered.
    Can you please let me know how to recover corrupted Block or how to recover the corrupted file only.
    Thanks
    With Regards
    Hemant Joshi.

Maybe you are looking for

  • SAP B1 compatibility with Windows VISTA

    hi all, SAP B1 2005 B with PL 40 is successfully installed in SERVER with WIN server 2003  and even 2 client system with Window's XP  installed with SAP B1 2005 B client with PL5 and upgraded automatically to PL40 while connected to the SERVER. But w

  • Tabs open continuously after opening a saved you tube video item. I then has to close my firefox to stop this. what is the fix?

    I saved some misc videos in My Documents. double-clicking the item opened Explorer. I don't like Explorer, so I tried opening the video with Firefox, and had to browse for the .exe file in program files. I ticked the box to use Firefox always for thi

  • Opening pictures from the desktop with iphoto

    Hey guys, When I download pics onto my desktop (or anywhere else for that matter) (say a friend skype me some pics) and i want to open them with iphoto to store them in the relevant roll or album, i have to go through all the hassle of : -ctrl click

  • Saved HTML Files

    Saving an InDesign CS 4 file as html (export to swf) for a web page. When the html files opens in Safari there is a border on the left and the top so the page seems placed wrong to the lower right. I've tried a variety of Page Setup settings includin

  • How to put messages back on the server

    by accident, I set up an account that deleted received messages from teh server. I believe that I set this up as a pop account. Is it possible to put messages back on the server? I couldn't see an option for this and it is important that I be able to