How to create a database using Cloudscape provided by Weblogic

Hi,
I am new to EJB and i am trying to run the sample Entity bean given in the book "Enterprise
Java Beans" by Richard Monson-Haefel.In the 4th chapter he has given a example Cabin
Entity bean.
My problem is i am not able to execute Cloudscape to create a table called CABIN.
I first set the environment by giving command \weblogic\setEnv (i have done the CLASSPATH
setting for cloudscape in this).When i give the command >java COM.cloudscape.tools.cview
, I get a error "Exception in thread Main".
Can anyone help me on this ?
Thanx in advance.
Sanjay.

Labview configuration files are very easy to use and can hold any type of information you wish.  There are functions in the File palette ready to use for configuration files.  A configuration file is similar to a registry entry.  You can have sections and keys.  So you can create a section called "Data1" and keys called "Name", "Age", etc.  Create the same for a new section called "Data2", and so on.  The functions are useful for writing the config file and reading from the file.  To read a certain piece of data, just supply the section name and the key name.  So you could ask for section "Data20", key "Name", and you would get the 20th name in the database (config file).  This way you don't have to write code to search the database for certain items, the functions do it for you and they are already written.  Look into config files.  They are very easy to use, very useful, and very underused even by the most experienced LV programmer.
- tbob
Inventor of the WORM Global

