Help needed in getting clob

Hi all
iam using oracle9i and i changing our applications from mysql to oracle .
this is my java for mysql
ObjectInputStream in =
                              new ObjectInputStream(
                              rs.getBinaryStream("filterObject"));
but now for oracle i have to change the data type of filterObject to clob and bcoz of this i am getting null pointer exception. I have converted the clob type to string
by
String str=rs.getClob("filterObject").getSubString(1,(int)(rs.getClob("filterObject").length()));
but still iam not able to convert into binary stream type
So can any one help me in fixing this problem
Thanking you in advance
dinny

Check out the O'Reilly book "Java Programming with Oracle JDBC," by Donald Bales. I also saw promising entries on asktom.oracle.com when I searched for jdbc and lob.
Good luck.

Similar Messages

  • Help needed in getting the previous Quarter Data

    Hello folks,
    I have this procedure where i have to modify the current procedure in the following manner:
    I need to get rid of the variables p_start and p_end so that i cannot see them in the crystal report and include the Frequency in the procedure to get the Data based on the Dates.
    and Main requirement is" If the Frequency is Quarterly " it should get the previous quarter Data, if "Frequency is monthly" it should return the previous month data.Can anyone please let me know where shud i make changes. Am including the procedure for refernce. Any help is appreciated
    Thanks a millioin,
    CREATE OR REPLACE PROCEDURE hcsc_recovery_report_h(report_record in out cr_return_types.gen_cursor,
    p_start       string,
    p_end         string)
    IS
    v_startdate date;
    v_enddate date;
    BEGIN
    v_startdate := to_date(p_start, 'YYYY/MM');
    v_enddate := last_day(to_date(p_end, 'YYYY/MM'));
    open report_record for
    select --distinct r.recovery_id
    r.event_id,
    r.event_case_id,
    c.client_id,
    c.client_code,
    c.client_name,
    b.branch_group_code,
    b.branch_group_description,
    g.employer_group_code,
    g.employer_group_name,
    e.client_policy_identifier,
    e.date_of_incident,
    e.event_type_code,
    sum(nvl(r.amount, 0)) as amt_received,
    nvl(sum(case
    when r.amount >= 0 then
    rd.fees
    else
    rd.fees * (-1)
    end),
    0) as fees,
    ec.close_date, *001* commented
    (case
    when ec.close_date <= to_date(to_char(v_enddate, 'MMDDRRRR') || '235959',
    'MMDDRRRR HH24MISS') then
    ec.close_date
    else
    null
    end) as close_date, --*001*  added
    get_case_value(ec.event_id, ec.event_case_id, v_enddate) as case_value,
    nvl(etl.fee_percent_flag, 'N') workmans_comp,
    max(to_char(r.recovery_date, 'FMMonthYYYY')) Year_Month,
    max(to_char(r.recovery_date, 'YYYYMM')) Y_M,
    max(to_date(to_char(r.recovery_date, 'MMYYYY'), 'MM/YYYY')) date_MY
    from recovery r,
    recovery_detail rd,
    event e,
    client c,
    branch_group b,
    employer_group g,
    event_case ec,
    event_type_lookup etl
    where r.event_id = e.event_id
    and r.event_case_id = ec.event_case_id
    and ec.event_id = e.event_id
    and rd.recovery_id(+) = r.recovery_id
    and r.recovery_date between v_startdate and
    to_date(to_char(v_enddate, 'MMDDRRRR') || '235959',
    'MMDDRRRR HH24MISS')
    and e.client_id = c.client_id
    and g.client_id = c.client_id
    and b.client_id = c.client_id
    and g.employer_group_id(+) = e.employer_group_id
    and b.branch_group_id(+) = g.branch_group_id
    and e.event_type_code = etl.event_type_code -- SST 130852 04/14/09
    group by r.event_id,
    r.event_case_id,
    c.client_id,
    c.client_code,
    c.client_name,
    b.branch_group_code,
    b.branch_group_description,
    g.employer_group_code,
    g.employer_group_name,
    e.client_policy_identifier,
    e.date_of_incident,
    e.event_type_code,
    ec.close_date,
    get_case_value(ec.event_id, ec.event_case_id, v_enddate),
    nvl(etl.fee_percent_flag, 'N')
    having sum(nvl(r.amount, 0)) <> 0
    order by c.client_code,
    b.branch_group_code,
    g.employer_group_code,
    r.event_case_id;
    Edited by: user11961230 on Oct 20, 2009 9:02 AM

    user11961230 wrote:
    1. I want to get rid of the p_start and p_end. So how do i declare the v_startdate and v_enddate in the following part?
    v_startdate := to_date(p_start, 'YYYY/MM');
    v_enddate := last_day(to_date(p_end, 'YYYY/MM'));I'm not sure what you mean by "declare".
    In PL/SQL, "declare" means state (at the beginning of a block) that there will be a certain variable with a certain name (such as v_startdate) and datatype (such as DATE). You're already declaring the variables v_startdate and v_enddate correctly, right before the BEGIN statement.
    Declaring a variable is not the same as initializing it, that is, giving it a value for the first time. Your next question seems to be about initializing..
    2. where exactly shud i include the logic that u have mentioned. sorry a dumb questionIn place of the two assignment statments that reference p_start and p_end.
    3. This time am gonna use frequency instead of report_type so that i will get rid of the p_start and p_end from the procedure.Do you mean you want to pass an argument (called frequency) that tells if you want a quarterly or a mionthly report, just like the variable report_type in my example?
    If so, replace report_type in my example with frequency.
    I think you want something like this:
    CREATE OR REPLACE PROCEDURE hcsc_recovery_report_h
    (      report_record         in out     cr_return_types.gen_cursor
    ,      frequency         IN           VARCHAR2
    IS
         -- Declare local variables:
         v_startdate     date;
         v_enddate      date;
    BEGIN
         -- Initialize v_startdate and v_enddate, depending on frequency
         IF  frequency = 'QUARTERLY'
         THEN
              v_startdate := TRUNC ( ADD_MONTHS (SYSDATE, -3)
                                           , 'Q'
              v_enddate := TRUNC (SYSDATE, 'Q');
         ELSIF  frequency = 'MONTHLY'
         THEN
              v_startdate := TRUNC ( ADD_MONTHS (SYSDATE, -1)
                             , 'MM'
              v_enddate := TRUNC (SYSDATE, 'MM');
         END IF;
         --   Subtract one second from v_enddate
              v_enddate := v_enddate - ( 1
                                            / (24 * 60 * 60)
         open report_record for
         select --distinct r.recovery_id
                r.event_id,
         and     r.recovery_date  BETWEEN  v_startdate     
                         AND       v_enddate
         ...When you post formatted text on this site (and code should always be formatted), type these 6 characters:
    (small letters only, inside curly brackets) before and after sections of formatted text, to preserve spacing.
    Edited by: Frank Kulash on Oct 20, 2009 2:37 PM
    Changed query to use BETWEEN                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Help needed, M getting this message sandbox environment error no test user account, when downloading any application from iTunes, friend told me to sign out and sign in iTunes it might solve the problem but instead I cannot login I to my itune account.

    Help needed,
    I am getting this message sandbox environment error no test user account, when downloading any application from iTunes, friend told me to sign out and sign in iTunes it might solve the problem , and i triyed it but still  I cannot login I to my itune account. Same message keeping. Popping up,  this problem started supricly today.

    Take a look at the instructions here.
    http://www.technogal.net/2012/03/this-is-not-test-user-account-please.html

  • Help needed in getting file url

    Hi,
    I work in a project where i need to get the url of the specified file. The code for that is as,
    URL fileURL = Thread.currentThread().getContextClassLoader().getResource();
    The required resource is available in the concerned path. But the file url returns null
    Can you please help in solving the problem.
    Thanks and Regards,
    Mclaren

    Where (text area, label, button) do you want it to do it.
    What do you want it do (browse within the local text area, open the default browser...)
    Text area, use above, JButton (or alike) and open default browser, use ActionListener and JDIC.

  • Help need in getting thread join to actionperformed event.

    Hi,
    I am trying to building a small application which should give me the following functionality.
    My main function should span two windows. One window(1) will be receiving the input from the user and after the user enter a string and press the OK butten, the other window(2) should display this string and first window should set unvisible.
    To have this function working my window(2) should wait for the window(1) ActionPerform event complete and receive the message from it.
    Can any of you please help me getting some hints or sample codes for this action to be done.
    Thanks.

    Varad,
    Not sure what you are suggesting is what I am looking to do. I believe with your example here that I would need to create a new item table in my current DB in order to recall this data. This table would be populated with the items I selected (checkbox) from the original page. This is one solution, but the issue is that this is dynamic and these values would change as a new search is generated or different values are selected.
    Is there anyway in which to make (code) in ApEx so as that the values (i.e. P1_items 123 : 234 : 456) (note that these items are defaulted to colon delimitation by ApEx) are properly formatted so as SQL can read them as independent items. Note if I simply rewrite the original SQL script and replace the :P1_item with generic values (123 , 234 , 456) the SQL operates as intended.
    Thank you for your support and help,
    Randy

  • Help needed regarding getting jnlp

    Hi all,
    we need help regading java web start. We are downloadng some set of jar files to the client side using JNLP. With these jar files jnlp launches a swing base application in the client side and interacts with server application depoyed in WebSphere. In order to launch this application IBM Jre is needed in the client side. But IBM Jre can not install in non IBM meachines. So, we planing to make jar file of Jre and download it along with the rest of the jar files. After that we want to install in some directory in the client meachine and use that JRE to launch application. Now we are couple of problems with this approach.
    1) To extract the Jre from the jar file we need the path, where these jars are downloaded.Even though we know the path "C:\Documents and Settings\Administrator\Application Data\IBM\Java\Deployment\cache" we can't hard code this, because user may change this location. The extraction program of this jar file in the client side is in one of the jar file that is downloaded. But here in the it is not able to recongnize relative path. So what we need is, is there any api to get this location of this path.
    2)Second, In order to launch the application with downloaded Jre we need to set the classpath for jars that are downlaoded with Jnlp. But after downloading these jar files to the client side they are renamed(prefixed with RM and RT). Now, how to set the classpath to these jar files.
    Here instead of JNLP if we use applet our problem will be solved. But we can't use applet because of client requirements.
    Anybody, please try to suggest me some thing with this problem.
    thanks,

    You might want to try posting your question to the Grid Control Forum.
    Enterprise Manager

  • I need help need to get rid of  abckground in a psd in motion

    when I save my psd in photoshop...I keep all the layers....I then try to take it to motion 2 becuase I want to create a lower third.....for whatever reason I cannot get rid of the background in my psd file....I need some serious help here...is there something I need to do differently in photoshop....anyhelp woul dbe appreciated....i even go to the layers section in motion..and when I click on any of the layers that pertain to my psd file the whole image dissapears....mind you it's only a picture of several stacks of records..with a black glow on it...to seperate the records from the background video I am importing into motion...please help

    i fixed it.....the original image was saved wrong in the first place...... < </div>
    Ah, user error. Welcome to the "Doh! Club." We're all members but some of us won't ever admit it.
    Please mark this thread ANSWERED.
    bogiesan

  • Help Needed with getting Started With Office 365 Development C# Rest API

    We have a O365 Tenant Setup with a Federated Active Directory Setip we want to be able to right code that will connect to our tenant and perform basic CRUD operations against it (ex. Creating mail boxes)
    The problem is we want this to be contained in a CLR trigger In SQL so say if a new user is added to our user table then we would create a new AD account for that user and also create a mailbox.
    But I cannot find and example on how to connect to Office 365 using the REST API (Not the SDK because you can not add the connected service to a class library) and before the required actions that we need to do. All the example I have found are with the
    SDK API and/or require window 8 and that is also not an option.
    Please help I do not know where to start, and I would love to see some examples done in c# and not using the SDK.
    Thanks,
    Andrew Day

    Hi,
    >> Instead of SharePoint URLs I would use the O365 API URL?
    Yes, in my sample code, I was accessing the File resource by using the O365 File API. In your case, you need to acquire the token to access the Mail resource and use O365 Mail API.
    By the way, I think the article
    Understand Office 365 app authentication concepts will help you to understand the authentication process in Office 365 Development.
    >> Why can I not use the SDK API with a class Library?
    Actually, you are able to reference the Office 365 .NET SDK in the class Library. But the class library project type was not supported by Visual Studio Office 365 Development Tool. As a workaround,
    you can reference the SDK manually in your project.
    Since your original question is about “getting started with Office 365 Development C# Rest API”, if you have more questions about the Office 365 SDK, I will suggest you posting a new thread
    to discuss the Office 365 SDK. It will involve more other community members to share their ideas and experience on a specific a question and for others who had a similar question could also find the valuable information quickly.
    Regards,
    Jeffrey
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • RE: HELP, Need to get SMS off phone

    The screen cracked on my palm pre (sprint) and nothing is readable. I can still connect it to my PC and in 'My Computer' can go into it and see all my pics, mms, etc. However, it doesn't show past text messages. There is a certain conversation via SMS that I NEED for court. This there any program where I can copy my phones entire hard drive to my PC? I don't care about the pics, mms, ringtones, etc......just need those SMS messages. Thanks for any help! I REALLY appreciate it.
    Thanks,
    JC 
    Post relates to: Pre p100eww (Sprint)

    m8,
    Just do a backup by pcsuite & then when your phone got fixed do the restore. If you plan to replaced that damage phone, get the latest pcsuite that support that phone & the one you plan to buy then do the restore on that phone. The latest version of Nokia pcsuite supports backup/restore to a different phone model.
    Message Edited by android on 15-Apr-2008 02:05 PM
    Knowledge not shared is knowledge wasted!
    If you find it helpfull, it's not hard to click the STAR..

  • Help - Need to Get Max(Date) from An Unrelated Table in PowerPivot

    I have two tables in my Power Pivot model:
    Table A (a many table)
    Asset    
    SerialNumber                   
    User
    CTUT111                             
    YC112233                                            
    Bob
    CTUT222                             
    ZZ221144                                            
    Susy
    CTUT222                             
    ZZ221144                                            
    Larry
    CTUT333                             
    AB332244                                           
    Bob
    Table B (a many table, a CSV import from another system)
    Asset                    
    SerialNumber                                   
    CheckIn_Date
    CTUT111                             
    YC112233                                            
    6/15/2014
    CTUT111                             
    YC112233                                            
    6/20/2014
    CTUT222                             
    ZZ221144                                            
    6/18/2014
    CTUT333                             
    AB332244                                           
    6/20/2014
    I know it appears odd that Table B would have two entries for the same Asset (CTUT111), but it does.
    I know I could write a SQL query that gave me the MAX(CheckIn_Date), but I’m not staging these datasets in a SQL server first. 
    I’m pulling directly from CSV tables.
    I don’t want to have bridge tables either, if possible. 
    So, I’m left with a many-to-many situation in Power Pivot.
    I want to add a Calculated Column to Table A, called ‘Latest CheckIn Date’ – which I get from Table B, matching on Serial Number.
    So, when I’m done, I would expect the value for Asset=CTUT111 to be 6/20/2014 (since it’s the MAX of a value of dates)
    I’m trying this pattern from Marco Russo in which you don’t need to relate two tables to exchange information, but it doesn’t appear to be working.
    =CALCULATE (
    MAX ( VALUES ( TableB[CheckIn_Date] ) ),
    FILTER (
    TableB,
    'TableA'[SerialNumber]
    = TableB[SerialNumber]
    I’ve also tried to use LOOKUPVALUE, but I can’t seem to figure it out.
    Would appreciate the help.
    Thanks in advance.
    -Eric

    Hi Eric,
    Please, try this one formula:
    =CALCULATE (
                MAXX ( VALUES( TableB[CheckIn_Date] ); TableB[CheckIn_Date] );
                FILTER (
                    TableB;
                    'TableA'[SerialNumber] = TableB[SerialNumber]
    P.S. In my locale I use ";". According to your locale you should use ",".
    Truly yours,
    Paul

  • Help needed to get started

    Hi I am very new to Solaris and had not even seen what a UNIX screen looks before. The sys admin person left so it is all upto me to take care of the systems. That is a good thing, I'll learn, but I need some help. I have a brand new Sun V880 box sitting in the box. I have to install Solaris 10 & then Oracle 10g on it.
    As I mentioned, I am very new to the world of Solaris. I don't even know how and where to get Solaris installable CD and whether I need license. Also I know that Solaris installation is not like XP that I just run setup.exe.
    Could someone please guide me as where and how do I get started. I don't want anyone to do my work, but I need guidance. I know about Oracle 10g CD's but could someone tell me how do I begin with Solaris 10.
    The CD
    license
    parmaeters
    kernal settings
    etc.
    Any help and guidance is appreciated. Thanks in advance.

    hello,
    you can download the solaris 10 install iso's directly from sun (look under products). as far as the licensing goes, read the aup. i strongly suggest getting a book on unix basics, unix security, and another on administration. unix can be very complicated to learn how to setup and secure properly. i dont want to discourage you, but you are going to need to spend a fair amount of time on this one (learning what everything is, device names, services, package system, etc).
    good luck

  • Urgent help needed to get this home page up!

    Hi,
    I need urgent help with this and it is driving me crazy. For
    some reason my animation starts at its fastest and won't stop until
    you click the area then it works properly. I have no clue why it is
    doing this and only seems to do it on a PC browser not on a Mac.
    Can anyone help please!!!!!
    Link to sample:
    http://www.totalamber.com/test.html
    Link to fla:
    http://www.totalamber.com/flash/homepage.fla
    Thanks so much for anyone who can help or tries to help me.
    Neil
    Ps this is urgent and i can't find a solution by searching on
    here

    Thanks to anyone who has looked at this but i have found the
    answer.
    It is due to what many of the users on here will already know
    and can be explained in this link:
    http://blog.deconcept.com/swfobject/
    I had forgot about the legal patent going on with microsoft!
    Hope it helps anyone else as bad as i am.
    Neil

  • Help neede to get Cost Itemization for a material

    Dear All,
    I am developing one report for Cost Component Details. First of all I Fetch Cost Estimate No for the Material from KEKO table then I search KEPH table for its Cost Components here i get 2 entries for a material one is for UPPER LEVEL and One for LOWER LEVEL. And after that i use "BAPI_COSTESTIMATE_ITEMIZATION" to get itemization but my problem is that i am not able to find data for LOWER LEVEL Components. I want both UPPER & LOWER LEVEL itemization for the particular material so i can match overall cost.
    So, can anybody help me in this matter.
    Thanks in Advance,
    With Regards,
    Mudassar Praniya.

    Solved.

  • Help needed in getting a query

    Hi,
    I have two tables issues and comments. Issues is parent table and comments is a child table with issue_id as the foreign key. There are two columns in master table Creation_date and closed_date . As the name suggests they refer to issue creation and closing date. I have say 4 statuses in comments table. Say 'open',moreInfo','Closed','Reopen'. There is also update_time column for the comments_table. So whenver the status is updated date and time is captured. Also when a issue is closed the update_time is entered into closing_date of the issues table as well. Also when the issue is reopened that closing date of the issue will be set to null. I wanted a query to calculate the average time required in closing the issue which I got that from the issues table by doing '-' of closingdate and creation_date.
    But now I want to calculate the average time spent on the issues without taking the time spent on the status moreinfo into consideration. Also the status can change at any point of time. THere is no sequence in status change.
    I want a SQL query for the above scenario.
    Thanks

    Hi,
    868875 wrote:
    Hi,
    I have two tables issues and comments. Issues is parent table and comments is a child table with issue_id as the foreign key. There are two columns in master tableIs "master table" the same as issues?
    Creation_date and closed_date . As the name suggests they refer to issue creation and closing date. I have say 4 statuses in comments table. Say 'open',moreInfo','Closed','Reopen'. There is also update_time column for the comments_table. So whenver the status is updated date and time is captured. Also when a issue is closed the update_time is entered into closing_date of the issues table as well. Also when the issue is reopened that closing date of the issue will be set to null. I wanted a query to calculate the average time required in closing the issue which I got that from the issues table by doing '-' of closingdate and creation_date.
    But now I want to calculate the average time spent on the issues without taking the time spent on the status moreinfo into consideration. Also the status can change at any point of time. THere is no sequence in status change.
    I want a SQL query for the above scenario.Maybe you just need to add
    comments.status  != 'moreinfo' to your WHERE clause. Without more specific information about your daya and your requirements, I can't be sure.
    As mentioned before, post your query.
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    Always say which version of Oracle you're using.

  • Help needed in getting formatted output ?

    Hi members,
    I am a newbie in Java programming. I know C, C++ upto a good level. I was trying to print a pattern like:
    1
    12
    123
    1234
    12345
    But wasn't able to get the output in desired format. I just wanna know how can i get the above mentioned output. The code i written is shown below alongwith the output:
    /* This program is used to print the Pattern of 1,12..... */
    class pattern
         public static void main(String args[])
              int i=1,j=1;
              while(i<=5)
                   j=1;
                   while(j<=i)
                        System.out.println("\t "+ j);
                        j++;
                   i++;
                   System.out.println("\n");
    output:
    F:\Jprograms>java pattern
    1
    1
    2
    1
    2
    3
    1
    2
    3
    4
    1
    2
    3
    4
    5
    F:\Jprograms>
    Any help will be appreciated.
    With regards
    Real Napster

    It's the statement you're using to print to the console:
    println() means print, then go to next line.
    print() doesn't go to the next line.
    So:
    System.out.println("1");
    System.out.println("2");
    Gives
    1
    2
    But System.out.print("1");
    System.out.print("2");
    Gives
    12

Maybe you are looking for

  • GarageBand: missing software instruments & loops won't download

    Hi, Recently I've bought a 15' MacBook Pro with OS X version 10.8.3 installed on it(and I've updated it to version 10.8.4) and tried to download [missing software instruments and loops] for GarageBand, but that update for the additional GarageBand co

  • Itouch 3G 64GB How do I skip my configuation apple id set up?

    Okay restarted my ipod touch 3rd gen 64gb and continued setting up my configuration, when I got to the Apple ID section and tried signing in it could not do it becuase there was a problem connecting to the server (Im guesing its a problem with my wif

  • Page content disappearing when longer than 1 page

    When creating a Welcome page or About Me page in iWeb 08, all page content completely disappears if it is longer than one page and I scroll to the second page. The outline of the text box still appears to be visible, but none of the text displays ins

  • What In the world is going on with my java?

    Alright so i have been fine using java and mountain lion(latest version), until today.  I decided i wanted to use netbeans IDE instead of eclipse because i like it better for what i am doing.  I was informed that i didn't have the latest version of j

  • Tracking down security patches by CVE number

    This is regarding OS X Server 10.2.6 My NOC runs a series of scans on my server periodically (Retina) to alert them to un-patched vulnerabilities. They report to me a list of vulnerabilities that need to be fixed. These are given with their CVE numbe