You are on page 1of 13

How to perform Consistency Check on Netbackup 6.

x databases (EMM & BMRDB)

This check is similar to NBCC which was run to check the consistency of a 5.x Catalog, prior to upgrade
from NBU 5.x to NBU 6.5

Two methods exist for validating the consistency of the NetBackup EMM (Enterprise Media Manager) and
BMR (Bare Metal Restore) Databases. One is performed from a command line interface CLI and the
other by using the NetBackup database administration utility which is included in NetBackup 6.5.2 or later.

Note: Before performing a consistency check, stop all NetBackup Services on the EMM server.

The master and EMM servers are usually the same server.

Once all services have stopped, start only the ASA Service.

Windows:

6.x: D:\Program Files\Veritas\NetBackup\bin>bpup -e ASANYs_VERITAS_NB


7.x: D:\Program Files\Veritas\NetBackup\bin>bpup -e SQLANYs_VERITAS_NB

UNIX:

# /usr/openv/netbackup/bin/nbdbms_start_stop start

Note: The EMM database name for windows is NBDB.DB, while for Unix it is NBDB.db

Method 1: CLI:

Windows:

D:\Program Files\Veritas\NetBackup\bin>nbdb_admin.exe NBDB.DB -validate -full


Adaptive Server Anywhere Validation Utility Version 9.0.2.3527
Validating EMM_MAIN.EMM_AllocationStatus
Validating EMM_MAIN.EMM_Allocations
Validating EMM_MAIN.EMM_ApiMediaType
Validating EMM_MAIN.EMM_ApiVendor
Validating EMM_MAIN.EMM_AppCluster_Server
Validating EMM_MAIN.EMM_BarcodeRule
Validating EMM_MAIN.EMM_DeletedMedia
Validating EMM_MAIN.EMM_Density
Validating EMM_MAIN.EMM_DensitySupport
Validating EMM_MAIN.EMM_Device
Validating EMM_MAIN.EMM_DiskGroup
Validating EMM_MAIN.EMM_DiskGroup_StorageUnit
Validating EMM_MAIN.EMM_DiskVolume
Validating EMM_MAIN.EMM_DiskVolumeMountPoint
Validating EMM_MAIN.EMM_DriveIndex
Validating EMM_MAIN.EMM_DriveInquiry
Validating EMM_MAIN.EMM_DriveType
Validating EMM_MAIN.EMM_DriveType_Density_MediaTyp
Validating EMM_MAIN.EMM_FatClient
Validating EMM_MAIN.EMM_FatInitiatorDevice
Validating EMM_MAIN.EMM_FatPipe
Validating EMM_MAIN.EMM_FatServer
Validating EMM_MAIN.EMM_FatTargetDevice
Validating EMM_MAIN.EMM_Image
Validating EMM_MAIN.EMM_ImageCopy
Validating EMM_MAIN.EMM_ImageFragment
Validating EMM_MAIN.EMM_LibraryGroup
Validating EMM_MAIN.EMM_LibraryInquiry
Validating EMM_MAIN.EMM_LibraryType
Validating EMM_MAIN.EMM_Machine
Validating EMM_MAIN.EMM_MachineAlias
Validating EMM_MAIN.EMM_MachineConfig
Validating EMM_MAIN.EMM_MachineDeviceConnection
Validating EMM_MAIN.EMM_Machine_ServerGroup
Validating EMM_MAIN.EMM_Media
Validating EMM_MAIN.EMM_MediaAffinityGroup
Validating EMM_MAIN.EMM_MediaGroup
Validating EMM_MAIN.EMM_MediaPool
Validating EMM_MAIN.EMM_MediaServer_NdmpFiler
Validating EMM_MAIN.EMM_MediaType
Validating EMM_MAIN.EMM_MediaType_ApiMediaType
Validating EMM_MAIN.EMM_Media_MediaAffinityGroup
Validating EMM_MAIN.EMM_Merge
Validating EMM_MAIN.EMM_NdmpCredentials
Validating EMM_MAIN.EMM_ServerGroup
Validating EMM_MAIN.EMM_StorageServer
Validating EMM_MAIN.EMM_StorageServer_DiskGroup
Validating EMM_MAIN.EMM_StorageUnit
Validating EMM_MAIN.EMM_StorageUnitGroup
Validating EMM_MAIN.EMM_StorageUnit_Machine
Validating EMM_MAIN.EMM_StorageUnit_STUGroup
Validating EMM_MAIN.EMM_TechnologyGroup
Validating EMM_MAIN.EMM_TechnologyGroup_LibraryGrp
Validating EMM_MAIN.EMM_VaultContainer
Validating EMM_MAIN.EMM_Version
Validating RB_MAIN.RB_Allocation
Validating RB_MAIN.RB_Allocation_Type
Validating RB_MAIN.RB_Drive_Allocation_Error
Validating RB_MAIN.RB_MDS_Allocation
Validating RB_MAIN.RB_MDS_Job_Information
Validating RB_MAIN.RB_MDS_Reservation
Validating RB_MAIN.RB_MDS_TransportAllocation
Validating RB_MAIN.RB_Media_Allocation_Error
Validating RB_MAIN.RB_Named_Resource
Validating RB_MAIN.RB_Provider_Type
Validating SYS.DUMMY
Validating SYS.SYSARTICLE
Validating SYS.SYSARTICLECOL
Validating SYS.SYSATTRIBUTE
Validating SYS.SYSATTRIBUTENAME
Validating SYS.SYSCAPABILITY
Validating SYS.SYSCAPABILITYNAME
Validating SYS.SYSCHECK
Validating SYS.SYSCOLLATION
Validating SYS.SYSCOLLATIONMAPPINGS
Validating SYS.SYSCOLPERM
Validating SYS.SYSCOLSTAT
Validating SYS.SYSCOLUMN
Validating SYS.SYSCONSTRAINT
Validating SYS.SYSDOMAIN
Validating SYS.SYSEVENT
Validating SYS.SYSEVENTTYPE
Validating SYS.SYSEXTENT
Validating SYS.SYSEXTERNLOGINS
Validating SYS.SYSFILE
Validating SYS.SYSFKCOL
Validating SYS.SYSFOREIGNKEY
Validating SYS.SYSGROUP
Validating SYS.SYSHISTORY
Validating SYS.SYSINDEX
Validating SYS.SYSINFO
Validating SYS.SYSIXCOL
Validating SYS.SYSJAR
Validating SYS.SYSJARCOMPONENT
Validating SYS.SYSJAVACLASS
Validating SYS.SYSLOGIN
Validating SYS.SYSOPTBLOCK
Validating SYS.SYSOPTION
Validating SYS.SYSOPTJOINSTRATEGY
Validating SYS.SYSOPTORDER
Validating SYS.SYSOPTQUANTIFIER
Validating SYS.SYSOPTREQUEST
Validating SYS.SYSOPTREWRITE
Validating SYS.SYSOPTSTAT
Validating SYS.SYSPROCEDURE
Validating SYS.SYSPROCPARM
Validating SYS.SYSPROCPERM
Validating SYS.SYSPUBLICATION
Validating SYS.SYSREMOTEOPTION
Validating SYS.SYSREMOTEOPTIONTYPE
Validating SYS.SYSREMOTETYPE
Validating SYS.SYSREMOTEUSER
Validating SYS.SYSSCHEDULE
Validating SYS.SYSSERVERS
Validating SYS.SYSSQLSERVERTYPE
Validating SYS.SYSSUBSCRIPTION
Validating SYS.SYSSYNC
Validating SYS.SYSTABLE
Validating SYS.SYSTABLEPERM
Validating SYS.SYSTRIGGER
Validating SYS.SYSTYPEMAP
Validating SYS.SYSUSERMESSAGES
Validating SYS.SYSUSERPERM
Validating SYS.SYSUSERTYPE
Validating SYS.SYSWEBSERVICE
Validating dbo.EXCLUDEOBJECT
Validating dbo.RowGenerator
Validating dbo.ix_consultant_affected_columns
Validating dbo.ix_consultant_capture
Validating dbo.ix_consultant_index
Validating dbo.ix_consultant_ixcol
Validating dbo.ix_consultant_log
Validating dbo.ix_consultant_master
Validating dbo.ix_consultant_query_index
Validating dbo.ix_consultant_query_phase
Validating dbo.ix_consultant_query_text
Validating dbo.ix_consultant_workload
Validating dbo.jdbc_function_escapes
Validating dbo.migrate_remote_fks_list
Validating dbo.migrate_remote_table_list
Validating dbo.migrate_sql_defn
Validating dbo.ml_connection_script
Validating dbo.ml_device
Validating dbo.ml_device_address
Validating dbo.ml_listening
Validating dbo.ml_property
Validating dbo.ml_qa_delivery
Validating dbo.ml_qa_global_props
Validating dbo.ml_qa_notifications
Validating dbo.ml_qa_repository
Validating dbo.ml_qa_repository_props
Validating dbo.ml_qa_repository_staging
Validating dbo.ml_qa_status_history
Validating dbo.ml_qa_status_staging
Validating dbo.ml_script
Validating dbo.ml_script_version
Validating dbo.ml_scripts_modified
Validating dbo.ml_subscription
Validating dbo.ml_table
Validating dbo.ml_table_script
Validating dbo.ml_user
Validating dbo.spt_collation_map
Validating dbo.spt_jdatatype_info
Validating dbo.spt_jdbc_conversion
Validating dbo.spt_jtext
Validating dbo.spt_mda
Validating dbo.ul_file
Validating dbo.ul_statement
Validating dbo.ul_variable
Validating rs_systabgroup.rs_lastcommit
Validating rs_systabgroup.rs_threads
No errors reported
Database [NBDB] validation successful.

