Browse Linux RPM database with Java

I found that RPM database in Red Hat Linux is based on Berkeley DB. I found this document for Java and Berkeley DB:
http://docs.oracle.com/cd/E17076_02/html/gsg/JAVA/BerkeleyDB-Core-JAVA-GSG.pdf
I found that there are two version of Berkley DBL native and Java edition. Can use this package
https://www.odesk.com/leaving-odesk?ref=http%3A%2F%2Fwww.findjar.com%2Fjar%2Fberkeleydb%2Fberkeleydb-native%2F4.2%2Fberkeleydb-native-4.2.jar.html%3Fall%3Dtrue
to access the RPM database file in /var/lib/rpm?

As far as I know what is in the RPM distribution is what we call BDB core which is the C edition.   Within the BDB family of products there is the C version, a java version and an XML version.    Internally code is shared between the products of the family and we internally take care of compatibility.   The C version of BDB (shipped in Linux) has several different APIs that can be used, namely, C, Java, C#, C++, python, perl.  The document that you referring to is the JAVA API doc for BDB core.   When folks typically say Java edition, then are referring to the java version which we call BDB JE.    This is a separate product. 
thanks
mike

Similar Messages

  • How to connect oracle database with JAVA

    how to connect oracle database with JAVA....
    using j2sdk and Jcreator . which connector to use .. what are the code for that ..

    PLEASE .... Ask in an Oracle Java forum.
    And read the documentaiton. There is a whole document devoted to doing that. http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/toc.htm has examples.
    PLEASE ... do not ask product questions in a forum which clearly has a title saying it is devoted to assisting with download problems.

  • How can I compact a MSAccess database with java?

    Hi.
    I have a question (Please Help!!!):
    How can I compact a MSAccess database with java-jdbc? Is it posible?
    Thanks

    MS Access database has a max length limitation of 2.14GB for Access 2000( 1.07G for Access 97), and won't recycle basically space for update/delete sql so tha it's a good idea to use MS Access database for program, which need update/delete frequent ly data. The programmers of HXTT Access(www.hxtt.net) are writing code for CREATE TABLE/DATABASE sql now. If you need a pure Java solution for PACK TABLE/DATABSE urgently in your project, you should send such a requirement to the Support page of www.hxtt.net so that they can schedule complementing such a fucntion. Otherwise, you should pack your databae manually or visit C++ code for Compact an Access Database Programmatically at
    http://www.codeguru.com/Cpp/data/mfc_database/microsoftaccess/article.php/c4327/ , or use Easy Microsoft Access MDB MDE Compactor at http://www.easyhr.com.au/software/easy_mdb_mde_compactor.htm.

  • How Connect to oracle database with java

    i have trouble with my program
    i use oracle 8i to my database and java for interface
    this mycode :
    import java.sql.*;
    class TestThinApp {
    public static void main (String args[])
    throws ClassNotFoundException, SQLException {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    // or you can use:
    // DriverManager.registerDriver(
    // new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:thin:@dssw2k01:1521:orcl","scott","tiger");
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery(
    "select 'Hello Thin driver tester '||USER||'!' result from dual");
    while(rset.next())
    System.out.println(rset.getString(1));
    rset.close();
    stmt.close();
    conn.close();
    i have trouble , becouse i can connect my database with java (JDK)
    if any one can help me pls?
    arif

    PLEASE .... Ask in an Oracle Java forum.
    And read the documentaiton. There is a whole document devoted to doing that. http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/toc.htm has examples.
    PLEASE ... do not ask product questions in a forum which clearly has a title saying it is devoted to assisting with download problems.

  • Browser Plug-in development with Java

    Hiya!
    My company wants me to develop a plug-in for different browsers (e.g. Internet Explorer, Mozilla, etc.) running on different platforms (e.g. Windows, Linux, etc). My first thought was that I should develop that plug-in in Java.
    But how to develop a browser specific plug-in in Java? Can I use the Java plug-in provided by Sun for Internet Explorer? Do you think a browser specific plug-in developed in Java meets performance issues. Does anybody have a good idea to avoid long downloading time of JRE if not installed?
    Did someone developed a browser specific plug-in in Java?
    Or is it the better way to step back to C/C++ and develop an ActiveX component, ...
    Please help me out ...
    Best regards
    Gerhard

    Sun provides java plugin support for major OS's and Browsers. They also provide a helpful utility (HTMLConverter) which converts current HTML documents with <APPLET> tags to the corresponding TAGs the plugin utilizes (<OBJECT> for IE and <EMBED> for Netscape).
    Do you think a browser specific plug-in developed in Java meets performance issues?
    The main bottleneck occurs when the applet requires a plugin to be loaded. If loaded over the Internet on a dialup line, this can be substantial. I am testing on an intranet and it takes about 20 seconds to load the jre.
    Here is a link to get started with:
    http://java.sun.com/products/plugin/index-1.4.html
    Pete,
    PS I happen to be using the java plugin myself for the firt time and have run into a problem with installing it for Netscape on Linux. If you have successfully done this I would appreciate any advice. Below is a link to my post regarding the problem.
    http://forum.java.sun.com/thread.jsp?forum=31&thread=285516

  • Is it possible to insert data into a MySQL database with Java?

    Hello everyone!
    I would like to know, if it's possible to insert data into a MySQL database, with a JFrame inside a servlet?
    When the JFrame is first created it calls this method:
         * Connects the servlet with the MySQL database.
        private void connect(){
            try{
                Class.forName("com.mysql.jdbc.Driver");
                connection = DriverManager.getConnection(
                        "jdbc:mysql://localhost:3306/data", "root", "omfg123");
            }catch(ClassNotFoundException cnfe){
                cnfe.printStackTrace();
            }catch(SQLException sqle){
                sqle.printStackTrace();
        }Then, when you click the "Add" button, it executes this code:
                add.addActionListener(new ActionListener(){
                    @Override
                    public void actionPerformed(ActionEvent ae){
                        String employee = employeeName.getText();
                        String[] args = employee.split(" ");
                        firstName = args[0];
                        lastName = args[1];
                        execute();
                });And this is my "execute()" method:
         * Connects the servlet with the MySQL database.
         * - And executes the SQL queries.
        private void execute(){
            try{
                PreparedStatement statement = connection.prepareStatement("insert" +
                        " into employees values(" + firstName + ", " + lastName
                        + ")");
                ResultSet result = statement.executeQuery();
                String fullName = firstName + " " + lastName;
                printer.write("Employee " + fullName + " added.</br>");
            }catch(SQLException sqle){
                sqle.printStackTrace();
        }But when I click the "Add" button, nothing happens.

    This is what I use to insert into mysql. It works on windows.
    try {
                Class.forName("com.mysql.jdbc.Driver");
                String connectionUrl = "jdbc:mysql://" + loadip + "/custsig?" +
                        "user=root&password=";
                Connection con = DriverManager.getConnection(connectionUrl);
                newproc = jTextField1.getText();
                newsoft = jTextField2.getText();
                newdeb = jTextField3.getText();
                newcust = jTextField4.getText();
                if (newcust.equals("")) {
                    errorsig12 = 1;
                    jLabel1.setForeground(new java.awt.Color(255, 0, 0));
                } else if (newsoft.equals("")) {
                    errorsig12 = 1;
                    jLabel2.setForeground(new java.awt.Color(0, 0, 0));
                } else if (newproc.equals("")) {
                    errorsig12 = 1;
                    jLabel3.setForeground(new java.awt.Color(0, 0, 0));
                } else if (newdeb.equals("")) {
                    errorsig12 = 1;
                    jLabel4.setForeground(new java.awt.Color(0, 0, 0));
                if (errorsig12 == 0) {
                    PreparedStatement ps = con.prepareStatement("insert into customer set cust_name = ?,  software = ?, processor = ?, debit = ?");
                    ps.setString(4, newdeb);
                    ps.setString(3, newproc);
                    ps.setString(2, newsoft);
                    ps.setString(1, newcust);
                    int rs = ps.executeUpdate();
            } catch (SQLException eg) {
                System.out.println("SQL Exception: " + eg.toString());
            } catch (ClassNotFoundException cE) {
                System.out.println("Class Not Found Exception: " + cE.toString());
            }

  • Create new oracle database with JAVA

    Hi!
    I would appreciated it if you could help me to solve a problem that i have.
    I am trying to create a new oracle database by a JAVA 1.4.2 application. I am using the scripts that Oracle 10.g supplies during the creation of a new database from the server (Generate Database Creation Scripts) with the appropriate changes, generated by a java application. Unfortunately, i am unable to connect with the database and the listener. Is there any other way to create a new database by java and how can i solve my current problem with the oracle scripts?
    Thank you.

    A) To create a new schema, you need to be connected as a user that has create schema privilege, or as tyhe user who is to own the schema (remembering that the user has appropriate create privs, as seen in the GRANT command in the SQL Reference manual). Not an issue at all, I think, if you coordinate this with your DBA. Discussed very well in the Administrator's manual.
    B) Alternately, you could create a complete copy of the schema, including all desired objects (tables, views, etc.) in a separate database and simply export the user and schema. Then simply invoke the OS-based import command (imp) to load that entire thing into the target database.
    C) To create a new database, there are 3 simple steps ...
    1) create the appropriate initialization parameter file
    the init{sid}.ora file should be placed in the $ORACLE_HOME/dbs or %ORACLE_HOME%\database directory. (I recommend you do not attempt to create the spfile.) Of critical interest will be setting the block size information, the control file parameters, and using the appropriate memory management parameters, based on the version of the software you will be using to create the database instance.
    2) start an empty instance, pointing to the parameter file
    This will be an OS specific call, and will require that you have the correct OS environment set up as well as access to the ORACLE_HOME which will provide the software that you will invoke. In *nix you will need to call the sqlplus command with sysdba provs and in Windows you will need to call oradim to initialize this as a service.
    3) run the SQL create database command
    You might want to use the dbca to create a template of the create database command, or look in the SQL Reference manual for the variations on the command. Of critical interest will be initializing the redo logs as well as the system, sysaux (if needed), temp and undo tablespaces after which you can set up the regular tablespaces, users and schemas. I highly recommend that you have redundant copies of the control files on separate drives.
    You may want to review the online Concepts manual and the Adminstration Guide for some of the specifics to your needs, but I think I've covered the basics.
    Remember that ideally you will only have one database instantiated on any given server as the memory and CPU overhead of each instance is significant.
    Good luck.

  • How to connect with Microsoft Access Database with JAVA

    I want to know the command and query to connect between MSAccess and JDBC.
    Is it beter way to make connection with MSAccess comparing with other Databases such as SQL and Oracle.
    Which Database will be the best with Java?
    I also want to know to be platform indepadent which database is suitable?

    On Windows, you can use MS Access database by:
    Set up a System Data Source using the ODBC control panel applet.
    Use the jdbc:odbc bridge JDBC driver, and specify a jdbc url that points to the data source name you just specified.
    It's been too long since I've done this, so I don't remember the syntax of the jdbc url, but I'm sure that if you do a search for the jdbc:odbc bridge that you will find what you are looking for.
    As far as the question about which database is best, you will need to determine that based on your project requirements.
    If you want a quick and dirty, open source, cross-platform database, take a look at HyperSonic SQL.
    - K

  • Programming the Oracle Database with Java and Web Services: sample chapter

    This will be the first book devoted to Java in the Oracle Database: read the sample chapter @ http://www.oracle.com/technology/books/pdfs/mensah_ch1.pdf
    This book also covers the latest Oracle JDBC, Oracle SQLJ, JPublisher and Database Web Services A brief description @
    http://www.elsevier.com/wps/find/bookdescription.cws_home/706089/description#description
    Thanks, Kuassi

    Hi Kuassi,
    Thanks for letting us know that your book is available. I have been following one of your articles about "Virtualize Your Oracle Database with Web Services". More specifically "The Database as Web Services Consumer". I think that this is an area that has in the past been under estimated as to the potential benefits.
    I am currently trying to develop a solution that consumes several interfaces with a couple of them being published web services, so an ideal solution. I have then spent the last three weeks having to read up about the architecture of Java in the database, Jpublisher and make sense of how it all works together.
    I have got very close to getting one of the web services to work but failed due to using 10gR2 where all the java & libraries has moved to version 1.5. The solution is to load the jdk1.4.2 and configure jpublisher to use this. So far so good except this is not available on some platforms, Windows - 64 bit (not itanium).
    The configuration is proving very challenging but will hopefully reap rewards.
    (Thought I would give you some background to my experience).
    Anyway my question to you is having looked at Jdeveloper it appears to do almost anything except consume services into the database, also with Java now being at version 1.5 outside the database for 10gR2 and supporting 1.4 inside, do you see some alignment of these in future database releases?
    Finally off to buy your book now as no doubt there is a huge amount more to learn.
    Kind Regards
    David O'Donnell

  • Database with Java

    if i wannaa develop a system with accessing database or update , insert ,delete..
    which database system shall i use for Java??
    MySQL??SQL2000?Access??MSDE?
    are those working fine with JAVA?

    Ok, judging from your other thread saying you are new to java and all,
    Begin with J2SE, this is java. Take the tutorials available from this site( see the tutorial link on the left ?)

  • Reading and writing to a MySQL database with Java

    Anyone knows what's the best way to read and write from a MySQL database?

    > Anyone knows what's the best way to read and write
    from a MySQL database?
    Yep!
    The Java� Tutorial - Trail: JDBC� Database Access
    MySQL Reference Manual
    MySQL Connector/J Documentation
    Driver/Datasource Class Names, URL Syntax and Configuration Properties for Connector/J
    Best of luck!
    ~

  • AIR 2 Linux .rpm - breaks with updated software builds

    Hello Everyone,
    We are bundling the AIR 2 .rpm installer in our software builds for use on RedHat 5.x using the following code:
    if [ -x "/usr/bin/Adobe AIR Application Installer" ]
              then
                   "/usr/bin/Adobe AIR Application Installer" -silent -eulaAccepted -desktopShortcut -programMenu -location $dest_dir/help $src_code_dir/Help.air
    Problem:
    On a fresh install, everything comes up roses.
    The problem occurs on subsequent installs of software builds. When I install an updated software build (that includes the above code), AIR does not install "failed due to bad configuration"and the AIR file is unavailable and grayed out in the software (though it works fine on fresh installs).
    Fix Attempts:
    When I deleted the AIR file from the previous build and tried to install a build it did not work, "failed consult log".
    When I deleted the AIR installer via Package Manager then installed a subsequent build, the AIR file installed and was accessible from the software. But it deleted exisiting AIR files on my desktop that were not affiliated with the software build.
    Questions:
    What can I do to get AIR files from subsequent builds (that include the above code for the AIR 2 .rpm) to work in the software?
    If the AIR installer needs to be removed prior to a subsequent installation, how can I remove the installer while protecting local AIR files that are not affiliated with the software.
    Thanks,
    Lydia

    Hi Sanika,
    Yes, I would like to update the AIR application without prior having to remove the installer. Though the content of the help.air is modified, the name and certificate remain the same.
    In our sw builds, if the AIR installer was not removed prior to the new build installation the following error would occur:
    [Adobe AIR Application Installer:15792][INFO] UI SWF load is complete
    [Adobe AIR Application Installer:15792][INFO] UI initialized
    [Adobe AIR Application Installer:15792][INFO] Unpackaging to /tmp/FlashTmp.Oleg5M
    [Adobe AIR Application Installer:15792][INFO] unpackaging/validation is complete
    [Adobe AIR Application Installer:15792][INFO] application is bound to this version of the runtime
    [Adobe AIR Application Installer:15792][INFO] app id Lydia
    [Adobe AIR Application Installer:15792][INFO] pub id 4C048E4186AA3E2F3F9022DED9591FFABED27157.1
    [Adobe AIR Application Installer:15792][INFO] Application located at /opt
    [Adobe AIR Application Installer:15792][INFO] bad configuration for silent install or update
    [Adobe AIR Application Installer:15792][INFO] starting cleanup of temporary files
    [Adobe AIR Application Installer:15792][INFO] application installer exiting
    When I delete the AIR installer prior to a build installation, I am able to successfully install the installer and application:
    [Adobe AIR Application Installer:18787][INFO] Starting silent app install of file:///rdvnmr/.g_vj_2010-04-21/code/Help.air
    [Adobe AIR Application Installer:18787][INFO] UI SWF load is complete
    [Adobe AIR Application Installer:18787][INFO] UI initialized
    [Adobe AIR Application Installer:18787][INFO] Unpackaging to /tmp/FlashTmp.Zqrown
    [Adobe AIR Application Installer:18787][INFO] unpackaging/validation is complete
    [Adobe AIR Application Installer:18787][INFO] application is bound to this version of the runtime
    [Adobe AIR Application Installer:18787][INFO] app id Lydia
    [Adobe AIR Application Installer:18787][INFO] pub id 4C048E4186AA3E2F3F9022DED9591FFABED27157.1
    [Adobe AIR Application Installer:18787][INFO] Application not located
    [Adobe AIR Application Installer:18787][INFO] creating native installer in: /tmp/FlashTmp.udru51
    [Adobe AIR Application Installer:18787][INFO] native installer creation complete
    [Adobe AIR Application Installer:18787][INFO] Starting install
    [Adobe AIR Application Installer:18787][INFO] using conversion output in /tmp/FlashTmp.udru51/setup.deb
    [Adobe AIR Application Installer:18787][INFO] Beginning install
    [Adobe AIR Application Installer:18787][INFO] Installing package ...
    [Adobe AIR Application Installer:18787][INFO] Execution complete; beginning commit phase
    [Adobe AIR Application Installer:18787][INFO] Commit complete
    [Adobe AIR Application Installer:18787][INFO] starting cleanup of temporary files
    [Adobe AIR Application Installer:18787][INFO] application installer exiting
    Thanks!
    Lydia

  • Disconnected database with java on Ipaq

    Hi,
    How can I work with a disconnected database using Jeode on iPaq? I need to synchronize the local database to a database on desktop too. I don�t wanna use comercial paid softwares like Oracle Lite, Pointbase, SqlServer CE.
    Thanks a lot,
    Renato Person
    System Developer

    Try www.hsqldb.org
    Martin

  • Connect staroffice8 database with java

    Hi,
    I m developing a reporting tool where i would have to connect to a staroffice 8 database (star base). The database has .odb extension. The reporting tool will run on a solaris network. I tried searhcing for JDBC driver to connect the staroffice database.
    please help!!
    regards,
    kunal

    i dont think it uses adabase .. and also i checked the entire google and the sun site .. but could not find any information ..also staroffice provides with a driver com.sun.star.comp.sdbc.JDBCDriver .. but i m not sure if its the right one to use ..
    regards,
    kunal parmar

  • Accessing oracle 10g  database with java

    Hello every body,
    i need to connect oracle 10 g remotely.could u please tell me wheather i need to install oracle 10g client in my local system..?if it is necessary what are steps i need to take care..like url of the connection .
    Please help me .am struggling from past three days.
    regards,
    Anil.

    i need to connect oracle 10 g remotely.Can you spell "security hazard"?
    could u please
    tell me wheather i need to install oracle 10g client
    in my local system..?No. Just the JDBC drivers.
    Please help me .am struggling from past three days.Ever considered asking a peer right on day one instead of wasting three days?

Maybe you are looking for