Alternative for varchar2 because limitaion?

Hello
I developed a screen used to view a SQL to forms and export the result in excel.
In this module, I send you just the sql-based report selection in a list box. The selection list became too long. I intend to generate the list based on user-level permissions. To do this, I have to store the SQL code in a table as different lines. It seems to be a limitation of varchar2 (4000) for the SQL storage. Is there an alternative? Is it possible using the BLOB data type? If so, how to store and retrieve data in BLOB data type?

Iqbal

Hi Kültepe,
As Philippe said, you can use the DBMS_LOB package to store long data in the CLOB.

I tried a small example, I think it can help you.


Create a table lob_contain
(ID NUMBER,
lob_col CLOB default empty_clob());

Creating a block to write to the LOB

Declare

lob_locator CLOB;

text varchar2(200) := 'Resume NAme - G.Subramanian KAushik City - Chennai
Location - triplicane Occupation - Software engineer Hobbies - Reading astrology
books,nemerology, Playing video games';

amount number;

offset integer;

Begin

-- Setting the amount to be written
amount := length(text);

-- Lock the record in the table lob_contain to get a expicit lock over the record
Select lob_ptr into lob_locator from lob_contain where id = 1 FOR UPDATE;

--Setting the Offset
offset := DBMS_LOB.GETLENGTH(lob_locator)+2;

--Write the text to the CLOB table
DBMS_LOB.WRITE(lob_locator,amount,offset,text);
COMMIT;
END;

You can read the data entered into a similar to a VARCHAR2 column CLOB

----------
Mark it with goodness, if this can help thank you :-)

Published by: Patrice Kaushik Subramanian on May 6, 2009 18:28

Tags: Oracle Development

