"Not enough space" DatabaseException while using DatabaseEnvironment

I want to create some database in a DatabaseEnvironment which will be store a large data, such as 10TB. But I always get an DatabaseException with message "Not enough space",  of course there are enough space to store these data in the driver. It throws a database exception while put data and the database size reach a size(or 125% size) specified by CacheInfo, even though I close and then reopen the database environment and database. In addition,  it will throw an exception when I give the param "gbytes" a value larger than 1 in CacheInfo,  such as  "new CacheInfo(2, 0, 1)". The OS is windows 8. Why?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Diagnostics;
using BerkeleyDB;
namespace TestDatabaseEnvironment
    class Program
        static void Main(string[] args)
            string Dir = @"D:\Temp2\";
            string Name = "TestEnv";
            if (Directory.Exists(Dir))
                Directory.Delete(Dir, true);
            DatabaseEnvironmentConfig envConfig = new DatabaseEnvironmentConfig();
            envConfig.Create = true;
            envConfig.DataDirs.Add(Dir);
            envConfig.CreationDir = Dir;
            envConfig.MPoolSystemCfg = new MPoolConfig();
            //envConfig.MPoolSystemCfg.CacheSize = new CacheInfo(2, 0, 1);
            envConfig.MPoolSystemCfg.CacheSize = new CacheInfo((uint)0, (uint)64 * 1024 * 1024, 1);
            Console.WriteLine("CacheSize:" +
                envConfig.MPoolSystemCfg.CacheSize.Gigabytes.ToString() + "GB and " +
                envConfig.MPoolSystemCfg.CacheSize.Bytes.ToString() + "Bytes");
            envConfig.UseMPool = true;
            envConfig.ErrorPrefix = Name;
            if (!Directory.Exists(Dir))
                Directory.CreateDirectory(Dir);
            DatabaseEnvironment Env = DatabaseEnvironment.Open(Dir, envConfig);
            HashDatabaseConfig cfg = new HashDatabaseConfig();
            cfg.Env = Env;
            cfg.Creation = CreatePolicy.IF_NEEDED;
            HashDatabase database1 = HashDatabase.Open(null, "db1", cfg);
            HashDatabase database2 = HashDatabase.Open(null, "db2", cfg);
            Stopwatch sw = new Stopwatch();
            sw.Start();
            for (int i = 0; i < 100000000; i++)
                DatabaseEntry dbKey = new DatabaseEntry(BitConverter.GetBytes(i));
                DatabaseEntry dbValue = new DatabaseEntry(Encoding.UTF8.GetBytes(new string('A', 10 * 1024) + i.ToString()));
                database1.Put(dbKey, dbValue);
                database2.Put(dbKey, dbValue);
                if (i % 100 == 0)
                    Console.WriteLine(i.ToString() + ":" + sw.Elapsed.TotalSeconds.ToString());
            Console.WriteLine("TimeSpan:" + sw.Elapsed.TotalSeconds.ToString());
            database1.Close();
            database2.Close();
            Env.Close();

Hi,
I have run your program on both 32 and 64 bit Windows, but there is no error of "Not enough space". The program is able to inserts the records until it fills up the disk. I have tried running it with CacheInfo(0, 64 * 1024 * 1024, 1) and CacheInfo(1, 64 * 1024 * 1024, 1).
For the cachesize problem, I can reproduce the failure when the program requests a single 2GB cache. But this is normal.
32-bit Windows hardly ever has a 2GB contiguous free region in its address map. There are .DLLs and data segments mapped scattered all over the address space, include just below 2GB. Since the most data that a 32-bit application can possibly have is 3 GB (and even that is unusual), there is no single 2GB space for a mapping.
This is not a BDB bug. If you really need 2GB cache, you could try several smaller regions to get closer to 2GB.
Moreover, if you pass the null db file name to HashDatabase.Open(). The database will be created in-memory. That means the database stays inside the environment cache only. So if the database grows bigger than the cache, it will return the "Not enough space" error.
If there is any question, please let me know.
Regards,
Cindy Zeng

