-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: DB2 Error: SQLCODE: -473, SQLSTATE: 42918, SQLERRMC: null
PostPosted: Fri Mar 05, 2004 2:22 pm 
Beginner
Beginner

Joined: Fri Mar 05, 2004 1:48 pm
Posts: 28
Hi.
I am new to using Hibernate and am trying to connect it with DB2 OS/390 using the DB2JCC driver. I am nusing the DB2Dialect. I have searched the web and the forums here for similar problems but have not found any. Does anyone have any insight into what my problem is?

I understand the drop error since the tables are not there. I am assuming this is an attempt to start "fresh" when building hibernate. The create table errors are my concern. I get errors for all of the tables but I have only posted these since the others are duplicates.

When running "ant eg" I get the following:

[java] 12:18:42,547 DEBUG SchemaExport:132 - drop table Bid
[java] 12:18:43,088 DEBUG SchemaExport:137 - Unsuccessful: drop table Bid
[java] 12:18:43,088 DEBUG SchemaExport:138 - DB2 SQL error: SQLCODE: -204, SQLSTATE: 42704, SQLERRMC: user.BID
[java] 12:18:43,088 DEBUG SchemaExport:149 - create table AuctionItem (
[java] id BIGINT not null generated by default as identity,
[java] description VARCHAR(255),
[java] ends TIMESTAMP,
[java] condition INTEGER,
[java] seller BIGINT not null,
[java] successfulBid BIGINT,
[java] primary key (id)
[java] )
[java] 12:18:43,138 ERROR SchemaExport:154 - Unsuccessful: create table AuctionItem (id BIGINT not null generated by default
entity, description VARCHAR(255), ends TIMESTAMP, condition INTEGER, seller BIGINT not null, successfulBid BIGINT, primary ke
))
[java] 12:18:43,138 ERROR SchemaExport:155 - DB2 SQL error: SQLCODE: -473, SQLSTATE: 42918, SQLERRMC: null
______________________________________________

Any help is greatly appreciated!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 05, 2004 4:26 pm 
Beginner
Beginner

Joined: Fri Mar 05, 2004 1:48 pm
Posts: 28
Sorry, left out some things:

Hibernate Version is 2.1
Database DB2 7.1


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 05, 2004 4:54 pm 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
Looks like you do not have privilege to execute DDL statements.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 05, 2004 5:05 pm 
Beginner
Beginner

Joined: Fri Mar 05, 2004 1:48 pm
Posts: 28
I will write the DBA. I actually don 't need to create tables anyway, I just wanted to run the examples to get started. My real goal is to use a tool like middelgen to generate the info for tables which already exist.

I don't need to execute DDL statements for that do I?
Thanks for the reply BTW.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2004 5:40 pm 
Beginner
Beginner

Joined: Fri Mar 05, 2004 1:48 pm
Posts: 28
I am still having trouble. The DBA gave me DDL create and update privledge under my schema. Still didn't work. So I started everything over. Downloaded a new copy of hibernate and dropped the HSQL jar in the lib directory since its easier than DB2. Ran ant eg and I still get the same errors.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.