Similar Questions

  • What can I do if I can't read that the key is for Windows because of the part of the key on the sticker has rubbed off and must be re-installed Windows?

    The key to Windows inlegible sticker, want to reinstall windows

    What can I do if I can't read that the key is for Windows because of the part of the key on the sticker has rubbed off and must be re-installed Windows?  The product ID is located under the control panel > system maintenance > system > Windows Activation of a useful?  I don't want to end up with a Clipboard after that reinstalling Windows because I have a legitimate copy of Windows, but the key became disfigured over time, since it's on the bottom of the laptop.  I have Windows Vista Home Premium SP 2 running on a Dell Inspiron it's way outside the guarantee of its window.

    Thank you!

    Hello

    If you have a product key on a sticker in your computer, this means that you have an OEM product key. If you have OEM keys, this means that the windows you have here is preinstalled.

    If you reinstall windows OEM copy, you must use either the original manufacturer recovery disk or the recovery partition. If you use one of the people, should not be put to any start-up because the windows OEM versions are technically preactivated.

    If you don't have a disc or a recovery partition, you can contact your OEM (DELL) so that they can send you a disk. Alternatively, you can contact Microsoft Support just in case. : D

  • Why download it Firefox don't offer me an iso language choice immediately decisive I love this download in Dutch, for example, because I am for example Brussels - a cosmopolitan city?

    Why download it Firefox don't offer me an iso language choice immediately decisive I love this download in Dutch, for example, because I am for example Brussels - a cosmopolitan city?
    When going to Firefox.com...yet and clicking on the download button, immediately I went to the Dutch / Nederlands version of the site and I only have the choice to download Firefox Dutch/Nederlands.
    I want the English version. Would it not be better to ALSO have an option to select the language whenever the software detects that you get your Internet from?

    As people displayed, you can select the language you want to instead link systems & languages under the download button. Or on https://www.mozilla.org/nl/firefox/fx/ , it will be the Andere systemen en talen

  • Error "Windows Update cannot currently check for updates, because the service is not running." You may have to restart your computer. "after replacing hard drive

    I've upgraded to a replacement hard drive, but Windows Update won't work now. Everything else seems OK.

    The error is: "Windows Update cannot currently check for updates, because the service is not running." You may have to restart your computer.

    I restarted the computer a couple of times and in respect of the Services runs it the Windows Update service.

    Operating system is Vista 64 bit.

    Original title: Windows Update

    I've upgraded to a replacement hard drive, but Windows Update won't work now. Everything else seems OK.

    The error is: "Windows Update cannot currently check for updates, because the service is not running." You may have to restart your computer.

    I restarted the computer a couple of times and in respect of the Services runs it the Windows Update service.

    Operating system is Vista 64 bit.

    After the upgrade to the bigger hard disk, I found that the technology Intel Rapid Storage Technology driver should be updated. Once this is done Windows update ran properly. Microsoft Fixit did not help in this circumstance.

  • Cannot install Windows update, the error message "" Windows update canoe currently check for updates, because the service is not running ".

    Initial version of updated title: windows

    My "Windows update" is not updated. The problem started recently and its shows the error message "Windows update canoe currently check for updates, because the service is not running. You may have to restart your computer "." I tried it with several reboots, but there still is not up to date. Kindly help.

    Hello

    Have you made changes on the computer before this problem?

    Method 1:

     

    Troubleshoot problems with installing updates.

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-installing-updates

    Method 2:

    Try the procedure described in the following article and check the status of the issue.

    http://support.Microsoft.com/kb/822798

    Restart the computer and check it please for windows update.

    Hope the above information is helpful.

  • Can't get updates for Windows, "Windows Update cannot currently check for updates, because the service is not running." You may need. "" Restart your computer.

    When I try to install the updates I receive the message "Windows Update cannot currently check for updates, because the service is not running."  You may need. "" Restart your computer,   It does not also. check me the update history

    Hello

    1. you made any hardware or software changes the computer recently?

    2. What is the number of update?

    3. do you get this message for all the updates?

    Follow these methods and check if that helps:

    Method 1:

    Step 1.

    Unplug all external devices, restart the computer, and then try to install updates.

    Step 2:

    I suggest that you follow the steps mentioned and try to start the Windows update service.

    Check if the following services are running.

    (a) Background Intelligent Transfer Service

    (b) cryptographic Service

    (c) Windows Update

    (d) Windows Installer

    a. Click Start, type "services.msc" (without the quotes) and press ENTER.

    b. double-click the service name in the Services list.

    c. under the general tab, next to startup type, make sure that automatic is selected.

    d. If the service is not already running, under Service status, click Start and then click OK.

    e. once the services are started and defined as running, try to install the updates and check.

    Method 2.

    You can follow the steps in this article: http://support.microsoft.com/kb/2509997

    Warning check disk.

    Important: All by performing the check disk on the hard drive if bad sectors are found then check disk try to repair this area, all available data on this sector can be lost.

    Registry warning

    To do: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/)

    How to back up and restore the registry in Windows

    See also: the problems with installing updates

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-installing-updates

  • "The Windows Update cannot currently Check For Updates, because the Service is not running. You may have to restart your computer.

    Unlike before, I can't launch the Windows automatic update service now, I suspect that my computer is infected virus, I just install demo version free of McAfee internet security and run a full scan, no infection has been detected.

    Description:

    When I click on Windows update for all programs at startup, pop out window update, and then I click on "check update", out another part: list "" Windows Update cannot currently Check For Updates, because the Service is not running. "You may need to restart your calculater ', then I restart the computer a few times, the same problem still persists. before I was using microsoft essential secruty with no problems, but now I can't seem to complete the definition of update, so I think this problem could be related to Windows Update and decide to uninstall MSE and replace it with McAfee, but it does not work.

    any help and suggestions would be very appreciated.

    Hello

    Steps 2 to 6 to identify the program that is causing the problem if the clean boot solves the problem.

    Try the procedure described in the following article to improve your computer's performance.

    Optimize Windows 7 for better performance.

    http://Windows.Microsoft.com/en-us/Windows7/optimize-Windows-7-for-better-performance

    Ways to improve your computer's performance.

    http://Windows.Microsoft.com/en-us/Windows7/ways-to-improve-your-computers-performance

  • How can I download an alternative for my email stationery please?

    Original title: Emails

    Have recently changed to Windows 7 Starter / Windows Live Mail in Windows XP/Outlook Express

    How can I download an alternative for my email stationery please?

    Have looked for a way, but said that I had to go in Windows Live Mail/tools/Option/composition/stationery/create new...

    no problem getting to the extent of the new message, but don't have no option of stationery!

    hope someone can advise me please

    The game, 12 March 2015 15:52:42 + 0000, Ben46 wrote:

    Wish I still had Outlook Express!

    Like you, I don't like Windows Live Mail at all. You cannot run Outlook
    Express on Windows 7, but there are many other e-mail programs, you can
    use, some by Microsoft and some third party, some for sale and
    free. And in my opinion, much better than Outlook Express. I have
    recommend you to try several and decide for yourself as you
    as the best.

  • After installing Windows 7 using MDT, Windows displays the message "Windows Update cannot currently check for updates because the service is not running.

    Hi all

    I worked on creating a better system for my business get an OS up-to-date with all the required software, settings, and drivers. I have previously using WDS as autonomous and just syspreping images and pushing them up until he became incoherent and corrupting of the parts of the image. I did a little surfing on the web and discovered that many computing professionals use MDT to produce images of quality with all the customization they need. So that's the problem.

    The image works fine. I'm able to customize the way in which I need to and get most of my successful deployed pilots (problem with trackpad drivers), but the error message I get when I try to run a windows update is "windows that update cannot currently check for updates because the service is not running." After I received this message I check my services and it shows the update of Windows running service and long-term as well running services. Tried to restart as suggested and still no results. Undertook research for a possible fix and still nothing.

    Any help?

    It became quite a headache for me. Thank you guys

    Hello

    Thanks for posting your query in Microsoft Community.

    I understand that you have problems with the installation of Windows Update.

    If you your computer are connected to a domain network?

    If Yes, then post your query in TechNet forums because they have more expertise in this issue to help you better. Please follow the below link to do the same.

    T echNet Forums for Windows 7 
    http://social.technet.Microsoft.com/forums/Windows/en-us/home?Forum=w7itpronetworking

    Hope this information helps.

  • Alternatives for Nikon strap if you use OS El Capitan? It is completely inexcusable and has gone unresolved too long!

    Alternatives for Nikon strap if you use OS El Capitan? It is completely inexcusable and has gone unresolved too long!

    It has been corrected in Lightroom CC 2015.4 / LR 6.4.

  • Hello, I have just purchace pdf to word and excel converter and pay $ 24, but finally it's completely uselless for me because there no Greek language and convert the file completely incomprehensible... that I can speak for that?

    Hello, I have just purchace pdf to word and excel converter and pay $ 24, but finally it's completely uselless for me because there no Greek language and convert the file completely incomprehensible... that I can speak for that?

    Hi mariax7664987,

    Https://cloud.acrobat.com/ service export to Adobe PDF format is used to change the shape of PDF file format to other formats supported fire. His will not change the language of the PDF text.

    Kind regards
    Nicos

  • I live in Sweden, but I can't buy cloud creative for students because the system thinks that I'm living in the Mexico. How can I fix it?

    I live in Sweden, but I can't buy cloud creative for students because the system thinks that I'm living in the Mexico. How can I fix it?

    Please let me know in private message as if you were able to get it resolved or not.

    I can still track it for you.

    Concerning

    Stéphane

  • Hello.. I need to program installation adobe creative cloud for mac because it refuses to download on the site and when I press the download shows a blank white page. I want to send a direct download link

    Hello.. I need to program installation adobe creative cloud for mac because it refuses to download on the site and when I press the download shows a blank white page. I want to send a direct download link

    Hello

    Please see the below download link


    https://helpx.Adobe.com/creative-cloud/help/download-install-app.html

  • Alternative for the Group of

    Hi guys I need help with logic. For example, I have the table with the columns has and produce. Each account can so many products. Now I need SQL to see accounts that have produced only.

    A way of doing, by doing a group by and having count (Account) = 1. I need an alternative for this. Please help me with your ideas. Thanks in advance.
    SELECT  ACCOUNT
      FROM  (
             SELECT  ACCOUNT,
                     COUNT(*) OVER(PARTITION BY ACCOUNT) CNT
               FROM  YOUR_TABLE
            )
      WHERE CNT = 1
    

    SY.

  • Flex 4: what is an alternative for mx:html?

    There was formerly a < mx:HTML / > tag in Flex 3 to html to display, that has happened to him in Flex 4? What are the alternatives, if any?

    The htmlText property, which is simply based on the htmlText of the player's TextField property, supports a limited subset of HTML.

    If you use (which is based on the new framework of layout of text rather than TextField), you can use the TextConverter of TLF class to convert one same small subset of HTML in a TextFlow to be returned by the Spark TextArea.

    If you need a full HTML support outside AIR, you must create a browser or an iframe and float it on top of your Flex application so that it looks like it's part of the application.

    Players of the web do not include a HTML rendering engine as AIR because it would be the size of these too big players. For example, I believe that WebKit in AIR is greater than 10 MB of code.

    Gordon Smith

    Adobe Flex SDK team

