Should what data type I use to store more than 4000 characters in a column

Hello friends,

I am currently using the suite oracle version for my database:

SQL > select * from v version $;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0
PL/SQL release 11.1.0.6.0

SQL > create table clobexample (clob t1);

SQL > insert into clobexample values ('aaaaaaaaaaaaaaaaaaaa... ») ;

Error in the command line: 2 column: 8
Error report:
SQL error: ORA-01704: string literal too long
01704 00000 - "string literal too long."
* Cause: The string literal is longer than 4000 characters.
* Action: Use a string literal of more than 4,000 characters.
Longer values can only be entered using bind variables.

My request is that what kind of data can I use table to enter more than 4000 characters in the table, I even tried with clob (example) above, but it is not favourable.
Is there another way of letting?

Please help me.
Thank you in advance.
Kind regards.

Hello

You can use the same CLOB, but you cannot insert directly, you may need to use the pl/sql.

Try the method mentioned in this link.

http://www.orafaq.com/Forum/t/48485/0/

see you soon

VT

Tags: Database

Similar Questions

  • How to store more than 4000 characters in a table

    I have a requirement to store 4000 + string in the table. CLOB and BLOB cannot me because he has limitations of 4000 characters.

    Any suggestions please.

    Pentaho seems based jdbc then look for an example of a jdbc clob insertion.
    For example http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/clob10g/handlingclobsinoraclejdbc10g.html

    This will probably be a better approach than messing around with blocks anonymous plsql, etc. that do not sound relevant to what you're trying to reach really.

    This forum comment made me smile of the 'Integration of data head' @ Pentaho can:
    http://forums.Pentaho.com/showthread.php?62231-insert-a-string-in-a-CLOB

    It should work just fine. You probably need to swap your JDBC driver or something.
    Oracle can be mysterious in that dept. 
    
    xxx xxxxxx, Chief Data Integration
    Pentaho, Open Source Business Intelligence
    

    Reassuring.

  • New own formatted Hard Drive install an OEM of Vista 32 version updating Win7 64. Should what product key I use?

    I have a laptop with Windows Vista Home Basic 32-bit installed OEM.

    I created the Windows Vista Home Basic 32 product recovery discs and have the product key for the recovery disc.

    I bought Windows 7 Ultimate DVD of the "Microsoft Store" which includes "Windows Anytime Upgrade"

    I upgraded the OEM Vista to Win7 Ultimate 32. I recorded the new product key of the Win7 Ultimate Upgrade during the upgrade process.

    I replaced the HARD drive and you want to do a clean install of Windows 7 Ultimate 64-bit using the purchased 7 Win Ultimate DVD.

    My laptop model is capable of 64-bit.

    I have not yet replaced the HARD drive, but I want to be sure that I can activate the Win7 Ultimate 64-bit.

    Should what product key I use to activate Win7 Ultimate 64-bit.

    Just boot from the DVD Windows 7 Ultimate 64 after that I installed the own HARD drive?

    Well, looks like you have a copy of the full version of Windows 7, go just to do a clean install on the new hard drive and turn it back on by phone.

    Boot from the Windows 7 DVD

    Click Install now

    Accept the license agreement

    When the option is displayed to select a type of installation, click (Custom advanced)

    Click on drive Options

    Select the disc/s click on Delete

    Click new

    Click on apply

    Click OK

    Click Format, and then click next to proceed with the installation

  • How to determine if a data type is used in the comic book?

    Background:
    I am currently planning to install GoldenGate proof of Concept and have questions about the data types supported by the capture mode (pg 1-5, 1-6 in the installation guide). Is not in itself a matter of GoldenGate.

    Our source and target databases are 11.2.0.2
    The GG server will be 11.2.0.3
    I'm new to the environment and want to confirm that we needn't upgrade the source and target the DBs to 11.2.0.3 in order to use the integrated capture mode. This forces me to know if 3 specific types of data are used in the comics. The problem is, Oracle docs aren't clear to me, when they refer to 3 specific data types.

    Here's the question:

    Does anyone know how I can confirm that the following 3 data types are used in the DB by querying the dictionary: "XML stored in binary form',"XML stored as object-relational","abstract data Type "?

    If I select the types of data separate from dba_tab_columns, I see no data enumerated type that indicates, for example, that an XML string is stored as a ' binary '.

    For me, when Oracle made reference to a "stored as binary XML" on page 1-6 on the installation guide, I guess that makes Oracle refers to a BLOB that contains an XML reference, but I can't be sure.

    Someone has an idea that they could share? I just want to confirm that we do not have to upgrade our source and target DBs at 11.2.0.3 by searching in the database is possible to confirm that the above 3 data types are not used by the application.

    Thanks in advance for any help.
    Tony G

    You should find XML columns stored in binary form or CLOB using the DBA_XML_TAB_COLS view referenced in http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb01int.htm#g644983.

    You should find XML tables using storage relational object in the view DBA_OBJECT_TABLES with:

    select
    owner,
    table_name,
    table_type
    from
    dba_object_tables
    where
    table_type='XMLTYPE';
    

    To abstract data type, you can query DBA_TAB_COLUMNS using ADT as literal for DATA_TYPE column:

    SQL> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    
    SQL> drop table t purge;
    
    Table dropped.
    
    SQL> drop type adt;
    
    Type dropped.
    
    SQL> --
    SQL> create type adt is object
      2  (
      3   c1 number,
      4   c2 varchar2(30)
      5  ) final
      6  /
    
    Type created.
    
    SQL> show errors
    No errors.
    SQL> create table t
      2  (
      3  c adt
      4  )
      5  /
    
    Table created.
    
    SQL> show errors
    No errors.
    SQL> --
    SQL> column table_name format a10
    SQL> column column_name format a10
    SQL> column data_type format a10
    SQL> select
      2  table_name,
      3  column_name,
      4  data_type
      5  from user_tab_columns
      6  where
      7  table_name='T';
    
    TABLE_NAME COLUMN_NAM DATA_TYPE
    ---------- ---------- ----------
    T          C          ADT
    

    Edited by: P. Forstmann on 8 Apr. 2013 20:28

    Edited by: P. Forstmann on 8 Apr. 2013 21:05

  • Should what media player I use to open on my VISTA PC .mov videos?

    Computer is a Dell XPS 420 Windows Vista SP2 (Home Premium)
    32-bit Internet Explorer 9 Panda anti-virus Safari is also installed.

    Went backward from IE8 to IE9 four times, but have been using IE9 for 6 months.
    IE9 is as high as I can go with VISTA. At the moment I'm NOT able to get a newer version
    Windows. Thus, any help will be greatly appreciated.

    NO, I made NO changes to my computer.

    I took a video on my Iphone 5 on 11 June 2014. I can see it on my phone. When I have this message to other cell phones, they can see it. When I send it to emails, no one can open it except gmail. We get the message that there is no Association set for .mov. I went .mov in the list of the association and "attached" to Windows Media Player, which does not recognize it, or open it. Should what media player I use?

    HELP PLEASE!

    .mov is not a format very widely compatible. Anyone who designs will require a third-party video player, such as Apple's QuickTime. A better solution is to save all in another format, such as .mp4. (Keep in mind that I know almost nothing about iPhones). Maybe you could use a Media Converter. (be careful with these)
  • Should what predefined order I use when using videos of 1920 x 1080 29.97 fps xperia z5?

    Should what predefined order I use when using videos of 1920 x 1080 29.97 fps xperia z5?

    Someone has an idea?

    Must I provide additional information and if so what?

    Thank you!

    Hi Michel,.

    You may need to check this: FAQ: how to choose the right sequence settings?

    Kind regards

    Navdeep Pandey

  • What is the best method to manage more than 100 oracle instance?

    our company have run on the 100 on VM Linux oracle instance.

    What is the best method to manage more than 100 oracle instance? use Oracle Enterprise Manager?

    Thank you.

    How your company grow to 100 cases?  There would be some oversight in place as he grew.

    What do you exactly mean by "manage"?  Monitor?  Start/stop?  Performance optimization?  Add storage / Storage?  Backup?

    You may need a mixture of methods / facilities.  Again, it should be obvious that you have something in place already - if you replace it entirely?

    Hemant K Collette

  • The AirPod are compatible only with iphone 7? Or we can use it with more than 6 s... or any android device?

    The AirPod are compatible only with iphone 7? Or we can use it with more than 6 s... or any android device?

    Here are the tech specs: http://www.apple.com/shop/product/MMEF2AM/A/airpods

    They are bluetooth devices, so they work with the iPhone 5 or more.

    See you soon,.

    GB

  • My keyboard is not save when I try to use a button more than once.

    My keyboard is not recording that I use a button more than once and it's causing problems with typing and use / the overall experience from my computer.
    If I try to go back an entire word, it will be only a matter of erasing and then the keyboard does not recognize that I use the back button back until I have use another first. Essentially, I am unable to use a button more than once, unless I hit another key.
    This problem does not extend to the buttons of the mouse and trackpad.
    This problem is not just with the keys to the letter, with all the control keys.
    I use a HP Mini with Windows XP Professional.

    Hi Danielle,

    The first two thoughts that come to mind are supposed to check and "fiddling" the following:

    1 Control Panel > keyboard > Ketboard Repeat Delay and/or keyboard repeat rate.

    2 panel > Ease of Access Center > facilitate the use of the keyboard > disable filter keys or to adjust the applicable rates, if you want to use them.

    I hope this helps.

    Good luck!

    Kosh

  • Smartphones blackBerry how to type more than 160 characters in a text Message

    Is there anyway that I can write more than 160 characters when sending a text message?  I wish I could just keep typing and having the device knows that I want to send 2 messages.  Now, I have to save my text, write my next message and then send them at the same time.  It's a little ridiculous.  Any ideas?

    I'm guessing that you're on Verizon, right?

    Only 160 character limit is that SMS (Short Message Service), it's all about. Some carriers allow you to type and type and sends multiple SMS messages. Verizon on the BlackBerry does not work.

    It is a limitation of the Association, not a function of the BlackBerry.

  • Is it possible to use LightRoom on more than 2 pc and how?

    Hello

    That someone answer this question?

    Is it possible to use LightRoom on more than 2 pc and how?

    Because I'm dependencies on PC and laptop 2, I realized I'm allowed to have only 2 installed LR. Is it possible to use it on 3?

    Thanks for your help read you soon

    Greatings from Geneva Switzerland

    Phil

    You must read the exact terms of the license.

    Photoshop Lightroom - Adobe Labs end-user license agreement

    2.4 portable or home computer use. The primary user of the computer on which the software is installed may install a second copy of the software for his or her use exclusive on a laptop or a computer located at his or her home, the software on the portable or home computer is not used at the same time as the software on the primary computer.

    If you have Lightroom installed on computers A and B, and then you uninstall a license on computer B, you could install Lightroom on computer C, it is always very well because you have installed on two computers A and C.

  • can I use photoshop on more than 1 computer?

    Can I use photoshop on more than 1 computer at home?

    You can install an unlimited number of computers, https://creative.adobe.com/products/creative-cloud

    You can only be signed in to, at most, two computers to everything once, but adobe made it so easy to sign in and out, which is not really any limitation for a single user.

  • Can I use CC on more than two devices (I have 3 Mac and 1 PC in the House) if I deactivate those that I do not?

    Can I use CC on more than two devices (I have 3 Mac and 1 PC in the House) if I deactivate those that I do not?

    Thank you

    Hi ingrid,.

    You can use Adobe Creative cloud on 2 machines.

    If you disconnect from the creative cloud on 1 machine which you use so you can activate it on another computer.

    Please see the help document:

    https://helpx.Adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

    Kind regards

    Sheena

  • Should what cooling pad I use?

    Hi, I have a HP dv6 6c71el and I use it for games usually.

    Should what cooling package I buy for it?

    Thank you

    Hi Sekto22. I've never personally used a notebook cooler. Your best bet would be to check some reviews online, YouTube can be particularly useful when searching for new products. There is also which may have other options notebook coolers. This video is a bit quiet, but give you some interesting information about what seems to be a high end cooler: Zalman ZM-NC3500 MORE Notebook Cooler Unboxing & test.  I'm not recommending this particular product, but offering a starting point for you.

    Here is some general information on the reduction of heat: reduce the heat inside the PC to prevent overheating

    I hope this helps.

  • Should what color settings I use in Photoshop?

    Capture.PNG


    These parameters ^ are good? Can I use Adobe 1998 or Profile (↓) default monitor


    Capture2.PNG


    Also should what color settings I set in the color management window. Right now the default profile is set to Adobe RGB 1998 (↓).


    Capture3.PNG


    Now, workspace is set to Adobe RGB 1998. I usually joined Adobe 1998 in most of the Images. I know the difference between famous color profiles (Adobe 1998, sRGB, Prophoto..)

    When I use view-Proof Setup - Monitor RGB colors seem more vivid (and natural).


    Also the images when opened in Adobe Ps seems different when displayed in the default photo viewer windows (and wallpaper)... But Adobe RGB 1998 default in Windows Color Management. Thus, the Ps and photo viewer (or wallpaper) image should look even. But it's not. Why?


    Adobe Photoshop is a software managed on the basis of the color... This means that the settings in Windows Color Management has no effect on the display how Photoshop colors?


    I've read dozens of Web pages about all this. Some of them told to change workspace - RGB to Adobe RGB 1998.


    Also every monitor is different then how the uniformity of color is maintained around the world? Not all hardware users calibrate their display.

    I know there are a lot of questions above. I'm confused. Searching for this for months.


    Thank you for giving your time to answer these questions.

    Workspace must be a standard space - sRGB, Adobe RGB, ProPhoto. In fact, it is not all that matters, because the embedded document profile always overwrites. In other words, as long as you have defined strategies to "Preserve embedded profiles", which is the only sensitive parameter. You have it, so that's fine.

    Do not use the monitor here profile! The color settings dialog box is to manage document profiles. The monitor profile is a different animal in all, serve a different purpose.

    The monitor profile is implemented at the level of the system - the calibrator will do that for you BTW - and will be used by color management applications without any intervention from the user. The profile appears in the color management > devices dialog. This is your last screenshot. The monitor profile must be marked 'default'.

    You need both of these profiles, monitor and document, for a managed path color display. The source profile is converted on the fly, by application, on the monitor profile. These converted values are sent to the screen. In this way the display is exactly corrected for, much more precise than what can be achieved simply by adjusting the monitor.

    It seems that you are using a canned profile, supplied with the monitor. Just mark it by default and that's all. Note that you you get a much better result with the help of a Stallion! Manufacturer profiles, despite assertions to the contrary, are generic and not designed specifically for your device. They are also surprisingly often defective/broken. Come if you encounter specific problems.

Maybe you are looking for