Why environment created failed ?

I work bdb at vxworks V5.5.1. I use bdb of V4.75 about C.
I create env by the following flag:
     open_flag = DB_CREATE | DB_RECOVER | DB_INIT_LOCK
     | DB_INIT_LOG | DB_INIT_TXN | DB_INIT_MPOOL | DB_THREAD;
     But result is failed, error code = 0xc80003.
     So I delete DB_RECOVER from open_flag. The result is OK.
     Env was created ok! So I don't know what happened.
     I trace the source code. I find if I "#undef HAVE_REPLICATION"
     in db_config.h. Then all seems to be ok. But When I reboot os,
     error just said: "/flash/soe/log.0000000017: log file unreadable"
     But I do set:
     p_env->log_set_config(p_env, DB_LOG_AUTO_REMOVE, 1);
     Before I reboot os, I find log file is just "log.0000000015" and
     "log.0000000016" left. So "log.0000000017" has not created, why error
     just said "log.0000000017 unreadable"???
     I don't know what wrong?     Can anyone give some advice?
     Thanks

Thanks Debsubhra Roy:
1. you mention: "You may have some privilege issues on the system with the OS you are using."
Can you explain some more detail? I work at vxworks 5.5.1 and file system is yaffs.
2. I'm not using replication or in-memory log. But I create environment by flags:
DB_USE_ENVIRON | DB_RECOVER | DB_CREATE | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_TXN | DB_INIT_MPOOL | DB_THREAD | DB_PRIVATE;
Oh, yes, I set "#undef HAVE_REPLICATION" in "db_config.h". I compile all source, but it seems no pass, just saied "__log_rep_split function no found". So I find in "log_get.c" about 1326 line before __log_rep_split, I delete "#ifdef HAVE_REPLICATION", then compile ok. Maybe some wrong.
Is there any wrong about the flags? By the way, I work at multithread not multiprocess.
In "db_config.h", I #undef HAVE_FTRUNCATE 1, I'm not using posix ftruncate.
3. If I delete the code, the result is when a log switch happened, will there be some wrong happen?
4. Sorry for my incaution. I test once again, not environment created failed, just db created failed on the environment. Just the following:
ret = db_create(&p_db, p_env, 0);
the ret is not zero, is just "DB_RUNRECOVERY: Fatal error, run database recovery". All information is the following:
*/flash/soe/work/log.0000000002: log file unreadable: errno = 0xc80003*
PANIC: errno = 0xc80003
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
I know errno = 0xc80003 is FILE NOT FOUND in yaffs system.
So question should be why db created failed ? Sorry.
5. I find some simular questions about bdb on vxworks via google.
Re: Berkeley DB High Availability  Work Error (VxWorks)
Re: BDB vxworks 6.6 kernel port error
All wrongs happened just at os reboot. I don't know whether vxworks has something
against bdb. I approciate your help.
Edited by: being on 2009-3-6 下午7:28
Edited by: being on 2009-3-6 下午7:50
Edited by: being on 2009-3-6 下午10:19
Edited by: being on 2009-3-6 下午11:21

