CTAS with BLOB column very slow

Hi,
I am creating a new table from backup table having BLOB type of data.
Table size for backup table is approx 250G (along with lob segment) and I am creating new table with predicate selectivity of 110 GB.
Query used is "CREATE TABLE CLAIM AS SELECT /*+ PARALLEL(CLAIM_bkp_04,16) */ * FROM CWS_CLAIM_WORK_bkp_04 WHERE pxobjClass <> 'Claim-Controller' or pyStatusWork <> 'Resolved-Completed' ;
Even after using parallel degree of 16 for CTAS, peformance is very very slow.
Can anyone tell what's the reason for this behavior..
Best Regards
Naveen

>
ID| PARENT_ID|OPERATION |OBJECT_NAME | COST|CARDINALITY
----------|----------|----------------------------------------|------------------------------|----------|-----------
0| |CREATE TABLE STATEMENT | | 47410|
1| 0| LOAD AS SELECT | | |
2| 1| PX COORDINATOR | | |
3| 2| PX SEND QC (RANDOM) |:TQ10000 | 24388| 4623495
4| 3| PX BLOCK ITERATOR | | 24388| 4623495
5| 4| TABLE ACCESS FULL |CWS_CLAIM_WORK_BKP_04 | 24388| 4623495it might be faster WITHOUT using Parallel

