|
Re: [CDO] Error running CDO server with Oracle DB [message #1460177 is a reply to message #1458564] |
Mon, 03 November 2014 09:22 |
Esteban Dugueperoux Messages: 472 Registered: July 2009 |
Senior Member |
|
|
Hi Vitaliy,
It seems caused by a upper/lower case issue in SQL table name, we have
had the same issue with MySQL. The work-around was to have all table
named created in upper case.
If you test, tell me if it works for you.
Best Regards.
Le 02/11/2014 02:15, Vitaliy Chernenko a écrit :
> I am trying to run CDO server with Oracle DB. At first launch (when
> Oracle DB is clear) everything goes ok and CDO server launches
> successfully. But when I start CDO server at the second time I get this
> error:
>
> !MESSAGE ORA-00955: --> CREATE TABLE CDO_BRANCHES (ID NUMBER(12) NOT
> NULL, NAME VARCHAR2(255 CHAR), BASE_ID NUMBER(12), BASE_TIME NUMBER)
> !STACK 0
> org.eclipse.net4j.db.DBException: ORA-00955: --> CREATE TABLE
> CDO_BRANCHES (ID NUMBER(12) NOT NULL, NAME VARCHAR2(255 CHAR), BASE_ID
> NUMBER(12), BASE_TIME NUMBER)
> at org.eclipse.net4j.db.DBUtil.execute(DBUtil.java:830)
> at org.eclipse.net4j.spi.db.DBAdapter.createTable(DBAdapter.java:437)
> at org.eclipse.net4j.spi.db.DBAdapter$1.visit(DBAdapter.java:378)
> at
> org.eclipse.net4j.internal.db.ddl.delta.DBTableDelta.doAccept(DBTableDelta.java:182)
>
> at
> org.eclipse.net4j.internal.db.ddl.delta.DBDelta.accept(DBDelta.java:89)
> at
> org.eclipse.net4j.internal.db.ddl.delta.DBDelta.accept(DBDelta.java:98)
> at org.eclipse.net4j.spi.db.DBAdapter.updateSchema(DBAdapter.java:420)
> at
> org.eclipse.net4j.internal.db.DBSchemaTransaction.run(DBSchemaTransaction.java:124)
>
> at
> org.eclipse.net4j.internal.db.DBSchemaTransaction.run(DBSchemaTransaction.java:1)
>
> at org.eclipse.net4j.db.DBUtil.execute(DBUtil.java:796)
> ..
>
> Looks like CDO Server is trying to re-create some tables in Oracle DB,
> but these tables are already there. Tried the same CDO Server with H2
> database everything was ok. What am I doing wrong or am I missing some
> parameters for CDO Server with Oracle?
--
Esteban Dugueperoux - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
|
|
|
|
|
|
|
Re: [CDO] Error running CDO server with Oracle DB [message #1727605 is a reply to message #1727600] |
Thu, 24 March 2016 11:59 |
|
Am 24.03.2016 um 11:42 schrieb Tobias Schneider:
> Hello Eike,
>
> thx for your answer. I think i found the problem.
>
> This is part of my cdo-server.xml configuration:
>
> <repository name="repo">
> ... some properties ...
>
> <store type="db">
> <property name="connectionKeepAlivePeriod" value="60"/>
> <property name="readerPoolCapacity" value="20"/>
> <property name="writerPoolCapacity" value="20"/>
>
> <mappingStrategy type="horizontal"> <property name="qualifiedNames"
> value="true"/>
> </mappingStrategy>
>
> <dbAdapter name="oracle"/>
>
> <dataSource class="oracle.jdbc.pool.OracleDataSource"
> driverType="thin"
> serverName="myserver.mydomain.de"
> portNumber="1521"
> databaseName="mysid"
> user="testuser"
> password="testpwd"/>
> </store>
> </repository>
>
>
> Ok, while create the schema delta the framework reads the DB schema in method
> org.eclipse.net4j.spi.db.DBAdapter.readSchema(Connection connection, IDBSchema schema). Inside the method all DB
> schema names are compared with the configured repository name (in my example 'repo'). But this schema do not exist in
> Oracle. The Oracle schema name is the DB-username (here 'testuser'). So my solution is simple: i changed <repository
> name="repo"> to <repository name="testuser"> and everything is running!
Very good! I'm glad that it works now.
>
> Is this a bug OR was it my mistake while configured the CDO server for Oracle?
Apparently the latter. But I imagine this could be better addressed somewhere in CDO or Net4j DB. I remember that I
never quite understood the different (vendor) interpretations of terms such as database and schema ;-(
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.03979 seconds