• Post Reply Bookmark Topic Watch Topic
  • New Topic

Somebody Please Help!!!! Trouble creating Cloudscape DB!!!! SOS  RSS feed

 
pankaj agarwal
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys!
I am a newbie learning J2EE. I was attempting to do this Example SavingsAccount BMP example. I could deploy the application, but am unable to run cloudscape...it seems the cloudscape DB and savingsaccount table is not gettng created.
I used ant utility to create savingsaccount table. Is there any way other that "ant" to create the CloudscapeDB and savingsaccount table in embedded Cloudscape?
Please Help!!!
Pankaj Agarwal

P.S. This is my third mail on the same topic so u could imagine how desparate I am to get the solution. :-(
 
Craig Berry
Author
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't specify which server you are running as it can make a difference. For example, WebLogic will start the database process for you (but you need to create the tables yourself using Cloudview or similiar). The Reference Implementation however requires you to run a seperate process for the database (see cloudscape.bat in the bin directory), but it will create the tables for you.
 
pankaj agarwal
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx for the reply!
I am using J2EE server which comes bundled with J2SDKEE1.3.
I am starting Cloudscape.bat before running j2ee. The problem, I think is that the cloudscape is not creating any tables/database by itself.
I am stuck, really...just don't know how to go ahead!!! sigh

pankaj
 
Jorge Phillips
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pankaj,
Assume your DB is deployed as CloudscapeDB. You need to prepare a file of SQL statements to execute (before deployment), and use a Cloudscape utility to execute that file. This will create your DB. For example to create a table you can create a simple file that drops the table, creates it with the structure you want and exits. Lets suppose you call this SQL file makeit.sql
Execute the following two commands in a DOS window as is:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!