Home > error ora > error ora 01786

Error Ora 01786

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Why can't I use SELECT … FOR UPDATE with aggregate functions? up vote 6 down vote favorite 1 I have an application where I find a sum() of a database column for a set of records and later use that sum in a separate query, similar to the following (made up tables, but the idea is the same): SELECT Sum(cost) INTO v_cost_total FROM materials WHERE material_id >=0 AND material_id <= 10; [a little bit of interim work] SELECT material_id, cost/v_cost_total INTO v_material_id_collection, v_pct_collection FROM materials WHERE material_id >=0 AND material_id <= 10 FOR UPDATE; However, in theory someone could update the cost column on the materials table between the two queries, in which case the calculated percents will be off. Ideally, I would just use a FOR UPDATE clause on the first query, but when I try that, I get an error: ORA-01786: FOR UPDATE of this query expression is not allowed Now, the work-around isn't the problem - just do an extra query to lock the rows before finding the Sum(), but that query would serve no other purpose than locking the tables. While this particular example is not time consuming, the extra query could cause a performance hit in certain situations, and it's not as clean, so I'd like to avoid having to do that. Does anyone know of a particular reason why this is not allowed? In my head, the FOR UPDATE clause should just lock the rows that match the WHERE clause - I don't see why it matters what we are doing with those rows. EDIT: It looks like SELECT ... FOR UPDATE can be used with analytic fu

not work correctly without it enabled. Please turn JavaScript back on and reload this page. All Places > JBoss AS > Persistence > Discussions Please enter a title. You can not post a blank message. Please type your message and try again. 6 Replies Latest reply on Jun 22, 2004 5:08 AM by cslenkey ORA-01786: FOR UPDATE of this query expression is not allowe cslenkey May 19, 2004 11:38 AM Hi,We have an EJB application wich is running now in JBoss-3.2.2RC3.I would like to use this on JBoss-3.2.4RC1 because I have read in the forumthat there is a solution to use JOINs and SUBSELECT in querys.When we are running our application we get the:ORA-01786: FOR http://stackoverflow.com/questions/18455473/why-cant-i-use-select-for-update-with-aggregate-functions UPDATE of this query expression is not allowedOracle error.When I analized the server log of 3.2.3 and 3.2.4 I found the difference.The SQL select which was generated by the previous version is the next:SELECT DISTINCT t0_d.berletId, t0_d.berletNyk, t0_d.szeriaszam,t0_d.megnevezes, t0_d.ervenyessegTol, t0_d.ervenyessegIg,t0_d.eloadasSzam FROM BERLET t0_d WHERE ((t0_d.berletNyk = ?)) OR((t0_d.berletNyk = ?))The new version generates the same SQL code with an FOR UPDATE atend of the SQL which command https://developer.jboss.org/thread/24131 generates the ORA-1786 error.Every SQL has the same FOR UPDATE ending which comes from a finder method.I try to run this SQL in a simple SQL prompt but same situation.What has changed? Why does differ the two SQL? I have not change any configuration of JBoss?Thanks,Csaba 54419Views Tags: none (add) This content has been marked as final. Show 6 replies 1. Re: ORA-01786: FOR UPDATE of this query expression is not al Frank Langelage May 19, 2004 3:42 PM (in response to cslenkey) One reason for the "for update" clause would be a config line in standardjbosscmp-jdbc.xml /jbosscmp-jdbc.xml: true Like Show 0 Likes(0) Actions 2. Re: ORA-01786: FOR UPDATE of this query expression is not al cslenkey May 20, 2004 2:13 AM (in response to cslenkey) Thanks for your answer.Of course we use false setting.That is the reason why I do not understand what has changed between the two versions.Csaba Like Show 0 Likes(0) Actions 3. Re: ORA-01786: FOR UPDATE of this query expression is not al cslenkey May 20, 2004 9:33 AM (in response to cslenkey) DISTINCT and FOR UPDATE are incompatible. This the reason of the Oracle-01786 error message.But why does generate different SQL code JBoss3.2.2R

