netbackup 7.5.0.7 之oracle數據庫的備份和恢復

Oracle數據庫的數據結構

clip_image002

Oracle的文件系統主要分爲四大部分:

1) 控制文件

2) 數據文件

3) 日誌文件

4) 其他文件(如參數文件,密碼文件等)

前三種文件系是Oracle文件系統的主要組成部分,一般在以下路徑可以找到:

$ORACLE_HOME$\oradata\orcl

.CTL文件爲控制文件

.DBF 文件爲數據文件

.LOG 文件爲日誌文件

除了前三種文件還有一種參數文件,參數文件不是數據庫系統中的有效組成部分,在啓動數據庫時,參數文件不直接參與工作,只是控制文件是由參數文件尋找的。參數文件位置:

$ORACLE_HOME$\admin\orcl\pfile

1.1.1 掛載裸LUN

1、 掛載裸LUN,mount到/nbubakcup。

1.1.2 確認安裝環境

1、確認磁盤空間

在AIX/Linux環境中,/usr/openv目錄下需要3GB以上的剩餘空間。

2、解析相關服務器主機名與備份通信的ip地址

我們需要在/etc/hosts文件中添加本機及Master Server的主機名及IP地址。

3、確認Media Server已經正確識別磁帶驅動器及磁帶庫

運行lsdev –Cc tape命令查看Media Server已經正確識別磁帶庫與磁帶驅動器。

包括老帶庫及新帶庫。

1.1.3 安裝NetBackup Media Server for AIX (Linux)

將NetBackup安裝介質中標籤爲DVD3的DVD放入的P570A的光驅,

n 安裝Media Server程序

運行install程序安裝Media Server,過程如下:(紅色爲修改注意項)

# cd /

# /mnt/cdrom/install

Symantec Installation Script

Copyright 1993 - 2007 Symantec Corporation, All Rights Reserved.

Installing NetBackup Server Software

NOTE: To install only NetBackup Client software locally on this machine

or to load additional UNIX client software on this server, insert

the NetBackup UNIX Clients cdrom.

Do you wish to continue? [y,n] (y)

The NetBackup and Media Manager software is built for use on RS6000 hardware.

Do you want to install NetBackup and Media Manager files? [y,n] (y)

NetBackup and Media Manager are normally installed in /usr/openv.

Is it OK to install in /usr/openv? [y,n] (y)

Reading NetBackup files from /mnt/cdrom/rs6000/anb

x usr/openv/NB-Java.tar.Z, 95360520 bytes, 186252 media blocks.

x usr/openv/db/bin

。。。。。。

Done executing NB.inst.

If you ran NB.inst instead of <cdrom_path>/install, you must

run /usr/openv/netbackup/bin/install_bp to initiate NetBackup.

Running /usr/openv/netbackup/bin/install_bp -p /mnt/cdrom

Copying AIX5 Client Binaries

x openv

x openv/lib

。。。。。。

Installing NB-Java.

+ /bin/cp ./nbj.conf /usr/openv/java

updating /etc/inittab ...

The following temporary file can be deleted after you verify the proper

modification of /etc/inittab:

/tmp/SYMCnbclt-inittab.823642.i

An automatic startup script, /etc/rc.client.netbackup has been installed.

This will cause NetBackup client daemons to be automatically

restarted each time the server boots.

Starting nbftclnt...

LiveUpdate is not installed, skipping registration step...

A NetBackup Server or Enterprise Server license key is needed

for installation to continue.

Enter license key: XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX (LICENSE序列號)

Evaluation NetBackup Enterprise Server with Jul 25, 2008 expiration date will

Is this OK? [y,n] (y)

XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX:

Evaluation NetBackup Enterprise Server Base product with the followin

PureDisk Remote Office

PureDisk Option

SAN Client

PureDisk MS Exchange Agent

PureDisk MS SQL Server Agent

Flexible Disk Option

OpenStorage Disk Option

NAS SnapVault Option

Virtual Tape Option

Bare Metal Restore

Encryption

Open File Backup

Remote Client Support

Robotic Library Sharing Support

Remote Media Server Support

Microsoft RSM Robotic Libraries

ADIC DAS/SDLC Robotic Libraries

IBM ATL Robotic Libraries

Fujitsu LMF Robotic Libraries

StorageTek ACS Robotic Libraries

Snapshot Client

MS SharePoint Agent

Inline Tape Copy

