Request help for Extracting CLOB String

Hi Everyone,
I am getting the input string in the form of CLOB delimited by '~'. I have to tokenize the string and insert those values into the below table through procedure / function.
Create table TEST_TEMP ( NUM NUMBER(10),
NAME VARCHAR2(1000),
DESCRIPTION CLOB,
VALIDATION CLOB,
CREATED_DATE DATE,
COMPLETED VARCHAR2(1),
USER NUMBER(3));
For example the input string would be '11~test~sdfsdfsd~ewrerwerwerw~2007-10-10 13:00:00~Y~123'
Can you suggest any ideas / links how to do this?
Thanks

You can use this select to extract the values:
michaels>  with test1 as (
  select '11~test~sdfsdfsd~ewrerwerwerw~2007-10-10 13:00:00~Y~123'  str from dual union all
  select '12~test2~sdfsdfsd~ewrerwerwerw~2007-10-11 13:00:00~Y~123'     from dual)
select t.column_value.extract('s/s[1]/text()').getnumberval()  num,
       t.column_value.extract('s/s[2]/text()').getstringval()  name,
       t.column_value.extract('s/s[3]/text()').getclobval()  description,
       t.column_value.extract('s/s[4]/text()').getclobval()  validation,
       to_date(t.column_value.extract('s/s[5]/text()').getstringval(),'yyyy-mm-dd hh24:mi:ss')  created_date,
       t.column_value.extract('s/s[6]/text()').getstringval()  completed,
       t.column_value.extract('s/s[7]/text()').getnumberval()  "USER"
  from test1, table(xmlsequence(xmltype('<s><s>' || replace(str,'~','</s><s>') || '</s></s>').extract('s'))) t
       NUM NAME  DESCRIPTION      VALIDATION               CREATED_D COMPLETED        USER
        11 test  sdfsdfsd         ewrerwerwerw             10-OKT-07 Y                 123
        12 test2 sdfsdfsd         ewrerwerwerw             11-OKT-07 Y                 123