use a FOR UPDATE clause http://www.oracle-error.com/8i/ora-01786.html on the result of a set expression involving GROUP BY, DISTINCT, UNION, INTERSECT, or MINUS. Action: Check the syntax, remove the FOR UPDATE clause, and retry the statement. Version 8i FOR UPDATE of this query expression is not allowed Cause: An attempt was made to error ora use a FOR UPDATE clause on the result of a set expression involving GROUP BY, DISTINCT, UNION, INTERSECT, or MINUS. Action: Check the syntax, remove the FOR UPDATE clause, and retry the statement. This entry was posted in Oracle 8i Errors, Oracle 9i Errors, Oracle error ora 01786 Database Server Messages. Bookmark the permalink. Leave a Reply Cancel reply Your email address will not be published. Required fields are marked *Comment Name * Email * Website Currently you have JavaScript disabled. In order to post comments, please make sure JavaScript and Cookies are enabled, and reload the page. Click here for instructions on how to enable JavaScript in your browser. Search for: Recent Commentsabhi on ORA-24237oracle-error on ORA-24237abhi on ORA-24237Mike TAILOR on ORA-12154oracle-error on ORA-39776Support services ? Some messages recommend contacting Oracle Support Services to report a problem. Please go here for more information : Oracle Support Archives April 2015 Categories EXP Messages Oracle 10g Errors Oracle 11g Errors Oracle 8i Errors Oracle 9i Errors Oracle Database Server Messages Recent Posts XML-30017 XML-30016 XML-30014 XML-30013 XML-30012 Oracle-Error.com 2016Zerif Lite powered by WordPress

 

Related content

connection was refused with error ora-12518

Connection Was Refused With Error Ora- table id toc tbody tr td div id toctitle Contents div ul li a href Listener Could Not Hand Off Client Connection Sqlplus a li li a href Logging listener name on a li li a href Ibm aix Risc System Error Broken Pipe a li ul td tr tbody table p connection Posted by Anil Kumar on June All Posts Database Oracle relatedl DBA Comments Fixed ORA- TNS listener could ora- solution not hand off client connection vote You try listener refused the connection with the following error ora to connect with Oracle

error ora 41214

Error Ora table id toc tbody tr td div id toctitle Contents div ul li a href Frm Unable To Get Report Job Status a li li a href Frm- a li li a href Rep- a li li a href Run report object In Oracle Forms g a li ul td tr tbody table p CommunityOracle User Group CommunityTopliners CommunityOTN Speaker BureauJava CommunityError You don't have JavaScript enabled This tool uses JavaScript and much of it relatedl will not work correctly without it enabled frm- c Please turn JavaScript back on and reload this page Please p h id

error ora 01925

Error Ora p SQL TuningSecurityOracle UNIXOracle LinuxMonitoringRemote supportRemote plansRemote servicesApplication Server ApplicationsOracle FormsOracle PortalApp UpgradesSQL ServerOracle ConceptsSoftware SupportRemote Support SPAN Development Implementation Consulting StaffConsulting PricesHelp relatedl Wanted Oracle PostersOracle Books Oracle Scripts Ion Excel-DB Don Burleson Blog P TD TR TBODY FORM td ORA- maximum of string enabled roles exceeded tips Oracle Error Tips by Burleson Consulting S Karam The Oracle docs note this on the ora- error ORA- maximum of string enabled roles exceeded Cause The INIT ORA parameter max enabled roles has been exceeded font Action Increase max enabled roles and warm start the database An example of

error ora 02256