D:\Program Files\Veritas\NetBackup\bin>

Unix:

[root@motmas1:/usr/openv/db/bin] #> ./nbdb_admin NBDB.db -validate –full

Adaptive Server Anywhere Validation Utility Version 9.0.2.3508

Validating EMM_MAIN.EMM_AllocationStatus

Validating EMM_MAIN.EMM_Allocations

Validating EMM_MAIN.EMM_ApiMediaType
Validating EMM_MAIN.EMM_ApiVendor

Validating EMM_MAIN.EMM_AppCluster_Server

Validating EMM_MAIN.EMM_BarcodeRule

Validating EMM_MAIN.EMM_DeletedMedia

Validating EMM_MAIN.EMM_Density

Validating EMM_MAIN.EMM_DensitySupport

Validating EMM_MAIN.EMM_Device

Validating EMM_MAIN.EMM_DiskGroup

Validating EMM_MAIN.EMM_DiskGroup_StorageUnit

Validating EMM_MAIN.EMM_DiskVolume

Validating EMM_MAIN.EMM_DiskVolumeMountPoint

Validating EMM_MAIN.EMM_DriveIndex

Validating EMM_MAIN.EMM_DriveInquiry

Validating EMM_MAIN.EMM_DriveType

Validating EMM_MAIN.EMM_DriveType_Density_MediaTyp