Maybe you are looking for

  • WANT 750se: USB charging port

    I have a HP 750-100se ENVY. The Office has 4 ports USB at the back and 4 top / front, a total of 4 ports USB 3.0 divided 50-50. USB 3.0, two albums identified by an SS has a Flash to identify it. It is my understanding that the "BOLD" lightning USB p

  • Update to iTunes 12.2 and beyond features spinning beachball

    Model name: MacBook Pro Model identifier: MacBookPro11, 3 Processor name: Intel Core i7 Processor speed: 2.6 GHz Number of processors: 1 Total number of Cores: 4 (By heart) L2 Cache: 256 KB L3 Cache: 6 MB Memory: 16 GB Boot ROM version: MBP112.0138.B

  • "looking for credential tiles" - unsuccessful removal of Veriface and ReadyComm - HELP :(

    Hello I did some research and tried and called and did everything, but can't seem to get my Lenovo to play nice. I bought this computer only a month or two before and have placed since my materials of the entire work here so a total rebuild of the sy

  • Special characters in my wpa password can be introduced to officejet J4680c

    I have an officejet j4680c all-in-one, but I don't have a computer at the moment so I use my wireless printer using the application mobile ePrint. Recently, I changed the password wpa, but it includes a dollar sign. When I entered that code is there

  • How can I refresh the thumbnails in Windows Explorer?

    In Windows 7, Windows Explorer tries to display the contents of the subfolders under icon. It is a great way to see what is in multiple folders at the same time. However, when I create a new folder, it is assigned to the default folder icon - and I f