ERROR:maximum cursor open,ORA-01000
來自: 15-Jul-03 08:07
主題: ERROR:maximum cursor open
ERROR:maximum cursor open
Hi All
I am working with oracle8.1.7 with tomcat 4.0.4 server .when i run application and save particular form then after save
i am getting maximum cursor open error and oracle is not respond then server might be restart again for application.
pls reply as soon as.
Thanks
Kamal yadav
來自: 15-Jul-03 17:10
主題: Re : ERROR:maximum cursor open
Problem Description
-------------------
You have a JDBC application which runs for several hours. It then
returns the following error:
ORA-1000 Maximum open cursors exceeded
The open_cursors parameter in init.ora is currently set to a number in
excess of the maximum number of cursors you expect your application
to have open at any one time. Increasing open_cursors extends the
period of time before failure, but does not resolve the issue.
Solution Description
--------------------
Typically, in Java, when an object goes out of scope, it is automatically garbage collected, but the Java specification does not place any specific requirements on the JVM regarding when (or even if) this will occur for any particular object. Therefore, do not rely on finalizers to close your cursors.
Explicity close all cursors ResultSet.close(), Statement.close(), and
PreparedStatement.close() when you no longer need the cursor. This ensures that the corresponding server-side cursors are closed, preventing the ORA-1000 error. Be sure to close these JDBC objects within the scope that they were created. Closing these objects in a finally{} block is recommended, however, DO NOT rely upon a finalize() method because a finalize() method is never guaranteed to run by the JVM!
A common error occurs when CallableStatement is used to call a PL/SQL procedure that returns a REF CURSOR. If you do not close the corresponding ResultSet object,a cursor will be left open on the server.
You can query the SQL_TEXT column in V$OPEN_CURSOR view from the schema to determine which cursors are not being closed. For example:
select sql_text from v$open_cursor;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-84232/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- open_cursor & session_cached_cursor實驗Session
- 理解V$OPEN_CURSOR,SESSION_CACHED_CURSORSession
- 理解V$OPEN_CURSOR, V$SESSION_CACHED_CURSORSession
- [zt] 理解V$OPEN_CURSOR, V$SESSION_CACHED_CURSORSession
- SESSION_CURSOR_CACHE open_cursorsSession
- ABAP OPEN SQL裡OPEN CURSOR和SELECT的比較SQL
- [ERROR] Failed to open logErrorAI
- 11gr2,V$OPEN_CURSOR增加cursor_type欄位
- open_cursor session_cached_cursors 優化Session優化
- 【DBA 指令碼】查詢current open cursor的指令碼指令碼
- 學習動態效能表(13)--V$OPEN_CURSOR
- ERROR: UTL_SMTP.OPEN_CONNECTIONError
- [ERROR] Can't open the mysql.plugin tableErrorMySqlPlugin
- xtrabackup: Error: cannot open /../../base/xtrabackup_checkpointsError
- ORA-00600: internal error code, arguments: [Cursor not typechecked],Error
- 【CURSOR】How to Monitor and tune Open and Cached Cursors (Doc ID 1430255.1)
- 學習動態效能表第13篇--V$OPEN_CURSOR
- (轉):學習Oracle動態效能表-(16)-V$OPEN_CURSOROracle
- ORA-15186: ASMLIB error function = [asm_open], error = [1]ASMErrorFunction
- 解決 yum clean all Error rpmdb open failedErrorAI
- zt_oracle cursor_open cursors_session_cached_cursors管理及優化OracleSession優化
- 使用 OPEN CURSOR 和 FETCH NEXT CURSOR 對 SAP 資料庫表進行分塊讀寫試讀版資料庫
- ora-01000的處理思路
- DUMP-CX_SY_OPEN_SQL_DB-DBSQL_DUPLICATE_KEY_ERRORSQLError
- Mysql報錯Fatal error:Can't open and lock privilege tablesMySqlError
- DBLOGIN ERROR: Failed to open data source for user OGG.ErrorAI
- ascp: Failed to open TCP connection for SSH, exiting. Session Stop (Error: Failed to open TCP connection for SSH)AITCPSessionError
- ERROR 1168 (HY000): Unable to open underlying table which isError
- E - Maximum Glutton
- nginx: [error] open() “/var/run/nginx/nginx.pid“ failed (2: No such file or directory)NginxErrorAI
- 11g rac multipath asmlib ASM asm_open error Operation not permittedASMErrorMIT
- shared SQL,parent cursor,child cursorSQL
- [20200417]跟蹤特定sql語句以及v$open_cursor檢視.txtSQL
- yarn install 遇到的錯誤訊息 - Error EPERM operation not permitted, open .yarnrcYarnErrorMIT
- MSSQLServer 上討厭的錯誤error: 40 - Could not open a connection to SQL ServerSQLServerError
- 【CURSOR】Oracle 遊標 (cursor)知識梳理Oracle
- Oracle CursorOracle
- Cursor使用