Validating EMM_MAIN.EMM_FatClient

Validating EMM_MAIN.EMM_FatInitiatorDevice

Validating EMM_MAIN.EMM_FatPipe

Validating EMM_MAIN.EMM_FatServer

Validating EMM_MAIN.EMM_FatTargetDevice

Validating EMM_MAIN.EMM_Image

Validating EMM_MAIN.EMM_ImageCopy

Validating EMM_MAIN.EMM_ImageFragment

Validating EMM_MAIN.EMM_LibraryGroup

Validating EMM_MAIN.EMM_LibraryInquiry

Validating EMM_MAIN.EMM_LibraryType

Validating EMM_MAIN.EMM_Machine

Validating EMM_MAIN.EMM_MachineAlias
Validating EMM_MAIN.EMM_MachineConfig

Validating EMM_MAIN.EMM_MachineDeviceConnection

Validating EMM_MAIN.EMM_Machine_ServerGroup

Validating EMM_MAIN.EMM_Media

Validating EMM_MAIN.EMM_MediaAffinityGroup

Validating EMM_MAIN.EMM_MediaGroup

Validating EMM_MAIN.EMM_MediaPool

Validating EMM_MAIN.EMM_MediaServer_NdmpFiler

Validating EMM_MAIN.EMM_MediaType