Similar Messages

  • SOS: javax.ejb.CreateException: Create failed because primary key is null

    Hello,
    I am desperately trying to get my application server to create a record through CMP 2. My app server is JRun 4.
    Here is the client:
    package com.parispano.tests;
    import java.util.Date;
    import java.util.Properties;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import com.parispano.account.entity.Account;
    import com.parispano.account.entity.AccountHome;
    public class ClientEJBDeuxTemp {
      public static void main(String[] args) {
        System.out.println("\nBegin account DemoClient...\n");
        try {
          // Create A Demo object, in the server
          // Note: the name of the class corresponds to the JNDI
          // property declared in the DeploymentDescriptor
          // From DeploymentDescriptor ...
          // beanHomeName demo.DemoHome
          Context ctx = getInitialContext();
          AccountHome ahome = (AccountHome) ctx.lookup("AccountEJBHome");
          //System.out.println("Creating Demo\n");
          Account account = ahome.create("toto","toto", "toto","toto","toto","toto","toto","toto","toto","toto","toto",new Date(),new Date());
        catch (Exception e) {
          System.out.println(":::::::::::::: Error :::::::::::::::::");
          e.printStackTrace();
        System.out.println("\nEnd DemoClient...\n");
      static String user     = "admin";
      static String password = "admin";
      static String url      = "ordi:2908";
       * Gets an initial context.
       * @return                  Context
       * @exception               java.lang.Exception if there is
       *                          an error in getting a Context
      static public Context getInitialContext() throws Exception {
        Properties p = new Properties();
        p.put(Context.INITIAL_CONTEXT_FACTORY, "jrun.naming.JRunContextFactory");
        p.put(Context.PROVIDER_URL, url);
        if (user != null) {
          System.out.println ("user: " + user);
          p.put(Context.SECURITY_PRINCIPAL, user);
          if (password == null)
            password = "";
          p.put(Context.SECURITY_CREDENTIALS, password);
        return new InitialContext(p);
    }and here is the exception I get:
    javax.ejb.CreateException: Create failed because primary key is null
    I don't understand why I get this as the primary key is "toto" and therefore is not null.
    Here is the DD:
    <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
      <ejb-jar>
        <display-name>Account EJB</display-name>
        <enterprise-beans>
          <entity>
            <display-name>Account EJB</display-name>
            <ejb-name>AccountEJB</ejb-name>
            <home>com.parispano.account.entity.AccountHome</home>
              <remote>com.parispano.account.entity.Account</remote>
            <local-home>com.parispano.account.entity.AccountLocalHome</local-home>
            <local>com.parispano.account.entity.AccountLocal</local>
            <ejb-class>com.parispano.account.entity.AccountEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.String</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>account</abstract-schema-name>
            <cmp-field>
            <description>Login</description>
            <field-name>login</field-name>
            </cmp-field>
            <!-- -->
            <cmp-field>
              <description>Password</description>
              <field-name>password</field-name>
            </cmp-field>
            <cmp-field>
              <description>Surname</description>
              <field-name>surname</field-name>
            </cmp-field>
            <cmp-field>
              <description>First Name</description>
              <field-name>firstName</field-name>
            </cmp-field>
            <cmp-field>
              <description>Address One</description>
              <field-name>addressOne</field-name>
            </cmp-field>
            <cmp-field>
              <description>Address Two</description>
              <field-name>addressTwo</field-name>
            </cmp-field>
            <cmp-field>
              <description>Postcode</description>
              <field-name>postcode</field-name>
            </cmp-field>
            <cmp-field>
              <description>City</description>
              <field-name>city</field-name>
            </cmp-field>
            <cmp-field>
              <description>Country</description>
              <field-name>country</field-name>
            </cmp-field>
            <cmp-field>
              <description>Telephone</description>
              <field-name>telephone</field-name>
            </cmp-field>
            <cmp-field>
              <description>Email</description>
              <field-name>email</field-name>
            </cmp-field>
            <cmp-field>
              <description>Inscription Date</description>
              <field-name>inscriptionDate</field-name>
            </cmp-field>
            <cmp-field>
              <description>Last Visit Date</description>
              <field-name>lastVisitDate</field-name>
            </cmp-field>
              <primkey-field>login</primkey-field>
          </entity>
        </enterprise-beans>
      </ejb-jar>Can anyone tell me why I am getting this exception please?
    Thanks in advance,
    Julien Martin.

    Yes, I have set the PK. Actually this is happening when the number of columns are more than 63 columns. After I reduce the number of column, it is working fine.
    Is it the actual problem???
    fyi, I'm using jboss as the Application Server...

  • Query running fine in one environment but failing in other environment

    Hi,
    I have a query which i am trying to execute in two different environments.
    Test :- Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Prod:- Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Now query executes finely in one environment and fails in other environment.
    It gives following error.
    ORA-01861: literal does not match format string
    01861. 00000 - "literal does not match format string"
    The query is too long and contains CHAR-DATE and DATE-CHAR conversions.
    The same query works fine on TEST environment and and fails on PROD environment.
    Any help related to it would be appreciated.
    Thanks,
    Mahesh

    MaheshGx wrote:
    Hi,
    I have a query which i am trying to execute in two different environments.
    Test :- Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Prod:- Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Now query executes finely in one environment and fails in other environment.
    It gives following error.
    ORA-01861: literal does not match format string
    01861. 00000 - "literal does not match format string"
    The query is too long and contains CHAR-DATE and DATE-CHAR conversions.
    The same query works fine on TEST environment and and fails on PROD environment.
    Any help related to it would be appreciated.
    Thanks,
    MaheshThat's called a bug. One caused by the person who developed the code. They relied on implicit conversion between strings and dates when
    production quality code will always use to_char and to_date functions with a format mask.

  • Java 2 runtime Environment setup failed with a return code of -1

    Hi!
    I have tried to install sdk 1_3_1_01 on Windows 2000 with ServicePack 2 and the error "Java 2 runtime Environment setup failed with a return code of -1" occured. As I saw, a lot of people has the problem but couldn't find a solution on this page!
    Please help !
    Me

    I've installed 1.3.1_01 on both W2K Workstation and Server, no problem. There's a bug report, but no workaround or solution.
    http://developer.java.sun.com/developer/bugParade/bugs/4412291.html
    and it's supposedly 'fixed' in 1.4.0 beta.
    http://java.sun.com/j2se/1.4/fixedbugs/fixedbugs-beta2.html
    You might try installing the beta version
    http://java.sun.com/j2se/

  • HT5622 Actually um trying to update new iOS 7 for my iphone 4 but when i press the button to install new software suddenly it appears why " iOs 7 failed verification because you are no longer connected to the internet " even my phone is already connected

    hie there Actually um trying to update new iOS 7 for my iphone 4 but when i press the button to install new software suddenly it appears why " iOs 7 failed verification because you are no longer connected to the internet " even my phone is already connected to net

    I tried powering down and re-starting the iPhone (as suggested at http://support.apple.com/kb/TS1275). This seems to have cleared the "...not connected to the Internet" problem, and iOS 6.1 is now in the process of downloading.
    Thanks very much for your feedback.

  • SSIS package works in development environment but fails when job scheduler executes, file path invalid

    SIS package works in development environment but fails when job scheduler executes, file path invalid
    Relatively simple package to get OLE-DB connection to MS FoxPro 9.0 DB
    The failure in the job log states that the path is invalid its a network path (\\192.168.1.xxx\foldername) this has been run several ways with the remote computer being mapped as a network drive and through the \\ notation described above.
    Thinking it was a security issue between the SQL agent account and my account I tested by subsitution myself as a proxy account for the agent when running this job, again same result failed on network path.
    One issue I see is that the remote computer is running Server 2000 (legacy software incompatable with newer versions) 
    Is it possible that this is a security issue, since if i understand correctly the current MS domain security model didn't exist until Server 2003.

    Hi REIData,
    Have you got the issue resolved? Based on your description, please make sure the target folder is shared properly. If the computer on which the SQL Server Agent job runs doesn’t join the domain as the server that hosts the shared folder, you have to share
    the folder with everyone by adding “Everyone” to the people list on the File Sharing page of the folder and assign "Read/Write" permission to it.
    Regards,
    Mike Yin
    TechNet Community Support

  • ORA-27154: post/wait create failed

    hi
    i am runing Oracle 9i R2 on SunOS 5.9 , i tried to startup my database and it gives me this error:
    ORA-27154: post/wait create failed
    ORA-27300: OS system dependent operation:semget failed with status: 28
    ORA-27301: OS failure message: No space left on device
    ORA-27302: failure occurred at: sskgpsemsper
    i have no space problem in my server , i have another database running on the same server without any problem.
    any suggestions !!
    thanks in advanced..
    wisam

    what are the effects of increasing the semmni and the semmnsMore memory (some KBs likely) allocated by the kernel.
    and do i have to reboot the server ?!.Yes (from Oracle doc: If you change the settings, save the /etc/system file and restart the system.)
    accually i have 4 databases in this server . does this make deferent ?From http://download-uk.oracle.com/docs/html/A96167_01/pre.htm#CHDCEHBG
    The SEMMNS parameter should be set to the sum of the PROCESSES parameter for each Oracle database, adding the largest one twice, and then adding an additional 10 for each database.
    Message was edited by:
    Pierre Forstmann
    Message was edited by:
    Pierre Forstmann

  • Why use oracle fail safe???

    hi
    i have one question..
    why use oracle fail safe???
    In the case windows HA System, our systems is operating Oracle database using only Windows Cluster (MSCS) without Oracle Fail Safe!!
    Without oracle fail safe, our systems was installed Oracle database.....
    if using oracle fail safe, how is merit???.
    Thanks...

    Hi Kim,
    why use oracle fail safe???Refer http://download.oracle.com/docs/html/B12070_01/intro.htm#i1005996
    Hope helps
    Regrads,
    Xaheer

  • Can you please tell us why our API fails

    Can you please tell us why our API fails when we use this timezone of Slovakia?
    API Name: jtf_tasks_pub.create_task
    This standard oracle API fails with the error : TIMEZONE FOR 483 IS EITHER DISABLED OR INVALID
    But we do have the Timezone record number 483 in Oracle.
    If we run this query, we see UPGRADE_TZ_ID 483 assigned to Europe/Bratislava
    select * from apps.fnd_timezones_vl
    where UPGRADE_TZ_ID=483
    Please let us know why it fails.

    I'd suggest you log a SR for this issue.
    Thanks,
    Hussein

  • Why not create a command

    why not create a command that shows you how many miles the paket travel to distination . that way you can figure out your lentency right there base on the distance..
    show distance x.x.x.x
    it will show you the distance from b/w the interface you are seating on to the interface you are requesting
    hehe lol :-) haha bzzzzzzzz!!!!!

    Hi,
    Select>Color Range is only in photoshop (i.e photoshop cs6 or cc 2014 as examples) and not in photoshop elements.
    You could double click on the layer thumbnail in the layers panel to unlock the layer.
    Select the background with the Magic Wand Tool.
    Then Edit>Cut and that should make everything but the actual logo transparent.
    Then save as a png, tif or psd file.
    There is also a photoshop elements forum
    (you posted in the photoshop forum)
    https://forums.adobe.com/community/photoshop_elements

  • Why we create settlement profile. What master data must exist in sap before creating settlement profile for order.

    Why we create settlement profile. What master data must exist in sap before creating settlement profile for order.

    As mentioned above, settlement is to post the cost to cost centers or any possible receivers as per the settlement profile. PM / Service orders, WBS elements, etc., can be temporary cost bearers from which cost should be settled to some permanent receivers.
    Cost elements / Cost element groups should be available as Master data before configuring settlement profile.
    To answer your latest query, there are 2 type of cost centers.
    Sender Cost Center - Against this, labor / internal activity price will be maintained in KP26. This cost center will be maintained in PM / PP work centers. While creating PM / PP orders, one of the work centers & activity types will be mentioned. Based on the KP26 entry for the combination of Activity type & Sender cost center, price will be picked & calculated according to work hours / labor hours maintained in PM / PP orders.
    Receiver Cost Center - Receiver cost center is the department / location cost center to which cost should be settled. Only receiver cost center will be maintained in settlement profile. Sender cost centers will be picked up automatically from work center.

  • Why files created on iweb snow leopards do not open on iweb yosemite

    why files created on iweb snow leopards do not open on iweb yosemite
    почему файлы iweb созданные на snow leopards не открываются на iweb yosemite
    how to work?
    как работать?

    There's a topic below your's that may have the answer :
    Help! iWeb won't open properly after I updated to Yosemite. No old websites, no workspace- nothing is displayed even when the app is open. HELP!
    I use this :
    http://wyodor.byethost8.com/iwebsites/iWebSites.html

  • How do you remember why you created a virtual copy?

    Virtual copies are really usefull but I'm already starting to struggle to remember why I created them (is this a senior moment...)
    I look in a folder where I've created various virtual copies for different crop sizes, exposures, toning etc. The trouble is this isn't always obvous and I find myself having to look at each image it turn and working out why it's here.
    Just wondered if anyone has the same problem and have any suggestions for solving it. I'm currently thinking of using a metadata field - perhaps job title?

    In Metadata you could note something under Workflow.
    Don
    Don Ricklin, MacBook 1.83Ghz Duo 2 Core, Pentax *ist D
    http://donricklin.blogspot.com/

  • Hdiutil: create failed - error -5341

    Hi,
        I have this error on 2 Macosx Mavericks machines:
       hdiutil: create failed - error -5341
    This happens when I create an image larger than 100MB. Here the srcfolder is 120MB:
    $ hdiutil create  -srcfolder myapp.app myapp.dmg
    hdiutil: create failed - error -5341
    The solution is to specify the size on the command line
    valodm:~ jedi$ hdiutil create -size 130m  -srcfolder myapp.app myapp.dmg
    created: myapp.dmg
       This is disturbing because this bug breaks the munkiimport tool. When trying to import the folder in Munki, I can't specify the size of the sourcefolder, so the tool fails with the error above. The workaround is to create the dmg with the command line, and then import the dmg.
        I didn't have this problem on Mountain Lion.

    Maybe size does matter?
    I once had a similar (maybe the same) error a while ago when I was creating disk images as backups of folders using Disk Utility. I eventually split the source folder into two folders and Disk Image was able to create the dmg file properly.
    Fast forward. I use hdiutil to do the same task now in a more automated way from a bash script. I just ran the script on 25 folders. 23 of them were archived into dmg files as expected. Two failed with the -5341 error.
    I edited one of the files in one of the folders slightly, reducing the file size by about 3%, ran the script again and it worked properly.
    I modified a file in the other folder that hdiutil failed on the first time and, again, it worked.
    There is no .Trash in either folder.
    Neither folder was anywhere near 520 mb. They were different sizes (~130 mb and ~260 mb).
    Conclusion: either there was something in those files, or on the area of the SSD that those files were sitting on, that was giving hdiutil a problem, or there is something with various sizes of dmg files that brings out a bug in hdituil.

  • Why updates keep failing since 10.9.2 to 10.9.4 (blank screen)?

    I'm IT manager with 60+ Apple computers (mostly iMac and laptops) all running Mavericks and since 10.9.2, the automatic system updates keep failing on a few of my computers (10-12 computers out of 60). Users launch the system updates when they leave office by the night and when they come back next morning, login screen is black and there's only a moving cursor! No matter if you reboot, safe boot, verbose or EVEN reinstall OS (I tried it once), it's still the black login screen.
    This problem is highly discussed on the web and there's an easy fix to force update to continue and succeed... but as IT manger I am very tired to fix manually several computer every time Apple release a system update!! For people who's wondering, the fix is to power off computer, restart in safe mode (shift key), then type your admin account, hit TAB and type your password within the black screen then after a few try the display will light up and update will continue and succeed after a final reboot.
    I am just wondering why updates keeps failing since 10.9.2, also in 10.9.3 and still in 10.9.4...  it's not happening on specific Mac model/year and my computers are not "ghosted" (restored) from disk image on each other... there's no link between the computers who's failing and those who succeed to update!! They are in different department of the business and they are not having same software installed. Few are for office work (Ms-Office) and other are graphic design (Adobe) or video. Almost all users are non-admin but a few are admin and both admins and non-admins are failing!
    If you have some hints for me, I'll be very appreciated since I lost so much time to manually relaunching the update. Thx!!

    The article is quite interesting. Quite a Mea Culpa from Apple!
       Translated, the article says -- if you get any of these errors, iTunes and/or IOS have corrupted your device to the point where it cannot be recovered. You must reinitialize (i.e. restore from backup) your device.  -- excetp that the first step "Copy your backup" is less than informative or useful.
    Under OSX, the mentioned location contains nothing but a bunch of files named with a string of digits.
    Yes, I know what they represent and how to translate them -- howver, I pitty joe-user with no experience with OSX.
    The bulk of the article is for Windows systems. Very little information in that article applies to OSX.
    The funny, but sad, thing is the first thing they tell you to do is to update OSX and iTunes and security software -- when in fact that is what cause the problem in the first place. Granted the articles pre-date the OSX/iTunes updates which caused the problem.
    However, all of that blather ignored -- the article does NOT address my problem.
    Unless it really does.
    I have no issues (apparently) with successfully backing up my iPhone. At least iTunes claims that it is being successful.
    What is failing is the second half -- the Sync.
    OF course, that is if you belive iTunes -- which, according to the /Library/Logs/MobilBackup/MobilBackup.log, has in fact NOT happened now since January!
    Very interesting.
    Thanks for your suggestion.
    However, I continue to hunt.

Maybe you are looking for

  • How can I check manufacturers in PO?

    we have many PO in which the final suppliers, passing via vendor, traders, manufacturer and manufacturer palnts which are the real suppliers, can be more than one. Maning,  there is a manufacturer and it has many plants, part of which are allowed and

  • Windows Error Message

    I am not sure if I am getting an error message or what from Windows Vista. I have had my 3rd generation nano for awhile and have never gotten this message. I tried to search through the previous discussions and other support here on the website, but

  • Problem in converting english into spanish

    In one of our POC i need to create a custom workflow and calling it from HTML page. I did that by making a self registration workflow and put it under "..user/anonlogin.jsp" and then by some minimal customization i called it using link referrence "ht

  • Error 29

    Good Afternoon, I recently updated my system to LabView 2013 and updated my Measurement Computing Drivers ULx to the same. However I ran into a series of issues with the communication between the DAQ and the TestStand sequence. An error Code 29 take

  • Can you append a link to a form with a query string to popular a form field?

    I'm trying to do this with Form Central but having no luck getting an answer. Is Acrobat Pro the answer? Thanks for your help Wayne