Monday, May 12, 2014

Post 59 of Series : Install Oracle Secure Backup Client and Configuring Hosts and Datafile Sets on OSB (Oracle Secure Bakup)

Those Saints and devotees who serve the Lord have all their sins washed away. Have Mercy on me, O Lord and Master, and
keep me in the Sangat, the Congregation that You love. || 1 || I cannot even speak the Praises of the Lord, the Gardener of
the world. We are sinners, sinking like stones in water; grant Your Grace, and carry us stones across. || Pause || The rust
of poison and corruption from countless incarnations sticks to us; joining the Saadh Sangat, the Company of the Holy, it is
cleaned away. It is just like gold, which is heated in the fire, to remove the impurities from it.



Now we will install OSB (Oracle Secure backup) client on the other host (in my case "rac70.meditate.com"). If client is not installed on the other srver, we cannot take backup and execute restore jobs from that server. Here are the steps to install Client :

[root@rac70 backup]# ./setup
Welcome to Oracle's setup program for Oracle Secure Backup.  This
program loads Oracle Secure Backup software from the CD-ROM to a
filesystem directory of your choosing.
This CD-ROM contains Oracle Secure Backup version 10.4.0.3.0_LINUX64.
Please wait a moment while I learn about this host... done.
-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
    1. linux86_64
       administrative server, media server, client
-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
Loading Oracle Secure Backup installation tools... done.
Loading linux86_64 administrative server, media server, client... done.
-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
Loading of Oracle Secure Backup software from CD-ROM is complete.
You may unmount and remove the CD-ROM.

Would you like to continue Oracle Secure Backup installation with
'installob' now?  (The Oracle Secure Backup Installation Guide
contains complete information about installob.)
Please answer 'yes' or 'no' [yes]:
-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
Welcome to installob, Oracle Secure Backup's installation program.
For most questions, a default answer appears enclosed in square brackets.
Press Enter to select this answer.
Please wait a few seconds while I learn about this machine... done.
Have you already reviewed and customized install/obparameters for your
Oracle Secure Backup installation [yes]?
-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
Oracle Secure Backup is not yet installed on this machine.
Oracle Secure Backup's Web server has been loaded, but is not yet configured.
Choose from one of the following options. The option you choose defines
the software components to be installed.
Configuration of this host is required after installation completes.
You can install the software on this host in one of the following ways:
    (a) administrative server, media server and client
    (b) media server and client
    (c) client
If you are not sure which option to choose, please refer to the Oracle
Secure Backup Installation Guide. (a,b or c) [a]? c
Beginning the installation.  This will take just a minute and will produce
several lines of informational output.
Installing Oracle Secure Backup on rac70 (Linux version 2.6.32-358.el6.x86_64)
    generating links for client installation
    updating /etc/ld.so.conf
    checking Oracle Secure Backup's configuration file (/etc/obconfig)
    setting Oracle Secure Backup directory to /usr/local/oracle/backup in /etc/obconfig
    setting local database directory to /usr/etc/ob in /etc/obconfig
    setting temp directory to /usr/tmp in /etc/obconfig
    setting version to 10.4.0.3.0 in /etc/obconfig
    protecting the Oracle Secure Backup directory
    creating /etc/rc.d/init.d/observiced
    activating observiced via chkconfig
    Starting Oracle Secure Backup service daemon (/etc/observiced)
Installation summary:
    Installation  Host                OS          Driver     OS Move    Reboot
        Mode      Name                Name      Installed?  Required?  Required?
    client        rac70               Linux     no          no         no
Oracle Secure Backup is now ready for your use.
[root@rac70 backup]#



Before you take the back-up, you need to configure the hosts and the the datafile sets. USe the following steps to configure the datafile sets.


 
You will see the virtual tape library and the virtual tape drive on the home screen that you configured in the last step.



 
 




 
Configure -> Hosts


 
 

 
 
Dataset File Examples
When configuring a dataset file, it might be helpful to study the dataset files in the samples subdirectory of the Oracle Secure Backup home directory. The sample dataset files use the *.ds extension.
Including Only One Host in Each Dataset File
A typical strategy is to create one dataset file for each host to back up. For example, assume that your administrative domain includes client hosts brhost2, brhost3, and brhost4. You could create the dataset files brhost2.ds, brhost3.ds, and winhost1.ds as shown in the following examples. Each of the examples excludes core dumps and editor backup files.
Following example includes all files in the /, /usr, and /home file systems on host brhost2 except for core dumps and editor backup files.
brhost2.ds
include host brhost2 {
    exclude name core
    exclude name *.bak
    exclude name *~
    include path /
    include path /usr
    include path /home
}
Following example includes all files in the / and /usr file systems on host brhost3 except for core dumps and editor backup files.
Example 5-3 brhost3.ds
include host brhost3 {
    exclude name core
    exclude name *.bak
    exclude name *~
    include path /
    include path /usr
}
 