Error Ora table id toc tbody tr td div id toctitle Contents div ul li a href Train a li ul td tr tbody table p MySQL MariaDB PostgreSQL SQLite MS Office Excel Access Word Web Development HTML CSS Color Picker Languages C Language More relatedl ASCII Table Linux UNIX Java Clipart Techie Humor Advertisement number of referencing columns in foreign key differs from number of referenced columns Oracle Basics ALIASES AND AND OR BETWEEN COMPARISON OPERATORS DELETE DISTINCT p h id Train p EXISTS FROM GROUP BY HAVING IN INSERT INSERT ALL INTERSECT IS NOT NULL IS NULL JOIN

error ora 29875

Error Ora p without it enabled Please turn JavaScript back on and reload this page All Places GIS Managing Data DiscussionsLog in to create and relatedl rate content and to follow bookmark and share content with other members Underlying DBMS error ORA- failed in the execution of the ODCIINDEXINSERT routDiscussion created by mousaem on Feb Latest reply on Sep by staspinar Like bull Show Likes Comment bull Hi i have a feature class that is versioned with st geometry storage when i try to edit it using ArcMap with an Oracle user that has the full editing privileges i receive

error ora

Error Ora table id toc tbody tr td div id toctitle Contents div ul li a href Ora Error List a li li a href Ora Err a li li a href Error Ora Sql Developer a li li a href Error Ora a li ul td tr tbody table p and other ora error codes troubleshooting information in these books List of Message Types p h id Ora Error List p ORA- to ORA- ORA- to ORA- ORA- to ORA- ORA- to ORA- ORA- to oracle error ORA- ORA- to ORA- ORA- to ORA- ORA- to ORA- ORA- to

error ora 12154

Error Ora table id toc tbody tr td div id toctitle Contents div ul li a href Error Ora a li li a href Connect Identifier a li li a href Oracle Connection Error Ora- a li ul td tr tbody table p SQL TuningSecurityOracle UNIXOracle LinuxMonitoringRemote supportRemote plansRemote servicesApplication Server ApplicationsOracle FormsOracle PortalApp UpgradesSQL ServerOracle ConceptsSoftware SupportRemote Support SPAN Development Implementation Consulting StaffConsulting PricesHelp Wanted relatedl Oracle PostersOracle Books Oracle Scripts Ion Excel-DB error ora Don Burleson Blog P TD TR TBODY FORM td error ora ORA- TNS could not resolve service name tips Question I need help with

error ora 12640

Error Ora p OPSSQL relatedl a user may get the following error Problem sqlnet ora has the following entry SQLNET AUTHENTICATION SERVICES NTS Resolution The work around for this is to set the SQLNET AUTHENTICATION SERVICES NONE in the sqlnet ora fileIn Windows Explorer go to the local hardrive E in this case to E Oracle Ora Network Admin sqlnet ora Save changes and close sqlnet ora and log back into OPSSQL Related Articles No Related Articles Available Article Attachments No Attachments Available Related External Links No Related Links Available Help us improve this article What did you think of

error ora 20900

Error Ora table id toc tbody tr td div id toctitle Contents div ul li a href Ora- a li ul td tr tbody table p during submitting the backup job If this is your first visit be sure to relatedl check out the FAQ by clicking the link oracle error ora- above You may have to register before you can post click p h id Ora- p the register link above to proceed To start viewing messages select the forum that you want to visit from the selection below Results to of Thread Ora- during submitting the backup job

error ora 01727

Error Ora p MySQL MariaDB PostgreSQL SQLite MS Office Excel Access Word Web Development HTML CSS Color Picker Languages C Language More ASCII Table Linux UNIX Java relatedl Clipart Techie Humor Advertisement Oracle Basics ALIASES AND AND numeric precision specifier is out of range to error OR BETWEEN COMPARISON OPERATORS DELETE DISTINCT EXISTS FROM GROUP BY HAVING IN INSERT number datatype in oracle INSERT ALL INTERSECT IS NOT NULL IS NULL JOIN LIKE MINUS NOT OR ORDER BY PIVOT REGEXP LIKE SELECT SUBQUERY TRUNCATE ora invalid identifier UNION UNION ALL UPDATE WHERE Oracle Advanced Oracle Cursors Oracle Exception Handling Oracle

