歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> Linux系統上安裝和配置Backup Exec 12.5 Oracle Agent詳細步驟

Linux系統上安裝和配置Backup Exec 12.5 Oracle Agent詳細步驟

日期:2017/3/3 15:56:54   编辑:關於Linux

一、安裝部分

Backup Exec是一款主要用於Windows平台的數據保護產品,但是它也包含了用於Linux或Unix的代理程序。要清楚你所使用的Backup Exec支持哪些Linux或Unix系統,請訪問技術支持網站上的軟件兼容性列表,以現在用戶數量最多的BE10d為例,它的兼容性列表網址是:

http://support.veritas.com/docs/278254

你可以在軟件兼容性列表中發現兩個用於Linux或Unix的代理產品,它們的兼容性不同:

Remote Agent for Linux and UNIX Servers (RALUS) Compatibility // 即RALUS,新的代理程序,收費,性能較高。

Legacy Linux/UNIX/Mac Compatibility // 傳統的代理程序,免費,性能較低,以後會被RALUS取代。

查過兼容性列表之後,如果你所使用的操作系統包括在兼容性列表之中,就可以考慮采用Backup Exec來保護你的系統。如果兼容性列表中沒有列出你所使用的系統,則可能存在兼容性問題,建議先進行測試,確認可以使用再購買。

下面將介紹RALUS的安裝(Legacy Agent現在很少有人使用,就不介紹了)

下面假定你的Media Server(安裝有Backup Exec的備份服務器)己經安裝好,並且安裝了RALUS選件。

首先,RALUS的安裝程序較大,被放在單獨的光盤中提供。如果沒有安裝光盤,也可以通過Symantec網站下載:

http://support.veritas.com/docs/279329

下載的安裝包是壓縮的,需要先解包,光盤中的安裝程序不是壓縮的,可以直接安裝。下面是我的安裝記錄(用的是BE11d RALUS安裝程序),中間加了一些解釋(紅色部分)。

[root@redhatas3 /]# mount /mnt/cdrom

[root@redhatas3 /]# cd /mnt/cdrom

[root@redhatas3 cdrom]# ./installralus // 執行安裝腳本

Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers 11.00.6235

Enter the system names separated by spaces on which to install RALUS: (redhatas3) // 輸入目標主機名稱

Checking system communication:

Checking OS version on redhatas3 ........................ Linux 2.4.21-32.EL

Checking system support for redhatas3 ... Linux 2.4.21-32.EL supported by RALUS

Initial system check completed successfully.

Press [Return] to continue:

Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers 11.00.6235

installralus will install the following RALUS packages on Linux target system: redhatas3

VRTSvxmsa VERITAS - VxMS Mapping Service, Application Libraries. // 兩個安裝包需要安裝

VRTSralus VERITAS Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers

Press [Return] to continue:

Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers 11.00.6235

Checking system installation requirements:

Checking RALUS installation requirements on Linux target systems: redhatas3

Checking RALUS installation requirements on redhatas3:

Checking file system space ................... required space is available

Installation requirements checks completed successfully.

Press [Return] to continue:

Checking for Port 10000 ............................................. Done // RALUS服務監視在TCP 10000端口,確保沒有其它應用使用該端口。

Remote Agent Media Server Configuration

To display the Remote Agent as a selection in a media server's backup selection tree, and to be able to specify a local network for use between the Remote Agent and a media server, enter the names or IP addresses of the media servers that you want the Remote Agent to communicate with.

An IP Address: XXX.XXX.XXX.XXX

A Host Name: COMPUTERNAME

Enter a directory host:mybeserver // 輸入備份服務器的名稱,RALUS會定期向備份服務器通告自己的存在,收到通知後備份服務器會在備份選擇窗口中顯示該Linux/Unix主機。

Do you want to add another name or address for this agent? [y, n] (n)

Remote Agent Media Server Configuration

Hostnames and/or IP addresses verification:

Address: mybeserver

Is this information correct? [y, n] (y)

Remote Agent User Group Setup

To perform backups, you must have a 'beoper' user group. This user group can be created only if you are not using NIS server. Your system will be scanned to detect a NIS server, group and membership.

Press [Return] to continue:

Checking if system uses NIS server: .................................. No

The installer will now check your system for the 'beoper' user group and root membership.

Press [Return] to continue:

Checking for 'beoper' user group: .............................. Not Found

Checking for 'root' user membership in 'beoper' user group: .... Not Found

You can create 'beoper' user group manually or you can choose to have it created automatically.