BAckup -> Datasets ->Add





 
I picked File. I will take the rman backup in this directory and will backup all the rman backup pieces to tape. 


 
I named it "backup_Disc_to_tp_71"



 
Click Dataset if there ar any errors:



 
 
 
 Now we are ready to start the backup job for file system to tape using OSB (Oracle Secure Backup)
 
 
I chant the chant of the Name of the Lord, day and night; I chant the Name of the Lord, Har, Har, Har, and enshrine it within my heart. The Name of the Lord, Har, Har, Har, is the most perfect medicine in this world; chanting the Name of the Lord, Har, Har, I have conquered my ego. || 3 || The Lord, Har, Har, is unapproachable, of unfathomable wisdom, unlimited, all-powerful and infinite. Show Mercy to Your humble servant, O Life of the world, and save the honor of servant Nanak. || 4 ||
 


Post 58 of Series - Install Oracle OSB (Oracle Secure Backup) on RHEL/CentOS 6 and Create virtual tape drive

 

Night and day, I sing the Kirtan, the Praises of the Name of the Lord. The True Guru has revealed to me the Name of the Lord;
without the Lord, I cannot live, for a moment, even an instant. || 1 || Pause || My ears hear the Lord?s Kirtan, and I contemplate Him; without the Lord, I cannot live, even for an instant. As the swan cannot live without the lake, how can the
Lord?s slave live without serving Him? || 1 || Some enshrine love for duality in their hearts, and some pledge love for worldly attachments and ego. The Lord?s servant embraces love for the Lord and the state of Nirvaanaa; Nanak contemplates the Lord, the Lord God.

 
 
Here are the steps to Install Oracle OSB (Oracle Secure Backup) on Unix
Download Orace Secure Backup from the given link and transfer it to your unix server. You can transfer it using WinScp as described in earlier posts. Use root to install it.
 
 

[root@rac71 backup]# pwd
/usr/local/oracle/backup
[root@rac71 backup]#
[root@rac71 backup]# ls -lrt
total 16852
-rwxr-xr-x 1 root root 16209920 Apr 23 15:13 doc.tar
-rwxr-xr-x 1 root root   706560 Apr 23 15:13 install.tar
-rwxr-xr-x 1 root root   283356 Apr 23 15:13 obreadme.pdf
-rwxr-xr-x 1 root root        0 Apr 23 15:13 OSB.10.4.0.3.0_LINUX64.rel
-rwxr-xr-x 1 root root    28835 Apr 23 15:13 setup
-rwxr-xr-x 1 root root     3920 Apr 23 15:13 welcome.html
drwxrwxrwx 2 root root     4096 Apr 23 15:13 cdtools
drwxrwxrwx 2 root root     4096 Apr 23 15:13 linux86_64
drwxr-xr-x 6 root root     4096 Apr 23 15:13 doc
[root@rac71 backup]# ./setup
Welcome to Oracle's setup program for Oracle Secure Backup.  This
program loads Oracle Secure Backup software from the CD-ROM to a
filesystem directory of your choosing.
This CD-ROM contains Oracle Secure Backup version 10.4.0.3.0_LINUX64.
Please wait a moment while I learn about this host... done.
-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
    1. linux86_64
       administrative server, media server, client
-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
Loading Oracle Secure Backup installation tools... done.
Loading linux86_64 administrative server, media server, client... done.
-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
Loading of Oracle Secure Backup software from CD-ROM is complete.
You may unmount and remove the CD-ROM.

Would you like to continue Oracle Secure Backup installation with
'installob' now?  (The Oracle Secure Backup Installation Guide
contains complete information about installob.)
Please answer 'yes' or 'no' [yes]: yes
-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
Welcome to installob, Oracle Secure Backup's installation program.
For most questions, a default answer appears enclosed in square brackets.
Press Enter to select this answer.
Please wait a few seconds while I learn about this machine... done.
Have you already reviewed and customized install/obparameters for your
Oracle Secure Backup installation [yes]?
-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
Oracle Secure Backup is not yet installed on this machine.
Oracle Secure Backup's Web server has been loaded, but is not yet configured.
Choose from one of the following options. The option you choose defines
the software components to be installed.
Configuration of this host is required after installation completes.
You can install the software on this host in one of the following ways:
    (a) administrative server, media server and client
    (b) media server and client
    (c) client
