📜 ⬆️ ⬇️

Symantec Backup Exec: Backup Oracle installed on Linux

Backup Exec is a reliable, enterprise-class backup system. Installation and configuration of this product has already been described earlier in Habré, there are no difficulties, everything is simple and intuitive. The big plus of this backup tool is that this program can back up almost all of the software used in the enterprise, we will list the main copying options:
• Able to copy Windows, Linux, Macintosh;
• VMWare and ESX
• Active Directory Domains
• System state
• Microsoft Sharepoint farms
• Microsoft Exchange
• MSSQL and Oracle databases, also Oracle Real Application Clusters
• User Resources
• And much more.
This is not a big list of features, the advantage is that you can replace several utilities with one product and watch all backups in one place or receive messages about failures.
Product management is intuitive, but there are nuances, in particular, setting up a backup and restore Oracle installed on Linux, then you have to study the documentation to figure it out. I will try to tell you the most basic problems that can be encountered and how to get around them during the backup of Oracle installed on Linux.
First you need to install the client on a Linux server. The usual way to use the “Service – Install Agents to Other Servers” menu does not always work with linux. Therefore, we will install manually: the BE distribution has an archive RALUS_RMALS_RAMS-xxxx.tar.gz in the LinuxUnixMac directory. Copy it to a Linux server, unpack it and start it (installation and configuration is performed as root):

tar –xzvf RALUS_RMALS_RAMS-xxxx.tar.gz cd RALUS_RMALS_RAMS-xxxx ./installralus 


We answer yes to all questions and indicate the IP of the server where Backup Exec itself is installed. During installation, you are prompted to create a beoper group. Add to this group the user from whom Oracle runs on linux. After that, you need to configure the agent to work with Oracle:
')
 cd /opt/VRTSralus/bin/ ./AgentConfig 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 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 Enter a user name that has local system credentials: <     oracle> Enter the password: Re-enter password: Validating credentials....... Do you want to use the full computer name/IP address for Oracle operations? (Y/N):Y Enter the full computer name or IP address: <hostname  Oracle> Do you want to use a custom port to connect to the media server during Oracle operations? (Y/N): N Commit Oracle operation settings to the configuration file? (Y/N): Y 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: 1 Select an Oracle instance to configure Entry 1. <SID  > Enter the number 0 to go back Enter your selection: 1 Enter the Oracle database SYSDBA user name: <sys> Enter the Oracle database SYSDBA password: Re-enter password: Validating credentials....... Enter the media server name or IP address: <IP  Backup Exec> Do you use a recovery catalog? (Y/N):N Do you want to use a customized job template? (Y/N): N Commit Oracle operation settings to the configuration file? (Y/N): Y SUCCESS: Successfully added the entry to the configuration file. 

When setting up the BE client, the Oracle database server must be running. If a problem occurs:

 oracle: error while loading shared libraries: libhasgen10.so: cannot open shared object file: No such file or directory Failed to login. 


Then, before running the client configuration, you need to set the environment variables for Oracle. If you encounter such a problem, then when you start the service in the future you will need to set variables.

 --->>> No Oracle instances were discovered. Do you want to enter one? (Y/N):Y Enter the Oracle instance: SM1 --->>> The entry could not be validated. Ensure that the instance is configured correctly. 


Such a message may occur if you do not have an oratab file, check the rights to it and its contents (SID and path to ORACLE_HOME).
Installation and configuration of the client is completed, we restart the service and go to the server side BE.

 /etc/init.d/VRTSralus.init restart 

Please note that in order to set up a backup, it is necessary that the Oracle database is in archive mode; we check this:

 SQL> select log_mode from sys.v$database; LOG_MODE ------------ NOARCHIVELOG ----    SQL> shu immediate SQL> startup mount SQL> alter database archivelog; SQL> alter database open; 


On the server side of Backup Exec, we immediately perform the following actions (it will help to avoid many connection problems):

  >  >  > Oracle >   >  (  ,   Oracle   ,   ). 


Then everything is trivial, Menu> File> New> Backup Job.
When you need to set up a hot backup of Oracle Database, you do not need to copy the database (database files) as a folder.

If everything was done correctly before, then in the Linux / Unix Servers section the name of your database server will appear, clicking on the + next to [ROOT] prompts you for credentials, clicking on create, specify the credentials of the Linux user under which the database is running. On the Oracle + Database, you must also click the create button and specify the database user data, namely the user sys, which was specified to the client and which has sysdba privileges. Now we can select the directory to save ORACLE_HOME (uncheck the folder with the database files, you can backup these files when the database is stopped), and check the box next to “oracle Database” (for hot copy). Go through the tabs, everything is quite clear. On the Oracle tab, I recommend checking the “Delete copied log files” checkbox - this will mean that after copying archivals to the backup server, they will be deleted from the database server, otherwise you may run out of disk space on the database drive and you will have to delete the logs manually. We set up copying to disk or tape on the “Devices and Media” tab. Set the schedule - click “Run now” - a general list of the parameters you set will be created, check OK and watch the execution in the “Task Monitor” section.



If your Oracle database is large and frequently used, then it is better to do an additional task to copy only archive logs, thus reducing the time of information loss and the disk space from the database will be cleared more often.

Source: https://habr.com/ru/post/275449/


All Articles