Similar Messages

  • How to create sql database using java frame or appelet?

    hi ! i am working on database project i want to create a database using java frame or applet where it asks user to select the location for database to be created , after user have specified the path then the programs creates the database, again i want that database to be read and write by another frame or applet but as user select the path how do i make the connectivity. i just have basic knowledge on java. please give me idea how can i process further.
    thanks a lot

    While duffymo is correct in regard to most major database products, it's my understanding (warning! wild-ass guess coming) that the Hypersonic DB is more "application-centric" and the dynamic creation of databases is part of its design. It's pure Java database software, and therefore is not appropriate for all database projects, in particular those that require extremely high-performance.
    See http://hsqldb.org/
    I've not used it yet (but soon though), and I can't really advise anyone about it.
    However, I'm wondering if you phrased you question in a way that is confusing us. To most of us in casual conversation, a "database" is both (1) a large organized collection of data and (2) the software that is used to organize and access it. However, the phrase "create a database" usually means creating a (1) database (a collection of data) using an already created (2) database software, such as Oracle, MySQL, DB2, HSQDB, etc., etc. If you'r question is, how do a create some new database software using Java, the answer is that this is a very very big and hard thing to do for the general case and probably not something you want to be doing.

  • How to create a database using Java?

    Hi there..
    I'm a student who is currently studying IT and was asked to do a project based on database but create using Java.. since i'm a beginner..i was wondering whether is it possible to do that?
    and if it is possible.. can you kindly show me a sample of code on how to start the project...
    thank you
    yours sincerely,
    Shafini

    While duffymo is correct in regard to most major database products, it's my understanding (warning! wild-ass guess coming) that the Hypersonic DB is more "application-centric" and the dynamic creation of databases is part of its design. It's pure Java database software, and therefore is not appropriate for all database projects, in particular those that require extremely high-performance.
    See http://hsqldb.org/
    I've not used it yet (but soon though), and I can't really advise anyone about it.
    However, I'm wondering if you phrased you question in a way that is confusing us. To most of us in casual conversation, a "database" is both (1) a large organized collection of data and (2) the software that is used to organize and access it. However, the phrase "create a database" usually means creating a (1) database (a collection of data) using an already created (2) database software, such as Oracle, MySQL, DB2, HSQDB, etc., etc. If you'r question is, how do a create some new database software using Java, the answer is that this is a very very big and hard thing to do for the general case and probably not something you want to be doing.

  • How to create a database using LabView?

    Hy
    I have to do a project in which i have to create a database with the situation of the students (name,age...) using ONLY LabView.I need to enter tha students using labview, to save the database using labview.... I have to figure it out how to do this, but .... no idea. Also i have to make a search in that database. If you can help me, i apreciate that or if you know a link on the web about something like this
    Thanks,
    Lorant

    Labview configuration files are very easy to use and can hold any type of information you wish.  There are functions in the File palette ready to use for configuration files.  A configuration file is similar to a registry entry.  You can have sections and keys.  So you can create a section called "Data1" and keys called "Name", "Age", etc.  Create the same for a new section called "Data2", and so on.  The functions are useful for writing the config file and reading from the file.  To read a certain piece of data, just supply the section name and the key name.  So you could ask for section "Data20", key "Name", and you would get the 20th name in the database (config file).  This way you don't have to write code to search the database for certain items, the functions do it for you and they are already written.  Look into config files.  They are very easy to use, very useful, and very underused even by the most experienced LV programmer.
    - tbob
    Inventor of the WORM Global

  • How to create a database using SQL Developer

    Hallo,
    I am a user of OpenSUSE 11.4 and have Oracle database install in my system. I was reading this page regarding on creating a database. But I don't know how to launch DBCA in my system. May I know how can I launch DBCA in OpenSUSE 11.4?
    THanks @!

    user4994079 wrote:
    Hallo,
    I am a user of OpenSUSE 11.4 and have Oracle database install in my system. I was reading this page regarding on creating a database. But I don't know how to launch DBCA in my system. May I know how can I launch DBCA in OpenSUSE 11.4?
    THanks @!You'd launch it in exactly the manner in which your cited reference says:
    --- begin quote ---
    by entering the following on the UNIX command line:
    dbca
    --- end quote ---
    Of course the documentation assumes you've completed the first five minutes of Computer Admin 101 and so realize you should include the directory that has the executabale file. In this case, your PATH should include $ORACLE_HOME/bin
    So, what have you tried? What result did you get?
    And why are you citing a reference for a old, unsupported version of Oracle?
    And why the reference to SQL Developer in your subject line? This has nothing to do with SQL Developer.
    Edited by: EdStevens on Apr 16, 2011 9:15 PM

  • How to create a database using a SQL statement? Please help.

    Connection con = DriverManager.getConnection("jdbc:oracle:thin:@192.168.0.25:1521:mydb","system","12345678");
    but mydb database does not exist.
    I want to make a connection to oracle server without database name.
    How can I do?

    Colleauge, what is the purpose of making a connection to a non-existent database.
    connections are made to the database to retrieve some data or put some data.
    for which the database should exists.
    so please create the mydb database first using Database Configuration Assistant (DBCA) which is much easier as it is GUI based rather than doing it with sql scripts.

  • Plz provide me some documents on how to clone a database using cold backup

    Dear All,
    Please provide me some documents on how to clone a database using cold backup which is in archive log.
    Also, please can you provide me the document to install Oracle 9.2.0.6 on Aix 5L
    Thanks,
    Mahipal

    Please provide me some documents on how to clone a database using cold >backup which is in archive loghttp://www.oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php
    please can you provide me the document to install Oracle 9.2.0.6 on Aix 5L
    Oracle9i Installation Guide
    Release 2 (9.2.0.1.0) for UNIX Systems: AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, Linux Intel, and Sun Solaris -
    http://download.oracle.com/docs/html/A96167_01/toc.htm

  • How to create standby database by using duplicate

    Dear all,
    How to create standby database by using duplicate,is there some doc to read?

    Hi;
    You can use
    Step-By-Step Guide To Create Physical Standby On Normal File System For ASM Primary using RMAN [ID 838828.1]
    Creating Physical Standby using RMAN Duplicate Without Shutting down The Primary [ID 789370.1]
    Also use goole, there are many blog-site-dogs mention that topic. From googling:
    Creating a Standby Database with Recovery Manager
    http://docs.oracle.com/cd/B19306_01/backup.102/b14191/rcmdupdb.htm
    http://www.pythian.com/news/248/recipes-for-creating-a-managed-standby-with-rman/
    http://docs.oracle.com/cd/B19306_01/server.102/b14239/rcmbackp.htm
    Regard
    Helios

  • Can I create Oracle Database using Java ???

    HI ...
    Can I create a Database using Java... ? If yes can any one tell me how ? I mean provide some codeing help... ???

    If you mean a table yes, since the create table statement is exactly that, an SQL statement, if you mean an SID then I would have to say (AFAIK) no.

  • How to create a database for sample code from Tutorial/Book?

    I want to try out the sample code from [http://shop.oreilly.com/product/0636920013471.do] for the book SQL Pocket Guide 3rd Ed.
    I have downloaded the oracle vm/appliance for oracle 11g2 and I have started sqlplus as sysdba.
    I'm feeling overwhelmed with these links describing how to create a database:
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html]
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    (1) What is the command to list the existing databases?
    (2) What is the command to delete an existing database?
    (3) When creating a new database with the create database command, is it necessary to specify the logfile, character set, national character set, datafile, sysaux datafile, undo tablespace, temp table space? Do these have reasonable defaults? I'm not sure what proper directories are to specify for Linux and the examples are for windows.
    Can someone give me a simplified create database command to create a database called 3rdEdPocketGuide? Should I follow the example at [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html] and instead of orcl use 3rdEdPocketGuide?
    (4) What command do I use to execute the script that comes with the book SQL Pocket Guide 3rd Ed? This is the script that has all the drop table, create table and insert commands in it.
    (5) What command do I use in sqlplus to set the current default database prior to running this script? Perhaps this is the connect command? I don't want my script to create tables in the system database.
    (6) I tried the command "connect 3rdEdPocketGuide" and it prompted for a password! Yikes! What password? Do I need to specify a password when I create a database? I cannot tell if I have successfully created such a database or it is just prompting me for a password to thwart malicious users. Is it is possible to create databases which don't require a password or maybe a zero length password?
    Thanks
    Siegfried
    Edited by: user8816970 on Sep 26, 2012 12:01 PM
    Edited by: user8816970 on Sep 26, 2012 12:18 PM

    user8816970 wrote:
    Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.
    Thanks!
    Siegfried
    >Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    above does NOT use SQL*Net to connect to the instance
    >
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.SQL Developer can only connect to the instance via SQL*Net
    >
    Thanks!
    Siegfrieda database in SQL Server is same as schema/user in Oracle

  • How to create a database in 11g via a bat file

    Hi
    I have had a look around the internet, but I am unable to locate a good example of how to create a database/instance in 11g via a bat file. Can anyone advise me how to do this and what other things do I need to make it work via a bat file?
    Thanks

    user633278 wrote:
    Let me say this - I have taken over from someone who has left a development database which developers want to use asap in a poor state and no documentation. It is only when I started looking at the database that I discovered these problems. At the same time a developer wants a script which they he run to drop and recreate a database - it only needs to be minimal - small database, a few tables and stored procedures.OUI uses RMAN restore to produce starter DB & does not CREATE DATABASE from scratch.
    It takes hours to run CATPROC & such after 100% totally empty results from CREATE DATABASE command

  • How to create CRUD application using bapi in webdynpro java

    Hi All,
          I have implemented the CRUD application using bapi  Now i want to create, retrieve , update and delete the existing table by click on Insert, delete, retrieve ,and update button dynamically. i get null values from database,  Please let me know the logic and procedure for how to create CRUD application using bapi  Please any one help me..
    Thanks in advance

    Hi,
    Hey tell me one thing your BAPI having CURD methods. See you are getting data from BAPI and pull the data in Table in WDJ. So if u can do any action it will comes trough BAPI.
    If your BAPI having CURD methods. You can implement CURD methods in WDJAVA also.
    @ You said you are getting null values from the database. Please let me know what code you have to wrote for CURD. Please tell me.
    Hope this is help full for u
    Best Regards
    Vijay K

  • How to create new database on Oracle 10g

    Hi All,
    Can any one tell me how to create new database on oracle 10g.
    Thanks in Advance for your help.

    again some confusion here.....
    u said u need a new database in your first post and now you saying u need a new schema..
    one database has many schemas(users)..... ex: scott,sys,system are few of them...
    now it depends you need seperate database for test,dev environment - this is in the case u have many schemas under each database and many tables(objects) under each schema.
    OR
    You just need a separate schema (in same db) for test,dev environment...where in you will have multiple tables in each schema...U need to know the dba credentials of the db to create a new schema.
    ideally u need to have different database...You can create one with out sys/system(oracle users) password as these passwords are db dependent.
    what you need is access to the any machine where server is installed(can be the same mc where you have your dev db or a diff machine) and that will be the machine where your db will be installed (can do it through database configuration assistance),ofcourse you will need windows authentication for this.
    so you login to the same machine or access it from your machine using remote login.
    I hope that is clear.Hope i am not listing things that you already know..Just did it coz of confusion between db and schema
    Message was edited by:
    coolguy

  • How to create first database

    Hi there,
    This is my first post on this forum. I am totaly new to Oracle as I am working on one project which require Oracle as db.
    I have installed Oracle Database 10g Express Edition. I can login by system user or as hr. Now when I am trying to create database instance for my project.net application, I am not finding the option to create the db. Its manual (even here in forum someone) pointed about Configuration and Migration Tool menu under Start/Oracle. But I don't have that option under my oracle. What I have is Start > Oracle Database 10g Express Edition > 1) Help 2) Backup Database 3) Get Started 4) Go to Homepage 5) Start SQL command line 6) Start Db etc...
    Can anyone guide me how to create first database? Thanks in adv and your answer will really be appreciated.
    Regards,
    Yatrik

    I think I didn't explain properly. I can connect. I have got two database users as well. The one is default hr and second I just created as yatrik.
    By saying how to create database, I want to accomplish this below procedure.
    Run the Oracle Database Configuration Assistant located in the Windows Start/Oracle/Configuration and Migration Tools menu to create a database instance for the Project.net application. 1. Select Create a Database the click Next.
    2. Choose the General Purpose database template.
    3. Note the Global Database Name and SID that you use.
    4. Choose your preferred management method. If unsure, chose the default.
    5. Note the password(s) you use for the various accounts.
    6. Select the appropriate storage mechanism for your installation. Again, if unsure, chose the default.
    7. Specify the storage location.
    8. And Recovery Configuration.
    9. Do not install the Sample Schemas.
    10. Select the remaining options, as appropriate to your installation, and create the database. Here when I go to Start > Oracle Database 10g Express Edition, I don't get Configuration and Migration Tools Menu anywhere. The above steps says how to create it but I can't find that tool menu.
    I know how to create tables and all such but I am looking for that particular option where I can complete the above steps.
    I hope I have explained more briefly to understand what I am trying to do.
    Yatrik

  • How to create Royality DataBase

    Hi...
    How to create Royalty DataBase. This is to be used when one company uses another company�s product inside its product and when it sells it pays the other company commission. This can be different by country ad method of sale.

    This question seems to be totally about database design and nothing to do with Java Programming.
    Do you in fact have a Java Programming question? If so what is it?

