Whats the best way to get a big text file in a CLOB variable?

Hi,
I have a very premitive type of question.
I have a big text file, say 30 MB, in a Unix directory (Solaris). I want to get the whole text of that file in a CLOB variable.
I saw the procedure dbms_lob.loadfromfile/loadclobfromfile. In both these cases, according to the documentation, the target where is collect the data will be a BLOB and not a CLOB. So, I have to convert that blob into a clob.
If I want to avoid all this conversion process, whats the best way to get a text from a file into a CLOB variable?
Please suggest.
Regards

In addition, LoadFromFile is overloaded to handle both BLOB and CLOB:
PROCEDURE LOADFROMFILE
Argument Name                  Type                    In/Out Default?
DEST_LOB                       BLOB                    IN/OUT
SRC_LOB                        BINARY FILE LOB         IN
AMOUNT                         NUMBER(38)              IN
DEST_OFFSET                    NUMBER(38)              IN     DEFAULT
SRC_OFFSET                     NUMBER(38)              IN     DEFAULT
<BR>
PROCEDURE LOADFROMFILE
Argument Name                  Type                    In/Out Default?
DEST_LOB                       CLOB                    IN/OUT
SRC_LOB                        BINARY FILE LOB         IN
AMOUNT                         NUMBER(38)              IN
DEST_OFFSET                    NUMBER(38)              IN     DEFAULT
SRC_OFFSET                     NUMBER(38)              IN     DEFAULT