Similar Messages

  • Java.io.IOException : Not enough space  when I use Runtime.getRuntime().exe

    Hi All,
    I am calling a shell script from the java using the Runtime class, the job of the shell script is to zip some content which is huge in size(max 500MB) while invoking the shell script i will give the arguments source & destination. I am using the waitFor() so that my java program will wait untill the shell script execution is over. Everything is working as expected but some times it's giving Exception java.io.IOException : Not enough space
    What could be the reason for getting this kind of error ? Your suggestions are more appreciated.
    Thanks,
    Krishna Rajendra A.

    I don't know what the problem is but make sure you follow the advice for stdout and stderr in http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html because I bet the output from stdout or stderr will tell you what your problem is.

  • When I download an app I had to put in payment settings cause it was expiring,after that it was downloading but then said 'cannot download because your ipad does not enough space' but I actually have 3.3 gb while the game is 1.4 .pls tell what to do

    When I download an app I had to put in payment settings cause it was expiring,after that i paid and it was downloading but then said 'cannot download because your ipad does not enough space' but I actually have 3.3 gb while the game is 1.4 . I tried rebooting and powering off but still it didnt work even when I clicked the app( which still hasn't downloaded yet). What do I do now?

    The GB size of the download file is the compressed size (like .zip or .dmg). When the file is installed/uncompressed it can be 2-3 times larger.
    How much space is used by your Other? You may be able to reduce.
    How Do I Get Rid Of The “Other” Data Stored On My iPad Or iPhone?
    http://tinyurl.com/85w6xwn
    With an iOS device, the “Other” space in iTunes is used to store things like documents, settings, caches, and a few other important items. If you sync lots of documents to apps like GoodReader, DropCopy, or anything else that reads external files, your storage use can skyrocket. With iOS 5/6, you can see exactly which applications are taking up the most space. Just head to Settings > General > Usage, and tap the button labeled Show All Apps. The storage section will show you the app and how much storage space it is taking up. Tap on the app name to get a description of the additional storage space being used by the app’s documents and data. You can remove the storage-hogging application and all of its data directly from this screen, or manually remove the data by opening the app. Some applications, especially those designed by Apple, will allow you to remove stored data by swiping from left to right on the item to reveal a Delete button.
     Cheers, Tom

  • Getting Error "Not Enough Space" while deploying Java Webservice in AS

    Hello,
    I am trying to deploy a java web-service using OAS enterprise manager but getting an error saying "Not Enough Space". Below are the logs.
    [Jul 21, 2010 12:06:17 PM] Application Deployer for MathAppl STARTS.
    [Jul 21, 2010 12:06:35 PM] Copy the archive to /u02/oracle/product/install/SOAHome1/j2ee/oc4j_soa/applications/MathAppl.ear
    [Jul 21, 2010 12:06:35 PM] Initialize /u02/oracle/product/install/SOAHome1/j2ee/oc4j_soa/applications/MathAppl.ear begins...
    [Jul 21, 2010 12:06:35 PM] Unpacking MathAppl.ear
    [Jul 21, 2010 12:06:35 PM] Done unpacking MathAppl.ear
    [Jul 21, 2010 12:06:35 PM] Unpacking WebServices.war
    [Jul 21, 2010 12:06:35 PM] Done unpacking WebServices.war
    [Jul 21, 2010 12:06:35 PM] Initialize /u02/oracle/product/install/SOAHome1/j2ee/oc4j_soa/applications/MathAppl.ear ends...
    [Jul 21, 2010 12:06:35 PM] Starting application : MathAppl
    [Jul 21, 2010 12:06:35 PM] Initializing ClassLoader(s)
    [Jul 21, 2010 12:06:35 PM] Initializing EJB container
    [Jul 21, 2010 12:06:35 PM] Loading connector(s)
    [Jul 21, 2010 12:06:35 PM] Starting up resource adapters
    [Jul 21, 2010 12:06:35 PM] Initializing EJB sessions
    [Jul 21, 2010 12:06:35 PM] Committing ClassLoader(s)
    [Jul 21, 2010 12:06:35 PM] Initialize WebServices begins...
    [Jul 21, 2010 12:06:35 PM] Initialize WebServices ends...
    [Jul 21, 2010 12:06:35 PM] Started application : MathAppl
    [Jul 21, 2010 12:06:35 PM] Binding web application(s) to site default-web-site begins...
    [Jul 21, 2010 12:06:35 PM] Binding WebServices web-module for application MathAppl to site default-web-site under context root MathApple
    [Jul 21, 2010 12:06:37 PM] Operation failed with error: Error compiling :/u02/oracle/product/install/SOAHome1/j2ee/oc4j_soa/applications/MathAppl/WebServices: Not enough space
    When i checked the application server disk utilization, there is enough space. Below is the output.
    bash-3.00$ df -h
    Filesystem             size   used  avail capacity  Mounted on
    /dev/dsk/c1t0d0s0 15G 3.5G 11G 25% /
    /devices 0K 0K 0K 0% /devices
    ctfs 0K 0K 0K 0% /system/contract
    proc 0K 0K 0K 0% /proc
    mnttab 0K 0K 0K 0% /etc/mnttab
    swap 76M 960K 75M 2% /etc/svc/volatile
    objfs 0K 0K 0K 0% /system/object
    sharefs 0K 0K 0K 0% /etc/dfs/sharetab
    /usr/lib/libc/libc_hwcap1.so.1
    15G 3.5G 11G 25% /lib/libc.so.1
    fd 0K 0K 0K 0% /dev/fd
    swap 286M 212M 75M 74% /tmp
    swap 142M 67M 75M 48% /var/run
    /dev/dsk/c1t0d0s3 48G 17G 30G 36% /u01
    /dev/dsk/c1t1d0s0 67G 6.0G 61G 9% /u02
    Please help.
    -Mj

    Dear,
    As suggested, i have checked for the JVM configuration for low heap size but i found the value of MaxPermSize to be 256M. So, i guess this is not causing the "Not Enough Space" issue.
    Please let me know where else do I need to check as i completely clueless about this problem.
    Thanks for your inputs.
    -Mj

  • I am using DVD Studio Pro to create a DVD. The assets total about 2.4GBs using a 4.7 GB disc I still get the error " not enough space on disc" Does anyone know why?

    I am using DVD Studio Pro to create a DVD. The assets total about 2.4GBs using a 4.7 GB disc I still get the error " not enough space on disc" Does anyone know why?

    Start by using this to make sure your assets really fit on the disk:
    http://www.kenstone.net/fcp_homepage/bit_budget.html

  • I recently took my imac in for a recall on the hard drive, they replaced my hard drive, i used time machine to restore all my files. Now when I turn time machine on it says back up failed not enough space, it is not overwriting old back ups.

    I recently took my imac in for a recall on the hard drive, they replaced my hard drive, i used time machine to restore all my files. Now when I turn time machine on it says back up failed not enough space, it is not overwriting old back ups. Why? Please help

    http://pondini.org/TM/FAQ.html

  • An error occurred while executing batch. Error message is: There is not enough space on the disk.

    Hello all,
    I execute a T-SQL query, which will retrieve large amount of data, however, I get an error message after a few seconde.
    The error message is :
    An error occurred while executing batch. Error message is: There is not enough space on the disk.
    Who can tell me the reason and waht's the steps to solve this issue ?
    Really thanks.
    Thanks, Jed deng

    The other two posters suggested that the problem with tempdb or you data/log files. This is not the case here. The error message relates to the client-side of things. Apparently SSMS needs to store data on disk. I don't recall exactly when this happens,
    but I seem to recall that the files appear in you %TEMP% directory.
    I would suggest that your correct action is to clean up the disk. Not the least there may be a lot of junk in your %TEMP% and %TMP% directories.
    Erland Sommarskog, SQL Server MVP, [email protected]
    Thanks Erland, I was not aware of this earlier. Now, I am able to find out one of the resons for slowness of SSMS gird. Also, I have just checked it with process monitor, SSMS is creating tmp%.tmp files..
    - Chintak (My Blog)

  • TS3212 I just purchased a new iphone 4s and I am trying to load some music from my itues. I am getting a message that says not enough space. I checked my phone and it shows i have 5.1G available. do you know how to fix this problem?

    I just purchased a new iphone 4S and I'm trying to loan some music from itunes. I keep getting a message that says not enough space on my phone. I checked my phone and I have 5.1G available. I deselected all the songs on my itunes to try and get it to sync and I keep getting the same message. Any tips?

    Hey csumner1,
    Thanks for the question. I understand you are receiving a "Not enough free space" alert when attempting to sync your new iPhone 4s. The following article may help to resolve your issue:
    iOS: "Not enough free space" alert when trying to sync
    http://support.apple.com/kb/TS1503
    Resolution
    Try disconnecting and reconnecting your device, then syncing again to solve this issue.
    Orphaned files may remain on your iOS device if it is physically disconnected while syncing music, podcasts, videos, or photos. This can prevent iTunes from syncing the iOS device on subsequent sync sessions. When this happens, the Capacity indicator in iTunes may report a large amount of "Other" disk usage for the iOS device. To resolve this issue:
    1. Turn off the music or photo sync option in iTunes for the device.
    2. Click Apply to sync the changes to the device.
    3. Turn the music and photo sync options for the device on again.
    4. Click Apply again to try to sync the device to iTunes.
              - If the 'Not enough free space' alert appears, continue to step 5.
    5. Turn off the automatic syncing functions for the iOS device. To do this:
              - Select the iOS device from the iTunes window and click the Summary tab.
              - Deselect "Automatically sync when this device is connected" and select the "Sync only checked songs and videos" checkbox.
              - Click Apply to sync the changes to the device.
              - Reduce the amount of data that is being synced to the device and resync the device. For example, if syncing your Music library exceeds the memory capacity of the device, choose "Selected playlists" to transfer rather than "All songs and playlists" under the Music tab in iTunes.
    If the 'Not enough free space' alert appears, continue to step 6.
    6. Restore using iTunes.
    Thanks,
    Matt M.

  • "Not enough space" - on DB.open

    Hello,
    My application is using BDB 3.3.1.
    I’m running with the following Parameters:
    m_dbEnv.set_cachesize(0, 536870912, 0);
    m_dbEnv.set_verbose(Db.DB_VERB_CHKPOINT, true);
    m_dbEnv.set_verbose(Db.DB_VERB_RECOVERY, true);
    m_dbEnv.set_verbose(Db.DB_VERB_DEADLOCK, true);
    m_dbEnv.set_verbose(Db.DB_VERB_WAITSFOR, true);
    m_dbEnv.set_lk_detect(Db.DB_LOCK_DEFAULT);
    m_dbEnv.set_lk_max_lockers(4096);
    m_dbEnv.set_lk_max_locks(1000000);
    m_dbEnv.set_lk_max(1000000);
    m_dbEnv.set_tx_max(70);
    m_dbEnv.set_lg_regionmax(204800);
    But despite of the relatively large numbers of lockers and transactions, I’m getting :
    com.sleepycat.db.DbException: Not enough space: Not enough space
    On: com.sleepycat.db.Db._open(Native Method)
    I want to know from lack of what resource the “Not enough space” is thrown?
    Is it because of cachesize/ lockers/ locks/ lockObjects or may be something else.
    Some statistics: when the error happened the whole BDB size was 5284880 bytes
    While I’m running now with 5546186 bytes and no error occur.
    Please advice what can be done to find the problem?
    If it seems like a memory leak – please advice, on how it can be found.
    Thank you in Advance
    Shira

    Hi,
    The "Not enough space" error is corresponding to ENOMEM - 12, that's described here:
    http://www.oracle.com/technology/products/berkeley-db/faq/db_faq.html#8
    This error indicates that some resource has been exhausted. There are several ways to find out what is causing this error:
    1) Configure the Berkeley DB error stream, which can be done like this:
    dbenv->set_errfile(dbenv, stderr);
    If you don't have a database environment handle, you can call this on the database handle:
    db->set_errfile(db, stderr);
    With this, you should see a message explaining what resource has been exhausted.
    2) Run the db_stat utility:
    db_stat -e -h /path/to/databases
    Usually you can solve the problem by configuring the lock limits ( http://www.oracle.com/technology/documentation/berkeley-db/db/ref/lock/max.html ) -- they are often what runs out, or the cache size ( http://www.oracle.com/technology/documentation/berkeley-db/db/ref/am_conf/cachesize.html ).
    Bogdan Coman

  • Consolidate Library, Not enough Space, itl files, genuius, external drive,

    In the interest of putting something back, thought I would post this
    Objective
    To have a single iTunes Library, on a Server PC, (Windows Home Server) so that if a change is made while on PC (a) or PC (b) we see the change.
    Setup
    PC (a) living room
    PC (b) kitchen
    Windows home server, on 24 x 7
    In doing this I made a number of errors, and hope you learn from this, and also found a couple of 'features' that made life harder.
    Standard approach
    1) in iTune preferences, alter the position where you want to store your data, so this could be
    //Server/Music/iTunes/Alison/Library
    You need the subdirectory as the Library is where your itunes will reside, and your internal itunes file one directory up.
    This process will change pointers in te internal itunes files, but still references the music in the various locations it is stored.
    2) Now go to the File Menu/ Library / Consolidate Library
    This will move all your music to teh location you specified above.
    At this point I ran into my first problem, despite having adequate space on the Windows Home Server (WHS) I would get the error 'not enough space to copy files'
    I believe the reason I was getting this error message was that some of the files paths were over 256 chat in length. There is also a limitation in WHS on this, but I believe the issue in this case was with iTunes, not WHS.
    To get around this issue, I changed the location of where I was going to consolidate all the files to, to an internal disk on the PC where my itunes library was. so Instead of;
    //Server/Music/iTunes/Alison/Library
    I used m:/iTunes/Alison/Library
    This worked, so I had all my data (now duplicated effectively, but consolidated) on the same PC.
    The reason people say use consolidate is that it makes the move easy and changes all the internal files, but as I couldn't consolidate to the location I required due to the error, I now have to move all the rest of the data manually.
    3) Copy the Library file on the local PC drive to the WHS Library Directory;
    Copy m:/iTunes/Alison/Library => //Server/Music/iTunes/Alison/Library
    4) I then edited the internal itunes files, so that it pointed to the WHS server location. I edited the itunes internal file;
    Settings\Alison\My Documents\My Music\iTunes\iTunes Music Library.xml
    I did this in notepad, with a find and replace command,
    Find 'm:/'
    Replace '/Server/Music/
    The above bit does require some thought and if you have made it this far, have a look at the xml file structure, and you will be able to figure out how to alter the path.
    This has the effect of pointing the iTunes file at where the music is now stored, you can confirm this by starting iTunes and getting it to show the track it is playing in Explorer. If it is pointing at your new location you are good to go.
    Remember I only had to do this, as I was unable to consolidate to the location I really wanted to go to, due to the space error.
    Also note that I had 2gb memory on the machine I did the find and replace on, as Notepad is not memory friendly.
    5) Apple has some other internal files that need to be corrected as well;
    iTunes Library.itl
    iTunes Library Genius.itdb (if running genius)
    iTunes Library Extras.itdb (believe is genius related)
    sentinel (no idea, but saw this file !)
    To get these all corrected to the new WHS (or external drive) I created a iTunes Library.itl file with zero bytes in the directory Settings\Alison\My Documents\My Music\iTunes\, did this in notepad. I then started iTunes, and it created all of the above files with the new file locations. You can't edit the above files, apple encrypts them
    6) you now move all of the corrected internal files to the WHS home server location;
    //Server/Music/iTunes/Alison
    iTunes Library.itl
    iTunes Music Library.xml
    iTunes Library Genius.itdb
    iTunes Library Extras.itdb
    sentinel
    7) Now you repoint the itunes to the new location for the internal files, specifically the correct itunes library, there are a number of references on the net to do this that you press the shift key(PC) or the option key (Mac)
    I am running a PC, and pressing the shift key while clicking on the itunes icon on the desktop does not work. You have to hold the shift key while starting itunes from the Start Menu, Programs, Itunes. This will then give you an option of which library to look at, and look at the library on the WHS drive (or external drive)
    Thats it
    Hope this helps someone who has to battle with iTunes like I did. Due to the variosu errors, size of the library (200gb) and other issues, whole process took 2 days, if doing this again would have taken a couple of hours.
    DGW

    Hiya, that's sweet to post what you went through!
    I have a question, though - are you able to have both PCs running itunes at the same time?
    When I try this, I get an error message that the ITL file is locked on the 2nd instance I try to open. I'm using an exHD, not a server.
    Also - all that editng of the XML file doesn't save ratings, date added, and some other metadata. If you'd just moved the ITL file, that metadata would be intact.

  • ORA-27102: out of memory SVR4 Error: 12: Not enough space

    We got image copy of one of production server that runs on Solaris 9 and our SA guys restored and handed over to us (DBAs). There is only one database running on source server. I have to up the database on the new server. while startup the database I'm getting following error.
    ====================================================================
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Aug 6 16:36:14 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL> startup
    ORA-27102: out of memory
    SVR4 Error: 12: Not enough space
    SQL>
    ====================================================================
    ABOUT THE SERVER AND DATABASE
    Server:
    uname -a
    SunOS ush** 5.9 Generic_Virtual sun4u sparc SUNW,T5240*
    Database: Oracle 10.2.0.1.0
    I'm giving the "top" command output below:
    Before attempt to start the database:
    load averages: 2.85, 9.39, 5.50 16:35:46
    31 processes: 30 sleeping, 1 on cpu
    CPU states: 98.9% idle, 0.7% user, 0.4% kernel, 0.0% iowait, 0.0% swap
    Memory: 52G real, 239G free, 49M swap in use, 16G swap free
    the moment I run the "startup" command
    load averages: 1.54, 7.88, 5.20 16:36:44
    33 processes: 31 sleeping, 2 on cpu
    CPU states: 98.8% idle, 0.0% user, 1.2% kernel, 0.0% iowait, 0.0% swap
    Memory: 52G real, 224G free, 15G swap in use, 771M swap free
    and I compared the Semaphores and Kernel Parameters in /etc/system . Both are Identical.
    and ulimit -a gives as below..
    root@ush**> ulimit -a*
    time(seconds) unlimited
    file(blocks) unlimited
    data(kbytes) unlimited
    stack(kbytes) 8192
    coredump(blocks) unlimited
    nofiles(descriptors) 256
    memory(kbytes) unlimited
    root@ush**>*
    and ipcs shows nothing as below:
    root@ush**> ipcs*
    IPC status from <running system> as of Fri Aug 6 19:45:06 PDT 2010
    T ID KEY MODE OWNER GROUP
    Message Queues:
    Shared Memory:
    Semaphores:
    Finally Alert Log gives nothing, but "instance starting"...
    Please let us know where else I should check for route cause ... Thank You.

    and I compared the Semaphores and Kernel Parameters in /etc/system . Both are Identical.are identical initSID,ora or spfile being used to start the DB.
    Clues indicate Oracle is requesting more shared memory than OS can provide.
    Do any additional clues exist within alert_SID.log file?

  • Not enough space exception

    hi
    i am trying to insert 150000 records into berkeley db xml 2.1.8 using .net api. but after inserting 19000 records it throws an exception not enough space exception.
    but when i increase cache size it throws database recover exception .
    plz help , how can i solve this problem
    Regards.............
    Shailendra Yadav

    thanks john
    i m able to insert 150000 records using txn.SynCommit() , but the performence is very low . now when i m retriving the same records again it is throwing the same Dbc::get: Not enough space, exception code = DATABASE_ERROR error
    plz suggest me how can i increase my performence and recover this error while retriving.
    my code is..........
    using Sleepycat.Db;
    using Sleepycat.DbXml;
    using System;
    using System.Data;
    using System.IO;
    namespace BDataBase
         public class SimpleAdd
              private static string theContainer = "simpleExampleData.dbxml";
              public static void Main(string[] args)
                   string [] asa = {"-h",@"d:\BDBData"};
                   args=asa;
                   string envdir = parseArguments(args);
                   try
                        // Open an environment and manager
                        using(Manager mgr = CreateManager(envdir))
                             // Open a transactional container
                             ContainerConfig containerconfig = new ContainerConfig();
                             containerconfig.Transactional = true;
                             Transaction txn1 = mgr.CreateTransaction();
                             mgr.CreateContainer(null,@"D:\BDBData\simpleExampleData.dbxml", containerconfig);
                             using(Container container = mgr.OpenContainer(null, theContainer, containerconfig))
                                  // Start a transaction
                                  using(Transaction txn = mgr.CreateTransaction())
                                       // Create an update context
                                       using(UpdateContext uc = mgr.CreateUpdateContext())
                                            try
                                                 string word = reader.GetString(0);
                                                 // Create string contents for documents
                                                 string document1 = "<word>शैलेन्द्र</word>";
                                                 string document2 = "<word>2308</word>";
                                                 // Put the document, asking DB XML to generate a name
                                                 DocumentConfig docconfig = new DocumentConfig();
                                                 docconfig.GenerateName = true;
                                                 container.PutDocument(txn, "", document1, uc, docconfig);
                                                 container.PutDocument(txn, "", document2, uc, docconfig);
                                            catch(Exception dataExp)
                                                 System.Console.WriteLine(""+dataExp);
                                            // Commit the writes. This causes the container write operations
                                            // to be saved to the container.
                                            txn.Commit();
                                  //Find all the Vendor documents in the database
                                  doQuery(mgr, "collection(\"" + theContainer + "\")/word");
                   catch(DbXmlException e)
                        System.Console.WriteLine("Error performing document add against " + theContainer);
                        System.Console.WriteLine(e.Message .ToString());
              private static void doQuery(Manager mgr, string query)
                   // Perform a single query against the referenced container.
                   System.Console.WriteLine("Exercising query: '" + query + "'.");
                   System.Console.WriteLine("Return to continue: ");
                   //System.Console.ReadLine();
                   // Perform the query
                   using(QueryContext context = mgr.CreateQueryContext())
                        Results results = mgr.Query(null, query, context, new DocumentConfig());
                        // Iterate over the results
                        while(results.MoveNext())
                             System.Console.WriteLine(results.Current);
                        System.Console.WriteLine(results.Size + " results returned for query '" + query + "'.");
              public static Manager CreateManager(string envdir)
                   EnvironmentConfig envconf = new EnvironmentConfig();
                   envconf.CacheSize = 50 * 1024 * 1024;
                   envconf.Create = true;
                   envconf.InitializeCache = true;
                   envconf.Transactional = true;
                   envconf.InitializeLocking = true;
                   envconf.InitializeLogging = true;
                   envconf.Recover = true;
                   ManagerConfig mgrconfig = new ManagerConfig();
                   mgrconfig.AdoptEnvironment = true;
                   Sleepycat.Db.Environment env = new Sleepycat.Db.Environment(envdir, envconf);
                   try
                        return new Manager(env, mgrconfig);
                   catch(System.Exception e)
                        env.Dispose();
                        throw e;
              private static void Usage()
                   System.Console.WriteLine("This program adds a few simple XML documents to a specified container.");
                   System.Console.WriteLine("You should run exampleLoadContainer before running this example.");
                   System.Console.WriteLine("You are only required to pass this command the path location of the database");
                   System.Console.WriteLine("environment that you specified when you loaded the examples data:");
                   System.Console.WriteLine();
                   System.Console.WriteLine("\t-h <dbenv directory>");
                   System.Console.WriteLine("For example:");
                   System.Console.WriteLine("\tsimpleAdd.exe -h examplesEnvironment");
                   System.Environment.Exit(-1);
              private static string parseArguments(string[] args)
                   string envdir = null;
                   for(int i = 0; i < args.Length; ++i)
                        string arg = args;
                        if((arg.StartsWith("-")
    #if WIN32
                    || arg.StartsWith("/")
    #endif
                         ) && arg.Length > 1)
                             switch(arg[1])
                                  case 'h':
                                       ++i;
                                       if(i >= args.Length)
                                            System.Console.WriteLine("Invalid option: " + arg);
                                            Usage();
                                       envdir = args[i];
                                       break;
                                  default:
                                       System.Console.WriteLine("Unknown option: " + arg);
                                       Usage();
                                       break;
                        else
                             System.Console.WriteLine("Too many arguments: " + arg);
                             Usage();
                   if(envdir == null)
                        System.Console.WriteLine("Environment directory not found.");
                        Usage();
                   return envdir;
    Shailendra.........

  • Blu-ray Dual layer code 25 "not enough space on media"

    Using Encore CS6 (Cloud edition) to build Blu ray Dual Layer on Mac. Project is 34.75 GB. While building Blu-ray Image all is well until Data written 34.75 GB of 34.75 GB. Then the dreaded "Blu-ray Error: "not enough free stoarage", Code: "25", Note: "Note enough space on media" comes up and the buld is stopped. I repeated by building a new project with the same results. There is over 100 GB of free space on the hard drive. I paritially rebuilt the project at 22.5 GB and tried it as a single layer image. Everything worked fine for that Blu-ray image, so it appears this could have something to do with the Dual layer nature of the larger project. Any help and guidance would be much appreciated.

    I would point out three points. You can try them in order:
    You can apply the 6.0.2 patch that is available (if you have not done so) because the patch has a fix around this issue.
    There is a lot of space requirements for the dual layer BD project. Here is the list of almost all the things that would need space:
    First the asset's indexed files would need space. For audio files, there might be conforming happening that again would need space.
    Then when yoy build the project, the assets will be transcoded (if already not or they are not Don't Transcode). This would take a considerable amount of space as the transcoded assets are complete footage which would be huge.
    Then while creating a image file, First all the files (muxed video streams) would be copied on the disc in a folder (generally named BDMV) and then at the final step, they would be copied from the BDMV folder to the iso file and finally the BDMV folder would get deleted. So this step would need almost double the size of your project. IF your project is say 35 GB, then this step alone would take more than 70GB.
                   So the space requirement for a 35 GB (Disc Info) project might go to almost 100 GB.
    But again there is some bug in size estimation for Motion menus and slideshows. Encore says that they will occupy lesser space but actually they are going to occupy more space. So if your project has motion menus or slideshow, then the estimation might be incorrect. So if it showing 35 GB (for example) and your project has motion menu or slideshow, then actually it might be 37GB or more or anything greater than 35GB depending on the slideshow and motion menu duration in the project.
    -Ramesh.

  • Trying to upgrade to newest version of iPad software but not enough space on hard drive to backup the iPad. It is saying if I continue all content on iPad will be deleted! Can I get it back after uprade by just synching with itunes?

    Trying to upgrade iPad software to newest version. It downloads but stops while backing up and says not enough space on hard drive to back up if i continue all media on iPad will be lostor deleted.  Can I get it back after upgrade by just synching or can I set it to backup to an external drive?  Thanks for any help.  I only use the laptop for itunes now as it has such little space left.

    I would recommend deleting contents off your hard-drive to make space (how much is left..you should be having 15% free as a general practice) and backing up the phone prior to upgrading.

  • Not Enough Space for Restore?

    Hello
    I wish to help me iPhone 5 64G stolen
    now I bought the iPhone5C 16G
    If i restore from last backup
    Not Enough Space on iPhone to Restore Backup!!!
    sms and contcts  and photos only i needd
    I do not care apps anthor thing ..
    so what is the solution

    You'll need to extract your contacts/photos from your backup, using something like this:
    http://www.iphonebackupextractor.com/
    You can then sync that stuff to your phone. For SMS's, while you can extract them from your backup, there's no way to get them on your phone.

Maybe you are looking for