Validating EMM_MAIN.EMM_MediaType_ApiMediaType

Validating EMM_MAIN.EMM_Media_MediaAffinityGroup

Validating EMM_MAIN.EMM_Merge

Validating EMM_MAIN.EMM_NdmpCredentials

Validating EMM_MAIN.EMM_ServerGroup

Validating EMM_MAIN.EMM_StorageServer

Validating EMM_MAIN.EMM_StorageServer_DiskGroup

Validating EMM_MAIN.EMM_StorageUnit

Validating EMM_MAIN.EMM_StorageUnitGroup

Validating EMM_MAIN.EMM_StorageUnit_Machine

Validating EMM_MAIN.EMM_StorageUnit_STUGroup

Validating EMM_MAIN.EMM_TechnologyGroup

Validating EMM_MAIN.EMM_TechnologyGroup_LibraryGrp

Validating EMM_MAIN.EMM_VaultContainer

Validating EMM_MAIN.EMM_Version

Validating RB_MAIN.RB_Allocation

Validating RB_MAIN.RB_Allocation_Type

Validating RB_MAIN.RB_Drive_Allocation_Error

Validating RB_MAIN.RB_MDS_Allocation
Validating RB_MAIN.RB_MDS_Job_Information

Validating RB_MAIN.RB_MDS_Reservation

Validating RB_MAIN.RB_MDS_TransportAllocation

Validating RB_MAIN.RB_Media_Allocation_Error

Validating RB_MAIN.RB_Named_Resource

Validating RB_MAIN.RB_Provider_Type

Validating SYS.DUMMY

Validating SYS.SYSARTICLE

Validating SYS.SYSARTICLECOL

Validating SYS.SYSATTRIBUTE

Validating SYS.SYSATTRIBUTENAME

Validating SYS.SYSCAPABILITY

Validating SYS.SYSCAPABILITYNAME

Validating SYS.SYSCHECK

Validating SYS.SYSCOLLATION

Validating SYS.SYSCOLLATIONMAPPINGS

Validating SYS.SYSCOLPERM

Validating SYS.SYSCOLSTAT

Validating SYS.SYSCOLUMN

Validating SYS.SYSCONSTRAINT

Validating SYS.SYSDOMAIN

Validating SYS.SYSEVENT

Validating SYS.SYSEVENTTYPE

Validating SYS.SYSEXTENT

Validating SYS.SYSEXTERNLOGINS

Validating SYS.SYSFILE

Validating SYS.SYSFKCOL

Validating SYS.SYSFOREIGNKEY
Validating SYS.SYSGROUP

Validating SYS.SYSHISTORY

Validating SYS.SYSINDEX

Validating SYS.SYSINFO

Validating SYS.SYSIXCOL

Validating SYS.SYSJAR

Validating SYS.SYSJARCOMPONENT

Validating SYS.SYSJAVACLASS

Validating SYS.SYSLOGIN

Validating SYS.SYSOPTBLOCK

Validating SYS.SYSOPTION

Validating SYS.SYSOPTJOINSTRATEGY

Validating SYS.SYSOPTORDER

Validating SYS.SYSOPTQUANTIFIER

Validating SYS.SYSOPTREQUEST

Validating SYS.SYSOPTREWRITE

Validating SYS.SYSOPTSTAT