If you are not sure which option to choose, please refer to the Oracle
Secure Backup Installation Guide. (a,b or c) [a]? a
Beginning the installation.  This will take just a minute and will produce
several lines of informational output.
Installing Oracle Secure Backup on rac71 (Linux version 2.6.32-358.el6.x86_64)
You must now enter a password for the Oracle Secure Backup encryption
key store.  Oracle suggests you choose a password of at least 8
characters in length, containing a mixture of alphabetic and numeric
characters.
Please enter the key store password:
Re-type password for verification:
You must now enter a password for the Oracle Secure Backup 'admin' user.
Oracle suggests you choose a password of at least 8 characters in length,
containing a mixture of alphabetic and numeric characters.
Please enter the admin password:
Re-type password for verification:
You should now enter an email address for the Oracle Secure Backup 'admin'
user. Oracle Secure Backup uses this email address to send job summary
reports and to notify the user when a job requires input. If you leave this
blank, you can set it later using the obtool's 'chuser' command.
Please enter the admin email address:

    generating links for admin installation with Web server
    updating /etc/ld.so.conf
    checking Oracle Secure Backup's configuration file (/etc/obconfig)
    setting Oracle Secure Backup directory to /usr/local/oracle/backup in /etc/obconfig
    setting local database directory to /usr/etc/ob in /etc/obconfig
    setting temp directory to /usr/tmp in /etc/obconfig
    setting administrative directory to /usr/local/oracle/backup/admin in /etc/obconfig
    setting version to 10.4.0.3.0 in /etc/obconfig
    protecting the Oracle Secure Backup directory
    creating /etc/rc.d/init.d/observiced
    activating observiced via chkconfig
    initializing the administrative domain
****************************** N O T E ******************************
On Linux systems Oracle recommends that you answer no to the next two
questions. The preferred mode of operation on Linux systems is to use
the /dev/sg devices for attach points as described in the 'ReadMe'
and in the 'Installation and Configuration Guide'.

Is rac71 connected to any tape libraries that you'd like to use with
Oracle Secure Backup [no]?
Is rac71 connected to any tape drives that you'd like to use with
Oracle Secure Backup [no]?
Installation summary:
    Installation  Host                OS          Driver     OS Move    Reboot
        Mode      Name                Name      Installed?  Required?  Required?
    admin         rac71               Linux     no          no         no
Oracle Secure Backup is now ready for your use.
[root@rac71 backup]#
[root@rac71 backup]# pwd
/usr/local/oracle/backup
[root@rac71 backup]# ls -lart
total 16932
-rwxr-xr-x  1 root root    11911 Jun  6  2013 .wrapper
drwxr-xr-x  2 root root     4096 Jun  6  2013 .drv.linux86_64
drwxr-xr-x  7 root root     4096 Jun  6  2013 apache
drwxr-xr-x  2 root root     4096 Jun  6  2013 device
drwxr-xr-x  2 root root     4096 Jun  6  2013 help
drwxr-xr-x  2 root root     4096 Jun  6  2013 tools.linux86_64
drwxr-xr-x  2 root root     4096 Jun  6  2013 samples
drwxr-xr-x  3 root root     4096 Apr 23 15:11 ..
-rwxr-xr-x  1 root root 16209920 Apr 23 15:13 doc.tar
-rwxr-xr-x  1 root root   706560 Apr 23 15:13 install.tar
-rwxr-xr-x  1 root root   283356 Apr 23 15:13 obreadme.pdf
-rwxr-xr-x  1 root root        0 Apr 23 15:13 OSB.10.4.0.3.0_LINUX64.rel
-rwxr-xr-x  1 root root    28835 Apr 23 15:13 setup
-rwxr-xr-x  1 root root     3920 Apr 23 15:13 welcome.html
drwxr-xr-x  2 root root     4096 Apr 23 15:13 cdtools
drwxr-xr-x  2 root root     4096 Apr 23 15:13 linux86_64
drwxr-xr-x  6 root root     4096 Apr 23 15:13 doc
drwxr-xr-x  2 root root     4096 Apr 23 15:14 .lib.linux86_64
drwxr-xr-x  4 root root     4096 Apr 23 15:14 man
drwxr-xr-x  2 root root     4096 Apr 23 15:14 .etc.linux86_64
drwxr-xr-x  2 root root     4096 Apr 23 15:14 .bin.linux86_64
drwxr-xr-x  2 root root     4096 Apr 23 15:14 bin
drwxr-xr-x  2 root root     4096 Apr 23 15:14 etc
lrwxrwxrwx  1 root root       15 Apr 23 15:14 .bin.local -> .bin.linux86_64
lrwxrwxrwx  1 root root       15 Apr 23 15:14 .etc.local -> .etc.linux86_64
drwxr-xr-x 20 root root     4096 Apr 23 15:14 .
drwxr-xr-x  2 root root     4096 Apr 23 15:14 lib
drwxr-xr-x  8 root root     4096 Apr 23 15:14 admin
drwxr-xr-x  2 root root     4096 Apr 23 15:15 install
[root@rac71 backup]#
 
 
After you are done with the install, create the virtual tape library and virtual tape drive as below. Commads to create the virtual tape library and virtual tape drive are given below.
 