Do you want installer to create 'beoper' user group? [y, n] (y)

Do you want to use specific group ID when creating 'beoper' user group? [y, n] (n)

本欄目更多精彩內容:http://www.bianceng.cn/OS/Linux/

Creating group 'beoper': ............................................ Done // 如果系統不采用NIS管理用戶,安裝向導會在本地組中添加beoper組,屬於beoper組中的用戶可以用於備份該主機上的資源,在備份服務器連接該主機時使用。

Do you want to add the 'root' user to 'beoper' user group? [y, n] (y)

Adding 'root' user to 'beoper' user group: ......................... Done // 如果將root用戶加入beoper組,則可以在備份服務器使用root用戶連接到該主機,可備份或恢復根下的所有文件和目錄。

Press [Return] to continue:

Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers 11.00.6235

will upgrade from Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers.

Checking VRTSvxmsa package ................................. not installed

Checking VRTSralus package ................................. not installed

Press [Return] to continue:

Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers 11.00.6235

Base pre Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers. uninstall failed!

Installing VRTSvxmsa 4.4 on redhatas3 .................... done 1 of 2 steps

Installing VRTSralus 11.00.6235 on redhatas3 ............. done 2 of 2 steps

Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers. installation completed successfully.

Press [Return] to continue: // 創建啟動腳本,並在rc2.d,rc3.d和rc5.d中創建軟鏈接,以便在系統啟動時自動啟動RALUS服務。

Copying new initialization scripts .................................. Done

Creating RALUS linkedname in rc2.d .................................. Done

Creating RALUS linkedname in rc3.d .................................. Done

Creating RALUS linkedname in rc5.d .................................. Done

Updating RALUS files for beoper ..................................... Done

Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers 11.00.6235

Configuring Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers.:

Creating configuration files ........................................ Done

Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers. configured successfully.

Press [Return] to continue:

The response file is saved at:

/var/tmp/vxif/installralus206140849/installralus206140849.response

The installralus log is saved at:

/var/tmp/vxif/installralus206140849/installralus.log

// 最後給出了安裝日志的位置,可以通過查看這些日志了解安裝完成情況。

二、配置部分

BE11d的Oracle Agent與以前的版本有本質的不同,它采用RMAN來備份Oracle數據庫,也支持Linux系統上的Oracle數據庫,很多用戶對它的配置還不熟悉,特別是在Linux系統上的配置,下面是我所做的一個配置實例。中文部分是我加的說明。

[root@ora10g lib]#/opt/VRTSralus/bin/AgentConfig // 安裝好RALUS之後,請使用root用戶來配置代理程序。

Symantec Backup Exec Remote Agent Utility

Choose one of the following options:

1. Configure database access

2. Configure Oracle instance information

3. Quit

Please enter your selection: 1 // 要完成兩個部分的配置,數據庫訪問和Oracle實例,下面先配置數據庫訪問。

Configuring machine information

Choose one of the following options:

1. Add system credentials for Oracle operations

2. Edit system credentials used for Oracle operations

3. Remove system credentials used for Oracle operations

4. View system credentials used for Oracle operations

5. Quit

Please enter your selection: 1 // 添加新的Linux系統級訪問憑據。

Enter a user name that has local system credentials: oracle // Oracle是Linux上面的用戶,它必須是beoper組的成員。usermod -G將用戶加入多個組//usermod –G group username

Enter the password:

Re-enter password:

Validating credentials.......

Do you want to use the full computer name/IP address for Oracle operations? (Y/N):n // 指定名字的好處是,避免因為計算機名字或IP地址的變化導致Recovery Catalog中的記錄信息混亂。

Do you want to use a custom port to connect to the media server during Oracle operations? (Y/N): n

// 默認的端口號是5633,建議不要改動它,除非這個端口己經被其它應用程序占用,如果這裡做出了改變,介質服務器端也要做同樣的修改。

Commit Oracle operation settings to the configuration file? (Y/N): y

SUCCESS: Successfully added the entry to the configuration file.

本欄目更多精彩內容:http://www.bianceng.cn/OS/Linux/

//上述配置中的計算機名(如果沒有指定就是在介質服務器上連接這台機器時所使用的名字或IP地址),用戶名和密碼必須也介質服務器全局選項中Oracle選項頁中配置的為Oracle和DB2所設置的驗證信息完全一致。

Configuring machine information

Choose one of the following options:

1. Add system credentials for Oracle operations

2. Edit system credentials used for Oracle operations

3. Remove system credentials used for Oracle operations

