cancel
Showing results for 
Search instead for 
Did you mean: 

nbdb_backup and other db commands

piotrs00
Level 3
Certified
Hello
I have NBU 6.5.4 on RHEL 5.4.
My NBDB database is relatively small but log file is 24GB large and I want to truncate this log file.
I'm trying to do a NBU database backup using database tool nbdb_backup with following command line:

nbdb_backup -dbn NBDB -online /root/backup/backup_1 -truncate_log

and the only result i can get is a following line:

Online backup of databse to /root/backup/backup_1 failed.

Is there any tutorial or documentation for these ndbd commands?

And another db issue:
My PATH variable contains these dirs: /usr/openv/lib:/usr/openv/db/lib:/usr/bin/db/
And I'm unable to run commands like dbinfo, dbinit, dbstop and others.
The system says dbinit: error while loading shared libraries: libdbtool9_r.so: cannot open shared object file: No such file or directory
but path to /usr/openv/db/lib is fine.
Any ideas?

--
Thank you in advance
Piotr

1 ACCEPTED SOLUTION

Accepted Solutions

Sriram
Level 6
The command syntax you entered is wrong:

Correct syntax is :

nbdb_backup -dbn NBDB -online /root/backup/backup_1 -truncate_tlog

Usage:
        nbdb_backup [-dbn database_name] -offline destination_directory
        nbdb_backup [-dbn database_name] -online destination_directory [-tlog_only] [-truncate_tlog]


View solution in original post

2 REPLIES 2

Sriram
Level 6
The command syntax you entered is wrong:

Correct syntax is :

nbdb_backup -dbn NBDB -online /root/backup/backup_1 -truncate_tlog

Usage:
        nbdb_backup [-dbn database_name] -offline destination_directory
        nbdb_backup [-dbn database_name] -online destination_directory [-tlog_only] [-truncate_tlog]


piotrs00
Level 3
Certified
My mistake :)
Thank You.