Oracle database backup graphics and text detailed

Source: Internet
Author: User
Tags unsupported oracle database

Config NBU backup Database

NBU Installation

Environment:

Database:oracle 11.2.3

Os:oracle Linux 5.7 x86_64

Backupsoftware:nbu 7.5

Tape library:mhvtl-utils-1.4

A virtual band library that is commonly used in a production environment, or a vendor-supplied dummy tape library.

But in the process of learning not so much money to buy equipment, then only use virtual machine to do virtual tape library.

This is the first step in NBU backup of Oracle databases.

Configuring Virtual Tape Libraries

First to the following URL (if you say I posted the URL will not open, hey, it must be the way you open the wrong) download the corresponding Virtual tape library software

Download to System

Dependent packages required for installation

The code is as follows Copy Code

Kernel-2.6.9-34.0.1.el
Kernel-devel-2.6.9-34.0.1.el
Kernel-2.6.9-5.el
Kernel-devel-2.6.9-5.el
kernel-utils-2.4-13.1.80

Yum groupinstall-y "Development Libraries" Yum Install–y

#若提示无此安装包, you need to compile the installation download address compile kernel

The code is as follows Copy Code

[Root@idata/usr/local/src/mhvtl-1.4/kernel]
#make
Make-c/lib/modules/2.6.32-300.10.1.el5uek/build Subdirs=/usr/local/src/mhvtl-1.4/kernel modules
Make[1]: Entering directory '/usr/src/kernels/2.6.32-300.10.1. El5uek '
  CC [m] /USR/LOCAL/SRC/MHVTL-1.4/KERNEL/MHVTL.O
/USR/LOCAL/SRC/MHVTL-1.4/KERNEL/MHVTL.C : 304:warning:initialization from incompatible pointer type
  building modules, Stage 2.
  Modpost 1 mo Dules
  cc     /usr/local/src/mhvtl-1.4/kernel/mhvtl.mod.o
  LD [M]  /usr/local/src/mhvtl-1.4/kernel/mhvtl.ko.unsigned
  NO SIGN [M]/usr/local/src/mhvtl-1.4/kernel/ Mhvtl.ko
Make[1]: Leaving directory '/usr/src/kernels/2.6.32-300.10.1.el5uek '

[Root@idata/usr/local/src/mhvtl-1.4/kernel]
#make Install
Install-o root-g root-m 644 mhvtl.ko/lib/modules/' uname-r '/kernel/drivers/scsi/;
Depmod-a;
If [F "/etc/modprobe.d/unsupported-modules"]; Then
Sed-i ' s/^allow_unsupported_modules 0/allow_unsupported_modules 1/'/etc/modprobe.d/unsupported-modules;
Fi

Installing software

The code is as follows Copy Code

[Root@idata mhvtl-1.4]# make


Make-c usr usr=vtl group=vtl mhvtl_home_path=/opt/mhvtl mhvtl_config_path=/etc/mhvtl


MAKE[1]: Entering directory '/USR/LOCAL/SRC/MHVTL-1.4/USR '


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-c-o vtltape.o vtltape.c


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-c-o ssc.o ssc.c


Ssc.c:in function? Sc_locate?


Ssc.c:498:warning:?. Lk_no? May is used uninitialized in this function


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-c-o default_ssc_pm.o default_ssc_pm.c


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-c-o ult3580_pm.o ult3580_pm.c


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-c-o hp_ultrium_pm.o hp_ultrium_pm.c


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-c-o stk9x40_pm.o stk9x40_pm.c


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-c-o quantum_dlt_pm.o quantum_dlt_pm.c


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-c-o ait_pm.o ait_pm.c


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-c-o t10000_pm.o t10000_pm.c


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-c-o ibm_03592_pm.o ibm_03592_pm.c


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-O vtltape vtltape.o SSC.O


Default_ssc_pm.o


Ult3580_pm.o


Hp_ultrium_pm.o


Stk9x40_pm.o


