Change the setting from VarChar2 to the CLOB

Hello

I have a csvToArray function which takes a csv string and converts it to an array.

PROCEDURE csvToArray (p_csvString IN VarChar2,
p_count ON PLS_INTEGER,
p_array OUT ARRAY_T) IS...

Unfortunately, the size of the csvString passed in exceeds 32K, so I thought to change the csvString from Varchar2 to CLOB type, i.e.

PROCEDURE csvToArray (p_csvString IN CLOB,
p_count ON PLS_INTEGER,
p_array OUT ARRAY_T) IS...

The procedure uses only the string substr and instr functions to search for items in the csv string to put in a table.

I tested the change and it works, but I should consider with the change to the data type, or will that always precedes work properly? Extreme max of p_csvString size would be around 150 K.

Version of database is 10.2.0.4.0


Thank you

Since you're on 10.2, SUBSTR and INSTR functions were overcrowded to handle the CLOB, then you should be fine.

Justin

Tags: Database

Similar Questions

  • Tecra M5 cannot enter the BIOS to change the setting too boot from cd first

    Tecra M5 cannot enter the BIOS to change the setting too boot from cd first

    I bought on ebay and the seller sold me a dubious version of xp so I want to format and install my own at the start he said:

    The Intel Boot Agent GE v1.2.31 initialization
    KE - E05: the LAN adapter's configuration is corrupted or has not been initialized. Boot agent cannot continue

    Hello

    The message looks like you tried to boot and install Windows LAN

    If you want to change the boot order, I recommend pressing the F12 key, immediately after that the laptop was turned on!

    A new start menu should appear, then you can choose the reader of CD/DVD (ODD) and a boot device.

    Also by pressing the C button should allow you to boot from the CD inserted, bootable.

    Welcome them

  • How can I change the setting from sleep on the surface

    No matter what I tried I can't change the setting of sleep on my surface. Often expire after 30 seconds to be idle... any help would be appreciated.

    No matter what I tried I can't change the setting of sleep on my surface. Often expire after 30 seconds to be idle... any help would be appreciated.

    Hey there,

    From the start screen, by scanning the right to appear charms, press 'search', type 'power', press 'settings' touch 'power options', this will open a window in the office. On the left side of this window, you will see an option called 'change when the computer sleeps,' touch this, change the settings you want, touch "save changes" and you're done.

    Hope that helped,

  • I have five-point-something Lightroom thing set up on a laptop and a desktop Apple computer. Both will import images from a CD or a DVD (I have my film scanned and the images on a disk). I can't change the images on the Mac, but I can edit images on the P

    I have five-point-something Lightroom thing set up on a laptop and a desktop Apple computer. Both will import images from a CD or a DVD (I have my film scanned and the images on a disk). I can't change the images on the Mac, but I can edit images on the PC. What is going on? Also, when I try to export edited disk images, where are they going? I can't find them on my hard drive. Thank you!

    Your entire development is off? You may be able to disconnect and reconnect. You can check this thread for more suggestions:

    Lightroom 5.5 'develop module is disabled. Please renew your membership to reactivate the develop module.

    I was expecting an error message indicating that the development module is disabled, however. If this isn't what you're talking about, please show us a screenshot of the 'dark' buttons

    Mike

  • Why the defalut printer set from the server that allows users to change at the level of the Office?

    In 2003 server-side if you set the defalut setting double-sided and print black and white and users at his desk required single color face they could change just to have a job.  The very next time they needed to print it should be indented for the default server double-sided black and white.  Now, in Server 2008 this is not the case, you can assign one of the side server, but the user can change the setting single-sided color and next time they'll print is not defined by default return on the server side.  Any ideas?

    Hi JrJoseph2469

     

    I would recommend checking the Microsoft TechNet community. Please visit the link below to find the community that will provide support for Windows server-

    http://social.technet.Microsoft.com/forums/en-us/winservergen/threads

     

    I hope this helps.

  • Change the setting from master VMware agent on an image

    Hi gurus

    Its me again and again go easy on me, learning

    I need to recompose a virtual machine image master machine.

    change the agent install vmware view removing the option for ThinPrint, (where I start, how do I change the settings, where can I find)

    Prepare the master to deploy updates to the clones and

    Recompose the pool.

    con someone help me with how to accomplish this procedure.

    Thanks a bunch

    Well, you can stop the service of ThinPrint in the Master image, power down, take a snapshot and then you can change the pool, select recompose, select parent image, select the newly created snapshot and you're all set.

    Here is the link to deactivate the Service of ThinPrint - VMware KB: ThinPrint deactivation on a VMware View Client

    Hope this helps.

  • extracting data from the CLOB using materialized views

    Hello

    We have xml data from clob which I have a requirement to extract (~ 50 attributes) on a daily basis, so we decided to use materialized views with refreshes full (open good suggestions)

    A small snippet of code

    CREATE THE MWMRPT MATERIALIZED VIEW. TASK_INBOUND

    IMMEDIATE CONSTRUCTION

    FULL REFRESH ON DEMAND

    WITH ROWID

    AS

    SELECT M.TASK_ID, M.BO_STATUS_CD, b.*

    OF CISADM. M1_TASK m,

    XMLTABLE (' / a ' XMLPARSE PASSING ())

    CONTENT '< a > | M.BO_DATA_AREA | "< /a >."

    ) COLUMNS

    serviceDeliverySiteId varchar2 (15) PATH

    "cmPCGeneralInfo/serviceDeliverySiteId"

    serviceSequenceId varchar2 (3) PATH "cmPCGeneralInfo/serviceSequenceId"

    completedByAssignmentId varchar2 (50) PATH "completedByAssignmentId."

    Cust_id varchar2 (10) PATH "cmPCCustomerInformation/customerId,"

    ACCT_SEQ varchar2 (5) PATH "customerInformation/accountId"

    AGRMT_SEQ varchar2 (5) PATH cmPCCustomerAgreement/agreementId"."

    COLL_SEQ varchar2 (5) PATH "cmPCGeneralInfo/accountCollectionSeq"

    REVENUE_CLASS varchar2 (10) PATH "cmPCCustomerAgreement/revenueClassCode"

    REQUESTED_BY varchar2 (50) PATH ' attributes customerInformation/contactName',...~50

    This ddl ran > 20 hours and no materialized view created. There are certain limits that we have

    • Cannot create a materialized view log
    • cannot change the source as its defined provider table
    • cannot do an ETL

    DB is 11g R2

    Any ideas/suggestions are very much appreciated

    I explored a similar approach, using the following test case.

    It creates a table "MASTER_TABLE" containing 20,000 lines and a CLOB containing an XML fragment like this:

    09HOLVUF3T6VX5QUN8UBV9BRW3FHRB9JFO4TSV79R6J87QWVGN

    UUL47WDW6C63YIIBOP1X4FEEJ2Z7NCR9BDFHGSLA5YZ5SAH8Y8

    O1BU1EXLBU945HQLLFB3LUO03XPWMHBN8Y7SO8YRCQXRSWKKL4

    ...

    1HT88050QIGOPGUHGS9RKK54YP7W6OOI6NXVM107GM47R5LUNC

    9FJ1JZ615EOUIX6EKBIVOWFDYCPQZM2HBQQ8HDP3ABVJ5N1OJA

    then an intermediate table "MASTER_TABLE_XML" with the same columns with the exception of the CLOB which turns into XMLType and finally a MVIEW:

    SQL > create table master_table like

    2. Select level as id

    3, cast ('ROW' | to_char (Level) as varchar2 (30)) as the name

    4       , (

    5. Select xmlserialize (content

    XMLAGG 6)

    7 xmlelement (evalname ('ThisIsElement' | to_char (Level)), dbms_random.string ('X', 50))

    8                    )

    9 as clob dash

    10                  )

    11 double

    12 connect by level<=>

    (13) as xmlcontent

    14 double

    15 connect by level<= 20000="">

    Table created.

    SQL > call dbms_stats.gather_table_stats (user, 'MASTER_TABLE');

    Calls made.

    SQL > create table (master_table_xml)

    Identification number 2

    3, name varchar2 (30)

    4, xmlcontent xmltype

    5)

    binary xmltype 6 securefile XML column xmlcontent store

    7;

    Table created.

    SQL > create materialized view master_table_mv

    2 build postponed

    full 3 Refresh on demand

    4, as

    5. Select t.id

    6, t.nom

    7       , x.*

    master_table_xml 8 t

    9, xmltable ('/ r' in passing t.xmlcontent)

    10 columns

    11 path of varchar2 (50) ThisIsElement1 'ThisIsElement1 '.

    12, path of varchar2 (50) ThisIsElement2 'ThisIsElement2 '.

    13, path of varchar2 (50) ThisIsElement3 'ThisIsElement3 '.

    14, path of varchar2 (50) ThisIsElement4 'ThisIsElement4 '.

    15 road of varchar2 (50) ThisIsElement5 'ThisIsElement5 '.

    16, road of varchar2 (50) ThisIsElement6 'ThisIsElement6 '.

    17 road of varchar2 (50) ThisIsElement7 'ThisIsElement7 '.

    18 road of varchar2 (50) ThisIsElement8 'ThisIsElement8 '.

    19 road to varchar2 (50) ThisIsElement9 'ThisIsElement9 '.

    20, path of varchar2 (50) ThisIsElement10 'ThisIsElement10 '.

    21, road to varchar2 (50) ThisIsElement11 'ThisIsElement11 '.

    22 road of varchar2 (50) ThisIsElement12 'ThisIsElement12 '.

    23 road of varchar2 (50) ThisIsElement13 'ThisIsElement13 '.

    24, path of varchar2 (50) ThisIsElement14 'ThisIsElement14 '.

    25 road of varchar2 (50) ThisIsElement15 'ThisIsElement15 '.

    26, path of varchar2 (50) ThisIsElement16 'ThisIsElement16 '.

    27, way to varchar2 (50) ThisIsElement17 'ThisIsElement17 '.

    28 road of varchar2 (50) ThisIsElement18 'ThisIsElement18 '.

    29 road of varchar2 (50) ThisIsElement19 'ThisIsElement19 '.

    30, path of varchar2 (50) ThisIsElement20 'ThisIsElement20 '.

    31, path of varchar2 (50) ThisIsElement21 'ThisIsElement21 '.

    32 road of varchar2 (50) ThisIsElement22 'ThisIsElement22 '.

    33, path of varchar2 (50) ThisIsElement23 'ThisIsElement23 '.

    34 road of varchar2 (50) ThisIsElement24 'ThisIsElement24 '.

    35 road of varchar2 (50) ThisIsElement25 'ThisIsElement25 '.

    36, road to varchar2 (50) ThisIsElement26 'ThisIsElement26 '.

    37, path of varchar2 (50) ThisIsElement27 'ThisIsElement27 '.

    38, path of varchar2 (50) ThisIsElement28 'ThisIsElement28 '.

    39, path of varchar2 (50) ThisIsElement29 'ThisIsElement29 '.

    40, road of varchar2 (50) ThisIsElement30 'ThisIsElement30 '.

    41 road of varchar2 (50) ThisIsElement31 'ThisIsElement31 '.

    42, path of varchar2 (50) ThisIsElement32 'ThisIsElement32 '.

    43, road to varchar2 (50) ThisIsElement33 'ThisIsElement33 '.

    44, path of varchar2 (50) ThisIsElement34 'ThisIsElement34 '.

    45, path of varchar2 (50) ThisIsElement35 'ThisIsElement35 '.

    46, path of varchar2 (50) ThisIsElement36 'ThisIsElement36 '.

    47, path of varchar2 (50) ThisIsElement37 'ThisIsElement37 '.

    48, path of varchar2 (50) ThisIsElement38 'ThisIsElement38 '.

    49, path of varchar2 (50) ThisIsElement39 'ThisIsElement39 '.

    50 road of varchar2 (50) ThisIsElement40 'ThisIsElement40 '.

    51, path of varchar2 (50) ThisIsElement41 'ThisIsElement41 '.

    52, path of varchar2 (50) ThisIsElement42 'ThisIsElement42 '.

    53, path of varchar2 (50) ThisIsElement43 'ThisIsElement43 '.

    54, path of varchar2 (50) ThisIsElement44 'ThisIsElement44 '.

    55 road of varchar2 (50) ThisIsElement45 'ThisIsElement45 '.

    56, path of varchar2 (50) ThisIsElement46 'ThisIsElement46 '.

    57, path of varchar2 (50) ThisIsElement47 'ThisIsElement47 '.

    58 road of varchar2 (50) ThisIsElement48 'ThisIsElement48 '.

    59 road of varchar2 (50) ThisIsElement49 'ThisIsElement49 '.

    60 road of varchar2 (50) ThisIsElement50 'ThisIsElement50 '.

    (61) x;

    Materialized view created.

    The discount is then performed in two steps:

    1. INSERT INTO master_table_xml
    2. Refresh the MVIEW

    (Note: as we insert in an XMLType column, we need an XML (only root) document this time)

    SQL > set timing on

    SQL >

    SQL > truncate table master_table_xml;

    Table truncated.

    Elapsed time: 00:00:00.27

    SQL >

    SQL > insert into master_table_xml

    2. select id

    3, name

    4, xmlparse (document '' |) XmlContent |'')

    5 master_table;

    20000 rows created.

    Elapsed time: 00:04:38.72

    SQL >

    SQL > call dbms_mview.refresh ('MASTER_TABLE_MV');

    Calls made.

    Elapsed time: 00:00:22.42

    SQL >

    SQL > select count (*) in the master_table_mv;

    COUNT (*)

    ----------

    20000

    Elapsed time: 00:00:01.38

    SQL > truncate table master_table_xml;

    Table truncated.

    Elapsed time: 00:00:00.41

  • Cannot change the number of laptop Apple ID because I moved from the India

    I can't change the number of mobile for notifications in my Apple/iCloud account, it shows my old Indian number but I moved from the India and now Iam in Tanzania. He asked security questions that I don't even remember...

    I can not yet implemented iCloud keychain...

    Need help, he cannot set up on my Mac, the iPhone or iPad

    You can change preferences/iCloud/Keychain/options of the system?

  • Can I change the DPI setting by device

    It's frustrating that there is a systemic configuration option for adjusting the speed of the mouse (DPI to the movement of the mouse). It is too fast for the slow or external mouse to the trackpad. Most of the users do not change the setting when switching from one to the other every day. Toshiba uses the Microsoft ie driver. no additional device control. Toshiba is missing a manual, the driver and the FAQ for their mouse. Support is limited to perhaps a phone number. No e-mail, no Web site feedback contact.
    The bellows of tags in this kind of forum is also very limited and not user-friendly. A tag which out of the following is the problem?
    mouse, W15, 10 windows driver, settings

    Hello tim_chambers

    Settings of the mouse was always part of the operating system installed.

    If you need adjust your mouse settings, in windows 10, simply go to settings/DEVICES/Mouse & touchpad (use 'option of additional mouse', at the bottom of the page if you need or search advanced settings)

  • How I bounce back without having to change the setting of 'Protection against overload only' amateur off EACH time?

    How I bounce back without having to change the setting of 'Protection against overload only' amateur off EACH time?

    This setting should be preserved, once you set it... so I'm not sure why you have to define every time...

    Then... Make sure that you put on ALL the tools of the art of logic in the preferences of LPX...

    Otherwise... you may need to reset the prefs of LPX... Put all the Tools Advanced again and the other preferences you have set... and see if that fixes things for you...

    You can resolve many issues by restoring Logic Pro X back to its original settings. This will not affect your media files. To reset your settings preferences of the user to Logic Pro X to their original state, do the following:

    1. Logic Pro X to quit smoking
    2. In the Finder, select go to folder menu reach.
    3. Type ~/Library/Preferences in the field 'go to folder '.
    4. Press the Go button.
    5. Delete the com.apple.logic10.plist file from the Preferences folder. Note that if you set custom shortcuts, it will reset to the default values. You can export your custom key as a preset before performing this step. See the Logic Pro X user manual for details on how to do this.
    6. If you are having problems with a control surface in Logic Pro X, you can also delete the com.apple.logic.pro.cs file in the Preferences folder.
    7. Restart the computer.

    Note: If you cannot find the files listed above, you don't follow the instructions properly!

  • Can someone tell me how to change the random setting when playing iTunes on my iPad Pro?

    I am playing iTunes on my iPad Pro and may not know how to change random playback settings.  I see the taskbar shuffle just above the playlist with a shuffle icon.  But touching this icon seems truly random for a different song rather than change the setting.  Thanks for any help you can offer.

    Hey zip66215,

    I understand you want to learn more about the playback controls for the application of the music on your iPad. I can help you with that.

    Generally, you will begin to see a list of your music and when you play a song, the mini-Player will appear at the bottom of different tabs of the music app. If you type the mini Player, it will bring to the top of the current playback with all different game controls screen. From there, you can repeat and shuffle settings. Take a look at the screen shots to learn more of what I am referring to the as well as research and the link below.

    Play music
    http://help.Apple.com/iPad/9/#/iPad0136c954

    Let me know if this clears it for you.

    Take care

  • Try to set / change the password BIOS admin via the script WMI on ThinkStation D20

    Hello Lenovo Community!

    Start using the WMI Lenovo_SetBiosSetting class on a D20 system.

    If I understand the documentation that there is a limitation on the BIOS password in the past, but I updated to the latest BIOS Rev who support States was added for this feature.

    I use a script that changes the supervisor on computers password successfully thinkpad, but when even to run the script from command line on the D20 system it returns "SUCCESS" however to change the password did not effect!

    I'm using the right parameters are the standard of lenovo

    ' pap, oldpass newpass, ascii, we.

    I thought maybe "pap" is not the correct setting for password Admin on the D20, however the WMI available, posted 2010 guide, does not show otherwise.

    Someone at - it an example script that they can display successfully change the password on a D20 system?

    Please and thx!

    Did you run the SaveSetting script after changing the password?

    You can get the SaveSetting script from the sample scripts D20 located at the following link:

    http://support.Lenovo.com/en_US/downloads/detail.page?docid=UM002033

    You can use the script SetAdminPassword from the library of scripts of series E, then a follow-up that with something like what follows before restarting:

    "cscript SaveSetting.vbs" originalpwd, ascii, we.

    Replace 'originalpwd' with all what your existing password was at the time wherever you booted the system.

  • When I change the setting by LabVIEW on my device, I see change on the monitor of the device?

    When I change the setting by LabVIEW on my device, I see change on the monitor of the device?

    This question should be addressed to the manufacturer of the device. From your previous posts, I guess you use GPIB or serial. If the unit has received the order, the manufacturer should be able to tell if no indicators on the device to update when the order is received. Based on my experience, however, the device indicators will most likely update on receipt of an order successfully.

  • LaserJet Pro CM1415fnw: Change the default setting for the file tif to pdf on LaserJet Pro CM1415fnw

    How can I change the default setting from tif to PDF when scanning?  I can't find the "Advanced settings".

    Hi @kkeach,

    Welcome to the Forums of HP Support! I see that you want to change the setting in PDF format when scanning documents. I want to help you solve this problem. If this helps you to find a solution, please click on the button "Accept as Solution" down below in this message. If you want to say thanks for my effort to help, click on the 'Thumbs Up' to give me a Kudos.

    Did you download and install the drivers and software HP LaserJet Pro CM1415 multifunction printer full color or a Windows Update used to install the drivers?

    You use the HP scanning software?

    I submitted this document to change scanning settings using the HP scanning software.

    Multifunctional HP LaserJet printers - how to scan (Windows 8).

    Here is a screenshot of the HP Scan software and what options should be available:

    If there is anything else I can help you, let me know. Thank you.

  • How can I change the time on my computer from 24 hour to 12 hour clock clock?

    How can I change the time on my computer from 24 hour to 12 hour clock clock?

    How can I change the time on my computer from 24 hour to 12 hour clock clock?

    Here is the method for Windows 7. If you are using Vista, there may be a slight difference, but basic procedures should be similar...

    Start > Control Panel > region and language > Format > more settings > time tab >

    under time format, set hh: mm hh: mm

    H = 24 hours

    h = 12 hours

    Click OK when finished.

Maybe you are looking for

  • Siri does not recognize the voice.

    My Apple TV remote Siri works fine, but only of Siri does not recognize the voice. I just bought last month. No gross State aid.

  • What external DVD burner for MacBook Pro late 2011

    My internal superdrive drive just died, a kind of inner part rattling... sounded like a trombone bouncing around. Has to be replaced. Wanted to buy an external drive of Supe but it won't work with my MacBook Pro late 2011. I need to burn DVDs for my

  • Charging constant unusable hotmail

    The circle of reloading will stops and goes and stops when I open the e-mail on the Hotmail site. Photos flash emails (appear-disappear-reload, etc., constantly). Everything worked perfectly this morning and then this afternoon new version installed,

  • Pavilion dm1: I need help

    I need help I don't know administration pAsseord or power on password what can I do

  • IQ524: find product key number

    I have an IQ524 all-in-one computer, I received the computer with Vista and a few months later I received a package of HP discs for windows 7, in which I installed quickly. I want to install windows 10. I just found out that I can go to Cnet, who sen