BLOB - How to make it transactional?

Hi All,
Hope some of you can give me some insight into this problem. Thanks!
I have column in a table w/ oracle's BLOB datatype. It is used to store Java's serialization objects. The problem I am facing is, when a java object is being serialized into the column, the app-server is shut off due to some error or other reasons, the serialized object in the column is corrupted, because it has not been serialized completely. I am wondering if there is a way I can make this serialization into the database transactional. Therefore, it is either all or none, but not half way. I will append the section of the codes that does the serialization. Am I using the correct way? Can you give me some suggestion? Thank you so much in advance!!
- Vince
Here is the section of the codes:
==================================
Statement stat = conn.createStatement();
String sql = "SELECT blob_data FROM blob_table WHERE blob_id=1 FOR UPDATE";
boolean autoCommit = conn.getAutoCommit();
conn.setAutoCommit(false); //error "out of fetch sequence" if this were not called.
ResultSet rs = stat.executeQuery(sql);
if(rs.next()){
BLOB blob = (BLOB)rs.getBlob(1);
OutputStream os = blob.getBinaryOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(os);
oos.writeObject(newData);
oos.flush();
conn.setAutoCommit(autoCommit);
rs.close();
stat.close();

just a thought...
get rid of your final: conn.setAutoCommit(autoCommit);
and do a manual commit. that way your commit won't happen
until your code has completed the stream and expressly
requests a commit, rather than having the database commit
when it perceives the data flow is complete.
good luck,
rich

Similar Messages

  • How to make XE Transaction enabled

    Hi,
    it seems that XE is not transactin enabled by default and we need to run some scripts to make it Transaction enabled.
    Can any one let me know what are the scripts and where to find them?

    Hi ,
    Call transaction SICF and Navigate to "webgui" service; then right-click and select option "Activate".transaction will work definitely.
    This should enable the WebGui functionality in your WAS.
    ITS WEBGUI in ECC6.0
    for more information , check below thread
    MY FEW QUESTIONS
    SSO with ITS & Webenabling WEBGui
    Koti Reddy

  • How to make a transaction call via https protocol

    Hi,
    Recently we have got a new requirement that requires the protocol to be used for a particular transaction as https.
    Is there any way that we can use https for only few transactions instead of all the transactions on MII (12.x)?
    For Example :
    Instead of
    http://<servername>>/XMII/Runner?Transaction=<transactionpath>
    We want to make call as
    https://<servername>>/XMII/Runner?Transaction=<transactionpath>
    Thanks in Advance
    Amit

    Amit,
    Since this is a NetWeaver setting to use https, it is either all or nothing for MII.  So if you have https turned on all of your MII Runner calls will need to use https and vice versa.  You are not able to pick and choose.
    Also to note if you are on MII 12.1 a new Service Pack (SP8) for MII is coming out soon, most likely by the end of the year.  This service pack takes advantage of the new security features (including https) that have been added in NetWeaver EHP1 SP5 or greater.  I would highly recommend moving to this if you are using https.  I'm not sure of all the pros but a SAP Note will be delivered with this release explaining in more detail.
    Thanks,
    Erik

  • How to make online transactions using java?

    I am living in Dubai. I am unable to use java enabled pages of websites especially when I try for any online transaction. Someone said that I can use Cloud browse to fix this issue. But it is not available in this region,s App store. Can anyone suggest me a suitable solution for this.

    when i double click ii got the msg
    Failed to lad main class manifest attribute from
    x/x/xyz.jar
    what exatly it meansIt means that your Manifest.MF for the JAR file should contain an attribute called Main-Class pointing to a class containing the main() method.
    Something like this should be present in META-INF/Manifest.MF :
    Main-Class: MyApplicationMain

  • How to make a transaction appear like a folder structuee in SRM Web gui

    Hi,
    SRM 5.0
    We have a transation assigned to a role. Now in PFCG we have maintained the folder structure in MENU tab.
    In SRMGUI when the user logs in it shows up as folder structure.
    In the WEBGUI when the user logs in folder structure is missing.
    Any idea of what needs to be done here!
    Thanks
    Krishna

    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70ecae97-ca1e-2d10-3280-90e975cd6ff3?quicklink=index&overridelayout=true
    i could not understand your question fiully ..however see the above link helps.

  • How to make VIP flag in transaction code fpp2 as non editable

    Hi everyone,
    Please guide me about:
    How to make VIP flag in T Code FPP2 as non editable only for some particular users?
    Is there any authorization object exists for this flag in FPP2 transaction?
    Actually there are many users who have authorization of transaction fpp2. But we want only some particular users should have authorization of making changes to this flag.
    Please guide with your valuable replies.
    Thanks and Regards

    Hi...MP Vashishth
    try to creat an Authorization Management ...  in customizing...
    Cross-Application Components --> SAP Business Partner --> Business Partner --> Basic Settings --> Authorization Management
    Creat an Grup..and others steps...!
    and when finish clic on Generate and Assin Authorization !!!
    I Hope it Help !
    regards
    Andre Frugulhetti
    Edited by: Andre Frugulhetti on Sep 22, 2009 9:38 PM
    Edited by: Andre Frugulhetti on Sep 22, 2009 9:39 PM

  • How to make field u201CMPN materialu201D visible in in transaction MEQ1

    Hi, All!
    In layout of screen 215 in transaction MEQ1 I see field u201CMPN materialu201D, but see this field is invisible for users. How to make this field visible?
    Thank's,
    Liza

    Hi,
    In SPRO there is no Field selection for QA. If you want to maintain QA based MPN( get the material number relevant to MPN). Press F4 and select the search criteria search by MPN, you will get the material relevant to that MPN.
    Malleswari

  • Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

    Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

    Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

  • How to make changes in standard transaction ME51N.

    Hi,
       Can anyone tell me how to make changes in standard transaction ME51N.
       I want to call transaction AS01 by clicking on standard button create asset. Please do the needful.
    Regards.
    Aniruddha

    Hi anirudda
              As i understood from your question is that you want to add a new field 'CREATE ASSET' on me51n screen.
    If i am correct you can use 'MEREQ001' enhancement for this purpose and you can write you code in the exits available in this enhancement.
    Please check the documentation of this enhancement for more info.
    (Use Smod for this purpose)
    I hope it is helpful.
    Reward points
    Thanks,
    Prasanna

  • How to make field 'profit center' as non-mandatory in Transaction F-28?

    Transaction F-28 shows Profit Center field as mandatory. How to make it optional; i have already checked it in field status groups-its suppressed over there?
    Field status groups are suppressed. I have also checked posting keys and posting keys assigned to the relevant Bank G/L Account.
    Document splitting is inactive on my company code.
    Payments can be processed through transaction code: F-26 (Incoming Payment: fast entry) without Profit Center requirement.
    But at F-28 (Incoming payment), profit center is mandatory.
    Any Help in this regard will be appreciated.
    Thanks.
    Arslan Qureshi.

    Thank You Karan
    I have Un-checked profit center accounting at transaction OKKP, but no effect.
    why can i post incoming payment through F-26 but not F-28.
    Also Document type is DZ in both Transactions. its only in F-28 that it askes for Profit Center
    Thanks
    Arslan

  • How to make a gradient on two paths

    Hello,
    I am fairly new to Illustrator, although have used Photoshop, Fireworks and DW to some degree in the past.
    In CS4, I am trying to make a country map with different counties or states.  Using the map of the UK and including Wales, Scotland, and some of the counties as an example.  I need to portray the whole country, but only highlight a specific part of the land, along a train line and so quickly fade away to almost transparent in the further edges.
    Using the pen tool I have traced the country and county borders as paths. I then used the fill tool to make each country, or sea, a different colour.  Now I want to fade the edges of my map away to transparent to bring attention to the middle.  I have drawn another path on top and beyond the edge of the artwork and tried to make a transparency overlay and gradient in this path to make it fade to the edges.  However, this does not work as I had hoped for three reasons.
    1) the darkest edge of my 'fade path' does not blend into the country below but is quite an obvious line.
    2) the gradient is a different colour as it sits on top of other paths of different colours.
    3) the gradient is linear, from top to north, of radial, from a certain spot.  I need the gradient to flow out in all directions from a un-uniform 'blob' roughly in the middle.
    Can you please tell me how I can achieve my aim?
    3) I had one more query when tracing my map ...  I have two shapes and the paths align along one edge, think of the south border of Scotland, and the north border of England for example.  At the moment I have these two paths running alongside each other but not joined. So if I didn't draw my pen accurately, there are small pockets where they don't touch. Ideally I would like to borrow the other path line for a time then leave it as it continues on it's own route.
    Sorry if I mixed up the terms, I hope you can understand me.
    Hope you can advise which tools I should be using, or some tutorials I can follow?
    Thanks in advance.

    Thanks Mylenium. I've certainly learnt something from both replies.  I have now finished tracing the countries using your paste and cut method.  It was quite a tedious job!  I also found using the lasso tool and direct selecion tool that I could highlight just the area that bordered the next county/country.  My the latter stages I had to select multiples, join them and then add, delete more anchor points.  I'm sure there must be an easier way to trace an image!
    I tried the live trace, but the map I was using was too detailed it traced geography and not the borders.  Anyway, I'm there now.  Thanks for the advice.
    I think I'm on the wrong track with the 'blob'. I didn't mean the blob tool on AI, but was referring to the middle content of my map following the railway line, which is the bit I wanted to 'stand out' from the rest. I have perservered and think I'm getting somewhere with the gradients.
    Thanks also Skullmaster for the idea of gradient.  It wasn't working how I need, but from your link I found how to make a 'transparent opacity mask' which I have used with a photo in the background to some effect.
    It is a feature rich software and hard to know what to look for when I'm not sure of the terms.  Unfortunately I have a deadline for what I'm doing and this map is only a small part of it.  It will have to remain a work in progress as I slowly learn more techniques.
    I'm sure I'll be back with more ...

  • How to make a search button in a view?

    Hi experts,
    Can anyone tell me how to make a button for a search dialog to search a poste (just like which in ppome) in a view?
    Thanks!

    Hi,
    Create  a transaction iview in portal, call the iview in webdynpro.
    use this code to open the iview in webdynpro java.
    WDPortalNavigation.navigateAbsolute
    ("ROLES://portal_content/<Complete Path of Iview>",
    WDPortalNavigationMode.SHOW_INPLACE,
    (String) null,
    (String) null,
    WDPortalNavigationHistoryMode.NO_HISTORY,
    (String) null,
    (String) null,
    (String) null,
    true);
    see this http://help.sap.com/saphelp_nw04s/helpdata/en/c3/235a428a1e9041e10000000a1550b0/frameset.htm
    Regards,
    Naga
    Edited by: Naga Raju Meesala on Sep 8, 2008 7:51 PM

  • How many times a transaction has been executed

    Hi All,
    I have to make a list on how many times certain transactions have been exectued last year.
    Does any of you have a idea on how to get this list?
    tried already ST03 and STAT but without satisfying result
    We have R/3 4.6B.
    Regards,
    Rod.

    hi,
    use STAD transaction.

  • HOW TO MAKE MATERIAL DESCRIPTION  FIELD IN SALES ORDER AS UNEDITABLE

    how to make the material description field as un editable in sales order , pls help me

    Through Transaction Variant <b>SHD0</b>
    Refer the thread
    /message/4083386#4083386 [original link is broken]
    Message was edited by:
            SHESAGIRI.G

  • How to make all fields mandatory in sales order T- code VA01 initial screen

    Dear all,
    how to make all fields mandatory in sales order T- code VA01 initial screen itself
    The fields are
    Sales Organization
    Distribution Channel
    Division
    Sales Office
    Sales Group
    Regards,
    Amar Reddy

    Hi,
    You can use Transaction Variant to achieve this functionality.Please go through the following link which helps you in creating the same.
    [Link|http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation]
    Regards,
    Phani Prasad

Maybe you are looking for

  • Help? Files I can't figure out how to use

    We are trying to download GD shows, and Keller Williams shows and we are getting files with the extensions: .ogg, .shn, & .flac iTunes won't open them. What am I doing wrong?

  • Stuck at 100kbs for 3 months!, line has been fixed...

    Hi everyone, i really need to share my problem with someone, BT is really making me very stressed and i am a calm person! I have wasted hours and hours on the phone to BT, endless excuses and irritating Indian Call centre operators promising to do so

  • Help, Adobe Designer 7.0 Debug Error!

    Come with Adobe Acrobat 7.0 Pro on Windows XP machine P4 3.2GHz RAM 512Mb another s/w is Borland delhi 6.0 When I Select File -> New and the new form appears. then select field object (text, numeric, etc) in the library palette. I got: Microsoft Visu

  • EnergyWise plug-in for LMS 3.2?

    Is the EnergyWise plug-in for LMS 3.2 embedded within RME 4.3.1 or is there a separate download for it?

  • Displaying Information on PLD from Other tables.

    Hi All I'll like to know if its possible to display Sales Order information in the Stock Posting List by Ware house . I want to pull information from the UDT linked to the Sales Order. Thanks