4 Replies Latest reply: Mar 22, 2012 10:00 PM by 915071 RSS

    Can I open *.jdb file ?

    915071
      Hello,
      I want to know the data and log in the data file "*.jdb", can I open it and which tools could I read it ? I can't recognize it by using vi or cat ...
      Thanks.
        • 1. Re: Can I open *.jdb file ?
          Charles Lamb
          No, sorry. Those BDB/JE files.

          Charles Lamb
          • 2. Re: Can I open *.jdb file ?
            915071
            What about bdb of Previous Releases ? or bdb C version
            • 3. Re: Can I open *.jdb file ?
              Greybird-Oracle
              If you really want to drop down to a lower level and look at the .jdb files, you need to read the BDB Java Edition documentation. You'll find information on how to dump the files there. This is up to you to research. It is not something you need to to know to use NoSQL DB.

              --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
              • 4. Re: Can I open *.jdb file ?
                915071
                Hi,
                Thanks very much for your heads up, but when I run this command, the exception happened:

                java com.sleepycat.je.util.DbDumprg1-rn1/env/ -p -s mystore
                com.sleepycat.je.EnvironmentFailureException: (JE 5.0.34) /home/sunyao/oracle_nosql/tools/KVROOT/mystore/sn1/rg1-rn1/env last LSN=0x0/0x7b5 LOG_INTEGRITY: Log information is incorrect, problem is likely persistent. Environment is invalid and must be closed.
                at com.sleepycat.je.recovery.RecoveryManager.traceAndThrowException(RecoveryManager.java:2722)
                at com.sleepycat.je.recovery.RecoveryManager.redoLNs(RecoveryManager.java:1322)
                at com.sleepycat.je.recovery.RecoveryManager.buildTree(RecoveryManager.java:526)
                at com.sleepycat.je.recovery.RecoveryManager.recover(RecoveryManager.java:188)
                at com.sleepycat.je.dbi.EnvironmentImpl.finishInit(EnvironmentImpl.java:604)
                at com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java:210)
                at com.sleepycat.je.Environment.makeEnvironmentImpl(Environment.java:246)
                at com.sleepycat.je.Environment.<init>(Environment.java:227)
                at com.sleepycat.je.Environment.<init>(Environment.java:170)
                at com.sleepycat.je.util.DbDump.openEnv(DbDump.java:324)
                at com.sleepycat.je.util.DbDump.dump(DbDump.java:342)
                at com.sleepycat.je.util.DbDump.main(DbDump.java:203)
                Caused by: com.sleepycat.je.EnvironmentFailureException: (JE 5.0.34) java.lang.ClassNotFoundException: oracle.kv.Key$BytesComparator UNEXPECTED_EXCEPTION: Unexpected internal Exception, may have side effects.
                at com.sleepycat.je.EnvironmentFailureException.unexpectedException(EnvironmentFailureException.java:286)
                at com.sleepycat.je.dbi.DatabaseImpl$ComparatorReader.<init>(DatabaseImpl.java:2471)
                at com.sleepycat.je.dbi.DatabaseImpl.initWithEnvironment(DatabaseImpl.java:420)
                at com.sleepycat.je.dbi.DatabaseImpl.setEnvironmentImpl(DatabaseImpl.java:997)
                at com.sleepycat.je.tree.MapLN.postFetchInit(MapLN.java:215)
                at com.sleepycat.je.recovery.RecoveryManager.redoOneLN(RecoveryManager.java:1489)
                at com.sleepycat.je.recovery.RecoveryManager.redoLNs(RecoveryManager.java:1302)
                ... 10 more
                Caused by: java.lang.ClassNotFoundException: oracle.kv.Key$BytesComparator
                at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
                at java.lang.Class.forName0(Native Method)
                at java.lang.Class.forName(Class.java:247)
                at com.sleepycat.util.ClassResolver.resolveClass(ClassResolver.java:114)
                at com.sleepycat.je.dbi.DatabaseImpl$ComparatorReader.<init>(DatabaseImpl.java:2468)
                ... 15 more
                Exception in thread "main" java.lang.NullPointerException
                at com.sleepycat.je.util.DbDump.main(DbDump.java:207)