Vault

GDM Managed Server

Library Based Tape Drives

Additional Drives/Robotics

DataStore

Encryption (Legacy DES 56-bit)

Encryption (Legacy DES 40-bit)

SAP extension

SQL-Backtrack extension

Sybase extension

Informix extension

Oracle extension

Lotus Notes extension

DB2 extension

MS SQL Server extension

MS Exchange extension

Advanced Reporting Option

Shared Storage Option

Global Data Manager

NDMP

EMC

Additional clients

has been registered.

All additional keys should be added at this time.

Do you want to add additional license keys now? [y,n] (y) n

Use /usr/openv/netbackup/bin/admincmd/get_license_key

to add, delete or list license keys at a later time.

Installing NetBackup Enterprise Server version: 6.5

If this machine will be using a different network interface than the

default (sop-p), the name of the preferred interface should be used

as the configured server name. If this machine will be part of a

cluster, the virtual name should be used as the configured server name.

Would you like to use "SOP-P" as the configured

name of the NetBackup server? [y,n] (N) 輸入ssadb (本機)

Is sop the master server? [y,n] (y) n

What is the fully qualified name of the master server? Nbuserver1 (主服務器prd-nbu7)

Checking /etc/services for the needed NetBackup and Media Manager services.

Copying original /etc/services file to /etc/services.NBU_062508.15:52:50

Editing /etc/services to update NetBackup and Media Manager services.

/etc/services will be updated to add the following entries for

NetBackup/Media Manager.

bpjobd 13723/tcp bpjobd

NB_dbsrv 13785/tcp NB_dbsrv

vmd 13701/tcp vmd

acsd 13702/tcp acsd

tl8cd 13705/tcp tl8cd

tldcd 13711/tcp tldcd

odld 13706/tcp odld

tl4d 13713/tcp tl4d

tshd 13715/tcp tshd

tlmd 13716/tcp tlmd

tlhcd 13717/tcp tlhcd

rsmd 13719/tcp rsmd

/etc/services has been updated to contain NetBackup and Media

Manager services.

WARNING: ypwhich: the domainname hasn't been set on this machine.

WARNING: ypcat: the domainname hasn't been set on this machine.

Found the necessary NetBackup services in /etc/services.

Checking for a bpcd entry in /etc/inetd.conf: Adding bpcd entry.

Original /etc/inetd.conf saved as /etc/inetd.conf.NBU_062508.15:47:11.

Checking for a vnetd entry in /etc/inetd.conf: Adding vnetd entry.

Checking for a vopied entry in /etc/inetd.conf: Adding vopied entry.

Checking for a bpjava-msvc entry in /etc/inetd.conf: Adding bpjava-msvc entr

Sending SIGHUP to inetd process.

To make NetBackup start up automatically when the system is restarted,

the netbackup script found in /usr/openv/netbackup/bin/goodies has been copie

to /etc/rc.netbackup.aix. You must modify /etc/inittab to include it.

Enter the Enterprise Media Manager server (default: mastserver):

DBMS Server 9.0.2 is being installed

x bin

x bin/dbbackup, 251994 bytes, 493 tape blocks

Starting the NetBackup Event Manager.

Starting the NetBackup compatibility daemon.

Starting the Media Manager device daemon processes.

Starting the NetBackup Remote Monitoring Management System.

Starting the NetBackup Service Layer.

Starting the NetBackup Service Monitor.

File /usr/openv/tmp/install_trace.1507568 contains a trace of this install.

That file can be deleted after you are sure the install was successful.

1.1.4 Master服務器添加介質服務器

找到主機服務器,點擊它。

clip_image004

選擇“服務器”-“介質服務器”,天際介質服務器主機名(例如:ssadb)。

clip_image006

在“主機屬性”-“介質服務器”查看是否剛纔添加介質服務器。

clip_image008

1.1.5 Master服務器添加介質服務器存儲單元

在“存儲”-“存儲單元”。

clip_image010

新建存儲單元;輸入名稱,介質服務器選擇ssadb,目錄的絕對路徑名輸入ssadb上裸lun路徑(例如:/nbubackup66)。如下圖。

clip_image012

第一章 安裝Client端程序

1.1、前期準備

將客戶端軟件直接上傳至AIX/Linux主機的/tmp目錄,使用gzip -d和tar -xvf命令解壓縮後進行安裝;

1.2、安裝步驟