4. View system credentials used for Oracle operations

5. Quit

Please enter your selection: 5

Symantec Backup Exec Remote Agent Utility

Choose one of the following options:

1. Configure database access

2. Configure Oracle instance information

3. Quit

Please enter your selection: 2 // 下面來配置Oracle實例信息。

If this computer is a RAC node, you must perform additional steps for configuration before you continue. Refer to the readme for these additional steps.

Configuring the Oracle Agent

Choose one of the following options:

1. Add a new Oracle instance to protect

2. Edit an existing Oracle instance

3. Delete an existing Oracle instance

4. View Oracle instance entries that have been added in the Remote Agent Utility

5. Quit

Please enter your selection: 1

Select an Oracle instance to configure

Entry 1. orcl // 如果RALUS檢測到了系統中的Oracle實例,實例名會列在這裡供用戶選擇,如果你的實例名沒有出現在這裡,請檢查Listener和數據庫的狀態。

Enter the number 0 to go back

Enter your selection: 1

Enter the Oracle database SYSDBA user name: sys // Oralce DBA的賬號,推薦使用sys。

Enter the Oracle database SYSDBA password:

Re-enter password:

Validating credentials.......

Enter the media server name or IP address: be11d // 這裡輸入介質服務器的名字

Do you use a recovery catalog? (Y/N):n // 如果你己經安裝好了用做Recovery Catalog的實例並做了初始化,就在這裡輸入實例名和登錄賬號,如果沒有Recovery Catalog就選n,RMAN編錄信息將被寫入控制文件。

Do you want to use a customized job template? (Y/N): n // 這裡不需要定義作業模板名,因為你在RMAN腳本中可以使用send “NBBSA_JOB_TEMPLATE=模板名”命令為每個備份指定不同的模板名,當然你要預先在介質服務器端創建好這個模板。

Commit Oracle operation settings to the configuration file? (Y/N): y

Renamed file /u01/app/oracle/oracle/product/10.2.0/db_1/lib/libobk.so to /u01/app/oracle/oracle/product/10.2.0/db_1/lib/libobk.so.oracle.org

Created symbolic link for /opt/VRTSralus/bin/libobk.so at /u01/app/oracle/oracle/product/10.2.0/db_1/lib/libobk.so // 配置向導在Oracle數據庫的庫文件目錄下將libobk.so鏈接到RALUS的文件,BE接管了RMAN向磁帶機寫入數據的備份接口,RMAN向 sbt或sbt_tape設備寫入數據時,RALUS會把數據傳送到介質服務器。

SUCCESS: Successfully added the entry to the configuration file.

Configuring the Oracle Agent

Choose one of the following options:

1. Add a new Oracle instance to protect

2. Edit an existing Oracle instance

3. Delete an existing Oracle instance

4. View Oracle instance entries that have been added in the Remote Agent Utility

5. Quit

Please enter your selection: 5

Symantec Backup Exec Remote Agent Utility

Choose one of the following options:

1. Configure database access

2. Configure Oracle instance information

3. Quit

Please enter your selection: 3

[root@ora10g lib]# /etc/init.d/VRTSralus.init start // 配置完成,啟動RALUS。

Starting Symantec Backup Exec Remote Agent ......

Starting Symantec Backup Exec Remote Agent: [ OK ]

本欄目更多精彩內容:http://www.bianceng.cn/OS/Linux/

##################################################################################

安裝代理

安裝文檔

http://seer.entsupport.symantec.com/docs/282010.htm

配置agent

主要文件為ralus.cfg這裡注意配置格式,需要將media server改為BE server的hostname或者IP address,

1. From the /etc/VRTSralus/ directory, open the RALUS.CFG file using a text editor

2. To add additional media servers, add the following line:

Software\VERITAS\Backup Exec\Engine\Agents\Agent Directory List<Suffix>=<Media Server Name>

where <Suffix> is a UNIQUE identifier, 'A', 'B', 'C', '1', '2', '3', and where <Media Server Name> is the name or IP address of the Backup Exec 10.x media server.

排錯

如果不能夠成功在BE找到Linux資源,就需要排錯。

一般不能夠找到資源的問題是Linux的防火牆(建立關閉)、SElinux關閉、版本不一至。

配置oracle代理

(1) 關閉代理 agent /etc/init.d/VRTSralus.init stop

(2) cd /opt/VRTSralus/bin

(3) ./AgentConfig開始配置

關於權限配置http://seer.entsupport.symantec.com/docs/302179.htm

