Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Tie Failed for berkeley DB file

by mitd (Curate)
on Jan 13, 2006 at 05:47 UTC ( #522897=note: print w/ replies, xml ) Need Help??


in reply to Tie Failed for berkeley DB file

Like Aritotole said, but taking a wild stab in the dark: What are the permissions on the parent directory?

mitd-Made in the Dark
I've always been astonished by the absurd turns
rivers have to make to flow under every bridge.


Comment on Re: Tie Failed for berkeley DB file
Re^2: Tie Failed for berkeley DB file
by vennirajan (Friar) on Jan 13, 2006 at 05:51 UTC
    Here is the parent directory permissions,
    $> ls -ld data drwxrwxr-x 21 doc57 shaklee 8192 Jan 12 15:57 data $>

    I can able to tie other db files in the same directory. Also the same setting ( permissions , options and code ) working for that file in other host ( RH enterprise 4.0 ).

    Is that any thing with the OS issue ?


    Regards,
    S.Venni Rajan.
    "A Flair For Excellence."
                    -- BK Systems.
      Hmmm ... once again it sure would help if you could show us the output from $!.

      mitd-Made in the Dark
      I've always been astonished by the absurd turns
      rivers have to make to flow under every bridge.

        It displayed nothing.Here is my code,
        tie( %hash, 'DB_File::Lock', $file, O_RDONLY, 0666, $DB_TREE, 'read' ) + || die ( "db file open error ..:$!:");

        Here is my output.
        db file open error ..:: at ./db_read.pl line 12


        Regards,
        S.Venni Rajan.
        "A Flair For Excellence."
                        -- BK Systems.

      I am having the same problem. It works fine for other files, other platforms. But one file on linux machine fails to tie. It does not even print the error message. Please let me know if you found the solution.

        It does not even print the error message. Please let me know if you found the solution.

        Use db_stat/ db_verify... to investigate the file

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://522897]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2014-08-27 11:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (237 votes), past polls