Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

upgradedb(8) [centos man page]

UPGRADEDB(8)						      System Manager's Manual						      UPGRADEDB(8)

NAME
upgradedb - Directory Server script for upgrading the database SYNOPSIS
upgradedb [-a archivedir] [-Z serverID] [-f] [-v] [-d debuglevel] [-h] DESCRIPTION
Checks the DB version and if it has the old index formatting then it will rebuild the indexes. This is usually needed after migrating from older versions of Directory Server. This script must be run while the server is stopped. OPTIONS
A summary of options is included below: -n Backend Name The name of the LDBM database to reindex. Example: userRoot -a Database directory The full path to the database directory. -Z Server Identifier The server ID of the Directory Server instance. If there is only one instance on the system, this option can be skipped. -N Only checks whether any DNs in the database need to be updated. -h Display the usage. EXAMPLE
upgradedb -Z instance2 DIAGNOSTICS
Exit status is zero if no errors occur. Errors result in a non-zero exit status and a diagnostic message being written to standard error. AUTHOR
upgradedb was written by the 389 Project. REPORTING BUGS
Report bugs to http://bugzilla.redhat.com. COPYRIGHT
Copyright (C) 2013 Red Hat, Inc. Mar 5, 2013 UPGRADEDB(8)

Check Out this Related Man Page

BAK2DB(8)						      System Manager's Manual							 BAK2DB(8)

NAME
bak2db - Directory Server script for restoring a backup SYNOPSIS
bak2db archivedir [-Z serverID] [-n backendname] [-q] | [-h] DESCRIPTION
Restores the database from a archived backup. The Directory Server must be stopped prior to running this script. OPTIONS
A summary of options is included below: archivedir The directory of the archived database. -Z Server Identifier The server ID of the Directory Server instance. If there is only one instance on the system, this option can be skipped. -n Backend Name The name of the LDBM database to restore. Example: userRoot -q Quiet mode. Reduces output of task. -h Display the usage. EXAMPLE
bak2db /LDAP/backups/20130305/ -Z instance1 -n userRoot bak2db /LDAP/backups/20130305/ -n example DIAGNOSTICS
Exit status is zero if no errors occur. Errors result in a non-zero exit status and a diagnostic message being written to standard error. AUTHOR
bak2db was written by the 389 Project. REPORTING BUGS
Report bugs to http://bugzilla.redhat.com. COPYRIGHT
Copyright (C) 2013 Red Hat, Inc. Mar 5, 2013 BAK2DB(8)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl script

Hi, I am currently working on a perl script for my collegues that produces an output like this : Directory /orapkg/ora002/oradata/aora02 has size 134 Mb Directory /orapkg/ora002/oradata has size 20560 Mb Directory /orapkg/ora002/oradata/aora01 has size 2038 Mb Now I would like to have... (6 Replies)
Discussion started by: davidg
6 Replies

2. Shell Programming and Scripting

Remote script invocation

Hi, Had this weird issue that need expertise help. Here is the scenario. I have Server A (Unix) and Server B (Windows 2000). I need to invoke a script on Server B from Server A. If it was a windows to windows invocation, I could have done it with WMI. How do I go about it from Unix to... (4 Replies)
Discussion started by: hollysmoke
4 Replies

3. Red Hat

ls hangs on a directory

Running Red Hat Enterprise Linux Server release 5.1 (Tikanga) 2.6.18-53.el5 Trying to do an 'ls' of a sub-directory and the prompt never returns. Same problem running a find command as well. I have done an fsck on the file system (no problems) and can view other sub-directories on this... (5 Replies)
Discussion started by: wazzu62
5 Replies

4. Shell Programming and Scripting

Check the size of the file on different server

Hello, I have two servers A and B, My script is written on Server A. I am picking up the file say "abc.txt" from Server B using sftp command and putting it in a directory at Server A. Now the catch is, If the file size of "abc.txt" is greater thn the available size on Server A, thn an email... (5 Replies)
Discussion started by: Prashant Jain
5 Replies

5. IP Networking

Network Tweaking - Database Query Across Internet

Hi We run a script that queries a database via the internet and we need the fast possible connections to the database server. I have centos server which sends the requests to the database across the internet . it sends upto 800 queries per milliseconds however this using the default... (4 Replies)
Discussion started by: um08
4 Replies

6. Shell Programming and Scripting

Grep Stop status from the output of script and send an eamil alert.

Hello Team, I have script which gives below output. Server clustServer11 is in a STARTED state Server clustServer12 is in a STOPPED state Server clustServer21 is in a STOPPED state I would like to prepare script which will grep stop word from the above output and send an email alert. (5 Replies)
Discussion started by: coolguyamy
5 Replies

7. Emergency UNIX and Linux Support

Seek help on shell script syntax errors

I want to delete archivelog files that has been archived and applied from primary database to standby database. This piece of script is working in Linux server. However, I copy it to Unix server with tiny modification. It won't work and generate the error message. I have checked code carefullt... (8 Replies)
Discussion started by: duke0001
8 Replies

8. Homework & Coursework Questions

Help fixing my database script

1. The problem statement, all variables and given/known data: I need help I get a variant of syntax errors when compiling my script to maintain a database. It's a simple database meant to create/view/maintain vehicles. 2. Relevant commands, code, scripts, algorithms: my if statements have... (5 Replies)
Discussion started by: gamernerd101
5 Replies

9. UNIX for Dummies Questions & Answers

Directory full error

I have a directory 97% full warning. I have deleted 2 large files and still get the error each time I sign on. Can anyone help me with what I have failed to do? Thanks in advance. Danny Corley (4 Replies)
Discussion started by: Danny Corley
4 Replies

10. Linux

Shell Scripting

Hi I have a script that Checks DiskSpace Few Daemons status Few FileAgent Status I need to have a summary of the results on the top like this DiskSpace:Ok/Not OK Few Daemons status:Ok/Not OK Few FileAgent Status:Ok/Not OK The actual Script like the if conditions should be followed by... (5 Replies)
Discussion started by: SIva81
5 Replies

11. Shell Programming and Scripting

Problem with While Loop in AIX Server

Hello, I am trying to run the following Script on AIX Server. The script checks if first field is EFFECTIVE_TIME , if it is then it converts second field in readable format else it redirects entire line to $MAIL. Both the mentioned files exists prior to running the script #!/bin/ksh... (10 Replies)
Discussion started by: rahul2662
10 Replies

12. UNIX for Advanced & Expert Users

Connect to database through FTP server

Hi All I need to run a query on a remote database through a shell script. I have the query, I have the script ready. I have the details of the database server I need to connect to. Now my problem here is , the server where I run the shell script is an FTP server. ->I do not have Oracle... (4 Replies)
Discussion started by: sparks
4 Replies

13. Red Hat

Taking an image or clone of Red Hat server

Dear All , We have a linux Server where we have installed all our Softwares and applications. Now we want to clone this Server to another server or copy the image of it and put it in the another server.So that all the softwares and apps appear in the new server also , rather than re... (7 Replies)
Discussion started by: jegaraman
7 Replies

14. UNIX for Dummies Questions & Answers

Server monitoring using shell script

(5 Replies)
Discussion started by: kk123
5 Replies

15. UNIX for Beginners Questions & Answers

Creating a simple ID Script

Hello everybody, :wall:I am new to Linux and I want to create a simple script on Ubuntu that will allow to make database with a few perimeters. create file and name it Database and complete it with any information id firstname lastname phone 0 1 2 3 4 ... (4 Replies)
Discussion started by: kkishore4580
4 Replies