Linux、Solaris和Aix上的安裝步驟類似,進入對應系統的目錄。

root# ./install

Symantec Installation Script

Copyright 1993 - 2012 Symantec Corporation, All Rights Reserved.

Installing NetBackup Client Software

Please review the SYMANTEC SOFTWARE LICENSE AGREEMENT located on

the installation media before proceeding. The agreement includes

details on the NetBackup Product Improvement Program.

Do you wish to continue? [y,n] (y) y

Do you want to install the NetBackup client software for this client? [y,n] (y) y

This package will install Solaris/Solaris10 client.

This package will install NetBackup client 7.5.

Enter the name of the NetBackup server : prd-nbu7

Would you like to use "sacnsun02102" as the configured

name of the NetBackup client? [y,n] (y) y

驗證查看是否生成了/usr/openv/netbackup目錄

# ls -l /usr/openv/netbackup

第二章 配置Oracle備份

在NBU7.5客戶端裏已經包含了oracle客戶端,接下來就是配置了。

2.1、建立連接

[root@localhost ~]# su - oracle

[oracle@localhost ~]$ cd /usr/openv/netbackup/bin

[oracle@localhost bin]$ ./oracle_link

2012年 08月 25日 星期六 09:43:28 CST

All Oracle instances should be shutdown before running this script.

Please log into the Unix system as the Oracle owner for running this script

Do you want to continue? (y/n) [n] y

LIBOBK path: /usr/openv/netbackup/bin

ORACLE_HOME: /orcl/oracle

Oracle version: 10.2.0.1.0

Platform type: i686

Linking LIBOBK:

ln -s /usr/openv/netbackup/bin/libobk.so /orcl/oracle/lib/libobk.so

Done

Please check the trace file located in /tmp/make_trace.4459

to make sure the linking process was successful.

2.2、創建備份腳本

[root@localhost ~]# mkdir -p /usr/openv/netbackup/script

[root@localhost ~]# cd /usr/openv/netbackup/ext/db_ext/oracle/samples/rman

[root@localhost rman]# ls

cold_database_backup.sh database_restore.sh hot_tablespace_backup.sh

cold_duplex_database_backup_full.sh hot_database_backup.sh pit_database_restore.sh

[root@localhost rman]# cp hot_database_backup.sh /usr/openv/netbackup/script/

[root@localhost rman]# cd /usr/openv/netbackup/script/

[root@localhost script]# ls

hot_database_backup.sh

[root@localhost script]# mv hot_database_backup.sh rman.sh

[root@localhost script]# chmod o+x rman.sh 一定要授權執行權限,否則NBU調用不了

[root@localhost script]# vi rman.sh

Oracle熱備份腳本舉例如下:

#!/bin/sh

# $Header: hot_database_backup.sh,v 1.2 2002/08/06 23:51:42 $

#

#bcpyrght

#***************************************************************************

#* $VRTScprght: Copyright 1993 - 2008 Symantec Corporation, All Rights Reserved $ *

#***************************************************************************

#ecpyrght

#

# ---------------------------------------------------------------------------

# hot_database_backup.sh

# ---------------------------------------------------------------------------

# This script uses Recovery Manager to take a hot (inconsistent) database

# backup. A hot backup is inconsistent because portions of the database are

# being modified and written to the disk while the backup is progressing.

# You must run your database in ARCHIVELOG mode to make hot backups. It is

# assumed that this script will be executed by user root. In order for RMAN

# to work properly we switch user (su -) to the oracle dba account before

# execution. If this script runs under a user account that has Oracle dba

# privilege, it will be executed using this user's account.

# ---------------------------------------------------------------------------

# ---------------------------------------------------------------------------

# Determine the user which is executing this script.

# ---------------------------------------------------------------------------

CUSER=`id |cut -d"(" -f2 | cut -d ")" -f1`

# ---------------------------------------------------------------------------

# Put output in <this file name>.out. Change as desired.

# Note: output directory requires write permission.

# ---------------------------------------------------------------------------

RMAN_LOG_FILE=${0}.out

# ---------------------------------------------------------------------------

# You may want to delete the output file so that backup information does

# not accumulate. If not, delete the following lines.

# ---------------------------------------------------------------------------

if [ -f "$RMAN_LOG_FILE" ]

then

rm -f "$RMAN_LOG_FILE"

fi

# -----------------------------------------------------------------

# Initialize the log file.

