Create a standalone and portable database

Until now, i have been coding my programs in visual basic 6, and i am used to create my desktop applications building an exe file and attaching a .dbm database beside it.
That way, it was easy to port them to another computers.
Now im trying to do something similar with java, and some people recommended me to use JavaDB - But i think i cannot achieve the same portability as i described i was using until now.
Does anyone have any idea on how to do this?
Thanks!

Yes, JavaDB is another embeddable database. It's delivered with the JDK, if I remember correctly (never used it). Be aware that it's not installed with the JRE, however. So if you want to distribute your application, you'll have to distribute the JavaDB jar file as well.
A third candidate would be H2.

Similar Messages

  • How can i create a new and tableless database using database configuration

    How can i create a new and tableless database using database configuration

    How can i create a new and tableless database using database configuration
    Just don't install the sample schemas. See the installation guide
    http://docs.oracle.com/cd/E11882_01/server.112/e10831/installation.htm
    Using the Database Configuration Assistant
    When you install Oracle Database with the Oracle Universal Installer, the sample schemas are installed by default if you select the Basic Installation option. Selecting the sample schemas option installs all five schemas (HR, OE, PM, IX, and SH) in the database. If you choose not to install the sample schemas at that time, you can add them later by following the instructions in section "Manually Installing Sample Schemas".
    Choose a custom install and don't install the sample schemas.
    All other schems/tables installed are REQUIRED by Oracle

  • Creating a simple and small DataBase..Please HELP

    I study Information Systems (MSc)..and I am taking a DataBase course that requires a Project to be done on a RDBMS..I decided to build the database using ORACLE 9i (on windows xp professional)..
    I want to use the Database Configuration Assistant to build the Database (easier than to build it manually)..but the Assistant requests from me to input some parameters that are somehow "new and strange" to me as a student..
    PLEASE I need the simplest and easiest parameter values to be input to the Assistant that enable me to build a tiny and simple DataBase that is adequete for educational purposes only (small project)..
    Also I need to know how to enter the DataBase after I create it..
    Thank you very much in advance..

    I study Information Systems (MSc)..and I am taking a DataBase course that requires a Project to be done on a RDBMS..I decided to build the database using ORACLE 9i (on windows xp professional)..
    I want to use the Database Configuration Assistant to build the Database (easier than to build it manually)..but the Assistant requests from me to input some parameters that are somehow "new and strange" to me as a student..
    PLEASE I need the simplest and easiest parameter values to be input to the Assistant that enable me to build a tiny and simple DataBase that is adequete for educational purposes only (small project)..
    Also I need to know how to enter the DataBase after I create it..
    Thank you very much in advance..

  • Creating a question and answer database with un incremental question table

    Hello,
    i have a project which am suppose to create a database which will be Question and Answers.
    the Question are not to be increasing in the database but only the answers.
    exp:
    Question Table:
    Questions: have you slept well?. Do you have children?. and so on till 12 question.
    Answer Table:
    Answers : 1.yes, 2.no, 3.may be, 4.some how,
    and this Answer should be updated in the database with numbers for instant yes should be 3, no should be 0, may be should be 2 and some how should be 1.

    Related forum thread:
    http://stackoverflow.com/questions/4695227/how-to-structure-a-database-with-questions-and-answers
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Creating a Trigger and some Database Design

    Here is the scenario, we have the following tables
    Orders, OrderDetails, Products, ProductsToInventory, Inventory, and InventoryDetails
    Orders is where the orders are saved and their details are in OrderDetails (orderdetails has a column called Type and that type can either be a product, inventory, shipping, fee, so that we can distinguish what each one is in the order)
    Products are the products we sell and ProductsToInventory refers each product to the inventory items required for it.
    Inventory lists the the name, size, and weight of the item
    then InventoryDetails stores the cost, original quantity received, and the current quantity (since the company receives different quantities of the same product at different pricing all the time)  (I would appreciate all the comments on this, this is
    the best way I thought of doing this but if you have another way i'd appreciate it)
    So that's the design, now we created a trigger that basically does this...
    When an order is created and a PRODUCT is inserted into the the orderdetails, we will, using trigger, run the following query to insert the INVENTORY into the orderdetails
       INSERT INTO OrderDetails (...., OrderDetailPrice)
       SELECT ..., OrderDetailPrice?
        FROM inserted i INNER JOIN ProductToInventories pt
        ON i.productid = pt.id
        INNER JOIN Inventories inv
        ON pt.InventoryID = inv.InventoryID
        LEFT JOIN InventoryDetails idet
        ON inv.InventoryID = idet.InventoryDetailInventoryID
        WHERE OrderDetailType = "PRODUCT"
    This works perfectly fine, however... for the price, we don't know what to do here, since the price is not in the inventory, the price is  under the inventorydetails and we will have to look up to that table to see which one has quantity > the quantity
    needed here and then grab the price for that and then we need to update the quantity on that as well.

    Here is the scenario, we have the following tables
    Orders, OrderDetails, Products, ProductsToInventory, Inventory, and InventoryDetails
    Orders is where .....
    Good day TheSQLNewb,
    I did not read more than I quote above... This is a starting of a nice story :-) but in the forum and in DBA's life we prefer to get DDL+DML instead of stories.
    Please post queries to create the relevant tables (this is DDL by the way), and queries to insert some sample data (DML). with this information we will be able to reproduce the tables in our server and work on them.
    Thanks :-)
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • How to Create A standalone Report Server and replce by in process server

    Hi all,
    I am new to oracle reports 10g, I have installed oracle applicaction server 10.1.2.0.2 on RHEL4 now i want to create a standalone report server and replace it by the in-process report server . I searched the net to get a proper step by step guide to do the above but dint got the same can anybody guide to step by step process to do the same and also file which are to be edited i user sh rwserver.sh -install server name bath=yes command and sh rwserver.sh server name bath=yes & commad to start it but i am not able to see the same in the enterprise manager . Thanks in advance...
    Also please tell me if it is recommeded by oracle to replace the standalone by inprocess server.

    Hi do i need to fire the following the command then
    sh rwserver.sh -install server name bath=yes
    sh rwserver.sh server name bath=yes &
    are these correct
    and then fire the following command to register it to enterprize manager
    ORACLE_HOME/bin/addNewServerTarget.sh reports_server_name
    Please correnct me if i am wrong
    ANd i already fired (sh rwserver.sh server name bath=yes & ) command which in turn create a fine name server name.conf in th ORACLE_HOME/report/conf
    now can i fire ( sh rwserver.sh -install server name bath=yes ) this command or there is some issues in that.
    what should be sequence of firing these commands
    and to test it after completing the activity
    Edited by: Mohammed Afzal on Jun 30, 2011 4:26 PM
    Edited by: Mohammed Afzal on Jun 30, 2011 4:28 PM

  • Include or create a view in the database and use this view?

    Well, I need to get related data of the main table from another related tables, so one way to do that is to use the Include method in Entity Framework to get this related data.
    However, I am thinking in another option, create a view in the database and use this view in entity framework. In this way, I avoid the needed of the include, because I think that is expensive in resources. But I am no very sure about that.
    I would like to know if the use of views on entity framework is a good idea to improve the performace or is better to use the include.
    For example, if I use the include I have the advantage that I get only one the main record and all the related data I have in the navigation properties, so the info is more shorted.
    Which is the advanteges and disadvantages of both methods to get related data in entity framework?
    Thank so much.

    Hello ComptonAlvaro,
    >>I would like to know if the use of views on entity framework is a good idea to improve the performace or is better to use the include.
    If your view would use a Join syntax to query master-child relationship tables, it actually is similar with the Include() method which actually results a duplicate records from master table, you could check this
    link for detail description.
    >>Which is the advanteges and disadvantages of both methods to get related data in entity framework?
    One visible difference is that records from Views are not editable by default(if you want edit them, you could refer to this
    blog).
    In your case, my suggestion that you could use the lazying load which will load the matter table once and disable the trace if you only need to display data.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Hi, how do I create a standalone installer for Mountain Lion, ie, download once and then no more broadband required, thanks?

    Hi, how do I create a standalone installer for Mountain Lion, ie, download once and then no more broadband required, thanks?
    Context is that my other computers are not mobile and I do not have broadband worth troubling for a 4GB download - so will go to Apple Store with MacBook Pro for first download.

    The easiest way is to download the installer but do not open it.
    Next, make a copy of it and store it where it won't get lost.
    Then take one of the copies and place into the applications directory and open it to begin the installer.
    This has saved me the trouble of ever having to download the installer twice, plus you can mess around with the installer and try different options without having to worry about not having a clean install file if needed.
    Best wishes

  • How do I create a product or item database so I can search fr the product and its files with hte pro

    How do I create a product or item database so I can search for the product and its files with the products name or four digit code

    Ok so I made some progress on this. I have figured out, that I can add a chained "add to cart" to certain items, then when they click the button for Buy now, it will add both items to the cart. However, this would require me to manually build each product page and generate a custom button for each one with both product IDs in it.
    Can anyone offer help on how to put some JS in that would append a second function to the onclick function that BC Generates dynamically?
    For the products that require a set up fee, I would assume I would add in to either the product templates or in to the item description some JS that would find the onclick of the buynow button and append a second function to also add to cart the setup fee product. The end result being code that looks like this:
    <input type="submit" class="productSubmitInput" onclick="AddToCart(188536,6314368,'',4,'','',true);AddToCart(188536,6314367,'',4,'','',tr ue);return false;" value="Buy Now" name="AddToCart_Submit" />
    Except of course, the product ID on the first AddToCart would be the main product with the second one being the one appended.
    Does any of that make sense? lol

  • Create another sid and "database"?

    Hello,
    I've just installed a Oracle 8.0.5 into a linux box and
    making some tests using the SID (ora) I gave to the installer
    prompt. This means I can make a connection to this
    database using sqlplus, e.g sqlplus user/passwd@ora.
    I'm missing some terminology here, but I'd like to create
    another database/tablespace/instance/whatever to be something
    for testing, e.g. sqlplus user/passwd@tdev.
    This far I've managed to alter the files listener.ora and
    tnsnames.ora, so that the listener now says:
    ./lsnrctl status
    Services Summary...
    extproc has 1 service handler(s)
    ora has 1 service handler(s)
    tdev has 1 service handler(s)
    But what is the next step here? When I try to create a
    database that corresponds with the SID "tdev" I get:
    ./svrmgrl
    connect internal
    shutdown
    startup nomount
    create database tdev <lots of parameters>
    ORA-01501: CREATE DATABASE failed
    ORA-01504: database name 'TDEV' does not match parameter db_name
    'ora'
    Yours,
    Marko
    null

    Many thanks for your advice, now it almost works.
    I was able to create the database tdev and
    after after adding users in it, I'm able to
    connect it as well.
    However, if I now try to connect any other database
    (those ones on the same machine or those ones that
    are depicted in tnsnames.ora), I always get the message:
    ORA-01034: ORACLE not available
    tnsping to those databases works fine and lsnrctl start
    command gives me:
    Services Summary...
    extproc has 1 service handler(s)
    ora has 1 service handler(s)
    tdev has 1 service handler(s)
    The command completed successfully
    Yours,
    marko
    Anstefan (guest) wrote:
    : To create a new instance you have to do the following:
    : * choose the name of the instance
    : * set the environment variable ORACLE_SID to this value
    : * go to the admin directory and create a new directory with
    this
    : name
    : * copy the subdirectories from another database (for example
    ORCL)
    : * go to the new subdirectory pfile and rename the files
    : config<SID>.ora and init<SID>.ora
    : * change the necessary parameters (be careful that you don't
    : overwrite files from a already existing instance)
    : * create a link from the dbs directory to the pfile directory
    : for the init<sid>.ora file.
    : * start server manager
    : * startup nomount pfile= (name of your init<sid>.ora file
    : with fullpath)
    : * create database command
    : * create data dictionary
    : * create additional tablespaces and rollback segments
    : * insert database in the file /etc/oratab
    : * insert new instance in listener configuration
    : Stefan
    : Have fun with your new instance.
    null

  • Create Temporary databases and Permanent databases

    Hi,
    How to configure or setup Temporary databases and Permanent databases ?
    Need separate steps to install or setup Temporary / Permanent databases
    Windows 2003 & 32 bit OS and 8 GB RAM
    In web site http://docs.oracle.com/cd/E21901_01/doc/timesten.1122/e21633/comp.htm#CHDBEDHC
    it is said as it is configured with DSN (Data Source Name)
    but to how to setup Temporary databases and Permanent databases
    Note:Oracle database has not been installed,only Oracle TimesTen has been installed.
    Temporary databases are not stored to disk.
    Permanent databases are stored to disk automatically through a procedure called checkpointing.
    I need to keep the data in memory and need to pass the data to another server via replication or some other way.
    Thanks!

    Hi,
    You dont need to install something. You need to configure your DSN only.
    For creating Temporary database you should set up the Temporary DSN parameter (http://docs.oracle.com/cd/E21901_01/doc/timesten.1122/e21633/using.htm#BCGJAJDI).
    If you want using Permanent database just uncheck Temporary DSN parameter.
    Temporary databases are not stored to disk. Permanent databases are stored to disk automatically through a procedure called checkpointing. No. TimesTen databases (Permanent and Temporary) store data in memory. It is the main purpose. Permanent db saves a copy of data on disk only for recovery purpose. Temporary db doesnt do it.
    regards,
    Gennady

  • Difference between Instance Crash and Database Crash in Standalone and RAC?

    I am new to Oracle Environment. I would appreiciate if i get clarified on the "_+Difference between Instance Crash and Database Crash in Standalone and
    RAC_".+
    Oracle Version: 11.1.0.7.0
    O.S Version: HP-UX B.11.31 U

    Sivaprasad S wrote:
    I am new to Oracle Environment. I would appreiciate if i get clarified on the "_+Difference between Instance Crash and Database Crash in Standalone and
    RAC_".+That depends on your definitions of database crash versus instance crash.
    Literally, database crash means that the database itself is damaged in some way. A disk is no more. Data files are corrupted. Etc. The database itself thus causes the crash - and a database crash will also cause all database instances (RAC or single) for that database to crash too.
    An instance crash will therefore mean that the crash occurs in the instance due to an Oracle bug or similar. In other words a s/w error and not a database error. The database is still "fine", but the instance not. Instance crashes. However, any other instance on that same (RAC) database will still be fine as the database itself is unaffected by that s/w error in the crashed instance.
    If you mean something different, please enlighten us. Not all crashes are equal. {noformat};-){noformat}

  • Creating Standalone and applet applications

    Hi,
    I have created a standalone app, but what i want to do is convert this, so that it can be an applet, or a standalone app dependant on from where it is run.
    My app adhears to all security restrictions fro applets, and uses swing to create the gui.
    Many thanks for any help

    Thanks a lot, tried searching everywhere to no avail. That code should give me something to work on when i get home
    Many thanks for your help

  • I have created TM lock in oracle 9i and 11g databases. by using same query

    here is the query uesd for finding a lock in database.
    select /*+ RULE */ 'DATAPOINT # ' bpb,
    l.sid, ' # ',
    s.username, ' # ',
    s.sql_address, ' # ',
    x.sid, ' # ',
    y.username, ' # ',
    l.type, ' # ',
    l.id1, ' # ',
    l.id2, ' # ',
    decode(X.LMODE,
    0, 'None',
    1, 'Null',
    2, 'Row Share',
    3, 'Row Excl',
    4, 'Share',
    5, 'Shr Row Excl',
    6, 'Exclusive',
    decode(L.REQUEST,
    0, 'None',
    1, 'Null',
    2, 'Row Share',
    3, 'Row Excl',
    4, 'Share',
    5, 'Shr Row Excl',
    6, 'Exclusive',
    from v$session s, v$lock l, v$lock x, v$session y
    where l.ctime > 120
    and s.lockwait = l.kaddr
    and l.type in ('TM', 'TX', 'UL')
    and l.id1 = x.id1
    and l.id2 = x.id2
    and x.sid != l.sid
    and x.sid = y.sid
    and x.lmode >0;
    after doing further investigation i found that for 11g condition s.lockwait = l.kaddr not satisfied where as for 9i it's gives correct results
    here are the lockwait and kaddr values for 9i and 11g databases.
    for oracle 9i
    SQL> select lockwait from v$session where sid in (10,12);
    LOCKWAIT
    67B4E10C
    SQL> select kaddr from v$lock where sid in (10,12);
    KADDR
    67B4E088
    67B4E10C
    for oracle 11g
    SQL> select lockwait from v$session where sid in (70,134);
    LOCKWAIT
    070000002FA080D8
    SQL> select kaddr from v$lock where sid in (70,134);
    KADDR
    0700000030C595C0
    0700000030C59830
    00000001108E3E58
    00000001108E3E58
    070000002FA6CB30
    SQL>
    please advise if there is any change for calculations for lockwait,kaddr for 11g.

    can you post your query with explain plan for both 9i version and 10g version.
    Thanks,
    karthick.

  • How to create a .mdf SQL Server database from a Data-Tier Application file that has data?

    This is a noob question, though I do use SQL Server databases all the time with Entity Framework when I code in C# using Visual Studio 2013.  The development environment is found below at [A].  I am trying to make a clone of a SQL Server 2008 R2
    database (.mdf)  that exists online.  I can read, connect and work with this database in Visual Studio 2013, but I wish to make a local copy of the database, as an .MDF file.  Somewhere in my notes I have a way of creating a local copy from
    an online database when using Visual Studio but I forgot how (it seems, reviewing my notes, that it deals with ADO.NET which is deprecated in Visual Studio 2013 these days, or so it seems).  So I'm looking for another way.  What I did was create
    (or export) a "Data-Tier Application File" from the online SQL Server database, with data, and it seems to have worked in that this Data-Tier Application file exists on my hard drive and seems to have data in it ("SQL Server Replication Snapshot"
    is the format it seems).  It contains skeleton code to create a database, but when I tried to execute it with SQL Server 2014 Management Studio, I got a bunch of errors.
    So my question is:
    1) Can I somehow create a .MDF SQL Server Database from an Data-Tier Application file that has data?  What tool do I use?  I saw this link, http://social.technet.microsoft.com/wiki/contents/articles/2639.how-to-use-data-tier-application-import-and-export-with-a-windows-azure-sql-database.aspx 
    and it relates to Azure, but is there a tool for C#Visual Studio 2013, standalone?
    2) If there's an easy way to create a .mdf SQL Server Database file from an online file, within SQL Server Management Studio?  I don't think so, since it would require Administrator permissions on the online server, which I don't have. I have permission
    to read, update, delete the online database file, but strangely not to download it (the service I use has a tool for backup, but not for download).
    3) same question as 2), but for Visual Studio 2013?  I don't think so, since I notice none of the templates even mentions ADO.NET anymore, but instead they go with Entity Framework.  Using EF I can of course do anything I want with the online database
    (CRUD), but it remains online.  Maybe there's a switch to make a local copy?  I guess I could write a short program to suck all the data out of the online database and put it into a new, duplicate database having the same tables, that I create on
    my localhost, but my question here is if there's an easier way than this, maybe a tool or command I can run from inside Visual Studio?
    Any advice on any of the above questions is appreciated.
    Thank you,
    Paul
    [A] Microsoft Visual Studio Professional 2013
    Version 12.0.21005.1 REL
    Microsoft .NET Framework
    Version 4.5.51641
    Microsoft Web Developer Tools 2013   2.0.40926.0
    SQL Server Data Tools   12.0.30919.1
    Microsoft SQL Server Data Tools
    Windows Azure Mobile Services Tools   1.0
    Windows Azure Mobile Services Tools

    Thanks but these links are too general to help.
    "2. what do you mean by online file?" - I mean the SQL Server database file is on a remote web server that I rent from, but I am not the administrator of.  I can access my database using SQL Server Authentication, but nothing more.
    Paul
    What do you mean by too general? It explains on how you can use data tier application to create and deploy databases
    May be this will help you to understand better
    http://www.databasejournal.com/features/mssql/article.php/3911041/Creating-Data-Tier-Applications--in-SQL-Server-2008-R2.htm
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for