備份資源

這裡注意賬號的選擇,系統登陸使用oracle賬號,oracle資源使用sys賬號。

選擇備份資源:

測試資源:

本欄目更多精彩內容:http://www.bianceng.cn/OS/Linux/

備份策略:

備份成功:

恢復資源:

具體請參照官方文檔http://seer.entsupport.symantec.com/docs/310334.htm

本欄目更多精彩內容:http://www.bianceng.cn/OS/Linux/

Exact Error Message

Final error: 0xe0001402 - This server name is not in the list of authentication credentials on the media server. Enter the server name and its logon account on the media server, and then retry the operation.

Details:

This error occurs when the Oracle server name is not added in Backup Exec. To add the Oracle server name, follow the steps mentioned below:

1. Open the Backup Exec console, then click on Tools > Options > Oracle.

2. Click on the Modify List button as shown in Figure 1. Add the Oracle server name and the logon account name to the media server's list of Oracle servers and authentication credentials using (1) the fully qualified domain name, (2) NetBIOS name and (3) IP address as separate entries, each using the same logon account.

http://esdownload.symantec.com/akdlm/CD/MTV/BEWS_11D.7170_LINUX-UNIX-MAC-NT4_AGENTS.2.tar.gz

數據庫歸檔方式配置

1. 正常關閉數據庫

SQL> shutdown

Database closed.

Database dismounted.

ORACLE instance shut down.

2. 啟動數據庫到加載狀態

SQL> startup mount

ORACLE instance started.

Total System Global Area 285212672 bytes

Fixed Size 1218992 bytes

Variable Size 96470608 bytes

Database Buffers 184549376 bytes

Redo Buffers 2973696 bytes

Database mounted.

3. 修改數據庫為歸檔模式

SQL> alter database archivelog;

Database altered.

4. 查看歸檔模式是否被修改

SQL> archive log list

Database log mode Archive Mode

Automatic archi ......

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/sbin:/home/sa/app/sa/product/11.2.0/dbhome_1/bin

ORACLE_BASE=/home/sa/app/sa

ORACLE_HOME=/home/sa/app/sa/product/11.2.0/dbhome_1

ORACLE_SID=orcl

ORACLE_UNQNAME=orcl

export PATH

export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH ORACLE_UNQNAME

~ ~

su - sa

env | grep ORA

sqlplus "/ as sysdba"

startup

export ORACLE_UNQNAME=orcl

emctl start dbconsole

本欄目更多精彩內容:http://www.bianceng.cn/OS/Linux/

啟動db控制台

從網頁進入管理:

https://127.0.0.1:1158/em/console/logon/logon

使用sys用戶登錄

特別注意Connect as選項選擇SYSDBA

oracle

rm -rf $ORACLE_BASE/*

rm -f /etc/oraInst.loc /etc/oratab

rm -rf /etc/oracle

rm -f /etc/inittab.cssd

rm -f /usr/local/bin/coraenv /usr/local/bin/dbhome /usr/local/bin/oraenv

ORA-00119 和 ORA-00132 的解決方法

由於今天修改了測試數據庫的hostname,造成一下錯誤:

SQL> startup

ORA-00119: invalid specification for system parameter LOCAL_LISTENER

ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=orcl)(PORT=1522))'

其實解決起來很簡單的,請查看詳情。。。。。

因為修改了主機的hostname(原來是orcl,修改後是vmware10g),所以10g的實例就沒有辦法動態注冊,那麼就沒有辦法啟動了,我的監聽配置的也是正確的:

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.2)(PORT=1521)))

Services Summary...

所以呢,當你修改了主機的hostname以後,就要相應的修改數據庫的初始化參數。

-bash-3.00$ sqlplus "/ as sysdba" (先連接上數據庫)

SQL> create spfile from pfile='/export/home/oracle/1.ora';

修改pfile裡面的local_listener如下:

*.job_queue_processes=10

*.local_listener='(ADDRESS_LIST=(Address=(Protocol=tcp) (Host=vmware10g)(Port=1521)))'

*.open_cursors=300

SQL> create spfile from pfile='/export/home/oracle/1.ora';

SQL> startup

ORACLE instance started.

Total System Global Area 289406976 bytes

Fixed Size 1279820 bytes

Variable Size 92276916 bytes

Database Buffers 192937984 bytes

Redo Buffers 2912256 bytes

Database mounted.

Database opened.

SQL>

本文出自http://soulful.blog.51cto.com/468033/380284

Copyright © Linux教程網 All Rights Reserved