Quantum_dlt_pm.o


AIT_PM.O T10000_PM.O IBM_03592_PM.O


-lz-llzo2-l.-lvtlcart-lvtlscsi


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-c-o dump_tape.o dump_tape.c


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-o dump_tape dump_tape.o-l.-lvtlcart-lvtlscsi


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-c-o vtlcmd.o vtlcmd.c


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-o vtlcmd vtlcmd.o-l.-lvtlcart-lvtlscsi


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-c-o dump_messageq.o dump_messageq.c


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-o dump_messageq dump_messageq.o-l.-lvtlscsi


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-c-o mktape.o mktape.c


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-o mktape mktape.o-l.-lvtlcart-lvtlscsi


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-c-o edit_tape.o edit_tape.c


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-o edit_tape edit_tape.o-l.-lvtlcart-lvtlscsi


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-c-o vtllibrary.o vtllibrary.c


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-o vtllibrary vtllibrary.o-l.-lvtlscsi


SED-E s '/@HOME_PATH @//opt/mhvtl/' make_vtl_media.in > Make_vtl_media.1


SED-E s '/@CONF_PATH @//etc/mhvtl/' make_vtl_media.1 > Make_vtl_media


Rm-f make_vtl_media.1


Cc-wall-wshadow-g-o2-d_largefile64_source-i. /kernel-dmhvtl_version= "1.4.8"-d_gnu_source-dmhvtl_debug-dusr= "VTL"-dmhvtl_home_path= "/OPT/MHVTL"-DMHVTL_ Config_path= "/ETC/MHVTL"-O tapeexerciser tapeexerciser.c


MAKE[1]: Leaving directory '/USR/LOCAL/SRC/MHVTL-1.4/USR '


Make-c etc usr=vtl group=vtl mhvtl_home_path=/opt/mhvtl mhvtl_config_path=/etc/mhvtl


MAKE[1]: Entering directory '/usr/local/src/mhvtl-1.4/etc '


SED-E s '/@USR @/vtl/' mhvtl.in > MHVTL.1


SED-E s '/@CONF_PATH @//etc/mhvtl/' MHVTL.1 > MHVTL


Sed-i s '/@HOME_PATH @//opt/mhvtl/' MHVTL


Rm-f MHVTL.1


MAKE[1]: Leaving directory '/usr/local/src/mhvtl-1.4/etc '


Make-c Scripts Mhvtl_home_path=/opt/mhvtl Mhvtl_config_path=/etc/mhvtl


MAKE[1]: Entering directory '/usr/local/src/mhvtl-1.4/scripts '


SED-E s '/@CONF_PATH @//etc/mhvtl/' update_device.conf.in > update_device.conf


MAKE[1]: Leaving directory '/usr/local/src/mhvtl-1.4/scripts '


[Root@idata mhvtl-1.4]# make install


Make USR


MAKE[1]: Entering directory '/usr/local/src/mhvtl-1.4 '


Make-c usr usr=vtl group=vtl mhvtl_home_path=/opt/mhvtl mhvtl_config_path=/etc/mhvtl


MAKE[2]: Entering directory '/USR/LOCAL/SRC/MHVTL-1.4/USR '


MAKE[2]: Nothing is done for ' all '.


MAKE[2]: Leaving directory '/USR/LOCAL/SRC/MHVTL-1.4/USR '


MAKE[1]: Leaving directory '/usr/local/src/mhvtl-1.4 '


Make-c usr install/usr/lib/usr


MAKE[1]: Entering directory '/USR/LOCAL/SRC/MHVTL-1.4/USR '


Install-d-M 755/usr/lib64


Install-o root-g bin-m 755 libvtlscsi.so/usr/lib64/


Install-o root-g bin-m 755 libvtlcart.so/usr/lib64/


Install-d-M 755/usr/bin


Install-o root-g vtl-m 4750 vtltape/usr/bin/


Install:invalid Group ' VTL '


MAKE[1]: * * * [install] Error 1