Similar Messages

  • Error while importing a table with BLOB column

    Hi,
    I am having a table with BLOB column. When I export such a table it gets exported correctly, but when I import the same in different schema having different tablespace it throws error
    IMP-00017: following statement failed with ORACLE error 959:
    "CREATE TABLE "CMM_PARTY_DOC" ("PDOC_DOC_ID" VARCHAR2(10), "PDOC_PTY_ID" VAR"
    "CHAR2(10), "PDOC_DOCDTL_ID" VARCHAR2(10), "PDOC_DOC_DESC" VARCHAR2(100), "P"
    "DOC_DOC_DTL_DESC" VARCHAR2(100), "PDOC_RCVD_YN" VARCHAR2(1), "PDOC_UPLOAD_D"
    "ATA" BLOB, "PDOC_UPD_USER" VARCHAR2(10), "PDOC_UPD_DATE" DATE, "PDOC_CRE_US"
    "ER" VARCHAR2(10) NOT NULL ENABLE, "PDOC_CRE_DATE" DATE NOT NULL ENABLE) PC"
    "TFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS"
    " 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "TS_AGIMSAPPOLOLIVE030"
    "4" LOGGING NOCOMPRESS LOB ("PDOC_UPLOAD_DATA") STORE AS (TABLESPACE "TS_AG"
    "IMSAPPOLOLIVE0304" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10 NOCACHE L"
    "OGGING STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEF"
    "AULT))"
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'TS_AGIMSAPPOLOLIVE0304' does not exist
    I used the import command as follows :
    imp <user/pwd@conn> file=<dmpfile.dmp> fromuser=<fromuser> touser=<touser> log=<logfile.log>
    What can I do so that this table gets imported correctly?
    Also tell me "whether the BLOB is stored in different tablespace than the default tablespace of the user?"
    Thanks in advance.

    Hello,
    U can either
    1) create a tablespace with the same name in destination where you are trying to import.
    2) get the ddl of the table, modify the tablespace name to reflect the existing tablespace name in destination and run the ddl in the destination database, and run your import command with option ignore=y--> which will ignore all the create errors.
    Regards,
    Vinay

  • Sample insert into table with BLOB column

    This is my first opportunity to work with BLOB columns. I was wondering if anyone had some sample code that shows the loading of a blob column and inserted into the table with a blob column.
    I have to produce a report (including crlf) and place it into a blob column. The user will download the report at a later time.
    Any suggestions / code samples are greatly appreciated!!!!

    You can enable string binding in TopLink.
    login.useStringBinding(int size);
    or you could enable binding in general,
    login.bindAllParameters();

  • My iphone 4 with ios 7 (very slow & keep restarting and sometime its make shuttdown) any help please ?

    my iphone 4 with ios 7 (very slow & keep restarting and sometime its make shuttdown) any help please ?
    i try to downgrade to 6.1.3 but its not possible

    http://osxdaily.com/2013/09/23/ios-7-slow-speed-it-up/
    Downgrading isn't supported by Apple, sorry.

  • Applet with JDBC runs very slow

    I have recently created an applet which I am using to interface with a MS SQL Server 2000 database using JDBC. The server is running W2K Server, and a Tomcat web server.
    There are some performance problems with this application. The volume of data being demanded by the database is very low, yet it runs very slow. More specifically, however, the application runs at a very fast pace for several seconds, then "stalls" for 10 -15 seconds.
    The stalling of the application does not take place at the same place in the code all the time; rather it seems to be completely independent of what I am doing. Sometimes a particular operation takes 20 seconds to complete, but the next day the same thing only takes 20msec.
    Any ideas?
    Thanks

    sounds like network usage issues
    hard to tell with no code and no idea how you're configured

  • Table with BLOB  column re-partitioning

    Currently I have a table with a blob column Z partitioned on Column X I want to re-partition the table on Column Y is there a quick way of doing this.
    INSERT INTO SELECT * has limitations on the blob size I guess.
    Can someone explain this?
    Edited by: user10229350 on Mar 1, 2010 7:36 AM

    I am using hash partitioning looks like split partition doesn't apply for hash partition:
    "The SPLIT PARTITION clause of the ALTER TABLE or ALTER INDEX statement is used to redistribute the contents of a partition into two new partitions. Consider doing this when a partition becomes too large and causes backup, recovery, or maintenance operations to take a long time to complete. You can also use the SPLIT PARTITION clause to redistribute the I/O load.
    This clause cannot be used for hash partitions or subpartitions."

  • How to read/write a binary file from/to a table with BLOB column

    I have create a table with a column of data type BLOB.
    I can read/write an IMAGE file from/to the column of the table using:
    READ_IMAGE_FILE
    WRITE_IMAGE_FILE
    How can I do the same for other binary files, e.g. aaaa.zip?

    There is a package procedure dbms_lob.readblobfromfile to read BLOB's from file.
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lob.htm#sthref3583
    To write a BLOB to file you can use a Java procedure (pre Oracle 9i R2) or utl_file.put_raw (there is no dbms_lob.writelobtofile).
    http://asktom.oracle.com/pls/ask/f?p=4950:8:1559124855641433424::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:6379798216275

  • How to know exact size of table with blob column

    I have a table with one BLOB column. I ran this query.
    select bytes/1024/1024 from user_segments where segment_name='GMSSP_REQUEST_TEMP_FILES'
    (user_segments is a view)
    it gave me 0.125
    It means size of table is 0.125. I have uploaded 3 files to this table. Each of them is of 5 mb. After that I check size of table. but result was same. i.e 0.125.
    Can any body tell me how to know exact amount of space consumed by files. I am expecting following result
    size should be (5+5+5+0.125)MB
    Any help is appreciated.
    Thanks.
    Akie

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1092.htm#i1581211
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:266215435203#993030200346552097

  • Calculate size of table with BLOB column

    Hello,
    when trying to calculate the occupied space for a table, I'm using DBA_SEGMENTS, which works fine as long as the table does not have a BLOB column.
    As far as I can tell, the size of the BLOB data is stored with the SEGMENT_TYPE = 'LOBSEGMENT', but I cannot find a view that tells me which DBA_SEGMENT row belongs to the BLOB column in the table I'm checking.
    To give you an example:
    select sum(BYTES)
    from DBA_SEGMENTS
    where owner = user
    and segment_name = 'MY_TABLE'
    group by SEGMENT_NAMEreturns 262144
    running:
    SELECT sum(length(blob_column))
    FROM my_tablereturns 821333
    There are entries in DBA_SEGMENTS for my user with the type LOBSEGMENT, but I cannot find a way to map the correct DBA_SEGMENTS row to the table I am checking.
    Any ideas?
    I'm using Oracle 10.2.0.3.0 on Redhat
    Thanks in advance
    Thomas

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1092.htm#i1581211
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:266215435203#993030200346552097

  • Uploading a file (.doc, .xls, .txt) into an Oracle table with BLOB column

    Hello All :
    I have been trying to figure out for a simple code I can use in my JSP to upload a file (of any format) into an Oracle table with a BLOB column type. I have gone through a lot of existing forums but couldnot find a simple code (that doesnot use Servlet, for eg.) to implement this piece.
    Thanks a lot for your help !!

    Hi.
    First of all to put a file into Oracle you need to get the array of bytes byte[] for that file. For this use for example FileInputStream.
    After you get the byte array try to use this code:
            try {
                Connection conn = myGetDBConnection();
                PreparedStatement pstmt = conn.prepareStatement("INSERT INTO table1 (content) VALUES(?)");
                byte[] content = myGetFileAsBytes();
                if (content != null) {
                    pstmt.setBinaryStream(0, new ByteArrayInputStream(content), content.length);
                pstmt.close();
                conn.close();
            } catch (Exception ex) {
                ex.printStackTrace();
            }or instead of using ByteArrayInputStream try pstmt.setBinaryStream(0, new FileInputStream(yourFile), getFileSize());Hope this will help...
    regards, Victor Letunovsky

  • Problem with blob column index created using Oracle Text.

    Hi,
    I'm running Oracle Database 10g 10.2.0.1.0 standard edition one, on windows server 2003 R2 x64.
    I have a table with a blob column which contains pdf document.
    Then, I create an index using the following script so that I can do fulltext search using Oracle Text.
    CREATE INDEX DMCS.T_DMCS_FILE_DF_FILE_IDX ON DMCS.T_DMCS_FILE
    (DF_FILE)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('DATASTORE CTXSYS.DEFAULT_DATASTORE');
    However, the index is not searchable and I check the following tables created by database for my index and found them to be empty as well !!
    DR$T_DMCS_FILE_DF_FILE_IDX$I
    DR$T_DMCS_FILE_DF_FILE_IDX$K
    DR$T_DMCS_FILE_DF_FILE_IDX$N
    DR$T_DMCS_FILE_DF_FILE_IDX$R
    I wonder what's wrong with it.
    My user has been granted the ctx_app role and I have other tables that store plain text which I use Oracle Text are fine. I even output the blob column and save as pdf file and they are fine.
    However the database seems like not indexing my blob column although the index can be created without error.
    Please advise.
    Really appreciate anyone who can help.
    Thank you.

    The situation is I have already loaded a few pdf document into the table's blob column.
    After I create the Oracle text index on this blob column, I find the system generated index tables listed in my earlier posting are empty, except for the 4th table.
    Normally we'll see words inside the table where those are the words indexed by oracle text on my document.
    As a result, no matter how i search for the index using select statement with contains operator, it will not give me any result.
    I feel weird why the blob is not indexed. The content of the blob are actually valid because I tested this by export the content back to pdf and I can still view and search within the pdf.
    Regards,
    Jap.

  • POL-3314 with BLOB columns

    When trying to import images into BLOB columns, or read them back we get this error on WIN32 (surprisingly there is no problem at all on any of the windows mobile platforms like mobile 5 or ppc2003)
    Does anyone have a fix/work around for this?
    There is a bug 5880088 with a staus of 'Closed, not feasible to fix' on metalink, with reference to a note (waiting for this from Oracle as not accessible), but would be surprised if we are the only people wanting to store images in the database

    work around is to select the data for update, rather than just select the data when wanting to retrieve BLOB data

  • Rendering and working with AE is very slow.

    Hey guys,
    I'm running on Windows XP Pro, Intel Core 2 Quad CPU, Q6600 @ 2.40Ghz, Clockspeed; 2,40Ghz, 3GB RAM. Whenever I'm working in AE it's very slow to use in full resolution. When I lower the resolution I still have to wait for the preview screen to 'load'. This is very annoying in a work situation. Am I doing something wrong? My pc is very fast with other 'heavy'programs.

    AE will auto-disable MP if it does not detect enough RAM. You can still toggle it, but AE won't use it in any case. You could only change that by flipping some switches in your BIOS (if it supports this) that will make your 4 cores appear as only 2 cores or one core even, but this has some other side effects like possibly requiring a full re-install of your entire system...
    The disk cache should be located on the fastest disk in your system. Doesn't matter which one, as long as it has enough space and is permanently available. Even a network drive or external disk would work. The only requirement is to create a dedicated directory for it. you can call it "Mom" or "Popsi" - doesn't matter. Calling it "AE Cache" would be smarter, though. ;-)
    As for the rest: Don't expect miracles. Processing an x number of pixels can take its time, especially with some effects and in 32bpc mode.
    Also be aware that, while AE will handle it, some compressed formats do not lend themselves for working interactively. AE needs to conform them and it will take time to look up the correct time index. This is further complicated if you have lots of clips or rather long clips. You can improve these behaviors sometimes by capturing to different CoDecs or converting the footage.
    Part of the problems also may come from the graphics card. Even without OpenGL, AE will use your hardware to decode certain formats if possible and also for accelerated drawing. If your graphics are not up to snuff, have a bad driver or simply are configured poorly, they may have the opposite effect and instead of accelerating your workflow slow it down...
    Lastly, make sure your system is in good shape. Work off the fastest disks, clean them regularly of temporary files, defragment them and make sure their RAID/ SATA drivers and configuration are flawless.
    Mylenium

  • ORA-03237 when creating table with BLOB columns on Oracle 9i

    I am playing with my new Oracle 9i database. I am trying to copy
    tables from my 8.1.6 db. Three tables won't create due to this
    new message. The 9i documentation says it's soemthing to do with
    freelist groups but my DBA says he hasn't set up any.
    The tablespace is one of these newfangled locally managed
    tablespaces (predetermined size 8k).
    I can create these tables if I change the BLOB column to datatype
    VARCHAR2(4000).
    I have raised this through the usual channels, but I thought I'd
    try this site as well.
    Cheers, APC

    victor_shostak wrote:
    Figured, Virtual Columns work only for Binary XML.They are only supported, currently, for Binary XML.

  • Memory full with nothing running, very slow

    Our macbook suddenly started running very slow and having programs freeze a lot after a partial migration form a power PC G5.  In short it happens in two different accounts.  Activity monitor shows the cpu is not doing much (idle > 70%) but the memory is very full even when only activity monitor has launched.
    Is it right for activity monitor to be showing almost all of the 1 GB used (0.78GB) immediately after a restart with only activity monitor running (see image).  I don't know what most of these things are.  CPU usages was very low.  launch program takes a long time, switching between programs, pretty much anything between programs, saving, or launching.  Also programs (at least firefox and power point which I use alot) freeze frquently.  (What I have tried is listed below).  Yes I have ordered more memory but that doesn't address the issue that this was working fine before.  Once  much is launched the memory use is essentially 100%
    The cause:  macbook had been working fine with several user accouts and normal operation.  We had used it since "mid 2007".  Our old G5 is dying (video card I believe).  So I did a partial migration using the firewire migrate in the OS.  I migrated my account and then separately migrated some of the applicaitons.  I also started using Outlook and set up all my email accounts in it.  What should the activity look like?
    0
    Tried:  repair disk - no problems  The HD was replaced 12/12/2008,  repaired disk permisions
    reinstall snow_leapard from original disk 10.6.3 - same symptoms,  updated through software update to 10.6.8  - no change.
    not much on login launch.  other account has less and also slow.

    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility.  For situations DU cannot handle the best third-party utilities are: Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible. TechTool Pro provides additional repair options including file repair and recovery, system diagnostics, and disk defragmentation.  TechTool Pro 4.5.1 or higher are Intel Mac compatible;  Drive Genius is similar to TechTool Pro in terms of the various repair services provided.  Versions 1.5.1 or later are Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts had been significantly reduced in Tiger and Leopard.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems.
    I would also recommend downloading the shareware utility TinkerTool System that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.  Other utilities are also available such as Onyx, Lion Cache Cleaner, CockTail, for example.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the commandline.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    Backuplist
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    iBackup
    JaBack
    Silver Keeper
    MimMac
    Retrospect
    Super Flexible File Synchronizer
    SuperDuper!
    Synchronize Pro! X
    SyncTwoFolders
    Synk Pro
    Synk Standard
    Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at CNet Downloads or MacUpdate.

Maybe you are looking for

  • Unable to print Complete ALV report

    Hi All, I have made an Object Oriented ALV report . When I try to print the ALV output I get a warning message "Unable to print last 25 records ." Any suggestions to remove that message ! Regards, Mukul Sharma.

  • How to make fields invisible dynamically in standard transaction?

    When we visit T-Code FB60 there are tabs like Basic data, Payment , Details ,Tax ,Notes ,Local Currency. In the Tax tab there are fields like Tax code, Rep. Date etc. The Rep.Date has value from BKPF-VATDATE and value for tax code from RTAX1U12-MWSKZ

  • Why am I unable to open on line pdf files using Adobe Reader version XI?

    When we go online to view pdf versions of statements at our bank's web site we are unable to view anything but a blank Adobe document. We are unable to download the file to our computer so there is no way for us to view the document. We have Mozilla

  • Series numbering

    Is there any way of addings notes to titles or amending titles to include a series number?

  • Is  it possible to DELETE the Sub Asset either from BDC/BAPI etc?

    Hi Experts, I am guessing, the following idea may work for my problem, but, pls, let me give some info, abt the same....... 1 - At the sales order creation time, each LINE ITEM creates the SubAsset, say, Line_ Item_1 - > creates SubAsset_1, Line_ Ite