UNION for Columns of CLOB data type does not work

Hi,
I have two tables Encounter & Encounter_History. They have same columns. One column is of type CLOB. My requirement is to retrieve all the distinct records from both the tables with order by a date column. But problem is, UNION does not work in case of CLOB data type.
I know it will work if I use UNION ALL, but it returns duplicate records.
Please give me suggestion, how to solve this problem.
For example: The following query does not work since column1 is a CLOB data type
select column1 from table1
union
select column1 from table2
Thanks

But for sufficiently small clobs you can try:
michaels>  SELECT TO_CLOB ('abc') cl
  FROM DUAL
UNION
SELECT TO_CLOB ('abc')
  FROM DUAL
Error at line 1
ORA-00932: inconsistent datatypes: expected - got CLOB
michaels>  SELECT TO_CHAR (TO_CLOB ('abc')) cl
  FROM DUAL
UNION
SELECT TO_CHAR (TO_CLOB ('abc'))
  FROM DUAL
CL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
abc                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
1 row selected.

Similar Messages

  • Request Scope for portlets? Sharing data tutorial does not work for portlet

    I created 2 identical applications, one that was a regular JSF web app, and one a JSR168 portlet. By following the "Sharing Data Between Two Pages" tutorial, I can get this technique to work without a problem in the web app, but the portlet (deployed locally using the pluto server) does not work. What is the difference between a regular app and a portlet app?
    This shows that portlets apparently handle scope much differently than other applications, so any information relating to this would be helpful to pass along.

    Portlet Life Cycle Differences
    A portlet page is the same as a web application page in the Creator 2 application
    model with differences only in the page life cycle. To best understand the life
    cycle differences, you must first understand how a portal interacts with a portlet.
    This interaction between portals and portlets is defined by the JSR-168 Portlet
    specification. Typically a portal display in the web browser shows multiple
    portlets. That is, when the portal page is displayed, there are actually multiple
    portlets displaying or rendering their content. The job of the portal is to manage
    how these portlets are displayed. Internally, the portal is responsible for telling
    each portlet two things:
    1. When to display itself
    2. If there has been an action, such as a button press, performed inside that
    portlet.
    When a portal wants portlets to display their contents, the portal sends a render
    request to each portlet showing in the portal. If one of the portlets showing in the
    portal has a button tied to an action request, when that button is pushed, the
    portal fires an action request for that portlet. In addition, the portal generates a
    render request for the portlet and all other portlets on the page. You should note
    that the portal implementation fires both action and render requests for each
    action method on a portlet showing in the portal. The implication of this
    interaction means the portlet page being rendered can not make assumptions
    about the state of the values to be shown. Unlike a normal web application page,
    a portlet page can't assume that the page being rendered in the Render Response
    phase is the same page that was built in Restore View. If a portlet wants to
    maintain state across repeated render requests, the portlet must use the session
    bean to store stateful information.
    The main point to remember is a portlet page must always be prepared to render
    it's values from scratch or session data. This implies you should never bind
    portlet page UI components to page bean properties or request bean properties.
    Also, you should never rely on page bean instance variables that might be set
    during an action event.
    Hope this helps.

  • Getting error when view - Requested data type does not match with existing

    I have the siebel web service
    In the BI publisher as mentioned in the 'Siebel_BI_Publisher_Integration_Concepts.pdf', I have imported the siebel web service
    BI can recognize the 'Web service' and methods.
    I have created the paramters. The data type is 'String'
    When I try to view the report using the BI publisher, I am getting teh following error in th UI
    "Requested data type does not match with existing data type"
    This is the first time I am using BI publisher to call the Siebel web service. I don't know what this error means
    I don't know whether any log file generated wit the details of this erro message
    Any help is much appriciated
    Thanks,
    Kavitha

    Hi all,
    have you find a fix for this issue? Im facing the same situation, using Complex type, and String data type both in the service and Bi publisher. We are consuming CC&B services, and we have noticed this error appears when BIPublisher is running on WebLogic (10.3) but it does not appear when BIPublisher is running on OC4J , of course running the same report on both application servers.
    Any idea?
    Thanks a lot, regards
    Nestor

  • Value Misc. Allowance for the flexfield segment Expense Type does not exist

    Dear All,
    can any budy help me out in Internet Expense modulee
    Error:- Value Misc. Allowance for the flexfield segment Expense Type does not exist in the value set OIE_EXPENSE_TYPES.
    Problem details:- we have define one expense templates " Relocation Expnse" under this we have define number of expense items ,in which Misc. Allowance is one
    Prevously it was end dated but now end date is removed , now when we are trying to claim expense against this item we are getting the above error.
    can you please tell me why this is happining and what is the solution.
    Regard
    Ajay Sharma

    Check these things
    1. you have enable PerPeriodOfService DFF to this set.
    2. you are setting Context Variable like (AttributeCategory) with requried value.
    Thanks

  • Date parameter does not work in SharePoint 2010 report using SQL 2008 Server Reporting Service

    Here is the settings:
    SharePoint 2010 with SQL server 2008 reporting services configured
    When create a report for a SP list using SQL server report builder (3.0) the date parameter does not work.
    The data parameter is set as "date and time" type and field name equals the col name in the SP list
    When run the report, the whatever dates I select, the result is always the same, so the parameters do not take any effect.
    Is any step missing?
    Thanks for any advice !

    Hi ,
    How did you configure you "date and time" type parameter and field name equals the col name in the SP list?
    Have you tested if other type parameter worked?
    Have you tried typing the date format as 20140722 in your date parameter filed before run the report?
    http://whitepages.unlimitedviz.com/2012/02/using-sharepoint-filters-with-reporting-services-parameters-for-personalized-reports/
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Daniel Yang
    TechNet Community Support

  • Droid Razr Maxx HD Data & SMS does NOT work in South Korea

    If you are going to South Korea this phone only operates as a "dumb phone" for phone calls ONLY. Data & SMS does not work at all. I contacted Global Support daily for one week with no resolution! I received conflicting information with 2 support folks telling me that the fix was to do a factory reset. So I reluctantly did this and it did not fix anything. It only wasted my time especially re-installing all my apps, etc. Then 4 support folks told me that you should never do this out of the country!! Anyway the last person i spoke to which was a network technician was very honest. He told me that I was "SOL" and he had no idea how to fix this problem. He said that he would have to get some teams together to try to fix the problem. And I was told that I would receive an email with an update. And of course I have not received any email of correspondence from Verizon. Very frustrating...

    I found a solution. Okay so with the most recent update Verizon made the switch from sending text messages over their 1x network and moved them to their LTE (and possibly 3g) network, hence the reason they are sending so much faster. Today I was in a classroom that is underground and has terrible reception and noticed that I was getting delivery reports again but that my texts were sending slower, like they used to. I dug around in the phones programing menu and found a new option call "MO SMS over IMS" and it was enabled. Disabling it switches your texts back onto the old 1x network. So if you choose to make the switch, your delivery reports will come back but sending will go back to being a little slower. To get to this menu open up your dialer and type in ##7764726. Next hit send and when prompted with a password type in 000000 and hit verify. Scroll down to SMS/MMS settings and select it. Next scroll to the bottom, select "MO SMS over IMS", and disable it. Now your good delivery reports back!

  • Use member on data form does not work

    Hello,
    "Use member on data" option does not work on composite Data Form. Business rule associated with composite form.
    Who is resolve this problem?
    Version hyperion: 11.1.2
    Thanks

    I don't have a solution for you but more steps to solve the problem
    You are ultimately on the right track in some ways but break it down into it's components.
    The problem could like in the business rule, the form connection, the variables, even the order of operations could all be in play.
    So I would strip this baby down to its bare bones then build it back up.
    1) Run the business rule. Each one separately and only after the previous ones is complete without variables and without touching the form
    Is it successful: go to 2
    If it isn't successful: trouble shoot the calc and or try running in EAS natively to see if that gives you ideas
    2) Run the calc outside the form but with variables included. Did it prompt you correctly.
    Is it successful: go to 3
    If it isn't. What is wrong with the variable
    3) Now attach it to the form but don't hide the prompts
    Still good go to 4
    4) hide the prompts and run on save
    And if it fails on step four then it's not picking up the right variables in the prompt. And you need to look at why it wouldn't grab the right item.
    This will isolate your problem for you and give you steps to fix it. Ultimately 99% of the time something did change in the structure for example that is impacting the calc. And when you isolate the problem this will reveal itself quite quickly.

  • HT5557 The ibooks dictionary works fine for my iPhone 5, but it does not work for my iPad 2. Is this fixable?

    The iBooks dictionary works fine for my iPhone 5, but it does not work for my iPad 2. Is this fixable?

    I went to the Audio store to see about getting a surround sound and the salesperson asked me why I wasn't using AirPlay, he said it was better than the Bluetooth, better quality. So I do have AirPlay on my Sony and I installed the app on my iPhone 5 but they can't find eachother.......when I try looking for my iPhone on my receiver it does not show it. The Sony display works through my TV, the set up screen is there but it says no devices found. Like I said, the Bluetooth finds the iPhone and works ok, but the AirPlay does not.....looking at the manuel it says that the AirPlay will recognize my device (iPhone 5) but it does not..........

  • I have iPhone 4 and I update it to iOS 7 and when I try to start the personal hotspot it crashed and for sometime my cellular data was also not working then allot a sudden the personal hotspot icon disappeared from my settings

    I have iPhone 4 and I update it to iOS 7 and when I try to start the personal hotspot it crashed and for sometime my cellular data was also not working then allot a sudden the personal hotspot icon disappeared from my settings.
    Has anyone faced a problem like this!!!

    No. If you go Settings App > General > Reset > "Erase All Content and Settings", you will have the same iOS that was on the iPhone when you tapped the Erase button. If you believe your iPhone is Jailbroken, then this will not work. If you use iTunes on computer, this will put iPhone to current iOS which is iOS 7.0.2

  • Redemption code for Adobe photoshop/premiere elements 11 does not work

    redemption code for Adobe photoshop/premiere elements 11 does not work

    I am having the same issue except that my premiere elements code worked great, but the photoshop elements key failed. Ugh.

  • Itunes now requesting PW for old purchases. Current PW does not work. How to fix and gain access to songs purchased 6 years ago. Other, more recent songs all OK.

    Itunes now requesting PW for old purchases. Current PW does not work. How to fix and gain access to songs purchased 6 years ago. Other, more recent songs all OK.

    If you bought the music with another itunes account, then you will have to authorize the computer for that account.

  • TS1702 App rip off. Paid for it.....does NOT work. Will apple investigate these scammers?

    App rip off. Paid for it.....does NOT work. Will apple investigate these scammers?

    Which app?
    Was this an iPad app or iPhone app. Your profile shows you have an iPhone 4s, but this is the iPad in the Enterprise forum. Please post in the proper forum.
    FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
    For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
    Phone: 800-275-2273 How to reach a live person: Press 0 four times
    Hours of Operation: Mon-Fri: 9am-5pm ET
    Email: [email protected]
    How to report an issue with Your iTunes Store purchase
    http://support.apple.com/kb/HT1933
    iTunes Purchase Problems: How to Report a Problem to iTunes Support
    http://tinyurl.com/7tscpa7
    iOS: Troubleshooting applications purchased from the App Store
    http://support.apple.com/kb/TS1702?viewlocale=en_US&locale=en_US
    How to Get a Refund from the App Store
    http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
    Getting Refunds for your iTunes Store Purchases
    http://www.labnol.org/software/itunes-app-store-refunds/13838/
    Canceling a Digital Subscription
    http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
     Cheers, Tom

  • Thumbnail view for Library copied from Asset Library does not work

    Hello ,
    I created list definition based on Assed Library (I copied files from \15\TEMPLATE\FEATURES\AssetLibrary\AssetLibrary ) - I reused schema.xml and other files.
    Then I added my new custom content type.
    The problem is following:  thumbnail view does not work now ( "/AssetLibraryDemo/Forms/Thumbnails.aspx" )
    I don't have any javascript errors and any specific error in ULS log.
    Can you give me advice, why thumbnail view has stopped working?

    I need to use "List teplates" gallery functionality for this task.

  • Exit button - Germany Personal data service does not work

    Hi all,
    We just upgraded our portal to EP7 Sp22 with 1.3 ESS Business Package and 603 XSS components in the back-end.
    In testing Germany and all countries that use the Germany personal data service, the Exit button on all screens (Overview, Edit, Review and Save, Confirmation) does not work. The Exit button, when selected, keeps the user on the same screen. 
    I am not sure where the button is configured, but it should always take us back to the page from where the service was launched.  So if I accessed through the Overview page or Personal Information page, and then click on the exit button, I should be taken back to one of those pages.
    Where can we configure the exit button for the German Personal data service, so that it works and takes the user back to the page where they started.....?
    Cheers!, Neeta

    Hi,
    The Germany personal data service is the only one where the exit button is not working. All other countries are testing fine.
    Is it a customization issue on the back-end? The resource in spro for germany is configured with the pcd link of the german personal data i-view.
    The other countries are also customized in the back-end with the pcd link of the appropriate i-view.
    Regards, Neeta

  • Selection in the Generic Data Source does not work

    Hi gurus,
    I have some problem with the selection in the Generic Data Source.
    I have created a view as a base of a Generic Data Source.
    This view is based on several table; i.e.: VBUK-VBELN (Sales Order number), VBAP-ERDAT (creation date of Sales Order), VBAP-POSNR (Sales order item), VBAK-BSTNK (Customer Purchase order number).
    In the view, some join conditions have been defined: VBUK-VBELN = VBAK-VBELN, VBUK-VBLN = VBAP-VBELN.
    I want to extract the Sales Order number, Sales order item and Customer Purchase order number for the Sales order created on the previous year.
    On the Generic Data Source, I select VBELN (Sales order number) and ERDAT (creation date of sales order) as selection.
    However, when I run the extractor checker (RSA3) on this Generic Data Source, the selection does not work at all, i.e.:
    eventhough I restricted the Sales order number and/or the creation date of sales order, the generic data source ignores the selection criteria and extract ALL data.
    Does anyone ever have similar problem? Did I miss some step in the Generic DAta Source creation? How to fix this problem?
    Thanks a lot in advance.
    Best regards,
    Fen

    Hi Fen,
    Just check what is the output you get for the same selection for the view you created.
    Bye
    Dinesh