error ora 3114

Error Ora p SQL TuningSecurityOracle UNIXOracle LinuxMonitoringRemote supportRemote plansRemote servicesApplication Server ApplicationsOracle FormsOracle PortalApp UpgradesSQL ServerOracle ConceptsSoftware SupportRemote Support SPAN Development Implementation Consulting StaffConsulting PricesHelp Wanted Oracle PostersOracle Books Oracle relatedl Scripts Ion Excel-DB Don Burleson Blog P TD TR TBODY FORM td ORA- Not Connected to Oracle tips Oracle Database Tips by Burleson Consulting td tr The ORA- Not Connected to Oracle error is commonly found when there is a problem with the network connectivity The docs note ORA- not connected to ORACLE Cause A call to Oracle was attempted when no connection was established Usually this happens because

error ora 01458

Error Ora table id toc tbody tr td div id toctitle Contents div ul li a href Ora- Solution a li ul td tr tbody table p SQL TuningSecurityOracle UNIXOracle LinuxMonitoringRemote supportRemote plansRemote servicesApplication Server ApplicationsOracle FormsOracle PortalApp UpgradesSQL ServerOracle ConceptsSoftware SupportRemote Support SPAN Development relatedl Implementation Consulting StaffConsulting PricesHelp Wanted Oracle ora- pro c PostersOracle Books Oracle Scripts Ion Excel-DB Don Burleson Blog p h id Ora- Solution p P TD TR TBODY FORM td ORA- invalid length inside variable character ora- invalid length for variable character string string Oracle Error Tips by Burleson Consulting The Oracle docs note

error ora 38029 object statistics are locked

Error Ora Object Statistics Are Locked p want to lock statistics in a table in certain cases for example if you want a table not be relatedl analyzed by automatic statistics job but analyze it later or in cases where you want prevent from analyzing statistics in cases where data in the table doesn't change The following example shows how to lock table statistics and what happens when one tries to gather statistics on table that has statistics locked -- create table SQL create table test x number Table created -- create index SQL create index test idx on test

error ora 12546 tns permission denied

Error Ora Tns Permission Denied p SQL TuningSecurityOracle UNIXOracle LinuxMonitoringRemote supportRemote plansRemote servicesApplication Server ApplicationsOracle FormsOracle PortalApp UpgradesSQL ServerOracle ConceptsSoftware SupportRemote Support relatedl SPAN Development Implementation Consulting StaffConsulting PricesHelp Wanted Oracle PostersOracle Books Oracle Scripts Ion Excel-DB Don Burleson Blog P TD TR TBODY FORM td ORA- TNS permission denied tips Oracle Error Tips by Stephanie F The Oracle docs note this on the ora- error ORA- TNS permission denied Cause User has insufficient privileges to perform the requested operation font Action Acquire necessary privileges and try again These two links have great resources on information concerning ORA- http www

error ora-12505

Error Ora- table id toc tbody tr td div id toctitle Contents div ul li a href Listener Refused Connection Error Ora- a li li a href Error Ora Sql Developer a li li a href Ora Jdbc a li li a href Listener Refused The Connection With The Following Error Ora- In Oracle Sql Developer a li ul td tr tbody table p here for a p h id Listener Refused Connection Error Ora- p quick overview of the site Help Center Detailed ora error answers to any questions you might have Meta Discuss the workings and p h

error ora 12540

Error Ora p SQL TuningSecurityOracle UNIXOracle LinuxMonitoringRemote supportRemote plansRemote servicesApplication Server ApplicationsOracle FormsOracle PortalApp UpgradesSQL ServerOracle ConceptsSoftware SupportRemote Support SPAN Development Implementation Consulting StaffConsulting PricesHelp Wanted Oracle PostersOracle relatedl Books Oracle Scripts Ion Excel-DB Don Burleson Blog ora- windows P TD TR TBODY FORM td ORA- tns- internal connection limit has been reached listener has shut down TNS Internal Limit Restriction Exceeded Tips Oracle Error Tips by Stephanie F Question The basic error we're getting is ORA- when we're trying to allocate sessions on a Redhat Linux server running Oracle Here is some example output of the DB error our

