A query which works in 10g but not in 11g.

Hi there,
We are in the process of upgrading our database from 10g to 11g. We have a test server with 11g, and imported all the 10g data in there. While testing the 11g server, for many queries, we get ORA-00918: column ambiguously defined error, however the same queries work just fine in 10g. Below is a sample query.
SELECT household_name || ' - Begin Date: ' || TO_CHAR(vnsrp.effective_date,'dd-MON-yyyy') ||
CASE WHEN vnsrp.second_return_period_type = 'NON_FURLOUGH' THEN
ELSE NULL
END household_name,
second_return_period_id
FROM vn_secondment_return_period vnsrp
JOIN ve_household_membership vehm
ON vehm.family_household_id = vnsrp.family_household_id
JOIN vb_family_household vbfh
ON vbfh.family_household_id = vehm.family_household_id
ORDER BY household_name
We know, in the above query, the household_name is from both views vn_secondment_return_period and vb_family_household, but to the wonder it works without any error in 10g and not in 11g.
We have so many queries like this, so changing them to give qualified column name (viewname.columnname) would be a very tedious process for us.
Is there any simple solution by changing DB parameter like that?
Advance Thanks,
Natarajan

i mean just change the definition of one of these views: vn_secondment_return_period or vb_family_household. I think this is the simplest way.