Maybe you are looking for

  • Dynamic Report Creation At Runtime

    I am trying to create a dynamic crystal report at run time from Visual Studio 2013 using C#.  My back end database is SQL Server 2005.  The source for my crystal report is a SQL Server stored procedure which takes two parameters, a year (smallint) an

  • Recovering 10g database

    I am running oracle 10g standard edition on an XP Pro system. All was installed and working well, until XP became infected by a virus. This required a complete reinstall of XP. I now have the system back up and running. Oracle has gone and needs to b

  • After transferring all songs to new MBP, songs stop short in iTunes

    I have a strange situation here. I bought my wife a new MBP 13" recently and started having a problem with song playback in iTunes. I copied all the songs in her iTunes library from her old MacBook to the new MBP. (The new MBP is running Lion 10.7.2,

  • ITunes Installation - Error 1647

    "InstallShield: Error - 1647: Unable to create InstallDriver instance, Return code: -2147312566" I've looked into this with Apple's troubleshoot, google, and a few other sources with no success. I really am stumped here, and I would like to use iTune

  • [svn:osmf:] 10580: Adding the MAST plugin and a MAST sample app.

    Revision: 10580 Author:   [email protected] Date:     2009-09-24 17:02:28 -0700 (Thu, 24 Sep 2009) Log Message: Adding the MAST plugin and a MAST sample app. Modified Paths:     osmf/trunk/apps/samples/plugins/AkamaiPluginSample/.actionScriptPropert