MAKE[1]: Leaving directory '/USR/LOCAL/SRC/MHVTL-1.4/USR '


Make: * * * [install] Error 2


[Root@idata mhvtl-1.4]# make


Make-c usr usr=vtl group=vtl mhvtl_home_path=/opt/mhvtl mhvtl_config_path=/etc/mhvtl


MAKE[1]: Entering directory '/USR/LOCAL/SRC/MHVTL-1.4/USR '


MAKE[1]: Nothing is done for ' all '.


MAKE[1]: Leaving directory '/USR/LOCAL/SRC/MHVTL-1.4/USR '


Make-c etc usr=vtl group=vtl mhvtl_home_path=/opt/mhvtl mhvtl_config_path=/etc/mhvtl


MAKE[1]: Entering directory '/usr/local/src/mhvtl-1.4/etc '


MAKE[1]: ' MHVTL ' is up to date.


MAKE[1]: Leaving directory '/usr/local/src/mhvtl-1.4/etc '


Make-c Scripts Mhvtl_home_path=/opt/mhvtl Mhvtl_config_path=/etc/mhvtl


MAKE[1]: Entering directory '/usr/local/src/mhvtl-1.4/scripts '


MAKE[1]: ' update_device.conf ' is up to date.


MAKE[1]: Leaving directory '/usr/local/src/mhvtl-1.4/scripts '


[Root@idata mhvtl-1.4]# make install


Make USR


MAKE[1]: Entering directory '/usr/local/src/mhvtl-1.4 '


Make-c usr usr=vtl group=vtl mhvtl_home_path=/opt/mhvtl mhvtl_config_path=/etc/mhvtl


MAKE[2]: Entering directory '/USR/LOCAL/SRC/MHVTL-1.4/USR '


MAKE[2]: Nothing is done for ' all '.


MAKE[2]: Leaving directory '/USR/LOCAL/SRC/MHVTL-1.4/USR '


MAKE[1]: Leaving directory '/usr/local/src/mhvtl-1.4 '


Make-c usr install/usr/lib/usr


MAKE[1]: Entering directory '/USR/LOCAL/SRC/MHVTL-1.4/USR '


Install-d-M 755/usr/lib64


Install-o root-g bin-m 755 libvtlscsi.so/usr/lib64/


Install-o root-g bin-m 755 libvtlcart.so/usr/lib64/


Install-d-M 755/usr/bin


Install-o root-g vtl-m 4750 vtltape/usr/bin/


Install-o root-g vtl-m 4750 vtllibrary/usr/bin/


Install-o vtl-g vtl-m 750 vtlcmd/usr/bin/


Install-o vtl-g vtl-m 750 mktape/usr/bin/


Install-o vtl-g vtl-m 750 dump_tape/usr/bin/


Install-o vtl-g vtl-m 750 edit_tape/usr/bin/


Install-o vtl-g vtl-m 755 tapeexerciser/usr/bin/


Install-m build_library_config/usr/bin/


Install-m make_vtl_media/usr/bin/


MAKE[1]: Nothing is done for '/usr/lib '.


MAKE[1]: Nothing is done for '/usr '.


MAKE[1]: Leaving directory '/USR/LOCAL/SRC/MHVTL-1.4/USR '


Make scripts


MAKE[1]: Entering directory '/usr/local/src/mhvtl-1.4 '


Make-c Scripts Mhvtl_home_path=/opt/mhvtl Mhvtl_config_path=/etc/mhvtl


MAKE[2]: Entering directory '/usr/local/src/mhvtl-1.4/scripts '


MAKE[2]: ' update_device.conf ' is up to date.


MAKE[2]: Leaving directory '/usr/local/src/mhvtl-1.4/scripts '


MAKE[1]: Leaving directory '/usr/local/src/mhvtl-1.4 '


Make-c Scripts Install/usr


MAKE[1]: Entering directory '/usr/local/src/mhvtl-1.4/scripts '