# -----------------------------------------------------------------

echo >> $RMAN_LOG_FILE

chmod 666 $RMAN_LOG_FILE

# ---------------------------------------------------------------------------

# Log the start of this script.

# ---------------------------------------------------------------------------

echo Script $0 >> $RMAN_LOG_FILE

echo ==== started on `date` ==== >> $RMAN_LOG_FILE

echo >> $RMAN_LOG_FILE

# ---------------------------------------------------------------------------

# Replace /db/oracle/product/ora81, below, with the Oracle home path.

# ---------------------------------------------------------------------------

ORACLE_HOME=/u01/app/oracle/product/11.2.0/

export ORACLE_HOME

Oracle HOME目錄,可通過env命令查出

# ---------------------------------------------------------------------------

# Replace ora81, below, with the Oracle SID of the target database.

# ---------------------------------------------------------------------------

ORACLE_SID=orcl

export ORACLE_SID

Oracle實例名

# ---------------------------------------------------------------------------

# Replace ora81, below, with the Oracle DBA user id (account).

# ---------------------------------------------------------------------------

ORACLE_USER=oracle

Oracle系統賬戶

# ---------------------------------------------------------------------------

# Set the target connect string.

# Replace "sys/manager", below, with the target connect string.

# ---------------------------------------------------------------------------

TARGET_CONNECT_STR=sys/Qweasd123

Sys用戶及其密碼

# ---------------------------------------------------------------------------

# Set the Oracle Recovery Manager name.

# ---------------------------------------------------------------------------

RMAN=$ORACLE_HOME/bin/rman

# ---------------------------------------------------------------------------

# Print out the value of the variables set by this script.

# ---------------------------------------------------------------------------

#中間代碼不用更改,此處略

CMD_STR="

ORACLE_HOME=$ORACLE_HOME

export ORACLE_HOME

ORACLE_SID=$ORACLE_SID

export ORACLE_SID

$RMAN target $TARGET_CONNECT_STR nocatalog msglog $RMAN_LOG_FILE append << EOF

RUN {

ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';

ALLOCATE CHANNEL ch01 TYPE 'SBT_TAPE';

echo send 'NB_ORA_POLICY=your_policy, NB_ORA_SERV=your_serverí';

發送備份信息給相對應的備份策略,當每一臺Oracle只有一個NBU備份策略時,次句可以不寫

BACKUP

$BACKUP_TYPE

SKIP INACCESSIBLE

TAG hot_db_bk_level0

FILESPERSET 5

# recommended format

FORMAT 'bk_%s_%p_%t'

DATABASE;

sql 'alter system archive log current';

RELEASE CHANNEL ch00;

RELEASE CHANNEL ch01;

# backup all archive logs

ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';

ALLOCATE CHANNEL ch01 TYPE 'SBT_TAPE';

echo send 'NB_ORA_POLICY=your_policy, NB_ORA_SERV=your_serverí';

發送備份信息給相對應的備份策略,當每一臺Oracle只有一個NBU備份策略時,次句可以不寫

BACKUP

filesperset 20

FORMAT 'al_%s_%p_%t'

ARCHIVELOG ALL;

RELEASE CHANNEL ch00;

RELEASE CHANNEL ch01;

ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';

DELETE NOPROMPT ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-7';

RELEASE CHANNEL ch00;

原腳本備份後直接刪除歸檔日誌,可以如上編寫,刪除7天前的歸檔日誌

#

# Note: During the process of backing up the database, RMAN also backs up the

# control file. This version of the control file does not contain the

# information about the current backup because "nocatalog" has been specified.

# To include the information about the current backup, the control file should

# be backed up as the last step of the RMAN section. This step would not be

# necessary if we were using a recovery catalog.

#

ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';

BACKUP

# recommended format

FORMAT 'cntrl_%s_%p_%t'

CURRENT CONTROLFILE;

RELEASE CHANNEL ch00;

}

EOF

"

# Initiate the command string

if [ "$CUSER" = "root" ]

then

su - $ORACLE_USER -c "$CMD_STR" >> $RMAN_LOG_FILE

RSTAT=$?

else

/usr/bin/sh -c "$CMD_STR" >> $RMAN_LOG_FILE

RSTAT=$?

fi

# ---------------------------------------------------------------------------

# Log the completion of this script.

# ---------------------------------------------------------------------------

if [ "$RSTAT" = "0" ]

then

LOGMSG="ended successfully"

