in reply to Re: Tie Failed for berkeley DB file
in thread Tie Failed for berkeley DB file

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.

Replies are listed 'Best First'.
Re^3: Tie Failed for berkeley DB file
by mitd (Curate) on Jan 13, 2006 at 06:04 UTC
    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.
Re^3: Tie Failed for berkeley DB file
by vsdeepthi (Initiate) on Feb 28, 2011 at 09:24 UTC

    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