Default for clob

Hi friends,
I'm getting the below error when I use where clause in clob field.. mname is a clob field with default ' '
SQL>select * from test where mname=' ';
select * from test where mname=' '
ERROR at line 1:
ORA-00932: inconsistent datatypes: expected - got CLOBThanks a lot

SQL doesn't know how to compare CLOBs. Use DBMS_LOB.COMPARE:
SQL> create table test(
  2                    id number,
  3                    mname clob
  4                   )
  5  /
Table created.
SQL> insert
  2    into test
  3    values(
  4           1,
  5           ' '
  6          )
  7  /
1 row created.
SQL> insert
  2    into test
  3    values(
  4           2,
  5           'abc'
  6          )
  7  /
1 row created.
SQL> select  *
  2    from  test
  3    where mname = ' '
  4  /
  where mname = ' '
ERROR at line 3:
ORA-00932: inconsistent datatypes: expected - got CLOB
SQL> select  *
  2    from  test
  3    where dbms_lob.compare(mname,' ') = 0
  4  /
        ID MNAME
         1SY.
Edited by: Solomon Yakobson on Oct 10, 2012 3:47 PM

Similar Messages

  • UI defaults for LOV on report not working?

    Hello,
    I have a table called CUSTOMERS and an associated lookup table called DISCOUNT (each customer is associated to a discount level).
    I defined a complete set of UI-defaults for CUSTOMERS, containing a LOV-definition for the column DISCOUNT_ID (which is the FK to DISCOUNT).
    I specified that DISCOUNT_ID is to be "displayed as text(based on LOV)" as a report default.
    APEX (3.1.2) seems to ignore that completely when I create a new report and agree to use the UI defaults.
    I always get a column displayed as "standard report column" and no associated LOV.
    Am I doing anything wrong?
    Strangely, the similar setting for (tabular) form defaults works fine.
    Thanks in advance for any hint!
    Ingo

    Also Nelmaz,
    I have just checked OSS notes and found below note helpful to you:
    Note 1059465 - CN43N: Dynamic selections for scheduling data of WBS elemnts
    Symptom
    You cannot use transaction CN43N to create dynamic selections for scheduling data of WBS elements (table PRTE). You can use transaction CNS43 to do so.
    Hope this helps.
    Please assign points as way to say thanks

  • SQLloder scripts not getting generated for CLOBs

    I am trying to migrate MYSQL 3.23 database into Oracle 8.1.7 and after creating the Oracle model and after converting the MYSQL text datatype into CLOB of the Oracle model the SQLloader scripts is not getting generated for CLOB datatypes. I mean the scripts are getting created but there is no change in the script for CLOB datatype.
    The script generates the following for the table containing CLOB datatypes:
    mysqldump -h <HOST> -u <USERNAME> -p<PASSWORD> -T <DESTINATION_PATH> fields-terminated-by="<ec>" lines-terminated-by="<er>" test av_wbt_course
    Please let me know how to load data when the datatype is of CLOB ?

    I was able to resolve this issue by using OWM Oracle Migration instead of using offline method by sqlloader scripts.

  • Is there any way to set the default for *.doc document so that Pages opens them automatically?

    I have a number of Ms Word documents because I used to have Word for Mac before the last OS release.  Now, of course, when I double-click on them, I get a message saying that PowerPC isn't supported.
    Now Pages will open these files.  Is there any way to change the default for *.doc files so that a double-click will open them in Pages? 
    (Instead of me going to the trouble of finding out where they are actually located on the hard drive so that I can open pages and say - here, open this file--even though you didn't create it--)

    Click on a .doc file and type Cmnd I to open Get Info. In the Open with: menu select Pages, then click on Change All…
    Walt

  • How to create a block key default for documents created by MIRO?

    Hi All,
    How to create a block key (BSEG-ZLSPR) default for documents created by MIRO?
    Could anyone tell me?
    Thanks
    Gandalf

    HI,
    The payment block--BSEG-ZLSPR can be made defaulted by two  ways.
    Means you want to fix one value all the times for the same ,you have to do the same in Vendor master
    ie in the Vendor Master in the Payment Transactions Selection screen. make the Payment Block you want to be defaulted in MIRO.
    you can do for all vendor master in mass change -- XK99.(LFB1)
    if you are not OK with the Above .then there is another way to do the same
    it is by Screen layout setting in SHD0
    in this enter the Transaction MIRO and create a Transaction variant Z*** and click on create
    and also create a Screen variant in OMLRLIST 
    T code MIRO
    Screen variant name Z**
    Program-SAPLFDCB
    Screen Number 0020
    and create it .
    in creating ---enter the default value in the Payment block and in the varinat just check the box w.content
    KNow in SHd0 add this screen variant for the above Trasaction variant
    and then activate this trasaction variant by going into the tab Standard variants.
    so that when ever you do miro this variant will be called and you can get this payment block defaulted.
    hope so it helps
    Regards
    Anjanna

  • How to block vendor invoice default for a user

    Hi Experts,
    we want to block all vendor invoices of a particular user. Means when the user post the vendor invoice in FB60, all the invoices are posted but gone for payment block and the payment block option is set default for a particular user.
    please advice.
    Regards
    Aditya
    Edited by: Aadi sharma on Jun 28, 2011 2:41 PM

    Hi
    I do not think the functionality is available as a standard. You can look at the user exit SAPLF051, which comes close to your requirement.
    Regards
    Sanil Bhandari

  • Setting defaults for reminders in iCal

    Is it possible to set a default for reminder in iCal? I would like to set it at e-mail the day before. However, iCal seems to have a reminder default as an alert (which is simply a pop-up), not  e-mail. For every event I creat in iCal, I am having to manually put in the e-mail 1 day before. It doesn't remember the number of days either, because when I choose e-mail, it automatically displays 15 days. I know there's got to be some way to fix this. Any help will be appreciated.
    Thanks.
    Subbu44

    thats what we've been doing. Problem is its gets a bit tedious when you have to constantly go through this process (and it involves a few clicks to do so) each time you open a file or place an image.  The usual default is for files to be listed by name so we are not sure how or why all of a sudden it now defaults to "last modified" each time one of these menus is opened. And the defaults are fine ie. files are listed by name when opening folders outside of indesign... its only through indesign that they have reveted to "last modified"..... 

  • How can I set a default for webpages to expand to full screen?

    How can I set a default for webpages to expand to full screen? Every webpage I go to does not expand to a full screen which causes me to have to ctrl+++ each time. How can I set my preference to expand to full screen automatically?
    Thanks.

    The Firefox [https://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox, as with some other browsers.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • When I open a new tab, I have to move to the other side of the page to click "home". Can I set the same "home" default for new tabs?

    My home page opens in the initial FireFox window, but new tabs open with a blank page. To get to my default page I have to click "home", but now it's way over on the other side of the page.
    Can I set a default for new tabs?

    right click on the control bar and choose "adapt" (or something like that). A window will pop up. Ignore that window and move the home button to the place you want it ''on the control bar''

  • Limitation for CLOB columns? - ORA-01704: string literal too long

    Hello!
    I'm trying to update a CLOB column with more than 35000 characteres, but I get "ORA-01704: string literal too long".
    The code:
    declare
    l_clob clob;
    begin
    update test set test = empty_clob()
    WHERE ID = 1
    returning test into l_clob;
    dbms_lob.write( l_clob, length('A...here 35000xA...A'), 1,'A...here 35000xA...A');
    end;
    Is there any limitation for CLOB columns?
    Thanks for help.
    Daniel

    user605489 wrote:
    32768 characteres :)Actually it's 1 character less than 32K...
    *32767*
    SQL> declare
      2    v_vc varchar2(32768);
      3  begin
      4    null;
      5  end;
      6  /
      v_vc varchar2(32768);
    ERROR at line 2:
    ORA-06550: line 2, column 17:
    PLS-00215: String length constraints must be in range (1 .. 32767)
    SQL>I guess it comes from a legacy thing where signed words (2 bytes) are/were used to represent a value. As the most significant bit of the word is used to represent the sign of the number the range goes from -32768 to 32767.

  • The back button no longer works. I have disabled all add-ons, rebooted & reset the defaults for the browser and nothing has changed. This happens on all webpages.How do I get the back button to light up again?

    the back button no longer works. I have disabled all add-ons,rebooted & reset the defaults for the browser and nothing has changed. This happens on all webpages.How do I get the back button to light up again?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    *Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    Another possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.com/kb/Bookmarks+not+saved#w_places-database-file

  • Goods-receipt-based invoice verification default for material group

    Hello experts,
    I put by default the option Goods-receipt-based invoice verification when creating a purchase order by tcode ME21N. Now, I would like if possible to only insert the option Goods-receipt-based invoice verification by default for some material group. Is this possible? This behaviour needs to be automatic.
    How can I achieve this behaviour?
    Thanks in advance,
    Best Regards,
    JP
    Edited by: Jeyakanthan A on Nov 20, 2011 11:11 PM

    Dear JP,
    In standard system this is not possible to default this indicator based on Material Group. This can be defaulted from Vendor Master record or Purchasing Info Record or Ticked Manually PO Item Details.
    If you look to enhance you system to do this, I would not advisable you to go with this default option because there can be situation that you order some material without Material Master Record (Like a frame work Order) in that case you will not be able to do GR and there can be conflict.
    You can create Material Group Info. record and default it from there, but again this for scenario where Material Master Record does not exists(Non Stock).
    Hope you find this useful.
    Regards,
    Reetesh

  • I inadvertently set my external hard drive as default for Iphoto.

    I inadvertently set my external hard drive as the default for iPhoto.  Can I copy all the albums over to the IMac IPhoto files?  If so How?

    No - albums are virtual things that exist only in the iPhoto database - another view of photos in your library like events, photos, places, etc
    you are going to have to explain yourself - things like the versions of iPhoto and the OS, do you have two iPhoto libraries one on each drive or only one - exactlhy what you want to do and to accomplish
    and how you "inadvdertently" did this
    LN

  • How do I make Address Book default for vCards

    I use Apple Address Book (6.0) and have the Lion O/S 10.7.1on my 2 Macs.  My Apple Address book syncs with my Gmail (Google Apps) contacts. Recently when I opened a vCard, Outlook for the Mac attempted to open the vCard.  I cancelled this as I no longer us Outlook for the Mac, but have only used Apple Mail and Address Book for several months.  As I cancelled the opening process, there was a brief message, "Rebuilding database".  About 30 minutes later I realized that all contacts in my Apple Address Book were missing. I quickly looked at my Gmail contacts and saw that the only contact was the one for the vCard I imported.  After recovering from a panic attack (I have over 2,000 names in my contact list), I went to my Macbook Air laptop, which was asleep during this time, and was able to export my Address Book to my iMac. The Macbook Air Address Book had synced with Google Apps the day before.
    After the recovery, everything seems in order except when I check for duplicates in Google Apps Mail Contacts, I find that I now have 2,000 duplicate contacts.  When I check for duplicates in Apple Mail I am told there are 83 duplicates.
    I am still not sure what caused this to happen and I am still considering how to prevent this in the future, and how to resolve the duplicate contacts issue.  I need to understate which contact list dominates - Apple or Gmail?
    But my first step is to make Address Book the default for vCards.  How to I do this.  Next I will work on the duplicate problem.

    I don't have or use Outlook 2011 but based on my past experience wth Outlook and Entourage it uses its own contacts by default and can't be configured to use an external resource. However, you might learn more on the Outlook support forums since this forum is primarily for Apple products.

  • How to make it a default for all received messages to not preview the attachment but instead show the icon? (mac mail.app)

    Hi
    I am having trouble with large incoming mail attachments.
    When I receive a large attachment (pDf) the useful mail preview feature attempts to show a preview of the attachment.  Unfortunately this is causing a lot of trouble as some PDFs are extremely large and therefore take time to open/preview.   If I right click the attachment and select view as icon, the problem with that specific message ceases as the attachment is no longer previewed.
    How can I make it the default for all attachments in received messages to only be shown as a icon and not previewed?

    In Terminal,
    defaults write com.apple.mail DisableInlineAttachmentViewing -bool Yes

Maybe you are looking for

  • Will not boot after reload of OS

    Ok, so here is my tale of trouble.  I have a Lenovo T61 Type 6463-5BU, S/N L3-xxxxx.  The hard drive died a couple of weeks ago, and I have since then received a replacement drive under warranty, i.e. the exact same type of drive.  We had a backup im

  • The Endless Battle With Iphone Syncing

    I've been having nothing but problems syncing my reasonably new iPhone with my contacts. When I first got it, I immediately entered contact info into the iPhone itself. I put in some numbers, some names, a couple pictures for my contacts. Then when I

  • I can receive but not send mail from remote wifi connections

    i cna recieve but not send email from remote wifi locations

  • Z10 SMS and Email Issue

    After I upgraded to 10.2, my phone kept telling me that my SMS is full and that I can't receive messages. I read in one of the discussions that this is an ongoing issue. My other problem is this: Google mail is being rejected by the phone. It keeps t

  • ALV GRID PAGING IN TRANSANCTIONS

    HI , ALL IN MY PROJECT I HAVE TO PREPARE THE REPORT IN THE FORM OF ALV GRID AND THAT GRID WILL SUPPORT PAGING ALSO . SO PLZ ANY BODY COULD HELP FOR THIS. THANKS IN ADVANCE