else

LOGMSG="ended in error"

fi

echo >> $RMAN_LOG_FILE

echo Script $0 >> $RMAN_LOG_FILE

echo ==== $LOGMSG on `date` ==== >> $RMAN_LOG_FILE

echo >> $RMAN_LOG_FILE

exit $RSTAT

第三章 創建備份策略

3.1 選擇策略類型和存儲位置

clip_image014

3.2 創建備份策略

clip_image016

Frequency: 備份週期 Retention: 保留週期

clip_image018策略時間表,默認的Default-Application-Backup不要隨意更改,一般只更改保留週期。

3.3 選擇備份客戶端

clip_image020

3.4 選擇備份腳本

clip_image022

3.5 執行備份策略

第四章 本機數據文件恢復

關閉數據庫:

Sqlplus / as sysdba

shutdown immediate 立即關閉

4.1 刪除數據文件

[root@orcl ~]# cd /u01/app/oracle/oradata/orcl

[root@orcl orcl]# rm -rf *.dbf

[root@orcl orcl]#

4.2 恢復數據文件

[oracle@orcl oradata]$ rman target /

RMAN> shutdown abort;

RMAN> startup mount;

connected to target database (not started)

Oracle instance started

database mounted

Total System Global Area 839282688 bytes

Fixed Size 2217992 bytes

Variable Size 528484344 bytes

Database Buffers 301989888 bytes

Redo Buffers 6590464 bytes

RMAN> run{

2> allocate channel ch00 type 'sbt_tape'; (如果是數據量大,可以加多一個通道,通道數量最多不能 超過備份時的通道數)

3> send 'NB_ORA_CLIENT=oracle-test';

4> send 'NB_ORA_SERV=master';

5> restore database;

6> recover database;

7> release channel ch00;

8> }

4.3 驗證恢復效果

RMAN> alter database open; (如果是異機的話 需要加resetlogs)

database opened

[root@orcl ~]# cd /u01/app/oracle/oradata/orcl

[root@orcl orcl]# ll

-rw-r-----. 1 oracle oinstall 9748480 8月 24 17:20 control01.ctl

-rw-r-----. 1 oracle oinstall 104865792 8月 24 17:19 example01.dbf

-rw-r-----. 1 oracle oinstall 52429312 8月 24 17:19 redo01.log

-rw-r-----. 1 oracle oinstall 52429312 8月 24 17:19 redo02.log

-rw-r-----. 1 oracle oinstall 52429312 8月 24 17:20 redo03.log

-rw-r-----. 1 oracle oinstall 566239232 8月 24 17:19 sysaux01.dbf

-rw-r-----. 1 oracle oinstall 723525632 8月 24 17:19 system01.dbf

-rw-r-----. 1 oracle oinstall 20979712 8月 24 17:19 temp01.dbf

-rw-r-----. 1 oracle oinstall 5251072 8月 24 17:19 users01.dbf

可以看到刪除的數據文件都已經恢復

第五章 本機控制、系統數據文件恢復

5.1 系統數據文件恢復

在刪除了所有數據文件的情況下,需要先單獨恢復系統的數據文件。

run {

allocate channel ch00 type 'sbt_tape';

send 'NB_ORA_CLIENT=szdbtest';

send 'NB_ORA_SERV=prd-nbu7';

restore datafile 1;

recover datafile 1;

release channel ch00;

sql 'alter database open';

}

run {

allocate channel ch00 type 'sbt_tape';

send 'NB_ORA_CLIENT=szdbtest';

send 'NB_ORA_SERV=prd-nbu7';

restore datafile 2;

recover datafile 2;

release channel ch00;

sql 'alter database open';

}

5.2 全庫恢復

再執行全庫恢復即可。

run {

allocate channel ch00 type 'sbt_tape';

send 'NB_ORA_CLIENT=szdbtest';

send 'NB_ORA_SERV=prd-nbu7';

restore database;

recover database;

release channel ch00;

sql 'alter database open';

}

第六章 恢復控制文件

在測試環境中,發現控制文件出現了問題;恢復如下:(client:oracle-test; server:master)

# ./bplist -C oracle-test -S master -t 4 -R / 查看nbu的備份文件

clip_image024

#rman target /

Rman>startup nomount

Rman>run {

allocate channel ch00 type 'sbt_tape';

send 'NB_ORA_CLIENT=oracle-test';

send 'NB_ORA_SERV=master';

restore controlfile from '/cntrl_11_1_873557906';

release channel ch00;

}