Install-m update_device.conf/usr/bin/


MAKE[1]: Nothing is done for '/usr '.


MAKE[1]: Leaving directory '/usr/local/src/mhvtl-1.4/scripts '


Make etc


MAKE[1]: Entering directory '/usr/local/src/mhvtl-1.4 '


Make-c etc usr=vtl group=vtl mhvtl_home_path=/opt/mhvtl mhvtl_config_path=/etc/mhvtl


MAKE[2]: Entering directory '/usr/local/src/mhvtl-1.4/etc '


MAKE[2]: ' MHVTL ' is up to date.


MAKE[2]: Leaving directory '/usr/local/src/mhvtl-1.4/etc '


MAKE[1]: Leaving directory '/usr/local/src/mhvtl-1.4 '


Make-i-C etc install USR=VTL


MAKE[1]: Entering directory '/usr/local/src/mhvtl-1.4/etc '


Install-d-M 755/ETC/INIT.D


Install-m MHVTL/ETC/INIT.D


Test! -x/sbin/insserv | | /sbin/insserv MHVTL


MAKE[1]: Leaving directory '/usr/local/src/mhvtl-1.4/etc '


Make-c man Install/usr usr=vtl


MAKE[1]: Entering directory '/usr/local/src/mhvtl-1.4/man '


Install-d-M 755/usr/share/man/man1


Install-d-M 755/usr/share/man/man5


Install-o Root mhvtl.1/usr/share/man/man1/


Install-o Root mktape.1/usr/share/man/man1/


Install-o Root vtlcmd.1/usr/share/man/man1/


Install-o Root vtltape.1/usr/share/man/man1/


Install-o Root edit_tape.1/usr/share/man/man1/


Install-o Root vtllibrary.1/usr/share/man/man1/


Install-o Root make_vtl_media.1/usr/share/man/man1/


Install-o Root build_library_config.1/usr/share/man/man1/


Install-o Root mhvtl.conf.5/usr/share/man/man5/


Install-o Root device.conf.5/usr/share/man/man5/


Install-o Root library_contents.5/usr/share/man/man5/


MAKE[1]: Nothing is done for '/usr '.


MAKE[1]: Leaving directory '/usr/local/src/mhvtl-1.4/man '


test-d/OPT/MHVTL | | Mkdir-p/opt/mhvtl start virtual with library, view status

#/etc/init.d/mhvtl start


#lsscsi-G


[0:0:0:0] Disk VMware Virtual disk 1.0/dev/sda/dev/sg0


[0:0:1:0] Disk VMware Virtual disk 1.0/DEV/SDB/DEV/SG1


[2:0:0:0] CD/DVD Necvmwar VMware IDE CDR10 1.00/DEV/SR0/DEV/SG2


[3:0:0:0] mediumx STK L700 0104/dev/sch0/dev/sg11


[3:0:1:0] Tape IBM ult3580-td5 0104/DEV/ST0/DEV/SG3


[3:0:2:0] Tape IBM ult3580-td5 0104/DEV/ST1/DEV/SG4


[3:0:3:0] Tape IBM ult3580-td4 0104/DEV/ST2/DEV/SG5


[3:0:4:0] Tape IBM ult3580-td4 0104/dev/st3/dev/sg6


[3:0:8:0] mediumx STK L80 0104/dev/sch1/dev/sg12


[3:0:9:0] Tape STK t10000b 0104/dev/st4/dev/sg7


[3:0:10:0] Tape STK t10000b 0104/dev/st5/dev/sg8


[3:0:11:0] Tape STK t10000b 0104/DEV/ST6/DEV/SG9


[3:0:12:0] Tape STK t10000b 0104/dev/st7/dev/sg10

Execute the command on the operating system to start the NBU console interface

The code is as follows Copy Code

[Root@idata/root]
#/opt/nbu/openv/netbackup/bin/jnbsa

First, configure a backup strategy

Select Backup Policy Type

Connecting clients

Type of Backup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.