Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0038195 | Openbravo ERP | A. Platform | public | 2018-03-22 11:51 | 2018-03-28 18:10 |
Reporter | alostale | ||||
Assigned To | alostale | ||||
Priority | urgent | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | 3.0PR18Q2 | |||
Merge Request Status | |||||
Review Assigned To | caristu | ||||
OBNetwork customer | No | ||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0038195: too many ORA open cursors when reading DB model | ||||
Description | When dbsm reads DB model using Oracle, both while updating and exporting database. Too many cursors and kept open. This can cause the export/update to fail if there are, for example, around 2K indices and open_cursors is limited to 5K. | ||||
Steps To Reproduce | Using Oracle. * Case 1: failure 1.1. Add 2K indexes to DB 2.2. Export database: [java] 69991 ERROR - Error while checking the table where the index XXXXX belongs [java] java.sql.SQLException: ORA-01000: maximum open cursors exceeded [java] [java] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440) [java] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396) [java] at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:837) [java] at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445) [java] at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191) [java] at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:523) [java] at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207) [java] at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:863) [java] at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1153) [java] at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1275) [java] at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3576) [java] at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3620) [java] at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491) [java] at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) [java] at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) [java] at org.apache.ddlutils.platform.oracle.OracleModelLoader.getTableNameFromIndexName(OracleModelLoader.java:430) [java] at org.apache.ddlutils.platform.oracle.OracleModelLoader.getIndexOperatorClass(OracleModelLoader.java:391) [java] at org.apache.ddlutils.platform.oracle.OracleModelLoader.access$100(OracleModelLoader.java:36) [java] at org.apache.ddlutils.platform.oracle.OracleModelLoader$2.fillRow(OracleModelLoader.java:353) [java] at org.apache.ddlutils.platform.ModelLoaderBase.fillList(ModelLoaderBase.java:872) [java] at org.apache.ddlutils.platform.oracle.OracleModelLoader.readIndex(OracleModelLoader.java:340) [java] at org.apache.ddlutils.platform.ModelLoaderBase$17.getRow(ModelLoaderBase.java:489) [java] at org.apache.ddlutils.platform.ModelLoaderBase.readList(ModelLoaderBase.java:821) [java] at org.apache.ddlutils.platform.ModelLoaderBase.readIndexes(ModelLoaderBase.java:487) * Case 2: check open cursors without making it fail 2.1. In a clean pi, export database 2.2. While exporting monitor number of open cursors with select sql_text, count(*) as "OPEN CURSORS", user_name from v$open_cursor group by sql_text, user_name order by count(*) desc,2; -> Check there are a moment where the top 3 open cursors per query reach: SELECT table_name FROM USER_INDEXES U WHERE INDEX_NAME = :1 436 SELECT comments FROM user_tab_comments WHERE UPPER(table_nam 236 SELECT comments FROM user_col_comments WHERE UPPER(table_nam 200 SELECT column_name FROM USER_IND_COLUMNS U WHERE INDEX_NAME 200 | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | Performance | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2018-03-22 11:51 | alostale | New Issue | |||
2018-03-22 11:51 | alostale | Assigned To | => platform | ||
2018-03-22 11:51 | alostale | OBNetwork customer | => No | ||
2018-03-22 11:51 | alostale | Modules | => Core | ||
2018-03-22 11:51 | alostale | Triggers an Emergency Pack | => No | ||
2018-03-22 11:52 | alostale | Review Assigned To | => caristu | ||
2018-03-22 11:52 | alostale | Assigned To | platform => alostale | ||
2018-03-22 11:52 | alostale | Tag Attached: Performance | |||
2018-03-22 12:00 | alostale | Summary | too many open ORA open cursors when reading DB model => too many ORA open cursors when reading DB model | ||
2018-03-22 12:07 | hgbot | Checkin | |||
2018-03-22 12:07 | hgbot | Note Added: 0103426 | |||
2018-03-22 12:07 | hgbot | Status | new => resolved | ||
2018-03-22 12:07 | hgbot | Resolution | open => fixed | ||
2018-03-22 12:07 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/dbsm-main/rev/9f30ffa8fee35d78e72e1ceb315a0564b6e9f644 [^] | ||
2018-03-22 12:07 | hgbot | Checkin | |||
2018-03-22 12:07 | hgbot | Note Added: 0103427 | |||
2018-03-22 12:07 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/dbsm-main/rev/9f30ffa8fee35d78e72e1ceb315a0564b6e9f644 [^] => http://code.openbravo.com/erp/devel/pi/rev/8e91e721e8fab4f5ad8c82bd75b36b7d5a0f8764 [^] | ||
2018-03-23 21:22 | hudsonbot | Checkin | |||
2018-03-23 21:22 | hudsonbot | Note Added: 0103476 | |||
2018-03-28 18:10 | caristu | Note Added: 0103627 | |||
2018-03-28 18:10 | caristu | Status | resolved => closed | ||
2018-03-28 18:10 | caristu | Fixed in Version | => 3.0PR18Q2 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|