Rman>alter database open resetlogs; 要打開數據時,重置重做日誌,即將重做日誌的sequence置零

到此,控制文件就已經恢復完成了。

alter database open resetlogs是要打開數據時,重置重做日誌,即將重做日誌的sequence置零,爲什麼要重置重做日誌呢?

不完全恢復後,原來的online redo log裏面包含的是未做恢復前的數據,而這些數據對於恢復後的數據庫不再有效,所以數據庫會要求在Open之前先對online redo log的sequence置零。

Resetlogs命令表示一個數據庫邏輯生存期的結束和另一個數據庫邏輯生存期的開始,每次使用Resetlogs命令的時候,SCN不會被重置,不過oracle會重置日誌序列號,而且會重置聯機重做日誌內容。

加上resetlogs,只是修改了日誌序列號,並沒有刪除數據。所有數據是仍然存在的。

注:

recover和restore的區別:

restore just copy the physical file, recover will consistent the database.

restore 是還原,文件級的恢復。就是物理文件還原。
recover 是恢復,數據級的恢復。邏輯上恢復,比如應用歸檔日誌、重做日誌,全部同步,保持一致。

用我自己的土話講就是,用restore先把備份文件拷貝到數據庫目錄下進行替換,再用recover經過一些處理,數據庫就恢復正常了。

1、restore 命令:用於還原已經備份的數據文件。
(1)、restore database 還原所有的數據文件。
(2)、restore tablespace 還原特定表空間的數據文件。
(3)、restore datafile 還原特定的數據文件。
(4)、restore controlfile  還原控制文件。
(5)、restore archivelog  還原歸檔日誌文件。

2、recover 命令:當數據庫需要應用歸檔日誌文件恢復數據文件時,使用recover命令。使用該命令數據庫系統會自動應用歸檔的日誌文件。
(1)、recover database 恢復所有的數據文件。
(2)、recover tablespace 恢復特定表空間的數據文件。
(3)、recover datafile 恢復特定的數據文件。

restore 只是用備份來還原,recover是用archivelog或者online log

舉例說明:

假設我時間點A,做了個備份,時間點B數據庫掛了
restore database ;// 這個操作利用時間點A做的備份來還原,返回到時間點A
recover database ;//這個操作利用archivelog and online log做recover,從時間點A,推進到時間點B

第七章 卸載NetBackup客戶端軟件

Use the following procedure to remove all NetBackup client software components

from a UNIX client.

To remove NetBackup software from a UNIX client

1、 Log in to the client system as the root user.

2、Stop the NetBackup daemons by entering the following command:

/usr/openv/netbackup/bin/bp.kill_all

3、Identify any installed add-on products by using the following command:

AIX lslpp -L

HP-UX swlist

Linux rpm -qa

Solaris pkginfo

Remove each identified add-on product.

………………

11、For all clients, navigate to the /usr/openv directory and proceed as follows:

Warning: The rm -f /usr/openv command also removes any add-on products

that are installed on this computer.

■ If /usr/openv is the actual directory, run the following command:

rm -rf /usr/openv

■ If /usr/openv is a symbolic link to that directory, run the following

commands:

cd /usr/openv

pwd

ls

Warning: Before you continue, make sure that you are at the correct

location and verify that the subdirectories are what you expect them to

be. To help prevent removing the wrong directories, the previous

commands verify your current location and list the files in that directory.

After you verify the directory location and its contents, remove the

directory with the next commands.

rm -rf *

cd /

rm -f /usr/openv

12、For Linux systems only:

If you modified the startup and the shutdown scripts, run the following

command:

/sbin/chkconfig --del netbackup

13 Remove the following startup scripts:

AIX

/etc/rc.netbackup.aix

Linux Red Hat

/etc/rc.d/init.d/netbackup

/etc/rc.d/rc0.d/K01netbackup

/etc/rc.d/rc1.d/K01netbackup

/etc/rc.d/rc2.d/S77netbackup

/etc/rc.d/rc3.d/S77netbackup

/etc/rc.d/rc5.d/S77netbackup

/etc/rc.d/rc6.d/K01netbackup

Other clients

/etc/init.d/netbackup

/etc/rc0.d/K01netbackup

/etc/rc1.d/K01netbackup

/etc/rc2.d/S77netbackup

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章