Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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. :-(
 
Author
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic