SQL to read with the DISABLE STORAGE IN ROW set

I am having problems inserting a clob > 4k. I have changed my default setting to DISABLE STORAGE IN ROW. The problem is, when my clob
4k, I get a null pointer exception on my read. THE INSERT:
insert into XML_W_BOOKING (WORKCONVERSATIONID, FREQUENTFLYERNUMBER, XMLSTRING)values(WORKCONVERSATIONID_SEQ.NEXTVAL, pCntr.frequentFlyerNumber, EMPTY_CLOB());
THE UPDATE:
PreparedStatement pstmt = this.connection.prepareStatement("update XML_W_BOOKING set XMLSTRING = ? where WORKCONVERSATIONID = ?");
pstmt.setAsciiStream(1, new StringBufferInputStream(pCntr.xmlString), pCntr.xmlString.length());
pstmt.setLong(2, pCntr.workConversationId);
pstmt.executeQuery();
pstmt.close();
THE READ:
myContainer.workConversationId= pRset.getLong(1);
myContainer.frequentFlyerNumber=pRset.getLong(2);
java.sql.Clob clob = pRset.getClob(3);
int c;
int length = new Long(clob.length()).intValue();
StringBuffer strBuf = new StringBuffer(length);
BufferedInputStream bin = new BufferedInputStream(pRset.getAsciiStream(3));
while((c = bin.read()) != -1){
strBuf.append((char)c);
String str = strBuf.toString();
System.out.println("str: " + str);
myContainer.xmlString = str;
Any suggestions? Is there a special sql statement I should be using to read when the "DISABLE STORAGE IN ROW" setting? I am using Oracle 8i and wls 5.1.
IP: Logged
null

Enable/Disable storage in row is used for LOB columns. If enable storage in row is specified and the length of the LOB field is less than 4K then the LOB is stored along with other table data, else it is stored in a seperate segment. If disable storage in row is specified then LOB data is stored always in a seperate segment. When the LOB is stored in a seperate segment the storage parameters are determined by the values specified for CHUNKS and PCTVERSION. One chunk stores only one LOB data even if enough space is aavailable in the chunk. If the size of LOB data is small then enable storage.
To calculate the space used by the tables use the query below
For Table Data
select segment_name, sum(bytes) from user_segments where segment_name in ('TABLE', 'TABLE1', 'TABLE2') group by segment_name;
For LOB's
select segment_name, sum(bytes) from user_segments where segment_name in (select segment_name from user_lobs where table_name in('TABLE', 'TABLE1', 'TABLE2'))
group by segment_name;
Jayant

Similar Messages

  • [Execute SQL Task] Error: Executing the query "DECLARE_@XMLA nvarchar(3000) ,__@DateSerial nvarch..." failed with the following error: "Incorrect syntax near '-'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly,

    Hi
    DECLARE @XMLA nvarchar(3000)
    , @DateSerial nvarchar(35);
    -- Change date to format YYYYMMDDHHMMSS
    SET @DateSerial = CAST(GETDATE() AS DATE);
    --SELECT @DateSerial
    Set @XMLA = 
    N' <Batch xmlns="http://schemas.microsoft.com/analysis services/2003/engine">
     <ErrorConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2"
    xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200"
    xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200">
    <KeyErrorLimit>-1</KeyErrorLimit>
    <KeyNotFound>IgnoreError</KeyNotFound>
    <NullKeyNotAllowed>IgnoreError</NullKeyNotAllowed>
     </ErrorConfiguration>
     <Parallel>
    <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2"
    xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200"
    xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300">
     <Object>
     <DatabaseID>MultidimensionalProject5</DatabaseID>
     <CubeID>giri</CubeID>
     <MeasureGroupID>Fact Internet Sales</MeasureGroupID>
     </Object>
     <Type>ProcessFull</Type>
     <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
     </Process>
      </Parallel>
    </Batch>';
    EXEC (@XMLA) At SHALL-PCAdventureWorksDw ;
     iam executive the    query when iam getting below error.
      [Execute SQL Task] Error: Executing the query "DECLARE
    @XMLA nvarchar(3000)
    , @DateSerial nvarch..." failed with the following error: "Incorrect syntax near '-'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set
    correctly, or connection not established correctly. 
     how to solve this error;
     please help me

    What are you trying to do? What sort of data source is  SHALL-PCAdventureWorksDw?
    When you use EXEC() AT, I would execpt to see an SQL string to be passed to EXEC(), but you are passing an XML string????
    If you explain why you think this would work in the first place, maybe we can help you.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Is there a limit on the size of SDHC card that can be read with the iPad camera connectioin kit?

    Is there a limit on the size of SDHC card that can be read with the iPad camera connection kit?

    I've successfully connected 32 gig SDHC and CF cards so if there is an upper limit, it's at least 32 gig.
    I know SDXC will not work.
    With the cards that don't work, have they been formatted correctly? the camera connection kit will only read cards holding images. (Well, it'll only see the images) And those images have to have a file name of exactly 8 characters (DSC_2342 for example) and they  have to be in a folder named DCIM.
    Anything else it wont' read.
    I put a photo on there called 'Christmas' and the connection kit won't see it. I put a photo on there in the DCIM folder named XMAS2342 it'll see that.
    So it's possible that those cards weren't read because they weren't speaking the right language.

  • When I use voice over to read an epub in my Ibooks app, which is in Dutch, sometimes he start reading a book with an English Female voice and some books he reads with the Dutch male voice (which is good). All my epubs are Dutch books. Can i fix this probl

    when I use voice over to read an epub in my Ibooks app, which is in Dutch, sometimes he start reading a book with an English Female voice and some books he reads with the Dutch male voice (which is good). All my epubs are Dutch books so the English voice sound terrible trying to pronounce Dutch. Can i fix this problem? Thanks, Tom

    It sounds like you may have multiple problems, but none of them are likely to be caused by malware.
    First, the internet-related issues may be related to adware or a network compromise. I tend to lean more towards the latter, based on your description of the problem. See:
    http://www.adwaremedic.com/kb/baddns.php
    http://www.adwaremedic.com/kb/hackedrouter.php
    If investigation shows that this is not a network-specific issue, then it's probably adware. See my Adware Removal Guide for help finding and removing it. Note that you mention AdBlock as if it should have prevented this, but it's important to understand that ad blockers do not protect you against adware in any way. Neither would any kind of anti-virus software, which often doesn't detect adware.
    As for the other issues, it sounds like you've got some serious corruption. I would be inclined to say it sounds like a failing drive, except it sounds like you just got it replaced. How did you get all your files back after the new drive was installed?
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • Separated trace file which I can read with the log viewer

    Hi All,
    I 'd like to write trace infomation.
    I know I can use the default trace.
    But I 'm looking for a way to write my application information in a separated file,
    which I can read with the log viewer.
    Can someone help me with this
    Thnaks
    Steve

    Hi epexpert,
    thaks for your reply.
    I tried it with the Filelog.
    The Problem is that it logs to the file (its not problematically) but also to the defaulttrace
    and thats not my preferred solution.
    Do you have any other ideas?
    Bye Steve

  • HT1212 where do i go to get started with the disabled phone process.  I selected the information regarding not syncing into itunes ever.  but where do I go on the site to get started

    where do i go to get started with the disabled phone process.  I selected the information regarding not syncing into itunes ever.  but where do I go on the site to get started

    You use iTunes and restore the phone from Recovery Mode. You will lose all content. http://support.apple.com/kb/HT1808

  • : "Invalid object name '#Temp'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

     Hi   .
        I was creating the  pass the values t in temp tables  though s sis package vs2012 .
      First I was taken on executive SQL TASK.
     IN EXCUTIVE SQL TASK  . I was write the stored proce:
    Sp;
    reate  procedure  USP_GETEMP2333
    AS
    begin
    Select  eid,ename,dept,salary from emp
    end;
    create table #temp(eid int,ename varchar(20),dept varchar(20),salary int)
      insert into #temp
       exec USP_GETMP02333
       go.
     It was executive correctly.
     I was taken another sequence container. In the sequence container iam creating one   executive  sql
    In 2<sup>nd</sup> excutive sql task: sql statements is
    if object_id('emp_fact_sal') is not null
     drop table emp_fact_sal
    select eid,ename as emp_name,sal_bar=
    case when salary<=5000 then 'l'
    when salary >5000 and salary<=7000 then 'm'
    else
    'h'
    end
    into emp_fact_sal from #temp.
     and one falt flies  it was taken to designation .
     iam changing  all  connection properties:
     in oldeb connection:
    in excutive sal task properties .
    delay validation is true,
    and retain connection maner is also true,
    and package mode is 64 bit is false.
     But iwas excutive in 2<sup>nd</sup> excutive ql task .
    Iam getting this type of errors,
                    [Execute SQL Task] Error: Executing the query " if object_id('emp_fact_sal') is not null
     drop ta..." failed with the following error: "Invalid object name '#Temp'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established
    correctly.
     Please help me

    Arthur suggestion works but you shouldnt even be doing this on a SQL Task.
    Use a data flow task. You'll have better control over the data that is being transfered and get better performance because no staging table will be used.
    Just because there are clouds in the sky it doesn't mean it isn't blue. But someone will come and argue that in addition to clouds, birds, airplanes, pollution, sunsets, daltonism and nuclear bombs, all adding different colours to the sky, this
    is an undocumented behavior and should not be relied upon.

  • No. of child Items should be printed with the parent item at row level

    Hi..
    that the number of the child Items should be printed on A/R Invoice along with the parent Item at row level.
    I want to know whether this is possible through PLD or not . if yes, please let me know how ?
    Regards
    Rakhi
    Edited by: Rakhiatsap on Jul 12, 2010 9:21 AM

    hi Joseph
    I  have defined the Sales type of BOM for the parent Item. At the of punching the A/R Invoice, all the child items appear under the parent items and changeable in terms of Numbers. and in the printed Invoice  parent item details appear.
    What i want that the only number of child items of parent item should appear at the row level.
    Regards
    Rakhi..

  • How to get online apps to work with the Verizon DSL modem firewall set at "Medium" level, not "Low?"

    How to get online apps to work with the Verizon DSL modem firewall set at “Medium” level? Xbox 360 Live, FTP, and the Windows sntp Time checker native to Windows XP WON’T WORK unless the Verizon firewall is first reset down to “Low.” Then all works well, but I then risk low firewall protection. Setup: · Westell 6100 DSL modem (Software Version: VER:4.04.03.00 Transceiver Revision: 7.2.3.0 Model Name: C90-610015-06), · D-Link DIR-655 wireless router (Hardware Version: A3, Firmware Version: 1.21), For Xbox 360 Live the “canned” port forwarding rule for provided in Verizon’s drop-down list for the Westell 6100 modem forwards ports 88 and 3074 for both TCP and UDP. This does not meet Microsoft’s forwarding recommendations for Xbox 360 Live stated at http://support.microsoft.com/kb/908874. Instead, for the Verizon modem (Westell) I made a new port forwarding rule to comply with those Microsoft instructions. It forwards ports 53, 80 and 3074 for TCP and ports 53, 88 and 3074 for UDP. These same ports are also forwarded in the D-Link router configuration. For FTP, port 21 is also forwarded for TCP and UDP in both modem and router. But they don’t work until I first cripple the Verizon firewall down to “Low.” How to get them to work with the Verizon firewall up to Medium?

    While I do not know the answer to your question, BUT since you have this modem and another router - you could just follow.
    http://www.dslreports.com/faq/13600
    ^^
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

  • 2 New Ipads (Retina and Mini)(New to Apple) How do I share purchased apps, but others have each act independently? Mini is for the Wife the Ipad4? is for me. I want to use mine at work, etc. She's home with the kids. Can we set them up seperate, but share

    2 New Ipads (Retina and Mini)(New to Apple) How do I share purchased apps, but others have each act independently? Mini is for the Wife the Ipad4? is for me. I want to use mine at work, etc. She's home with the kids. Can we set them up seperate, but share
    --break--
    So we are entirely new to Apple products. I'm an IT guy, but have always been a windows user.
    So the Ipad with Retina Display is to be mine (and will use it at work for notes, organization, etc)
    The MINI is for the wife.
    But, are we allowed and can we.. buy an app and share that app between both devices? IE. Can I buy a copy of Angry Birds for the House and both Ipad's use that single purchase? and if so, can we still run the Ipads seperate other than to share the apps purchased. IE my facebook and email set up on mine and hers on her ipad mini?
    When I finally find a note taking app I like, can I share it on her ipad, without her having all my work files, etc?
    Thanks for helping out the apple noob. Hoping for a great experience, and anticipate droping $100 in apps the first day.. just don't want to do that twice. If this is against the usage policy, thats unfortunate but good to know. (I mean we can share stuff on PC as long as its in the same household)
    thanks again (explanations or links are fine)

    There are a number of Apple services: iMessage, FaceTime, iCloud, Game center, Find My iPad, etc.
    Now, to share apps, music and books you need to have the same Apple ID:
    iPad's Settings > iTunes & App Stores > Apple ID > Your purchasing Apple ID.
    For the other service, your wife should have her own Apple ID.
    All she needs is a valid e-mail address, apply Apple ID below:
    https://appleid.apple.com
    Here's a limk with useful tips: Note: It's also valid in IOS 6
    iOS 5 & iCloud Tips: Sharing an Apple ID With Your Family

  • [svn:fx-trunk] 8507: Making measureHeightOfItemsUptoMaxHeight consistent with the way we create rows in the datagrid .

    Revision: 8507
    Author:   [email protected]
    Date:     2009-07-10 10:13:11 -0700 (Fri, 10 Jul 2009)
    Log Message:
    Making measureHeightOfItemsUptoMaxHeight consistent with the way we create rows in the datagrid. MakeRow ensures reported row height is round to the nearest integer, measureHeightOfItemsUptoMaxHeight is now consistent.  Fixes a long standing PrintDataGrid issue.
    Bugs: SDK-20237.
    QE Notes: None
    Doc Notes: None
    Reviewer: Glenn/Alex
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-20237
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as

    Well, you could do the following:
    1) Create a stored procedure that assembles the data into a rowset with rows and fields like the format you want.
    2) Create stored procedures that handle insert, update, and delete.
    3) Create an entity object definition with all transient attributes. Make the attributes match the elements of one row.
    4) Override doDML() in the entity object class to call your procedures (the doc explains how to do this). You might also need to do a bit of research and figure out if you need to override some other method so you can report rows with transient attribute changes only as needing posting. (getPostState(), maybe?)
    5) Create a view object definition with entity-derived attributes based on your EO attributes.
    6) Override the appropriate methods to call your data assembly procedure rather than execute a query (this is also in the doc).
    Still kind of kludgy, but it keeps your business components pretty clean, especially if you use framework classes to do most of the work for you. (I have a partial example of how to do that here.) Of course, it keeps your business components clean by moving the real work to the DB, but some people find that more maintainable that a kazillion business components.
    Hope this helps,
    Avrom

  • HT4101 I have used my SD card reader with the lightning connector just fine until this awful OS 7 update! Now nothing works and all I get while trying to load pictures from my SD card to my iPad is that my device is not supported!

    Anyone having the same problem with the new OS7? I can no longer load pictures from my SD card to my iPad using my adapter.

    Are the card readers apple ones or knockoffs? Unfortunately iOS7 brought with it software that looks for the authentication chip in  the cables and docks. If the manufacturer got permission from Apple to make devices then it should be fine, but if the manufacturer didn't get apple's permission then their chip isn't recognized, generating that error.
    If your connectors are Apple ones have you tried to reset your device? Hold down the sleep and home keys for about 20 seconds or so until your iPad reboots. Then try again.

  • Replacing a cd reader with the cd R/W - DVD

    IHi,
    I am about to replace my read only cd player in my 2613-CTO Thinkpad with an IBM cd R/W dvd player.
    I was wondering what teh correct drive is to do this as well as any insight into if any drivers/updates are necessary to complete the install.
    I thank you in advance,
    Kurt

    Hello,
    It looks like you have a configured-to-order (custom) T60p (machine type: 2613), is that correct?
    If that is correct, than the machine has an UltraBay Slim device bay, which has a Parallel ATA (PATA) connector for optical disc drives.  One model that will work in there is the ThinkPad Super Multi-Burner Ultrabay Slim Drive (Marketing P/N 40Y8623).  Another is the ThinkPad DVD Ultrabay Slim Burner (Marketing P/N 41N5643). 
    I suspect there are other models which will work as well, but check with the seller to see if the model is compatible with the ThinkPad T60 series.
    My ThinkPad T61p came with a drive that could write both CDs and DVDs, so I did not have to install any additional software or drivers.  Lenovo does offer some firmware updates for CD and DVD drives, but whether or not you need to install one depends on which model you purchase. 
    Regards,
    Aryeh Goretsky
    I am a volunteer and neither a Lenovo nor a Microsoft employee. • Dexter is a good dog • Dexter je dobrý pes
    S230u (3347-4HU) • X220 (4286-CTO) • W510 (4318-CTO) • W530 (2441-4R3) • X100e (3508-CTO) • X120e (0596-CTO) • T61p (6459-CTO) • T43p (2678-H7U) • T42 (2378-R4U) • T23 (2648-LU7)
      Deutsche Community   Comunidad en Español Русскоязычное Сообщество

  • HT1933 Has anyone else had a problem with the app " Storage War$" it costs £1.99 and doesn't work???

    Hi I have been having a problem with an app I have purchased, it cost £1.99 and does not match the description
    This was a waste of time and I am outraged that Apple have not checked the game after it's reviews. However I want to get my money back as I could buy a different app with the small sum of money. This app did not clearly state that it wasn't a game to play just to watch. A review quote " I want my money back worst app ever! Every button does the same thing home, shop, my items and the actions all take you to the auction. Plus it's the same 5 pictures over and over some worth 900 some 250 just buy 250 absolute joke of a game save your money people"there are 26 others like this how many is enough for you to take action. the only reason for this app purchase was because it was an impulse buy what if there is another 27 impulse buys and it then continues
    How can I try and get that app off the AppStore and get my money back as I have not been given a receipt yet ?

        What a terrible coincidence, nick70! I can assure that most updates go smoothly. I'm sorry to hear that yours didn't. If you're unable to power your device back on, we may need to get a replacement device out to you. Please follow/DM me ( Chauncey_VZW ) with your contact information, and I'd be happy to resolve this for you! I look forward to hearing back from you.
    ChaunceyM_VZW
    Follow us on twitter @VZWSupport

  • How can I set up my iPad 2 with the I cloud if we set up a different apple I'd than then one we are using?? Initial setup we used a different apple Id.

    Initially my wife set up our I pad and Mac with a certain apple ID. I purchased the I phone4 and setup my own apple ID and now want to sync all of our other products with the new apple ID, but am having problems setting this up. Please advise on how I can remove her initial apple ID from everything and set up with our new apple ID so we can sync with the I cloud

    Settings --> Store --> Apple ID
    Settings --> iCloud --> Account

Maybe you are looking for

  • HT1423 Adding memory

    Running out of memory on my IMac 8,1 (~2008) so what is the best way to add more memory to my 320 GB capacity?

  • Can't open an iPhoto library, but my wife can from her account

    Just reinstalled my system in the last month, but now all of a sudden, I am unable to open our shared iPhoto Library which is stored on a second drive that has no permissions set. But I have no problem accessing the library from my wife's account. An

  • Should Fiscal Year be derived from posting date for sales stat cube

    Greetings, Is it common to derive FY from posting date of the invoice for the sales stat cube.  We have the standard SAP datasource 0UC_SALES_STATS_02 to extract billing information from ECC.  On the BI side, the FY is derived from posting date in th

  • SQLState or Error Code

    Hello all I am new here. I just started using java and mySQL to write a system and I have some questions about using those try/catch blocks to catch exceptions. Do I use those try/catch to catch the exceptions such as duplicate key entry? If yes, how

  • Interesting site that definitely breaks the "rules"

    i can't decide if i love it or hate it, but it's at least one of the more creative things i've seen lately. thought i'd share.... http://www.afcook.co.uk/