Check if obtool is working as:
[root@rac71 backup]# obtool
Oracle Secure Backup 10.4.0.3.0
login: admin
Password:
ob> exit
[root@rac71 backup]#

[root@rac71 ~]# cd /home/oracle/
[root@rac71 oracle]# vi mktapedev.obp
[root@rac71 oracle]# vi mklib.obp
[root@rac71 oracle]# cat mktapedev.obp
mkdev -t tape -o -a rac71:/vt -v -l vlib -d 1 vt
[root@rac71 oracle]# cat mklib.obp
mkdev -t library -o -S 4 -a rac71:/vlib -v vlib
[root@rac71 oracle]#
 
 
I got the following error on my first attempt:

[root@rac71 backup]#  obtool --user admin --password gurpartap < /home/oracle/mklib.obp
ob> mkdev -t library -o -S 4 -a rac71:/vlib -v vlib
Error: host rac71 is not a media server.
ob>
[root@rac71 backup]#
 
Add role of media server and try again and it will go through:
 
[root@rac71 backup]# obtool --user admin --password gurpartap
ob> chhost --addrole mediaserver rac71
ob> exit
 
Try again and it works this time:

[root@rac71 backup]#
[root@rac71 backup]#  obtool --user admin --password gurpartap < /home/oracle/mklib.obp
ob> mkdev -t library -o -S 4 -a rac71:/vlib -v vlib
ob>
[root@rac71 backup]#
ob> mkdev -t tape -o -a rac71:/vt -v -l vlib -d 1 vt
ob>

[root@rac71 backup]#
If you forget the following step you get the following error:
Drive or volume on which mount attempted is unusable
http://books.google.com/books?id=6b4XAAAAQBAJ&pg=PA609&lpg=PA609&dq=obtool+create+virtual+volume&source=bl&ots=8Z7uHidLxo&sig=kJaUqusaPYrZ5LW15XfnlKcT7gQ&hl=en&sa=X&ei=fsFZU72yB6vS2wWrvIH4CA&ved=0CFoQ6AEwBg#v=onepage&q=obtool%20create%20virtual%20volume&f=false
 

Insert volumes
ob>  lsvol -l -L vlib
Inventory of library vlib:
    in    mte:           vacant
    in    1:             vacant
    in    2:             vacant
    in    3:             vacant
    in    4:             vacant
    in    dte:           vacant
So, insert the volumes as given below and it works.
 
ob> insert -L vlib unlabeled 1-4
ob> lsvol -l -L vlib
Inventory of library vlib:
    in    mte:           vacant
    in    1:             unlabeled, barcode 3ff2d1b8ae90103b3b0000c2939ceef, oid 100
    in    2:             unlabeled, barcode 402ee388ae90103b3b0000c2939ceef, oid 101
    in    3:             unlabeled, barcode 403e1fe2ae90103b3b0000c2939ceef, oid 102
    in    4:             unlabeled, barcode 40519d6aae90103b3b0000c2939ceef, oid 103
    in    dte:           vacant
ob>
 
 
Login to GUI of OSB as:
 


 
 
 
 
 
Use your credentials that you set while install to login to Oracle Secure Backup GUI.


Those who do not serve the True Guru do not embrace love for the Word of the Shabad. They do not meditate on the Celestial Naam, the Name of the Lord  why did they even bother to come
into the world? Time and time again, they are reincarnated, and they rot away forever in manure. They are attached to false greed; they are not on this shore, nor on the one beyond. O Nanak, the Gurmukhs are saved; the Creator Lord unites them with Himself.