Somebody Please Help!!!! Trouble creating Cloudscape DB!!!! SOS
pankaj agarwal
Ranch Hand
Joined: Oct 13, 2000
Posts: 39
posted
0
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
Joined: Aug 02, 2001
Posts: 25
posted
0
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.
Craig Berry<br />Author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861005083/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional EJB</a>
pankaj agarwal
Ranch Hand
Joined: Oct 13, 2000
Posts: 39
posted
0
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
Joined: Jun 03, 2001
Posts: 43
posted
0
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:
subject: Somebody Please Help!!!! Trouble creating Cloudscape DB!!!! SOS