Similar Messages

  • When I'm done with my fcp sequence, whats the best way to get it to dvd?

    When I'm done with my fcp sequence, whats the best way to get it to dvd?

    The advice to go to Compressor left out the part that you may want to convert your audio to AC3 becaus ethe MPEG2 bitrate is probably too high for DVD specs.
    This method is in the DVDSP manual and it's in the Compressor manual, both difficult to locate, but easily searchable.
    Here's what I'd do: Export the timeline form FCP in the native sequence settings, self-contained. Bring that self-contained movie into DVDSP and let DVDSP handle the transcode.
    The advice to go to iDVD is even easier.
    bogiesan

  • Whats the best way to get dvd onto 5800

    Peoples,
    I'm strugglin to get DVD onto my noka 5800. It's not obvious in the user manual and looking around the web i need to 'convert' it to the fim on.
    Please does anybody have an easy, fool proof way of doing this??????
    Message Edited by blueleaches on 21-Aug-2009 06:02 PM

    If its possible there should be some walkthrough's on google. 
    http://www.lmgtfy.com/?q=whats+the+best+way+to+get+dvd+onto+5800 

  • Im having trouble with my ipad mini in regards with the icloud back up notification; if i press "ok" it doesnt dis appear, i couldn open my ipad/turn off because of this notification; whats the best way to get rid of this? please help

    im having trouble with my ipad mini in regards with the icloud back up notification; if i press "ok" it doesnt dis appear, i couldn open my ipad/turn off because of this notification; whats the best way to get rid of this? please help

    Have you tried a soft-reset ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider if it appears), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Whats the best way to get the server name in a servlet deployed to a cluster?

              Hi,
              I have a servlet in a web application that is deployed to a cluster, just
              wondering what is the best way to get the name of the node that the server is
              running on at run time??
              Thanks
              

              Please try to modify the following code and test for your purpose: (check Weblogic
              class document for detail)
              import javax.naming.*;
              import weblogic.jndi.*;
              import weblogic.management.*;
              import weblogic.management.configuration.*;
              import weblogic.management.runtime.*;
              MBeanHome home = null;
                   try{
                        //The Environment class represents the properties used to create
                             //an initial Context. DEfault constructor constructs an Environment
                             //with default properties, that is, with a WebLogic initial context.
                             //If unset, the properties for principal and credentials default to
                             //guest/guest, and the provider URL defaults to "t3://localhost:7001".
                             Environment env = new Environment();
                             //Sets the Context.PROVIDER_URL property value to the value of
                             //the argument url.
                             if(admin_url!=null){
                                  env.setProviderUrl(admin_url);
                                  //Sets the Context.SECURITY_PRINCIPAL property to the value of
                                  //the argument principal.
                                  env.setSecurityPrincipal(username);
                                  //Sets the value of the Context.SECURITY_CREDENTIAL property to
                                  //the value of the argument cedentials
                                  env.setSecurityCredentials(password);
                                  //Returns an initial context based on the properties in an Environment.
                                  ctx = env.getInitialContext();
                             }else ctx = new InitialContext();
                             home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
                             ctx.close(); //free resource
                             // or if looking up a specific MBeanHome
                             //home = (MBeanHome) ctx.lookup(MBeanHome.JNDI_NAME + "." + serverName);
                             DomainMBean dmb = home.getActiveDomain(); //Get Active Domain
                             ServerMBean[] sbeans = dmb.getServers(); //Get all servers
                             if(sbeans!=null){
                                  for(int s1=0; s1<sbeans.length; s1++){
                                       String privip = sbeans[s1].getListenAddress();
                                  sbeans[s1].getName();
                             sbeans[s1].getListenPort();
                                                 WebServerMBean wmb = sbeans[s1].getWebServer();
                   }catch(Exception ex){
              "Gao Jun" <[email protected]> wrote:
              >Is there any sample code? Thanks
              >
              >Best Regards,
              >Jun Gao
              >
              >"Xiang Rao" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Sure. You can use the Weblogic management APIs to query ServerBean.
              >>
              >>
              >> "Me" <[email protected]> wrote:
              >> >
              >> >Thanks for your reply, i was hoping to find a better way for example
              >> >a class in
              >> >weblogic API.
              >> >
              >> >Thanks
              >> >
              >> >"Xiang Rao" <[email protected]> wrote:
              >> >>
              >> >>Physical: InetAddress.getLocalHost().getHostName()
              >> >>Weblogic: System.getProperty("weblogic.Name");
              >> >>
              >> >>
              >> >>"Me" <[email protected]> wrote:
              >> >>>
              >> >>>Hi,
              >> >>> I have a servlet in a web application that is deployed to a
              >cluster,
              >> >>>just
              >> >>>wondering what is the best way to get the name of the node that
              >the
              >> >>server
              >> >>>is
              >> >>>running on at run time??
              >> >>>
              >> >>>Thanks
              >> >>
              >> >
              >>
              >
              >
              

  • Using final cut studio what the best way of getting a mini disc in to FCP?

    I do some weddings and record some audio on to a mini disc recorder ( the small ones . On my avid liquid edit suite I just used to run it in live or ingest it on a 2 hour timer, and just record audio.
    What the best way to do it with final cut studio and final cut pro?

    Is there a reason you can't do the same on your mac system? What outputs does the audio recorder have?
    Jerry

  • Whats the best way to get a copy of a clients DB onto an internal test DB?

    Hi there
    We have a client who hosts an Oracle 9i DB in house and we need to get a copy of this DB onto our own servers for testing purposes. What is the best way to go about doing this?
    I was reading about the data pump for exporting and importing [http://www.exforsys.com/tutorials/oracle-10g/oracle-10g-using-data-pump-export.html]
    Would this meet my requirements and how easy is it to do? Also what type of export would I need to do (there a 5+ schemas using different tablespaces)
    Sorry if this is all a bit vague, but i am not a DBA and have been tasked with doing this :(
    Thanks in advance,
    Toby
    edit: sorry i meant a 9i DB
    Edited by: redeye on Nov 5, 2009 11:21 AM

    If you want to export schemas/objects from 9i db you wouldn't be able to use datapump for exporting them,although you can import the dump file that will be created using the datapump.
    Determine what schemas you need at the test(destination) database, and then export them from the source(clients db) database.
    Also make sure that on the target database server, os paths where the oracle related files will be created(redo logs,datafiles...) are the same as the ones that are on the source database.

  • Whats the best way to get a description for a code

    Hi,
    What is the best way to find description for a code, when both of them resides in different table.I have to do this like 3 times for different codes.The code and description lies in differnt table.
    Can i use select statement.. if yes, what operator should i use?
    Thanks

    Hi,
    to do a lookup you may either use the Key Lookup Operator (it makes it easier to define default return values if the lookup fails) or a Joiner (to probably outer join your lookup table).
    If you have many lookups you can do them in one joiner instead of having a key lookup operator for every one of them to reduce the total number of operators in your mapping.
    Regards,
    Carsten.

  • Whats the best way to get an averaged measuremen​ts while scanning?

    I currently have a PXI 4071 DMM and a PXI 2575 Mux. I've played around with the examples of how to do scanning of channels which all works out fine. However the scanning only takes one measurement every time it steps down the scan list. What I need is for every scan step to take X number of measurements and average them before moving on to the next scan step. I've played around with the Sample Count and Trigger count but cannot seem to get this done correctly. I've gotten it to the point where it runs through the scan list multiple times and I can average from that but I don't want to tax the relays that much. Can anyone point me in the correct direction for this?

    Hey Duke,
    I can say with great confidence that the 407x DMM is much more accurate
    than any DAQ product NI sells; if you're seeing unexpected accuracy errors after acquiring one data point with the 407x DMM, I think the best method is to figure out the discrepancy, not average it out.  I recommend you verify the DUT signal with a scope (you can use the DMM in digitizer
    mode) to see if the signal is still settling as you take your first measurement.  If this is the case, each successive measurement becomes much closer to the value you expect,  so averaging 5 samples allows the system to settle at the later points, and we get close to the actual value.  If this is the case, then I recommend you increase the settling time property (configuration»Advanced»Settle Time) enough that your DUT signal has settled and then take a single measurement (with increased aperture time, if desired, as mentioned previously).  Note that the value you obtain will differ from the old system if the above conditions exist... the 407x measurements are more accurate.
    Obviously, if you scope the signal and it's steady during your first measurement, then my previous post would solve the problem while still taking only one measurement.  For my own curiosity, what type of measurement are you performing?
    Keep us up to date on your progress and don't hesitate to post of with any additional questions.
    -John Sullivan
    Analog Engineer

  • Whats the best way to get a smashed screen sorted on my 4S?

    Thee screen crakcked when I had only had the phone for a couple of weeks but I left i because the crack did not obscure vewing. However now, months later, the screen is cracked all over and is difficult to read, so needs to be replaced or the phone changed. Please can anyone advise me on the best solution. Thank you.

    It is a phone from service stock. It may be new or reconditioned. There is no way that you, or the people at the Apple Store can tell the difference. The only thing they can identify is that it is a service replacement.

  • Whats the best way to get rid of a virus, whats the best way to get rid of a virus

    Preferences

    I'll echo MadMacs0's request for specific information about the threat. You should find it in Kaspersky's Detected Threats list. The first column will show the path of the file determined to be malware, and the Name column lists the name that Kaspersky calls that malware. We need to know what the full contents of both those values are. Be sure to resize the columns so you can see the whole thing, if necessary.
    Most likely, this is just Windows malware attached to an e-mail message or something along those lines.

  • Whats the best way to get 3GS screen repaired?

    I have had my phone for a week and the screen has cracked all the way a across the phone. It is just the glass not the LCD, but Apple wants $199 to fix it and that's what I paid for the phone. I have had a BB Storm since they came out and have literally thrown it at someone and you can't break it. Very disappointed with how fragile the iPhone is.

    Just to follow up:
    A local shop said $189 to replace the LCD.
    I took it to another Apple retail store and they fixed it (glass and digitizer) under warranty, no questions asked.
    While I'm pleased with my treatment at the 2nd Apple store, I'm disappointed at the overall experience. I paid $300 for this phone, with a warranty, yet when it broke under warranty, some random "genius" at the retail store decides it's going to cost me another $200 to have a working phone because it's his feeling that I must have dropped it. I asked him what standard he used to distinguish between a phone that fails under normal wear-and-tear due to a mfg defect and one that was dropped but he couldn't answer except to say that it just must have been dropped. I go to another store and get a completely different answer.
    "Customer Service Rep Roulette," where your outcome will vary wildly depending on who answers the phone, is a pervasive phenomenon and the scourge of companies like DirecTV. But after all the gushing I've heard from devotees about the company and its products, I'm surprised and disappointed to run into it with Apple.

  • Whats the best way to get photos off my iphone to my pc (ios8)

    Hi
    Even with the new icloud drive I still want to take my photos off my iphone so I can take my own backups
    I have icloud on my pc, so can access them this way - and this does include any photo editing I have done to the photos which is great.  However I have noticed when I do it this way, the size of the photo I save is only 1mb so it appears there is some kind of compression or reduction in the resolution which  bothers me slightly.  Is this something I should worry about?
    So I have then gone and plugged in my iphone and grabbed the photos like a flash drive, however this only gives me the original photo without any photo editing!  I do however get the full size photo around the 1.6mb mark!
    I guess I could used drop box or something similar (I get full size of 1.6mb and photo edits this way) but its a slow upload process.
    Am I missing something in ios8 - I had assumed by now they would have made it easier to move photos around but its still seems like a total pain.  Can anyone help??
    Thanks so much

    If these photos are in your Camera roll then you can transfer them by attaching your iPhone to your MacBook and having it recognized as a camera.
    If the photos/videos are in Camera roll or not you can directly transfer them via WiFi from your iPhone to PC/Mac with an App like Photo Transfer.
    See: https://itunes.apple.com/us/app/photo-transfer-app-easily/id365152940?mt=8
    Or you can upload the photos/videos to the Dropbox service using the Dropbox App on your iPhone and download them to a PC/Mac using the Dropbox App on that device.
    See: https://itunes.apple.com/us/app/dropbox/id327630330?mt=8

  • Whats the best way to get photos off ipod touch 4?

    I want to get my sons photos off his ipod touch 4 (ios 6-something), and onto a flash drive so he can use them in Windows movie maker, and to free up space on his ipod. Can't use dropbox with ios 6. I've backed up his ipod to our PC, but I can't find where the photos are stored on our computer. Is there an easier way?

    iOS: Importing personal photos and videos from iOS devices to your computer

  • My 'start up drive' is almost full, and running slow.  I transferred all my music to an external drive, but still getting messages.  What is the best way to get rid of unneeded files.

    I am deleting or burning to CD photos I dont use regularly.  What else can I do?
    Does a full hard drive and slow machine warrent upgrading to a new one?

    I have 13 GB free out of 250GB
    That's tight. Rule of thumb for a start up drive - the one inside the Macbook - is to have atleast 15% free at all times.
    For getting rid of unnecessary stuff off the internal drive, I suggest you try Omni Disk Sweeper. It will give you a complete inventory of your drive, and purge what you ask it to delete. But be patient when it runs, give it time to do a full sweep.
    It's the second one on this page: http://www.omnigroup.com/more
    Hard drives are not that expensive. If I were you I would invest in another external drive for your library.

Maybe you are looking for

  • ACS 5.3 - how to join to domain

    Hello, can anybody clarify me how it is possible join ACS 5.3 to windows domain? from cisco doc: Active Directory Domain Name: Name of the AD domain to join ACS to. Username: Predefined user in AD. AD account required for domain access in ACS should

  • Shared photo streams not using full resolution

    I was very excited about this feature but after testing it I realised it's not using the full res pictures on the shared photostream. Which for me is kind of a silly. Am I doing something wrong or is that how it's working? Thanks in advance for your

  • Oracle 10g installation error in WINDOWS7

    Hi, When am trying to install 10g in my PC, I am getting following error. Abnormal program termination. An internal error has occured. Please provide the following files to oracle support" "Unknown" "Unknown" "Unknown" Please help me out on this. Tel

  • Recovering from an incomplete download of osx mountain lion

    GREETINGS ! And Thanks in advance for helping out w/ this issue.  I purchased Mountain Lion the other day and it didn't down load completely.  It shows up as downloaded. How do I get it to reload? Thanks, Blessings

  • Attaching and Detaching Observers to a document, what is the  correct way?

    Hi, I came across below code snippet in many of the sample PLugins where Observer is being: Attached on the kAfterOpenDocSignalResponderService Detached on the on kBeforeCloseDocSignalResponderService Same DocRef is being used in both the cases but t