Maybe you are looking for

  • File system error: The record ID is incorrect. Physical file: . Logical file:

    Hi, I face this error message when I try to 'process update' a dimention, sometime it works but sometime it failed with the error below: Description: File system error: The record ID is incorrect. Physical file: . Logical file: .  My environment: Win

  • GPS DOESN'T WORK PROPERLY AFTER UPGRADE TO 2.2

    I just upgraded to the version 2.2 software. Since updating, my 3G GPS is not working correctly...anyone else? Location Services are turned ON, but now the locater is only finding my general location...acurate to about 1/2 mile. Before the update, my

  • Authentication on 3750 against ACS

    After making AAA changes on the catalyst 3750 the key configuration part was missed and the login attempt on the switch is getting failed now. There are no logs in the "failed attempts" on the ACS. What is the solution now?

  • Problem keying graphics over video when exported.

    Hey I'm new to FCE, but I work professionally in the television industry doing graphics/compositing/3d. Outside of work, I mess around with my own movies and hardware. I'm cutting together a piece shot with my Canon VIXIA HG20 camera. The footage/pro

  • Status update of Credit Memo Request

    Hello, The processing status in the credit memo request is not updating as "Fully invoiced" even after the credit memo is created.  Due to this I am able to repeatedly create credit memo against this same credit memo request. The problem as i underst