error ora 00931

Error Ora p ORA- missing identifier ORA- at SYS DBMS UTILITY line message Thu relatedl October Conor Messages Registered October Junior Member I am using the comma to table listing have you any idea why I might be getting this BEGIN ERROR at line ORA- missing identifier ORA- at SYS DBMS UTILITY line ORA- at SYS DBMS UTILITY line ORA- at QPI SPCOMMATOFILETBLUSERSITES line ORA- at line when I try running the comma to table stored procedure while not passing in s it works ok however when I try passing in s I get errors in my SQL Plus worksheet

error ora 12538

Error Ora table id toc tbody tr td div id toctitle Contents div ul li a href Ora- Forms i a li ul td tr tbody table p SQL TuningSecurityOracle UNIXOracle LinuxMonitoringRemote supportRemote plansRemote servicesApplication Server ApplicationsOracle FormsOracle PortalApp UpgradesSQL ServerOracle ConceptsSoftware SupportRemote Support SPAN relatedl Development Implementation Consulting StaffConsulting PricesHelp Wanted ora- no such protocol adapter Oracle PostersOracle Books Oracle Scripts Ion Excel-DB Don Burleson p h id Ora- Forms i p Blog P TD TR TBODY FORM td ORA- TNS no such protocol adapter font Oracle Database Tips by Burleson Consulting From the Oracle documentation we see this

error ora-06512 oracle

Error Ora- Oracle table id toc tbody tr td div id toctitle Contents div ul li a href Oracle Error Ora a li li a href Oracle Error Ora a li li a href Oracle Error Ora a li ul td tr tbody table p MySQL MariaDB PostgreSQL SQLite MS Office Excel Access Word Web Development HTML CSS Color Picker Languages C relatedl Language More ASCII Table Linux UNIX Java Clipart oracle error ora Techie Humor Advertisement Oracle Basics ALIASES AND AND OR BETWEEN COMPARISON p h id Oracle Error Ora p OPERATORS DELETE DISTINCT EXISTS FROM GROUP BY HAVING

error ora 06401

Error Ora p SQL TuningSecurityOracle UNIXOracle LinuxMonitoringRemote supportRemote plansRemote servicesApplication Server ApplicationsOracle FormsOracle PortalApp UpgradesSQL ServerOracle ConceptsSoftware relatedl SupportRemote Support SPAN Development Implementation Consulting StaffConsulting PricesHelp Wanted Oracle PostersOracle Books Oracle Scripts Ion Excel-DB Don Burleson Blog P TD TR TBODY FORM td ORA- NETCMN invalid driver designator tips Oracle Error Tips by Stephanie F The Oracle docs note this on the ora- error ORA- NETCMN invalid driver designator Cause The login connect string contains an invalid driver designator font Action Correct the string and re-submit Internet sources contain information on error ORA- specifically when using database links Here is

error ora 20026

Error Ora table id toc tbody tr td div id toctitle Contents div ul li a href Ora- No Data Found a li li a href Ora- a li li a href Ora- a li ul td tr tbody table p Sybase ASE Visual Expert for MS SQL Server Enable for relatedl PowerBuilder Deploy PB apps on the web Other ora- pl sql numeric or value error character string buffer too small Solutions Impact Analysis Source Code Documentation Knowledge Transfer Code Exploration Code Review ora Authorizations Authentication Audit Reporting Localization Translation SQL Extraction Source Change from Runtime PB Code Protection

error ora 01423