Similar Messages

  • Request help for purchasing HD webcams using iMac, OSX &Lion

    I am requesting help for purchasing a HD webcam using iMac, OSX &Lion.  Any suggestions would help.  The following is what I've done so far...
    I purchased Logitech's HD C910 webcam. It was a mess in requards to freezing up, no zoom and most of all no adjustments in: contrast, hue, color, etc. You're stuck just like a car with no engine or wheels who wants that.  The other Logitech products i.e. Pro 9000 is being discontinued with no software updates in the future  and the same with the other products. Most of the other manufactures do not provide software that is really compatible provideing true HD with full features. I'm willing to spend around $199,00 or so.  Any suggestions?

    Well I found my own answer to the webcam concern that I had ....I bought the Logitech C-910...Yes, I know the Logitech states their software is not compatible with OS X ...That's OK, I only use the basics supplied by Logitech to open the cam...Logitech does supply HD settings which are useful.  I like the wide angle which is there to play around. Then I use a software program called "Webcams Settings" found at Apple's App Store. There is a small charge for this download but more than worth it to have a fully functioning system.  The best way to get there is obliviously via your "Dock." Click on the icon and type in "Webcam Settings" in the top right portion of the page and presto....you have all the goodies to play like a professional. i.e.:  zoom, pan, tilt, aperture. etc. of course your webcam camera(s) must have the capability to perform these options in order to use them.
      Note I have used my webcam for everything you can imagine and have a 60 foot cord (several cords linked together) to go outside (LOL) 'Just love the goodies with "Webcam Settings".  I take outstanding pics too if I do say so, please.  Funny, I rarely use my cam to Skype but knowing the option is there for me anytime I wish.  I my cam to photograph orchids and misc. even portraits and family play photos with my tripod in hand.   Just because there is a big road block in your path doesn't mean there aren't other avenues. In the corporate life it's called take a negative and make it a positive or else.......and if you have to gripe then you better have an idea on how to turn it around.  -So- I did Logitech and Apple.

  • Request help for WS 14000..44 std wrkflw

    Hi,
    I am facing a issue in wokflow WS14000044.It's not sending any work item to any of the purchasers.
    The log says no agent found for this task. I also checked following FM to see whether any entries generated but dod not return any values.Request help.
    BBP_PDH_WFL_GET_PURCHASER_LIST.
    arjman

    Hi,
    Check in PPOMA_BBP that there are purchasers assigned to the relevant purchasing org of your cart.
    Also check that the agent assignment of the approval task TS14007947 is maintained with desired approvers.
    Kind regards,
    Siobhan

  • Request help for confusion over Oracle single instance database

    Hello all,
    Following Oracle version was installed at the client site @ the moment
    Oracle Database 11g Release 1 (11.1.0.6.0) for Microsoft Windows (x64) on Non-Clustered enviornment.
    The clients are going to arrange another identical server and wants to configure it with 2 nodes windows cluster enviornement.
    The current server where Oracle server was installed will become active node of the cluster.
    The confusion is if we should install the following version on node 2
    Oracle Clusterware 11g Release 1 (11.1.0.6.0) for Microsoft Windows (x64)
    or
    node 2 should also be installed with
    Oracle Database 11g Release 1 (11.1.0.6.0) for Microsoft Windows (x64) version ?
    http://www.oracle.com/technetwork/database/enterprise-edition/downloads/111060-win64soft-099656.html
    Any help for removing confusion would be appreciated
    Thanks,

    I think it's first needed to think about what kind of configuration you want; Failsafe, DataGuard or even RAC? But you talk about clustered and an active node, so I take it the object is to create a Failsafe cluster.
    If you want to use FailSafe first read about it, for example use http://www.oracle.com/technetwork/database/windows/index-082893.html (Resources: Documentation)
    Eric

  • Requesting help in extracting user comments from a forum ( HTML WEBSITE)

    hello experts,
    As i m new to java and i got this college project in hand which has to completed in few days i require some expert advise.
    Basically what my job is to extract all the user comments from a forum and make a text file.. for example this is one of the website http://www.gsmarena.com where user have posted many reviews and comments about mobile phones . ex : http://www.gsmarena.com/nokia_n97-reviews-2615p2.php .
    now looking at source code , all user comment are inside <P class="uopin"> tag under <DIV class="user-thread"> element.
    So i want to ask if there is any method in java that can extract all contents from class "uopin" directly ?
    i have no problem opening URL connection and reading the webpage but i m not able to extract that specific content . please enlighten me in this regard.
    Actually i m searching this forum since last 3 hours trying to find an answer and i found that i have to learn Regex , indexOf() subString() , HTMLEditorKit() etc.
    I ma planning to learn them in detail but as i have very less time ( 2 days to be specific) , i want help from you experts to solve this problem. plz guide me with some code snippets .
    Thankyou for your advises in advance :)

    ok.. sorry for asking that way.
    Here is my work till now....
    i wrote this code :
    import java.io.*;
    import java.io.Console;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.net.URL;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    public class MyRobot3
         public static void main(String[] args) throws IOException
              BufferedReader in = new BufferedReader(new FileReader("MyRobot3.txt"));
              String inputLine , nextLine,kutta;
            FileOutputStream out; // declare a file output object
            PrintStream p; // declare a print stream object
              out = new FileOutputStream("myfile3.txt");
              p = new PrintStream( out );
                 while ((inputLine = in.readLine()) != null)
                             Pattern p1 = Pattern.compile("(<p\\sclass=\"uopin\">)(.*$)" );          
                        //     Pattern p1 = Pattern.compile("(<p\\sclass=\"uopin\">)(.*$\r\n.*$)" , Pattern.MULTILINE | Pattern.UNIX_LINES);    //not working
                        //Pattern p1 = Pattern.compile("(<p\\sclass=\"uopin\">)(.*\\s)" , Pattern.MULTILINE );
                             Matcher m1 = p1.matcher(inputLine);
                             boolean found = false;
                             while (m1.find())
                             p.println(m1.group(2));
    }I am testing with a little file MyRobot3.txt which contains
    <p class="uopin">Although they didn't announce any winner here. But to me the winner is <br/>
    N900. Then opera is in second position. (overall averare result)</p>And i am getting output in a file : myfile3.txt
    Although they didn't announce any winner here. But to me the winner is <br/>which is just the first line , but i need to match that line break also. i m not able to figure it out .please help me fixing this code so that it can match all the text and remove the <br> tag ..

  • Request help for Simple Itinerary (tricky one)

    Hi
    I am trying various scenarios for itineraries. I am stuck in simple itinerary solution where i have  my schema exposed as (request and reponse) web service and one itineray service to transform it and finally send it back to the WS response.
    I  tried including Offramp but i guess i will not be able to include the servicename, state, type properties. Can someone help me how i can create itineraries for such instances.
    I could able successfully complete the scenario where my schema exposed as web service and then transform and invoke another web service and finally the response of the second web service for sent back my original web service. But the above simple scenario
    i am totally baffled.
    ram

    There are samples inside the ESB Toolkit that show exactly how to invoke a service  using the ESB Toolkit. You can find the specific
    sample here: C:\Program Files\Microsoft BizTalk ESB Toolkit 2.0\ESBSource\Source\Samples\MultipleWebServices. You will have to first unzip the ESBSource.zip file that comes with the default ESB toolkit installation.
    There are also How-to's which are step by step instructions on how to do this inside the ESB documentation.  You can get the documenation here:
    http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=bc86cf1e-ef29-4b19-95f7-388f64555090 
    Inside the Documentaion under Development Activities there are How-to's which provide step by step instructions on how to Route messages to a Service. (Even though this how to is based off of ASMX, the same principal applies.)
    You can also look into earlier MSDN Post in below link
    Consume Web Service from ESB Toolkit 2.1
    Thanks
    Abhishek

  • Exch2k7 to Exch2k10 - SSL 'request' help for the new server

    Hi,
    after read the article 'http://technet.microsoft.com/en-us/library/dd638158.aspx', we already have MBX and CAS 2007 running the lastest spk version and the SSL on the CAS 2007 is already working as 'LEGACY.DOMAIN.COM.BR' + 'Autodiscover.domain.com.br'
    + 'mail.domain.com.br'.
    My question is regarding the SSL request for the new server:
    >>> Can I start the REQUEST for the external Certification Authority using Windows Powershell or IIS console instead to use 'Exchange Management Shell'??
    * I´m afraid about the time (days) to install CAS 2010 on the new server, start the request to the CA, do the internal steps to aprove, pay the tax, wait for generation and then install the new SSL on the new server...

    Hi,
    Based on my research, we can use IIS renew the certificate for IIS:
    http://support.microsoft.com/kb/228991
    And Windows power shell can help us to create certificate request:
    http://social.technet.microsoft.com/Forums/exchange/en-US/1ba38a64-8776-444c-9f4d-a484075f3de2/powershell-to-request-a-certificate-renewal
    Thanks,
    Angela Shi
    TechNet Community Support

  • Request help for iphone screen flickering

    I'm using iphone 4. Few days ago (before the software update 6.0.1) i noticed my iphone screen is flickering and blurred.this bug was not fixed after IOS update 6.0.1. Thus showing horizontal lines in the screen.
              please help me

    I did resolve it. I did the reset while the phone was plugged into my computer at home (holding down the home button and power button at the same time, until it shuts down and reboots). It took a few tries but eventually it showed the icon of the plug going into the icon for iTunes.  From iTunes, I did a restore from an older backup, and then reinstalled the update from the computer.  Now it works just fine.  I wonder if maybe the update was just too hefty to pull down via the cellular network.
    If you never did a backup of your phone to iTunes or the cloud, then you'll likely have to do a restore to factory conditions and then do the update.  Incovenient, but better than a paperweight

  • Request help for oracle installation

    We are planning to install Oracle 11g on Windows 2003 Enterprise having 2 nodes clusters.
    We would like to have info: on the installation steps
    Thanks

    787060 wrote:
    We are planning to install Oracle 11g on Windows 2003 Enterprise having 2 nodes clusters.
    We would like to have info: on the installation steps
    Thanks11gR1 or 11gR2? which version you want to install?
    refer oracle installation guides, its better and helpful to avoid unnecessary headaches.
    REFER:
    http://tahiti.oracle.com/
    And find clusterware installation guide for 11gR2 or 11gR1.
    Hope, this will helps you.

  • Need help for "From concatenate string insert to mysql table"

    Well, most of this problem is a question about SQL syntax. In the VALUES clause you put a comma delimited list of the values to go into the new record. You insert one record at a time. How are the columns defined? Have you done any study on basic SQL?
    Mike...

    i nid to insert values from concatenate string into mysql with using LabSQL, but the result come out from conatenate string is like " 2015-07-08 00:00:00 38.933235E-3" , a logged data of "Date Time Wind Speed(m/s). i nid to put these 3 values into 3 different column in mysql which is Date Time and Wind Speed. How can i pick Date to put inside Date's column, Time into Time's column and Wind Speed into Wind Speed's column in mysql ?
    What i do is
    INSERT INTO wind_speed_data (Date, Time, Wind_Speed) The space in Wind Speed can i put a _ in between Wind Speed? without _ and just put Wind Speed it shows errors.
    VALUES( i have no idea wat to key in at this part ) <--- nid help !
    The Mysql table. Date Time Wind Speed
    The result from concatenate string. Have to insert into mysql.
    My labview program.
    The error i facing.
     

  • How do I request help for an Acrobat search efficiency question?

    I have had a search time degradation of 60x-70x when I switch to Acrobat X or XI (went from 14 seconds on v9.5 to 841 seconds with X or 991 seconds seconds with XI).  I am trying to find out where I can ask about this to see what I can do to improve the speed of my searches.
    Is this forum a good place to ask?  My prior posting was at:
       http://forums.adobe.com/message/5338121#5338121
    Thanks.

    The PDF files I search are fairly large.  I was told they are "text under image".  They represent the pages of an organization's bimonthly journal over the course of 80 years.  There are 16 files, averaging about 800 pages per file -- totalling around 600MB.  The ability to search across all those pages in 14 seconds rather than 1000 seconds is greatly desired.
    What kind of additional information would be appropriate and helpful?  Should I repost the details I had included under the other forum?  Are there other tests I should try?
    Am I the only one who has had this kind of issue?  I searched to find similar discussions or articles but had found none.
    Is this the appropriate forum in which to follow up as a discussion?
    BTW --  Best regards, and thanks for your feedback.

  • Requesting help for converting .cwk files

    for use with Windows.
    http://discussions.apple.com/thread.jspa?threadID=2548903
    Can someone help this poor soul who is being sucked into the dark hole that is Windows?

    These FAQ entries are a good starting point for file conversion:
    What tools can I use to convert my video to DV-AVI?
    How can I convert my AVCHD footage to more traditional HDV?
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • GX60 1AC BIOS request/help for upgraded CPU

    Hello,
    I recently upgraded my GX60 with a 5750m es, running Windows 8.  Would it be smart to upgrade the BIOS to the GX60 Hitman Edition's BIOS version D0L? The Hitman Edition uses the same processor.
    If so, could someone help me mod the bios, so I can have a stable system? I would like to unlock it as well. Thanks!
    - CJ

    Quote
    BIOS Version/Date   American Megatrends Inc. E16FKAMS.509, 12/10/2012
    oki, then you should use .5xx BIOS only
    any others are not for your notebook
    Quote
    Donation: 0R270839Y83717100
    It's pending, says it needs 3-5 working days to complete/cleared.
    Once is cleared i will work on it and will prepare latest bios to be unlocked
    until wait flash your bios to the latest version:
    http://download.msi.com/bos_exe/w8_E16FKAMS.50A.zip

  • Need help for extract XML fron PDF

    I am a newbee for javascript developer and i don know about Acrobat my requirement is Extract XML from PDF document there is any possiblities to do this from acrobat professional if is it possible please guide me to do this thank you

    i have a separate DTD for my own XML i want to extract my PDF files to that
    XML is it possible may i know how the acrobat export as xml feature works

  • Request help for setting Globalization Parameters

    Hi all,
    I have a test database(oracle9i) running on Redhat linux with the following Nls database settings.
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET US7ASCII
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 9.2.0.4.0
    I created a temporary table as
    Create table Temp1(str nvarchar2(1000));
    Now I inserted some japanese characters into Temp1 table through script(script saved with encoding UTF-8).
    When I am trying to access the data through Crystal Reports, The data from Temp1 table is displayed as "?????".
    Which parameters I need to set in the database to implement this.
    Any links/suggestions will be helpful
    Thanks in Advance,

    Have you tried the UNISTR() function?
    There are no parameters in Oracle9i that would allow you to insert Japanese data from SQL*Plus into NVARCHAR2 column using SQL text literals, if your database character set is US7ASCII. This is because literals are always converted first to the database character set.
    You could do this only in SQL*Plus 10.2 connecting to Oracle Database 10.2 by setting environment variable ORA_NCHAR_LITERAL_REPLACE=TRUE and using NCHAR literals: n'text' or nq'#text#'. In Oracle 9.2, you have to simulate this functionality yourself by using the UNISTR function.
    If you now run SELECT DUMP(<your column>,1016) FROM <your table>, you will see that the column contains only question marks ( 00, 3F ).
    -- Sergiusz

Maybe you are looking for

  • I can't get my table to remain uniform.

    I am a novice at creating webpage so please bear with me. I am trying to put together a Football Schedule page for a football league's website. I have uploaded the table. (Team_schedule ) to my mysql database via ms access. Status ... OK. Then I crea

  • Photoshop cs4 - Can't open .psd files in Bridge

    I cannot open .psd files in Bridge, only .jpg and .tif, as far as I know.  The .psd files are flattened--no layers.  What's wrong?

  • A Secured Web Service

    Hello guys, I have a lot of services that a written to other client applications via a web service call. I want to basic authentication system in my web service setup so that every connection from a client application would have to authenticate itsel

  • Designing XML Database

    Hello, I'm in the process of designing a relatively large XML DB System and I'm having some doubts regarding the best structure for the main XML document, in order to optimize search as well as organizing the document in such a way that is not relati

  • Get the Change log for ALV line items

    Hello Experts, I am using editable ALV table to display/change data. When user modifies data from ALV line items manually (direct entry), this change is recorded in get_context_change_log method of context node. Also in the screen I have one button,