Form 6i clob

Hi,
I perform the following in Form 6i , where sql_txt is a clob
SUBSTR(sql_txt,1,1000)
It shows the error - wrong number or types of arguments in call to 'SUBSTR'
It also fails if i use dbms_lob.substr .
Anyone can help ?
Many thanks in advance

For CLOB it is CHAR and for BLOB it is long.

Similar Messages

  • HTML form to clob

    Hi all i have an oracle 9i database.
    One of the application is used to store data given through standard HTML forms (not oracle forms). These are stored in varchar2 fields and all works fine.
    However we now have a new request that would require one of the HTML form fields to contain more then the 4,000 character limit of varchar2.
    I tried using same application exactly, simply changed database table field from varchar2 to clob. However while the other table fields are being populated normally, the clob field remains empty.
    Can anyone help
    James.

    I found a work-around as could not find a way to directly insert a CLOB, but i managed to update a CLOB field.
    Hence I only solved this problem by using first the html form to insert new record (except for the CLOB field) and then use a javascript code to update record with CLOB data.
    James

  • Can tabular form handle CLOB?

    Hey,
    I just came up the next problem: I have a tabular form with one column being a textarea with type CLOB, when i try to fill in text that is over 4000 then it gives me the next error:
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 6556, maximum: 4000
    I can't find anyone else with the same problem, Is it just me or is this not possible?
    Kind regards,
    Oli

    Nicolette wrote:
    Pars
    PARS wrote:
    Hi Nicolette,
    Yes i'm creating dynamic action on page load for add row but it create only one row
    In your javascript are you using a loop to run add_row as many times as needed?
    Somthing like
    l_no_rows = apex.item('P_YOUR_ITEM').get_value; 
    for (var i=0;i<l_no_rows;i++) 
    add_row; 
    Where P_YOUR_ITEM is a hidden item that holds the number of rows that need to be added.
    PARS wrote:
    it is possible by creating manual tabular form but it add row which are null not maps parent field reference
    If your using a manual tabular form than the default values have to be set by you the moment you create the new row.
    So either as parameter in apex_collection.add_member or as a value in the select statement.
    Nicolette
    Are you referring to apex internal add row js function? because there is nothing called add_row
    it is addRow and it should be called as below in the DA:
    addRow();

  • Case insensitive query on a CLOB item

    Hi all
    i have this problem...
    i have a table which contains a CLOB column
    in my form i have a block based on this table.
    i noticed that when i query the form on the clob item , it doesn't accept the case insensitive query property.
    (so if i query %AA% the form doesn't show 'Aa' or the 'aa')
    can you please help me?
    thanks!

    Forms is not really instrumented to query clobs directly. Google "oracle forms and clob" to see some suggestions on how to handle clobs in Forms

  • 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

  • Conversion of BLOB datatype to CLOB datatype

    Hi,
    I would need to convert the column datatype from BLOB to CLOB. currently in the table, the BLOB column has the data. the requirement is to convert this column from BLOB to CLOB datatype.
    please help me how to convert from BLOB datatype to CLOB datatype
    Thanks
    Hari.

    I have just been dealing with the same issue -- mass conversion of data in BLOB form to CLOB. I think I've finally got it working well. I have a table that has an key column then both a BLOB and a CLOB column. I load the BLOBS into the table then run the following PLSQL block (uses the given proc) to transfer the data from the BLOB column to the CLOB column.
    -- Proc to convert BLOB to CLOB
    create or replace function stg.blob_to_clob( p_blb in blob )  return clob  is
       v_clb   clob    ;
       v_dst   integer := 1 ;
       v_src   integer := 1 ;
       v_wrn   integer ;
       v_lng   integer := dbms_lob.default_lang_ctx ;
    begin
       dbms_lob.createtemporary ( v_clb, false ) ;
       dbms_lob.converttoclob
         ( dest_lob      =>  v_clb
         , src_blob      =>  p_blb
         , amount        =>  dbms_lob.lobmaxsize
         , dest_offset   =>  v_dst
         , src_offset    =>  v_src
         , blob_csid     =>  dbms_lob.default_csid
         , lang_context  =>  v_lng
         , warning       =>  v_wrn
       if  ( dbms_lob.NO_WARNING != v_wrn )  then
          v_clb := '~~~{ Error: Invalid Character in source BLOB }~~~' ;
       end if ;
       return v_clb ;     
    exception
       when others then
          v_clb := '~~~{ Error: BLOB Conversion Function Failed }~~~' ;
          return v_clb ;
    end ;
    -- Use the proc above to convert each BLOB to a CLOB in the given table.
    declare
       cursor c1 is
          /* Select the BLOBS to be converted. */
          select  id,  m_blob,  m_clob
            from  stg.temp_cnvrt
                  /* Trying to convert NULL BLOBS will result in an error */
           where  dbms_lob.getlength(m_blob) > 0
          for update ;
       v_tmp_clob   clob ;
    begin
       FOR  nxt in c1  LOOP
          v_tmp_clob := stg.blob_to_clob( nxt.m_blob ) ;
          update  stg.temp_cnvrt
             set  m_clob = v_tmp_clob
           where  current of c1 ;  
       END LOOP ;
       commit ;
    end ;

  • How to call sql loader ctrl file with in the pl/sql procedure

    Hi Friends,
    I am doing a project related with the transferring data using queues. In the queue , I will get a tab delimited data in the form of CLOB variable/message. I do want to store that dat in the oracle table.
    When updating data into the table ,
    1. Don't want to write that data into a file.( Want to access directly after dequeueing from the specfic queue).
    2. As the data is in tab delimited form, I want to use sql loader concept.
    How do I call the sql loader ctrl file with in my pl/sql procedure. When I searched , most of the forums recommending external procedure or Java program.
    Please Guide me on this issue. my preferrence is pl sql, But don't know about external procedure . If no other way , I will try Java.
    I am using oracle 9.2.0.8.0.
    Thanks in advance,
    Vimal..

    Neither SQL*Loader nor external tables are designed to read data from a CLOB stored in the database. They both work on files stored on the file system. If you don't want the data to be written to a file, you're going to have to roll your own parsing code. This is certainly possible. But it is going to be far less efficient than either SQL*Loader or external tables. And it's likely to involve quite a bit more code.
    The simplest possible thing that could work would be to use something like Tom Kyte's string tokenization package to read a line from the CLOB, break it into the component pieces, and then store the different tokens in a meaningful collection (i.e. an object type or a record type that corresponds to the table definition). Of course, you'll need to handle things like converting strings to numbers or dates, rejecting rows, writing log files, etc.
    Justin

  • Bpel parsing issue with special characters...

    Hi All,
    We are integrating Oracle Sales Order information with OTM as Order Releases.
    For this we are sending the Sales Order in the form of clob from the procedure to the Bpel process.
    1. A PL/SQL procedure would send the Sales order XML as a CLOB.
    2.In the BPEL process , we are performing ora:parseXML() function on the clob obtained.
    3.A patch was installed on the BPEL SOA server:
    10.1.3.3.1 MLR#8, Patch#6906880 which was supposed to handle all the parsing activities at run time.
    4. But when ever any special character viz..; #,UNIT¿S etc the BPEL process is failing with a fault string due to Parsing error.
    5. Could you please provide us a workaround for solving this issue ASAP with all the special characters.
    I have provided a sample xml tag due to which the parsing is failing in the bpel process. here it is failing because it is not able to parse : UNIT¿S successfully...
    <SHIPPING_INSTRUCTIONS>
    **San Dieg UNIT¿S contact name is Jenny Haden 858-609-1170** 12/12/08
    **Updated Contact is ASHTON REYES 72-696-1525, hours are 830-5 only, N/S. Millyz DELIVERY
    CONTACT: ELLEN HILGER @ 248-932-9000: LINE 4.1 -TRIAL CONVERSION FROM ORDER # 25766204
    </SHIPPING_INSTRUCTIONS>
    is there some other bpel patch or some other workaround using which whatever input value comes in , the bpel is able
    to successully parse that through..
    we are stuck with this special character parsing issue as of now and go live is very near ...your help/inputs would be highly appreciated
    thanks

    Guys,
    I am new to OTM and SOA/BPEL architecture.
    Could you please suggest me in detail as how to integrate OTM with outside world using BPEL.
    Thanks,
    Kamleshwar

  • Newbie - XML File - How to load data and populate tables

    Hi,
    I'm newbie to XML data handling.
    I have a file that is provided in XML format with data from an external system.
    I need to load data from that file and populate some field in one or more tables.
    I have two options:
    1. Load the XML file directly from OS and populate the tables directly (I'm not sure if this is possible or not)
    2. Load the entire XML file from OS into a CLOB or a BLOB(?) and the select the data form the CLOB and populate my tables.
    I need some guidance about what is possible and how to do it.
    My preferred approach if possible is to load the data directly from OS and populate the target tables without loading into the database previously.
    Thanks for the help.
    Tech Info:
    OS : Unix / Windows
    DB Version: 11.2 or 11.1
    JF

    forum has many examples
    use search
    as example see
    Re: Load xml data in Oracle table
    Re: Load an XML file into table(s)
    Re: load a file

  • Case insensitive query from a JSP

    I am using JDeveloper 3.1 to create JSP applications using the wizard for business components for JSP application.
    The default query screen allows a search to be performed on all the fields on the table (using the Findform web bean).
    How can I change the search such that the query is Case Insensitive ?
    Many Thanks,
    Ketan.
    Many Thanks,
    Ketan.

    Forms is not really instrumented to query clobs directly. Google "oracle forms and clob" to see some suggestions on how to handle clobs in Forms

  • Metalink tar -4215761.995

    Hi Mark ,
    I need urgent help from you.
    I have waited very very long to fix this bug and it is still not yet available.
    My customer is sitting on my nose becuase i am not able to release the functionality.
    I have given all the information in the tar for this problem but nothing is moving.
    Can you pls look into this and help me out.
    tar number - 4215761.995
    Thanks in advance.

    Hi Mark ,
    sorry , pls ignore my previous thread becuase i did not look at my tar in the metalink that it is already re-opened by Coby.
    Thanks a lot for the fast response.
    Another thing is tar number 3941854.994.
    This is also related to my project only.
    Since the export utility is not able to export the schema based tables (nested tables), i am storing the xml in the database in the form of clob. But i actually want to store it as schema based because i have to perform lots of queries.
    A patch was already provided for this problem but it did not solve it and the problem still exists.
    So please try to fix this too in the new patch becuase each of them are dependent.
    Thanks a lot.

  • How to use 'oprofc' procedure?

    How to use 'oprofc procedure'?
    I don't find this program in JDEVELOPER2.0 directory.
    is it necessary to launch 'oprofc' to use some oracle-specific
    features (form exemple: CLOB)
    null

    David,
    Please also see my reply to your other query about SQLJ and
    CLOBs. It is my understanding that this script is only necessary
    for command line SQLJ operations, and I don't believe it is still
    used with 8.1.
    Because JDeveloper handles the SQLJ translation for you, we do
    not provide the command line utilities. They should be available
    with either your server installation or the Oracle Client
    distribution if you would like to use them.
    -L
    David DUPONT (guest) wrote:
    : How to use 'oprofc procedure'?
    : I don't find this program in JDEVELOPER2.0 directory.
    : is it necessary to launch 'oprofc' to use some oracle-specific
    : features (form exemple: CLOB)
    null

  • Updating the whole xml file in  XMLType column

    Hi ,
    I am facing the problem in updating the XMLTYPE column.
    I need to update the whole xml file
    This is my table
    SQL> desc EMPJAL_TABLE;
    Name Null? Type
    EMPLOYEEID NOT NULL VARCHAR2(140)
    EMPCOM VARCHAR2(100)
    EMPJAL SYS.XMLTYPE(XMLSchema "www.EMPSIM.com" Element "EMPJAL") STORAGE
    Object-relational TYPE "EMPJAL_T"
    I am able to form the CLOB object and trying to use this sql command
    UPDATE EMPJAL_TABLE SET EMPJAL = XMLType( ? ) ) WHERE EMPLOYEEID ='emp1234';
    Here I want to update the whole xmlfile in XMLTYPE column.
    Error is - ORA-00933: SQL command not properly ended
    Please advise
    Thanks
    Govinds

    Hi Mark,
    I apologise for this mistake. I am really putting lot of efforts and also worked/working in advance topics of XML DB.
    Yes I am extensively using Oracle 10g r2 and suggesting others to use this
    This time I had put more effort before posting ,I had a series of queries to resolve most of then were working , this was the one giving problem inside my java code
    I am sorry for this .
    Any how I made another query which works better.
    Thanks
    Govinda

  • Forms 6.0 how to query clob column with oracle 9.2 DB

    hi every body,
    i made install for oracle 9.2 oracle DB every thing goes ok but when i made query in my form version 6.0 which have CLOB column the form closed automatically without any message?
    and just for know when i run the same form with oracle 8.1.7 DB the form made query normally without any problem.
    i want your help please.
    Message was edited by:
    mshaqalaih

    I know there was a problem in 6i where you would get a crash if your query returned more than {Max Length} characters of the field representing the CLOB column.

  • What is the max clob length for Forms 6i with most recent updates.

    I am trying to determine what the largest clob is that can be handled by Forms 6i with the latest patches installed. I have searched the forum and the help files and have found a bunch of different answers, but nothing useful - nothing current.
    I have a record that has a clob field with 28,213 characters (including spaces) or 9902 characters (without spaces). Saved as a text file, it is 29kb.
    To read and work with the data in Forms, I have to set the DATA: Maximum Length to 110000, almost 3 times the length of the actual data. I can read and edit the field without problems.
    My questions are:
    1. what is the maximum size of data in a clob field that will work with Forms 6i and Oracle 10R2 database (Forms with the most recent update)?
    2. what is the Maximum Length - It certainly doesn't seem to be character. How do I set this - 3x Actual????
    Thanks for the help
    Glenn

    In theory it should be 64k bytes. In practice its often a bit less than that.

Maybe you are looking for

  • How to Set Image to Lock Screen and Background in Windows Store API?

    How to set an image to windows lock screen and desktop background for windows store app in c#? if changing lock screen is available in windows store C# how about changing the desktop background using Windows store C#?

  • Passing form data to a PDF for printing

    I have found a few articles online about setting this up, but having no luck on getting the data to pass and display within the pdf file.. Can anyone offer suggestions or some good tutorial sites i can continue to read about? thanks... ASP, SQL2005,

  • Solaris10, sparcv9, JVM crash because SIGILL, please help!

    there is hs.log file and using mdb core...Please help me! hs.log file: # An unexpected error has been detected by HotSpot Virtual Machine: # SIGILL (0x4) at pc=0x0000000103e8fac4, pid=4997, tid=233 # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.4.2_

  • Goods Movement for Process Order

    Hi PP Experts. Is it possible to take goods movement in TECO process order directly. is there any other possibility for take goods movements in TECO process order?

  • Need clarification on application of OSS Release Note:391846 in SAP ERP 6.0

    Hi Experts, We are upgrading the SAP R/3 4.7 to SAP ERP 6.0 in one of our client. In SAP R/3 4.7, OSS Note:391846 has been applied for Automatic Explosion of BOM while converting the planned order. I would like to know whether this functionality is c