Error Ora table id toc tbody tr td div id toctitle Contents div ul li a href Ora- a li li a href Ora- a li ul td tr tbody table p MySQL MariaDB PostgreSQL SQLite MS Office Excel relatedl Access Word Web Development HTML CSS Color p h id Ora- p Picker Languages C Language More ASCII Table Linux UNIX ora- invalid number Java Clipart Techie Humor Advertisement Oracle Basics ALIASES AND AND OR BETWEEN COMPARISON OPERATORS p h id Ora- p DELETE DISTINCT EXISTS FROM GROUP BY HAVING IN INSERT INSERT ALL INTERSECT IS NOT NULL IS NULL

error ora 24408

Error Ora table id toc tbody tr td div id toctitle Contents div ul li a href Php Oci connect a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of relatedl this site About Us Learn more about Stack Overflow the oci connect ora- could not generate unique server group name company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions p h id Php Oci connect p Jobs Documentation Tags Users

error trying to retrieve text for error ora-12154

Error Trying To Retrieve Text For Error Ora- table id toc tbody tr td div id toctitle Contents div ul li a href Error Ora a li li a href Error Ora a li li a href Error Ora a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to relatedl any questions you might have Meta Discuss the workings ora error in oracle g and policies of this site About Us Learn more about Stack Overflow p h id Error Ora p the company Business Learn more about hiring

error while retrieving text for error ora-01019

Error While Retrieving Text For Error Ora- table id toc tbody tr td div id toctitle Contents div ul li a href Error While Trying To Retrieve Text For Error Ora- Windows a li li a href Ora- Windows a li li a href Error While Trying To Retrieve Text For Error Ora- C a li ul td tr tbody table p SQL TuningSecurityOracle UNIXOracle LinuxMonitoringRemote supportRemote plansRemote servicesApplication Server ApplicationsOracle FormsOracle PortalApp relatedl UpgradesSQL ServerOracle ConceptsSoftware SupportRemote Support SPAN Development error while trying to retrieve text for error ora vb Implementation Consulting StaffConsulting PricesHelp Wanted Oracle PostersOracle cse error

ora-12518 error oracle 10g

Ora- Error Oracle g table id toc tbody tr td div id toctitle Contents div ul li a href Ora Sql Developer a li li a href Listener Could Not Hand Off Client Connection Sqlplus a li li a href Direct handoff ttc listener off a li ul td tr tbody table p CommunityOracle User Group CommunityTopliners CommunityOTN Speaker BureauJava CommunityError You don't have JavaScript enabled This tool uses JavaScript and much of it will not work correctly without it enabled Please turn JavaScript back on and reload this page Please enter a title You relatedl can not post a

oracle error ora 31011

Oracle Error Ora table id toc tbody tr td div id toctitle Contents div ul li a href Error Ora Xml Parsing Failed a li li a href Ora- a li li a href Lpx- Unexpected End-of-file Encountered a li ul td tr tbody table p CommunityOracle User Group CommunityTopliners CommunityOTN Speaker BureauJava CommunityError You don't have JavaScript enabled This tool uses JavaScript and much of it relatedl will not work correctly without it enabled ora- xml parsing failed ora- Please turn JavaScript back on and reload this page Please p h id Error Ora Xml Parsing Failed p enter

oracle error ora-01797

Oracle Error Ora- table id toc tbody tr td div id toctitle Contents div ul li a href Any Sql a li li a href Ora- a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of relatedl this site About Us Learn more about Stack Overflow the oracle error ora this operator must be followed by any or all company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions database error ora-

oracle error ora-12518

Oracle Error Ora- table id toc tbody tr td div id toctitle Contents div ul li a href Listener Refused The Connection With The Following Error Ora a li li a href Direct handoff ttc listener off a li li a href Tns- Tns- Tns- Tns- a li li a href Logging listener name on a li ul td tr tbody table p CommunityOracle User Group CommunityTopliners CommunityOTN Speaker BureauJava CommunityError You don't have JavaScript enabled This tool uses JavaScript and much of it will not work correctly without it enabled Please turn JavaScript back on and reload this page