Validating SYS.SYSPROCEDURE

Validating SYS.SYSPROCPARM

Validating SYS.SYSPROCPERM

Validating SYS.SYSPUBLICATION

Validating SYS.SYSREMOTEOPTION

Validating SYS.SYSREMOTEOPTIONTYPE

Validating SYS.SYSREMOTETYPE

Validating SYS.SYSREMOTEUSER

Validating SYS.SYSSCHEDULE

Validating SYS.SYSSERVERS

Validating SYS.SYSSQLSERVERTYPE
Validating SYS.SYSSUBSCRIPTION

Validating SYS.SYSSYNC

Validating SYS.SYSTABLE

Validating SYS.SYSTABLEPERM

Validating SYS.SYSTRIGGER

Validating SYS.SYSTYPEMAP

Validating SYS.SYSUSERMESSAGES

Validating SYS.SYSUSERPERM

Validating SYS.SYSUSERTYPE

Validating SYS.SYSWEBSERVICE

Validating dbo.EXCLUDEOBJECT

Validating dbo.RowGenerator

Validating dbo.ix_consultant_affected_columns

Validating dbo.ix_consultant_capture

Validating dbo.ix_consultant_index

Validating dbo.ix_consultant_ixcol

Validating dbo.ix_consultant_log

Validating dbo.ix_consultant_master

Validating dbo.ix_consultant_query_index

Validating dbo.ix_consultant_query_phase

Validating dbo.ix_consultant_query_text

Validating dbo.ix_consultant_workload

Validating dbo.jdbc_function_escapes

Validating dbo.migrate_remote_fks_list

Validating dbo.migrate_remote_table_list

Validating dbo.migrate_sql_defn

Validating dbo.ml_connection_script

Validating dbo.ml_device
Validating dbo.ml_device_address

Validating dbo.ml_listening

Validating dbo.ml_property

Validating dbo.ml_qa_delivery

Validating dbo.ml_qa_global_props

Validating dbo.ml_qa_notifications

Validating dbo.ml_qa_repository

Validating dbo.ml_qa_repository_props

Validating dbo.ml_qa_repository_staging

Validating dbo.ml_qa_status_history

Validating dbo.ml_qa_status_staging

Validating dbo.ml_script

Validating dbo.ml_script_version

Validating dbo.ml_scripts_modified

Validating dbo.ml_subscription

Validating dbo.ml_table

Validating dbo.ml_table_script

Validating dbo.ml_user

Validating dbo.spt_collation_map

Validating dbo.spt_jdatatype_info

Validating dbo.spt_jdbc_conversion

Validating dbo.spt_jtext

Validating dbo.spt_mda

Validating dbo.ul_file

Validating dbo.ul_statement

Validating dbo.ul_variable

Validating rs_systabgroup.rs_lastcommit

Validating rs_systabgroup.rs_threads
No errors reported

Database [NBDB] validation successful.

[root@motmas1:/usr/openv/db/bin] #>

Method II: Using the NetBackup Database Administration utility:

Note: Please enter the default password for NBDB.db as nbusql

Windows:

D:\Program Files\Veritas\NetBackup\bin>NbDbAdmin.EXE
Unix:

[root@motmas1:/] #> cd /usr/openv/db/bin

[root@motmas1:/usr/openv/db/bin] #> ./dbadm

DBA Password is set to the default.

Do you want to change the DBA password? (y/n) [n]

Enter DBA Password: <Enter the password as nbusql>

Please wait while the db information is loaded.

Selected Database: NBDB


Status: UP
Consistency: OK
Space Utilization: 23 %

Database Administration
-----------------------
1) Select/Restart Database and Change Password
2) Database Space and Memory Management
3) Transaction Log Management
4) Database Validation Check and Rebuild
5) Move Database
6) Unload Database
7) Backup and Restore Database
8) Refresh Database Status

h) Help
q) Quit

ENTER CHOICE:q

[root@motmas1:/] #>