Bug 477667 - CDO bootstrap failure when Oracle recycle bin is not empty
Summary: CDO bootstrap failure when Oracle recycle bin is not empty
Status: NEW
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.db (show other bugs)
Version: 4.13   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-17 04:54 EDT by Jean-Francois Brazeau CLA
Modified: 2020-12-11 10:43 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Francois Brazeau CLA 2015-09-17 04:54:55 EDT
If you reset your Oracle schema by droping all CDO tables, tables are in fact moved to the recycle bin.

When CDO startups it seems to process these tables and fails when executing such a request :  SELECT * FROM BIN$3REAOUPYTJ+AXL21HGB8XQ==$0;

(once a table has been droped, its name looks like "BIN$3REAOUPYTJ+AXL21HGB8XQ==$0" in the recycle bin).

This request could work if the table name was surroundes by double quotes, but CDO doesn't do it and the request fails.

Here is the stack :
java.sql.SQLException: ORA-00933: SQL command not properly ended
  at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
  at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
  at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
  at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
  at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:207)
  at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:790)
  at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1038)
  at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:830)
  at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1133)
  at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1273)
  at org.eclipse.net4j.spi.db.DBAdapter.readFields(DBAdapter.java:193)
  at org.eclipse.net4j.spi.db.DBAdapter.readSchema(DBAdapter.java:167)
Comment 1 Eike Stepper CLA 2016-07-31 00:54:49 EDT
Moving all unaddressed bugzillas to 4.6.
Comment 2 Eike Stepper CLA 2017-12-28 01:14:34 EST
Moving all open bugs to 4.7
Comment 3 Eike Stepper CLA 2019-11-08 02:10:50 EST
Moving all unresolved issues to version 4.8-
Comment 4 Eike Stepper CLA 2019-12-13 12:42:54 EST
Moving all unresolved issues to version 4.9
Comment 5 Eike Stepper CLA 2020-12-11 10:43:21 EST
Moving to 4.13.