Basics Of Berkeleys database

Hi,
Can anyone let me know the basics of Berkeleys database, for it is used and how to use it.
Thanks,

Start here
http://www.oracle.com/technetwork/database/berkeleydb/overview/index.html

Similar Messages

  • Few basic questions about database administration

    Hello,
    I have a few basic questions about database administration.
    1. I switched one of my oracle instances to archivelog mode. I just cannot locate the archive log files on my windows system. The %ora_home%/ora92/database/archive directory is desperately empty...
    2.What is the tools01.dbf datafile used for?
    3.What is the undotbso1.dbf datafile used for?
    Thanks in advance,
    Julien.

    1. The archive log location needs to be specified in your init.ora file. By default, Oracle will place the archive files in either ORACLE_HOME/dbs or ORACLE_HOME/database.
    2. The tools01.dbf file belongs to the tools tablespace which should be set as the default tablespace for system. It primary purpose is to hold Oracle Forms and Reports database objects, however, it should also be used for holding other non sys database objects such as the perfstat (statspack) or other third party database schemas e.g. quests sqllab.
    3. undotbs01.dbf file belongs to the undo tablespace.

  • Asking about Berkeley Database JE for Android performance !

    Hello,
    I try to test Berkeley Database Je for Android in the HCT Desire 1.
    I just try to put records to database and the rate is about 2000records per second. Is it normal? Is there anything else can work better in Android environment than Berkeley DB Je?
    The size of my database is about 10MB. But it took me about 2-3 mins to open the Environment. Do I set up somethings wrong?
    Thank for your help.

    Hi Charles,
    Re: Environment opening time.
    You're right. I tried close environment and it seems do not take any time to open again.
    Re: insertion speed.
    long start = System.currentTimeMillis();
    DatabaseEntry key     =     new DatabaseEntry();
         DatabaseEntry data     =     new DatabaseEntry();     
         StringBinding.stringToEntry("data", data);
         for (int i = 0; i<100000; i ++){
                   IntegerBinding.intToEntry(i, key);
                   db.put(null, key, data);
         db.sync();
         long finish     =     System.currentTimeMillis()     -     start;
         System.out.println("Time " + " _ " + finish);
    It's my insertion method. And it took about 200000ms to finish. Is it normal?
    Edited by: user13397058 on Jul 26, 2011 5:55 AM
    Edited by: user13397058 on Jul 26, 2011 5:57 AM

  • String retrieved from Berkeley database has one more abnormal char

    Hi,
    The value I retrieved from my Berkeley database has one additional char, compared with the value I saved to the database.
    For example, I put this pair into the database:
    key: JRE
    value: update
    The value I retrieved using the key "JRE" was printed as "update", however, when I checked the length of the value, it is 7.
    value[0]="u"
    value[1]="p"
    value[2]="d"
    value[3]="a"
    value[4]="t"
    value[5]="e"
    value[6]=" "
    My retrieve function is:
    //Retrieve String-String pair
    public String RetrieveStringValue (String key) {
              String value = null;
              DatabaseEntry keyEntry = new DatabaseEntry();
    DatabaseEntry dataEntry = new DatabaseEntry();
    StringBinding.stringToEntry(key, keyEntry);
    if (exampleDb.get(null, keyEntry, dataEntry, LockMode.DEFAULT) ==
    OperationStatus.SUCCESS) {
    value = new String(dataEntry.getData());
    return value;
    Does anyone have an idea?
    Thanks

    Hi,
    Without seeing the complete code for writing and reading, it's impossible to know what's happening.
    But one possibility is that you're using "new String" and you should probably be using StringBinding.entryToString.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Basic Readable Standby Database

    Hi all,
    I've a question about High availability:
    in Database EE there's Data Guard but what is possible to do with SE? I've seen that in SE there's Basic Readable Standby Database. Where can I find documentation about this feature? What are the differences with DG in EE.
    Thank in advance
    Simone

    Data Guard Broker Contents / Search / Index / PDF
    Data Guard Concepts and Administration Contents / Search / Index / PDF
    http://otn.oracle.com/pls/db92/db92.docindex?remark=homepage
    Joel Pérez
    http://otn.oracle.com/experts

  • Issue while loading berkeley database

    Hi,
    I have an issue while loading data into the Berkeley Database. When I load the xml files into Berkeley database, some files are being created. the files are named something like db.001,db.002,log.00000001 etc. I have a server running which tries to access the files .When I try to reload the Berkeley db while my server is running, I am unable to load the Berkeley database. I have to stop the server, load the berkeley DB and restart the server again . Is there any way in which I can reload the database without having to restart the server. Your response would be of help to me to find a solution to this issue. I am currently using Berkeley Database version 2.2.13
    Thanks,
    Priyadarshini
    Message was edited by: Priyadarshini
    user569257

    Hi Priyadarshini,
    The db.001 and db.002 are the environment's region files and the log.00000001 is one of the environment's transactional logs. The region files are created when you use an environment, and their size and number depend on the subsystems that you configure on your environment (memory pool, logging, transactions, locking). The log files reflect the modifications that you perform on your environment's database(s), and they are used along with the transaction subsystem to provide recoverability, ACID capabilities and protect against application or system failures.
    Is there a reason why that server tries to access these files ? The server process that runs while you load your database should not interfere with those files as they are used by Berkeley DB.
    Regards,
    Andrei

  • Error coming while installing Berkeley database for IOS Device.

    Hi I want to install berkeley db in my MAC. My Xcode version is 4.5.2. I downloaded db-5.3.21(Berkeley) from oracle site.I installed command line tool for xcode. I installed berkeley db in my MAC for iPhoneSimulator. Where as for iPhone device I am unable to install. I am following below link for installing the berkeley db. http://docs.oracle.com/cd/E17076_02/html/installation/build_unix_iphone.html
    When I am installing berkeley db for IOS device it is showing following error.
    checking for arm-apple-darwin11.4.2-sh... no checking for sh... /bin/sh checking for a BSD-compatible install... /usr/bin/install -c checking for arm-apple-darwin11.4.2-cc... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc checking whether the C compiler works... no configure: error: in /Users/celstra/rajaramesh/db-5.3.21/build_unix': configure: error: C compiler cannot create executables See config.log' for more details
    ............................... The error is telling that C compiler cannot create executables... But for iPhonesimulator it is not showing the error...
    Steps performed for installing Berkeley database for IOS device.
    export DEV_iOS=/Developer/Platforms/iPhoneOS.platform/Developer
    export SDK_iOS=${DEV_iOS}/SDKs/iPhoneOS6.0.sdk
    export COMPILER_iOS=${DEV_iOS}/usr/bin
    export CC=${COMPILER_iOS}/gcc
    export CXX=${COMPILER_iOS}/g++
    export CFLAGS="-arch armv6 -pipe -Os -gdwarf-2\
    -no-cpp-precomp -mthumb -isysroot $SDKROOT "
    export CXXFLAGS="-arch armv6 -pipe -Os -gdwarf-2\
    -no-cpp-precomp -mthumb -isysroot $SDKROOT "
    export CFLAGS=${LDFLAGS}
    export CXXFLAGS=${LDFLAGS}
    //export CPP=”/usr/bin/cpp ${CPPFLAGS}”
    export LD=${COMPILER_iOS}/ld
    export AR=${COMPILER_iOS}/ar
    export AS=${COMPILER_iOS}/as
    export NM=${COMPILER_iOS}/nm
    export RANLIB=${COMPILER_iOS}/ranlib
    ../dist/configure --host=arm-apple-darwin9\
    --prefix=$SDKROOT ...   
    Same steps i performed for iPHONESIMULATOR. But at that time c complier works fine. But while i am try to install for IOS device it is showing above error.
    Can we need any license software for this installation. Could any one please provide exact document regarding installation for IOS device.
    Any advice would be appreciated.
    Edited by: 1000547 on Apr 17, 2013 12:58 AM
    Edited by: 1000547 on Apr 17, 2013 1:03 AM
    Edited by: 1000547 on Apr 17, 2013 2:31 AM

    Thanks for the  reply komal i did that but not cleared..one thing when i create the build from my flash builder the error happens.but the same project i used in another flashbuilder and create build..That build works fine...is there any chance for flash builder compiler problem.
    cheers,
    venkat

  • Reg: Berkeley Database Recovery

    I am using Berkeley (oracle No-Sql) Database. While Posting the data in to the database abruptly pc is off due to power failure. due to that db file gets corrupted. How can i recover the posted data.
    plz help me......
    Edited by: 986151 on 5 Feb, 2013 8:34 PM

    Question now moved to Oracle Discussion Forums » Berkeley DB Family » Berkeley DB
    as it does not belong in the OTN Community Feedback and Suggestions forum.
    Please ensure you post in an appropriate forum in future.

  • Basics of Oracle database

    Hi All
    can any one let me know some books or your own pdfs or docs to know about architecture of oracle 10g, oracle database server, instance, defining physical structure, logical structure and execution plan of sql statment for easy and brief understanding of this topics.
    thanking you all

    VaRuN wrote:
    Hi All
    can any one let me know some books or your own pdfs or docs to know about architecture of oracle 10g, oracle database server, instance, defining physical structure, logical structure and execution plan of sql statment for easy and brief understanding of this topics.
    thanking you allFor all your questions, One spot is http://tahiti.oracle.com/
    http://www.oracle.com/pls/db112/homepage?remark=tahiti
    Edited by: CKPT on Feb 5, 2012 1:24 PM

  • Basic connection to database

    Hello all
    I want to connect my Java code with a database which contents UserID, password and host name. But I don't know how to set a driver name and how to use Tomcat. I use MySQL to create the database. Sorry I have just started with Java for 1 month so there are a lot of thing I dont know. Could you explain clearly. Thank you all very much.

    Learning how to connect to databases and using Tomcat are two very different things. Rather than swallow the whole problem at once, see if you can make a POJO connect to a database first. Then learn how to deploy a servlet in Tomcat. Once you master both of those you can write a servlet that will instantiate your already-working POJO database object and you're done.

  • Disable Log file creation for a Berkeley DB database

    Hi,
    I'm using Berkeley DB 6 with Oracle Mobile Server 11.3.  When I sync a lot of data, a lot of logfile are created and I think that this is really slowing down my sync process.  Since I never need to recover those client database, I would like to know if it is possible to disable log creation on a Berkeley Database?
    Thank you

    The version of BDB that is used for DMS is TDS (Transaction Data Store).   In that environment, logging is needed to ensure recoverability.   There isnt a way to disable logging.     If you never need to do recovery, then you can use the BDB utilities and occasionally do checkpoints which will flush the cache, or you can shut down the client application.  After this is done then you can remove the log files, since you are claiming that you will not need them for recovery.   
    thanks
    mike

  • I want to use Berkely database for my Dissertation

    Hello everyone,
    I am having some doubts regarding Berkely database. Actually, I am using this database for my project. The scenario of the project is, I have developed some business rules depending on the concept of Ripple Down Rules and represented the rules using Conceptual graphs. Now I want to store fire these business rules in to the Berkely database, so that my application can use these business rules from the Berkeley database.
    This is the context of my project. But, I am very new to this Berkely database. I have downloaded the Berkely database from the Oracle website and also installed it. The OS is am using is Windows XP SP2. Can anyone explain me how to store Conceptual graphs in a Berkely database.
    I am really a beginner to Berkely database. i don't even know what to do after installing the Berkely database. Please advise me about this.
    I would be very thankful to you.
    Cheers,
    Phani.

    Hi Phani,
    The simple answer is however you want. Berkeley DB doesn't put any constraints on how you store data in it. Its main purpose is to provide an efficient and scalable key/value storage and retrieval system, upon which you can build your own data storage system.
    More specifically, if you're representing graph data, the simplest way to do so is with the "edge list" paradigm. You could, for example, set up a pair of databases, one to store all your graph nodes (with associated metadata) and one for directed edges. I'm not sure what particular c structures you'll want to use for these, but I'd suggest using record numbers on both the nodes and the edges DBs, unless all your nodes have unique and meaningful names. I'd also allow duplicate records on your edges DB, and have a very simple record structure in it that simply maps from a source node id to a destination node it (the duplicates allow multiple edges from a given node.)
    If you have more specific constraints on your graph and algorithms you'd like to run on it, there are potentially more schemes you could use, such as the nested set representation for trees, and so on.
    Hope this helps,
    Daniel

  • Getting `No such file or directory` error while trying to open bdb database

    I have four multi-threaded processes (2 writer and 2 reader processes), which make use of Berkeley DB transactional data store. I have multiple environments and the associated database files and log files are located in separate directories (please refer to the DB_CONFIG below). When all these four processes start to perform open and close of databases in the environments very quickly, one of the reader process is throwing a No such file or directory error even though the file actually exists.
    I am making use of Berkeley DB 4.7.25 for testing out these applications.
    The four application names are as follows:
    Writer 1
    Writer 2
    Reader 1
    Reader 2
    The application description is as follows:
    &lsquo;*Writer 1*&rsquo; owns 8 environments and each environment having 123 Berkeley databases created using HASH access method. At any point of time, &lsquo;*Writer 1*&rsquo; will be acting on 24 database files across 8 environments (3 database files per environment) for carrying out write operation. Where as reader process will be accessing all 123 database files / per environment (Total = 123 * 8 environments = 984 database files) for read activities. Similar configuration for Writer 2 as well &ndash; 8 separate environments and so on.
    Writer 1, Reader 1 and Reader 2 processes share the environments created by Writer 1
    Writer 2 and Reader 2 processes share the environments created by Writer 2
    My DB_CONFIG file is configured as follows
    set_cachesize 0 104857600 1   # 100 MB
    set_lg_bsize 2097152                # 2 MB
    set_data_dir ../../vol1/data/
    set_lg_dir ../../vol31/logs/SUBID/
    set_lk_max_locks 1500
    set_lk_max_lockers 1500
    set_lk_max_objects 1500
    set_flags db_auto_commit
    set_tx_max 200
    mutex_set_increment 7500
    Has anyone come across this problem before or is it something to do with the configuration?

    Hi Michael,
    I should have included about how we are making use of DB_TRUNCATE flag in my previous reply itself. Sorry for that.
    From writers, DB truncation happens periodically. During truncate (DB handle is not associated with any environment handle i.e. stand-alone DB
    ) following parameters are passed to db-&gt;open function call:
    DB-&gt;open(DB *db,                    
    DB_TXN *txnid,          =&gt; NULL
    const char *file,          =&gt; file name (absolute DB file path)
    const char *database,  =&gt; NULL
    DBTYPE type, =&gt; DB_HASH
    u_int32_t flags, =&gt; DB_READ_UNCOMMITTED | DB_TRUNCATE | DB_CREATE | DB_THREAD
    int mode); =&gt; 0
    Also, DB_DUP flag is set.
    As you have rightly pointed out, `No such file or directory` is occuring during truncation.
    While a database is being truncated it will not be found by others trying to open it. We simulated this by stopping the writer process (responsible for truncation) and by opening & closing the databases repeatedly via readers. The reader process did not crash. When readers and writers were run simultaneously, we got `No such file or directory` error.Is there any solution to tackle this problem (because in our case writers and readers are run independently. So readers won't come to know about truncation from writers)?
    Also, we are facing one more issue related to DB_TRUNCATE. Consider the following scenario:
    <ul><li>Reader process holds reference of database (X) handle in environment 'Y' at time t1
    </li>
    <li>Writer process opens the database (X) in DB_TRUNCATE mode at time t2 (where t2 &gt; t1)</li>
    <li>After truncation, writer process closes the database and joins the environment 'Y'</li>
    <li>After this any writes to database X is not visible to the reader process</li>
    <li>Once reader process closes the database X and re-joins the environment, all the records inserted from writer process are visible</li>
    </ul>
    Is it the right behavior? If yes, how to make any writes visible to a reader process without closing and re-opening the database in the above-mentioned scenario?
    Also, when [db_set_errfile|http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/db_set_errfile.html] was set, we did not get any additional information in the error file.
    Thanks,
    Magesh

  • Retrieving sample basic using  Excel add in

    Hi I am having problems accessing the sample basic database using excel, I see the sample basic in Application/Database and I get an error which states that "Unable to load database[Basic]". I get this error for all the the sample databases. The system administrator said the databases were installed with the essbase, but I still can't retrieve them. Anyone has any suggestions as to why this may be occurring.Thanks,

    It's not a problem with the Add-In.The database was not Installed correctly. You need to rebuild the Sample Basic application. Can you check to see if all the DB files were installed.Look in the C:\essbase\app\Sample\Basic directory you should see these files, or atleast the outline.Basic.otlBasic.indBasic.esmBasic.tctEss000001.INDEss000001.PAGDo you know how to do this? If you want e-mail me and I'll walk you through it.Regards,Corey BidmeadClarity [email protected]

  • How to display mutliple rows of database data in a single row

    We are using XML Publisher 5.6.2. We have a requirement, where we need to display a multiple database rows for a single column in a single row.
    Basically say a database column has 5 rows
    A1
    A2
    A3
    A4
    A5
    We want to display in the output in a single cell as
    A1 A2 A3 A4 A5
    Thanks,
    - Vasu -

    Look at this blog,
    http://blogs.oracle.com/xmlpublisher/2007/05/24#a325

Maybe you are looking for

  • HELP FAST! Need to go to my wedding-Lightroom 4 does not recognize Nikon D800 files

    I try to import my d800 nef files and Lightroom does not recognize them and will not import.  I looked on the site and it SAYS it supports them but nothing. I looked for a raw plugin but when I clicked the link it would not go anywhere.  HELP! I don'

  • Recording Cable TV Shows using Mac Mini

    Hi: does anyone know how to record cable tv shows using Mac Mini? please discuss the hardware and software issues. Munir

  • Trial version keeps interrupting my work

    I installed the 30 day trial version of Adobe Acrobat 8 Professional. As I'm working in Acrobat, the trial version window keeps popping up and interrupting my work. Each time I need to click on Continue to continue the trial. Is there any way to supp

  • Question / Interest area to post in?

    I don't see a specific area for wide format printers to post in?  Did I miss it?    I have a new hp z3200ps printer, and although I'm "getting it" , I could sure use some begginer help with papers, special effects, etc... thanks, bronzeo

  • Does the iPod need the Pod driver to work with XP and any iPod

    I want to load iTunes 6 on 120 XP workstations. The problem tho is that I do not want my users to connect up their personal iPods to the company's computers. The purpose is so that they can gain access to the iTunes music store expressly for work pur