Similar Messages

  • In line view works in 9i but not 11g

    The following subset of a larger in ilne view works in 9i, but not in 11g. Any thoughts on why it doesn't work in 11g. An 'ORA-00979 : not a group by expression' message is displayed. This error message refers to the last 'group by' statement.
    select a.appl_start_term
    ,count(*)apps
    ,acc_total--, acc_gre
    from datatel_snap.applicant_current_part a
    , datatel_snap.acad_program b
    --accepted
    select appl_start_term
    ,count(*) acc_total
    --, sum(decode(test_grev,null,0,1)) acc_gre
    from datatel_snap.applicant_current_part a
    , datatel_snap.acad_program b
    , datatel_snap.dept c
    where appl_admit_status_cat in ('MASTER')
    and substr(appl_start_term,5,1)= 'F'
    and appl_school='SIS'
    and a.appl_acad_program = b.id
    and b.dept_1 = c.id
    and (derived_appl_disp = 'AC')
    group by appl_start_term
    ) z
    where appl_admit_status_cat in ('MASTER')
    and substr(a.appl_start_term,5,1)= 'F'
    and appl_school= 'SIS'
    and a.appl_acad_program = b.id
    and a.appl_start_term = z.appl_start_term(+)
    group by a.appl_start_term ,acc_total--, acc_gre
    order by 1
    Edited by: user8377830 on Jul 17, 2010 10:05 AM
    Edited by: user8377830 on Jul 17, 2010 10:10 AM

    Fine, you shoud do do either:
    - a group by "acc_total" or
    - use an aggregate function on "acc_total" (like: sum(acc_total), max(acc_total) etc.)
    Edited by: user11268895 on Jul 17, 2010 7:14 PM
    sorry id didn't read carrefully your statement...
    Try to prefix the column acc_total with "z." (both in the select and in the group by expression)
    SELECT   a.appl_start_term, COUNT (*) apps, z.acc_total              --, acc_gre
        FROM datatel_snap.applicant_current_part a,
             datatel_snap.acad_program b,
    --accepted
              SELECT   appl_start_term, COUNT (*) acc_total
    --, sum(decode(test_grev,null,0,1)) acc_gre
              FROM     datatel_snap.applicant_current_part a,
                       datatel_snap.acad_program b,
                       datatel_snap.dept c
                 WHERE appl_admit_status_cat IN ('MASTER')
                   AND SUBSTR (appl_start_term, 5, 1) = 'F'
                   AND appl_school = 'SIS'
                   AND a.appl_acad_program = b.ID
                   AND b.dept_1 = c.ID
                   AND (derived_appl_disp = 'AC')
              GROUP BY appl_start_term) z
       WHERE appl_admit_status_cat IN ('MASTER')
         AND SUBSTR (a.appl_start_term, 5, 1) = 'F'
         AND appl_school = 'SIS'
         AND a.appl_acad_program = b.ID
         AND a.appl_start_term = z.appl_start_term(+)
    GROUP BY a.appl_start_term, z.acc_total                              --, acc_gre
    ORDER BY 1.. and use different aliases in your subquery (not the same a the main one).
    Edited by: user11268895 on Jul 17, 2010 7:23 PM

  • Abnormal, Same query get data in sql but not working on Fron-end

    Dear,
    Version :Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    We have created packed in oracle database befor two months ago & was working fine, but since morning select statment in package is not working while running via application which mentioned below and raise not data found but surprising thing is that same query is getting data when we execut on sql plus return one record.
    i don't know either it's abnormal behaviour or sth else becuase the same query run without changing any singl column in where_clause work in sql but not getting data while submition request through oracle application and raising not data found.
    --thankse
    Edited by: oracle0282 on Dec 29, 2011 2:20 AM

    Actully when i run this query in sql it return one record on the same parameter, while when we exeucte this select in pl/sql on the same parameter oracle raise no data found error.
    so i got confused the same query with same parameter retur record in sql but when we call it fron-end through packege raise 'no data found error'.
    hope you understand now.
    --thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Hello everyone ,i have macbook and macbook pro 15,so my question is can i use magsafe 60v charger to charge my macbook pro which having 85v magsafe but not in working condition.

    hello everyone ,i have macbook and macbook pro 15,so my question is can i use magsafe 60v charger to charge my macbook pro which having 85v magsafe but not in working condition.

    mangesh171 wrote:
    my question is can i use magsafe 60v charger to charge my macbook pro which having 85v magsafe but not in working condition.
    No.
    Power Adapter/ cord wattage
    “Power adapters for Intel-based Apple notebooks are available in 45W, 60W, and 85W varieties. Although you should always use the proper wattage adapter for your Apple notebook, you can use an adapter of a higher wattage without issue.”
    http://support.apple.com/kb/HT2346
    Best.

  • Medical app from Intuit works in IE, but not Firefox.

    Encrypted medical app works in new IE, but not Firefox. Everything works down to the end, and click on "continue" and nothing happens. A tech and I have spent hours on this. Did not work on FF5 or 6. Did not work on old IE, but did on fresh new version with no data files copied in.

    If it works in IE but not FF, then it has nothing to do with the mp3s. More likely it's because of the HTML on the page.
    To start, page is missing DOCTYPE declaration... a MAJOR problem. The DOCTYPE declares which set of rules the browser will use to display the page. Without it, different browsers go crazy or do not work at all.
    http://www.w3schools.com/tags/tag_DOCTYPE.asp
    Validate the html code here:
    http://validator.w3.org/
    You will have to fix all the errors if you want this to work in all browsers.
    Best wishes,
    Adninjastrator

  • Works in IE but not FireFox?

    site is here
    http://carolyoungs.myartsonline.com/
    when i hosted it on a different server it worked in both browsers, now i changed to a different free host because of the mp3 file i have with the site, and some sites will not host mp3 and it only works with IE
    can anyone help me out?

    If it works in IE but not FF, then it has nothing to do with the mp3s. More likely it's because of the HTML on the page.
    To start, page is missing DOCTYPE declaration... a MAJOR problem. The DOCTYPE declares which set of rules the browser will use to display the page. Without it, different browsers go crazy or do not work at all.
    http://www.w3schools.com/tags/tag_DOCTYPE.asp
    Validate the html code here:
    http://validator.w3.org/
    You will have to fix all the errors if you want this to work in all browsers.
    Best wishes,
    Adninjastrator

  • Link works on mac but not on pc

    Hi -
    I am trying to insert a jpg into a dreamweaver file.
    I then upload the html file along with the jpg to my server in a folder called "layout"
    So the url is:  http://www.mysite.com/layout/test.html
    The link works on mac, but not on pc's.
    Any idea why?
    Some links work on pc's like this, and others don't.
    Thanks- It's driving me crazy!!

    The link is not correct....you have it listed as" mysite.com", which I assume is where you are to insert the name of your url.
    Gary

  • Flash 10 works in FF but not Safari, OS X 10.5

    About a week ago flash stopped working in Safari and both firefox and safari started bugging me to install a newer version.  Muttering, I went to the download page and downloaded the latest, which claims to be for Safari, Opera, and firefox.
    Installation completes fine with no errors.  Firefox works.  But in Safari, I just get the usual 'no flash installed, would you like to download it?'
    I've downloaded and installed multiple times, no dice.  Plug-ins are enabled on Safari.  I do not have settings folders to delete--/Library/Application Supprt/Adobe has no flash player folder, only Acrobat, Updater6, and Help.
    This whole thing is a black box and I don't see what else to do.  Installation completes and there's no way to verify anything.  Any ideas would be welcome.

    Thanks! BTW I'm also having trouble updating Adobe Reader. I have 9.4.0 and want to update to the new Adobe Reader X. I keep getting Error 1402 which refers to the registry keys. I am unable to completely uninstall the old version. After receiving the error message it reloades the older version. I read about how to modify the registry to accept it but I believe this is a very wierd way to have to get an update loaded. Any suggestions?
    Date: Mon, 27 Dec 2010 10:34:22 -0700
    From: [email protected]
    To: [email protected]
    Subject: Flash Player works in IE8 but not Safari
    Hi Bruce, Adobe Flash Player is Installed separately into IE, since Windows uses the ActiveX Control. Firefox and other non-IE
    browsers must use the plugin Installer.
    This is the Adobe site :
    http://www.adobe.com/products/flashplayer/fp_distribution3.html
    Hope that explains it.
    Thanks,
    eidnolb
    >

  • CS6 Plugin works on windows but not mac

    Hi,
    We have been developing a plugin for InDesign since CS3 and have recently ported it to CS6 (it was ported to all previous versions too, as they came out).
    I followed the porting guide etc. and on windows it compiles and runs just ok - the plugin works correctly.
    But when i compiled the same files on our mac machine and put the .indesignPlugin file in th plugins directory i can't see our plugin's context menu.
    I can see that it is in fact loaded on startup (when i remove it ID loads 325 extensions, when i put it back - 326), but still it dosen't seem to work...
    I initially thought that the versioning was off but our PluginVersion resource relies solemnly on SDKDef.h , i also tried putiing the file in CS5's plugin directory and got an error message that CS6 is required - so the version info is fine i guess.
    We are using xCode 3.2.5 (because we have to support Mac OS 10.5 and 10.4) to build on mac and i've never had problems before - it worked on CS4, CS5 and CS5.5.
    The changes i made when porting were minor and only in the code - so what has changed? and how come it works on windows but not on mac?
    Any input is greatly appreciated, i've already spent days trying to understand this.
    Thanks,
    Dan.

    Hi and thank you for replying.
    The resources do get compiled correctly (i assume this because we do get a .indesign file at the end - which means the ODFRC ran ok). they are linked correctly in the mac project (i saw a file that determines the version - it's linked the same way against my win and mac projects and the win version works fine so i guess that's ok too).
    the context menu is just another menu on the "menu bar" (don't know how to call it?) - i.e where the "file" and "edit" etc. menus are.
    I can't seem to understand how come this works fine under windows but not under mac - they are essentially the same projects linked against the same resources (the difference being iCode vs VC10 projects).
    can this be related to the fact we're using xCode 3.2.5?
    Thank you.

  • Rollovers work in Netscape but not IE?

    I have the rolloverbuttons working great with Netscape but when I run my app in IE the images aren't showing up. The jar is loading fine and when I use the default rollovers ( [ROLLOVER]exit ) they work fine, but my images aren't showing up. Thanks for any and all help.
    Jeremy.

    Hytrical wrote:
    The site www.lamps-on-line.com has rollovers and actions created a few years ago in GoLive and now these effects only work in Firefox, but not in Interenet Explorer (IE7) which displays page errors.
    I didn't see any errors when I looked at yourhome page in IE7 (on Vista). So which page elements were producing an error and what was the error you were seeing? Did you delete the cache in IE7 to check whether it was a caching problem? Tools > Internet Options > Browsing history (choose to delete)?
    John

  • Applets work in NS but not in IE

    Hello,
    I would very much appreciate tips on setting up sun java so that I can make applets that work in IE.
    Now, my IE have no problems with applets found on the web, for example this one is ok:
    http://java.sun.com/applets/jdk/1.1/demo/Animator/example1.html
    But, the examples installed with j2sdk1.4.1_07 will only work in Netscape. In IE these applets just display a grey applet area. (IE6/XP and IE5.5/Win98)
    So far:
    Have read installations instruction and ReadMe files. Installed j2sdk1.4.1_07, added PATH, code compiles fine. Console programs work ok. I also compiled a Hello World applet, which also worked in NS, but not in IE.
    Any help greatly appreciated.

    Me again...
    Right... Maybe I am answering my own question here? It seems that the programs compiled with j2sdk1.4.1_07 will NOT run under the JVM 1.1.4 from Microsoft Corp?
    So, anything that I compile with the later sun package will most likely fail on IE browsers unless the user have upgraded their JVMs?
    If so, then what version of Sun Java can be recommended to achieve reasonable amount of compatibility with the IE5.5 and IE6 that are out there?

  • Rollovers works in Camino but not Safari

    Does anyone know why my rollover stopped working in Safari,
    but it works fine in IE and Camino?
    I did a simple rollover to display before and after images
    and I swear, yesterday when testing it in Safari It worked fine.
    Today it doesn't work on any of my 3 macs here. It displays fine on
    WinXP and IE, and in Camino on my Macs.
    here is the page.
    www.chipwillis.com/retouch
    Any ideas are most appreciated.

    Thanks! BTW I'm also having trouble updating Adobe Reader. I have 9.4.0 and want to update to the new Adobe Reader X. I keep getting Error 1402 which refers to the registry keys. I am unable to completely uninstall the old version. After receiving the error message it reloades the older version. I read about how to modify the registry to accept it but I believe this is a very wierd way to have to get an update loaded. Any suggestions?
    Date: Mon, 27 Dec 2010 10:34:22 -0700
    From: [email protected]
    To: [email protected]
    Subject: Flash Player works in IE8 but not Safari
    Hi Bruce, Adobe Flash Player is Installed separately into IE, since Windows uses the ActiveX Control. Firefox and other non-IE
    browsers must use the plugin Installer.
    This is the Adobe site :
    http://www.adobe.com/products/flashplayer/fp_distribution3.html
    Hope that explains it.
    Thanks,
    eidnolb
    >

  • Published interactive project works in IE but not in Chrome???

    My buttons and interactions are working through an Internet Explorer browser, but loose their functionality when play via Chrome. Anyone have any ideas?

    If it works in IE but not FF, then it has nothing to do with the mp3s. More likely it's because of the HTML on the page.
    To start, page is missing DOCTYPE declaration... a MAJOR problem. The DOCTYPE declares which set of rules the browser will use to display the page. Without it, different browsers go crazy or do not work at all.
    http://www.w3schools.com/tags/tag_DOCTYPE.asp
    Validate the html code here:
    http://validator.w3.org/
    You will have to fix all the errors if you want this to work in all browsers.
    Best wishes,
    Adninjastrator

  • Rollovers & actions work in Firefox but not IE

    Hello,
    The site www.lamps-on-line.com has rollovers and actions created a few years ago in GoLive and now these effects only work in Firefox, but not in Interenet Explorer (IE7), which displays page errors.  Is there a way to fix this? I acknowledge that the site needs replacing but while it's still running my client wants it fixed.
    I set up a test page at www.lamps-on-line-com/test.html in which I took off all rollovers and actions, and this loads OK but I really don't want to have to resort to doing this on every page.
    I wondered if it is somrthing to do with 'Doctype'?
    Hope someone can help.
    Stephen

    Hytrical wrote:
    The site www.lamps-on-line.com has rollovers and actions created a few years ago in GoLive and now these effects only work in Firefox, but not in Interenet Explorer (IE7) which displays page errors.
    I didn't see any errors when I looked at yourhome page in IE7 (on Vista). So which page elements were producing an error and what was the error you were seeing? Did you delete the cache in IE7 to check whether it was a caching problem? Tools > Internet Options > Browsing history (choose to delete)?
    John

  • Tiger Server: Default MySQL works for phpMyAdmin but not command line ? ? ?

    Greetings all,
    I followed the excellent instructions at
    http://discussions.apple.com/thread.jspa?threadID=132783&tstart=0
    on upgrading PHP to version 5 and getting (the preinstalled) MySQL setup with phpMyAdmin
    I can connect through the phpMyAdmin, create new dbs, etc. Problem is that now I CAN'T connect from the command line. (I originally set my new root password from the command line and that's the last time I could connect from there!
    Now I get the dreaded ERROR 2002 when I attempt:
    /usr/bin/mysql -h localhost -u root -p
    If I use the IP address or hostname instead of "localhost" (after -h) I get a ERROR 2003. Dropping the -h and hostname from the line above still gets me a ERROR 2002.
    My phpMyAdmin config is a connect type "TCP" not socket, which might be one reason it works and the command line doesn't, but I still don't know where I've gone wrong.
    My /var/mysql/* is all owned by mysql and group www.
    I'm finding lots of people asking about the ERROR 2002, but not finding any solutions (particularly for Tiger Server). I'd prefer to use the preinstalled MySQL to installing a new installation (the thread referenced above says upgrading or removing the MySQL installation is too hard to do) and there has GOT to be a reasonable explanation for why it works with phpMyAdmin, but not the command line.
    Thanks in advance for any replies!
    Many   Mac OS X (10.4.3)  

    You know what? I think when I started mysql_safe, I did it with sudo. Maybe that is my problem?
    If so, what user do I want to start it as? I've seen one suggestion of doing this:
    ./bin/mysqld_safe --user=mysql &

Maybe you are looking for

  • ITunes media on a NAS, libraries locally?

    Hello, all, I've been browsing search results on hosting iTunes on a NAS, and I had a couple of questions and perhaps someone has some wisdom to share. My girlfriend and I have separate iTunes libraries that we would like to combine. We are each on a

  • How to get all songs on one album artwork

    I have 1 album that is listed twice on the albums list. I have 2 songs on one and one song on the other. I cannot get them all on just one. I have checked all the info on the info tab and everything is the same. I have copied all the songs in one fil

  • Printer driver was not installed.  operation could not be completed

    Adobe Acrobat 9.3.1 windows XP system. Cannot add the Adobe PDF printer get the error message: Printer driver was not installed.  operation could not be completed Software installs/repair try to install the Adobe PDF printer but they do not.  No erro

  • Safari constantly logging me out of most websites...

    For about the last week, Safari has been constantly logging me out of websites like Facebook, Twitter, Hotmail, etc. It is getting quite frustrating so I'm hoping someone has a fix for it. It will only stay logged in for half an hour max. Please let

  • Enter the value of IN parameter of a function at the time of execution

    Hi, I have written a query and created a .sql file. So whenever I use to perform one action, I'll just run the .sql file from my unix box. But in one of the functions of my query, the IN parameter has to be supplied every time coz it changes from tim