Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

Free Oracle Tips

HTML Text

 Home
 E-mail Us
 Oracle Articles



 Oracle Training
 Oracle News

 Oracle Forum
 Class Catalog


 Our Staff
 Our Prices
 Help Wanted!

 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 UNIX
 Oracle UNIX
 Linux
 Oracle Linux
 Monitoring
 Remote help

 Remote plans
 Remote
services
 Oracle C++
 Oracle Java
 Apache
 JDeveloper
 App Server

 Applications
 Oracle Forms
 Oracle Portal
 11i Upgrades
 SQL Server
 Oracle Concepts
 HTML-DB Tips
 Software Help

 Remote Help  
 Development  

 Implementation


 Financials Training
 Oracle 11i
 Oracle Apps 11i
 Oracle Workflow
 Oracle AR 11i Class
 Oracle AP 11i class
 Oracle GL 11i class
 Oracle HR 11i class
 Oracle FA 11i class
 11i Project Mgt
 11i procurement
 11i collections


 Oracle Posters
 Oracle Books

 Oracle Tuning Book
 Oracle RAC Book
 Oracle Security
 Easy Oracle Books
 Oracle Scripts
 SQL Server DBA
 SQL Design Patterns
 WISE
 Excel-DB   


 BC Oracle News


 Rednecks!
 Dress code
 Arabian Stallion

 Burleson Arabians
 Guide Horses
 Don Burleson Blog
 Golf & Travel


 Privacy Policy
 

 

 

 
 

ORA-00937: not a single-group group function tips

Oracle Error Tips by Burleson Consulting

 

Oracle docs note this about ORA-00937:

 

ORA-00937 not a single-group group function

Cause: A SELECT list cannot include both a group function, such as AVG, COUNT, MAX, MIN, SUM, STDDEV, or VARIANCE, and an individual column expression, unless the individual column expression is included in a GROUP BY clause.

Action: Drop either the group function or the individual column expression from the SELECT list or add a GROUP BY clause that includes all individual column expressions listed.

Oracle MetaLink offers information regarding ORA-00937 as it is thrown with ORA-00903.  If you are experiencing ORA-00937 in this context, you may want to take a look at this information as it pertains to a bug.  ORA-00937 in bug 1988231 can occur in versions 8.1.7.4 to 10.2.0.4 of Oracle Enterprise in Microsoft Windows.  You will experience ORA-00937 with Microsoft OLEDB drivers  in response to executed queries using CURSOR_SHARING=FORCE and SIMILAR.   However, it is important to note that ORA-00937 will not get thrown using CURSOR_SHARING=EXACT or the irrespective CURSOR_SHARING parameter within SQL*Plus. 

The reason ORA-00937 is being thrown is bug 1988231 which occurs within the Microsoft OLEDB driver.  This being, Microsoft OLEDB drivers will throw ORA-00937 if you try to use CURSOR_SHARING=SIMILAR or FORCE to connect to your database.  To resolve this ORA-00937 bug, you should try using CURSOR_SHARING=EXACT or an Oracle ODBC driver.


Here is another example of a user encountering ORA-00903 from the OraFAQ forums:

Question:

I am trying to use a function that I created which will calculate my customer's bills, including discounts. 

However, every time I try to use the function, I receive ORA-00903.  Any suggestions?

Answer:

You are missing the GROUP BY clause in your function.  Try to take the SQL out and run it in SQL*Plus until it works again.  ORA-00937 can probably be detected during compile, but even if the function shows that it has been compiled, errors such as ORA-00937 may still be thrown.

Also, ORA-00937 may be occurring because of your SELECT clause.   Note that COUNT() and SUM() have to be grouped by all members in the SELECT clause.   


Is your RAC database Healthy?

Get the experts at Burleson Consulting to conduct a two day RAC health check and ensure the health of your RAC database. 

Why guess?  Have your RAC database certified by experienced RAC experts.

 

 

 

 
 
 

Oracle performance tuning book

 

 

Oracle performance tuning software

 
Oracle performance tuning software
 
SearchOracle web site
 
Oracle performance Tuning 10g reference poster
 
Oracle performance tuning webcast
 
Oracle training in Linux commands
 
Oracle training Excel
 
Oracle training & performance tuning books
 

 

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  and include the URL for the page.
 
 


Burleson Consulting

The Oracle of database support


 

Copyright © 1996 -  2007 by Burleson Enterprises, Inc. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.


Hit Counter