<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NetBackup HOWTO&#039;s &#187; Oracle Backup</title>
	<atom:link href="http://www.netbackuphowto.com/tag/oracle-backup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.netbackuphowto.com</link>
	<description></description>
	<lastBuildDate>Mon, 15 Aug 2011 14:15:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Oracle 10g Hot Backup without RMAN (UN*X)</title>
		<link>http://www.netbackuphowto.com/2009/04/29/oracle-10g-hot-backup-without-rman-unix/</link>
		<comments>http://www.netbackuphowto.com/2009/04/29/oracle-10g-hot-backup-without-rman-unix/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 15:05:51 +0000</pubDate>
		<dc:creator>savasirez</dc:creator>
				<category><![CDATA[Netbackup Howto]]></category>
		<category><![CDATA[Oracle Backup]]></category>
		<category><![CDATA[oracle 10g backup]]></category>
		<category><![CDATA[oracle 10g hot backup]]></category>
		<category><![CDATA[oracle 10g hotbackup]]></category>
		<category><![CDATA[oracle hot backup]]></category>
		<category><![CDATA[oracle hotbackup]]></category>

		<guid isPermaLink="false">http://www.netbackuphowto.com/?p=341</guid>
		<description><![CDATA[This page describes Oracle hot backup without using an rman database. It can have some missing parts, so please share your knowledge if anything is missing according to you. Pre-requisites: You must have Oracle license on Netbackup. (Correction. Oracle license is not required for this approach, Thanks to Bahadır) Policy Creation: 1. Create the following [...]]]></description>
			<content:encoded><![CDATA[<p>This page describes Oracle hot backup without using an rman database. It can have some missing parts, so please share your knowledge if anything is missing according to you.</p>
<p><span id="more-341"></span></p>
<p><strong>Pre-requisites:</strong></p>
<p><span style="text-decoration: line-through;">You must have Oracle license on Netbackup. </span>(Correction. Oracle license is not required for this approach, Thanks to Bahadır)<span style="text-decoration: line-through;"><br />
</span></p>
<p><strong>Policy Creation:</strong></p>
<p>1. Create the following scripts under directory /usr/openv/netbackup/bin</p>
<p><a title="bpstart_notify" href="http://www.netbackuphowto.com/wp-content/uploads/2009/04/bpstart_notify" target="_blank">bpstart_notify</a></p>
<p>Change the following lines (arguments in bold) for your system. Lines 62 to 72.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
&#8220;FULL&#8221;)<br />
echo `date` full backup started on $1 &#8211; policy $2 schedule $3 &gt;&gt; $OUTF<br />
/usr/openv/netbackup/bin/db_begin_bkup -user <strong>oracle</strong> -home <strong>/u01/app/oracle/product/10.2.0/db_1 </strong>-base <strong>/u01/app/oracle</strong> -sid <strong>orcl </strong>-init <strong>/u01/app/oracle/product/10.2.0/db_1/admin/orcl/pfile/init.ora</strong> &gt;&gt; $OUTF<br />
;;<br />
&#8220;INCR&#8221;)<br />
echo `date` differential incremental backup started on $1 &#8211; policy $2 schedule $3 &gt;&gt; $OUTF<br />
/usr/openv/netbackup/bin/db_begin_bkup -user<strong> oracle</strong> -home <strong>/u01/app/oracle/product/10.2.0/db_1</strong> -base <strong>/u01/app/oracle</strong> -sid <strong>orcl </strong>-init <strong>/u01/app/oracle/product/10.2.0/db_1/admin/orcl/pfile/init.ora</strong> &gt;&gt; $OUTF<br />
;;<br />
&#8220;CINC&#8221;)<br />
echo `date` cumulative incremental backup started on $1 &#8211; policy $2 schedule $3 &gt;&gt; $OUTF<br />
/usr/openv/netbackup/bin/db_begin_bkup -user <strong>oracle </strong>-home <strong>/u01/app/oracle/product/10.2.0/db_1</strong> -base <strong>/u01/app/oracle</strong> -sid <strong>orcl </strong>-init <strong>/u01/app/oracle/product/10.2.0/db_1/admin/orcl/pfile/init.ora</strong> &gt;&gt; $OUTF<br />
;;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><a title="bpend_notify" href="http://www.netbackuphowto.com/wp-content/uploads/2009/04/bpend_notify" target="_blank">bpend_notify<br />
</a>Change the following lines  (arguments in bold) for your system. Lines 64 to 75.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>&#8220;FULL&#8221;)<br />
echo `date` full backup finished on $1 &#8211; policy $2 schedule $3. Exit status = $5 &gt;&gt; $OUTF<br />
/usr/openv/netbackup/bin/db_end_bkup -user <strong>oracle </strong>-home <strong>/u01/app/oracle/product/10.2.0/db_1</strong> -base <strong>/u01/app/oracle</strong> -sid <strong>orcl</strong> -init <strong>/u01/app/oracle/product/10.2.0/db_1/admin/orcl/pfile/init.ora</strong> &gt;&gt; $OUTF<br />
;;<br />
&#8220;INCR&#8221;)<br />
echo `date` differential incremental backup finished on $1 &#8211; policy $2 schedule $3. Exit status = $5 &gt;&gt; $OUTF<br />
/usr/openv/netbackup/bin/db_end_bkup -user <strong>oracle </strong>-home <strong>/u01/app/oracle/product/10.2.0/db_1</strong> -base <strong>/u01/app/oracle</strong> -sid <strong>orcl</strong> -init <strong>/u01/app/oracle/product/10.2.0/db_1/admin/orcl/pfile/init.ora</strong> &gt;&gt; $OUTF<br />
;;<br />
&#8220;CINC&#8221;)<br />
echo `date` cumulative incremental backup finished on $1 &#8211; policy $2 schedule $3. Exit status = $5 &gt;&gt; $OUTF<br />
/usr/openv/netbackup/bin/db_end_bkup -user <strong>oracle </strong>-home <strong>/u01/app/oracle/product/10.2.0/db_1</strong> -base <strong>/u01/app/oracle</strong> -sid <strong>orcl</strong> -init <strong>/u01/app/oracle/product/10.2.0/db_1/admin/orcl/pfile/init.ora</strong> &gt;&gt; $OUTF<br />
;;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><a title="db_begin_bkup" href="http://www.netbackuphowto.com/wp-content/uploads/2009/04/db_begin_bkup" target="_blank">db_begin_bkup<br />
</a>Change the following lines (at the end of the file, CUSTOMIZATION section)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
line 471<br />
ORACLE_DBA=${ORACLE_DBA:=oracle}<br />
line 479<br />
ORACLE_BASE=${ORACLE_BASE:=/u01/app/oracle}<br />
line 488<br />
ORACLE_HOME=${ORACLE_HOME:=/u01/app/oracle/product/10.2.0/db_1}<br />
line 494<br />
ORACLE_SID=${ORACLE_SID:=orcl}<br />
line 501<br />
SQLCMD=${SQLCMD:=${ORACLE_HOME}/bin/sqlplus}<br />
line 508<br />
ORACLE_INIT=${ORACLE_INIT:=${ORACLE_HOME}/admin/${ORACLE_SID}/pfile/init.ora}<br />
lines 516 and 517<br />
MAIL_ADDR_SUCCESS=${MAIL_ADDR_SUCCESS:=root@localhost}<br />
MAIL_ADDR_FAILURE=${MAIL_ADDR_FAILURE:=root@localhost}<br />
line 529<br />
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:=${ORACLE_HOME}/lib}<br />
line 536<br />
CONTROL_DIR=/tmp/ORACLE_BACKUP<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><a title="db_end_bkup" href="http://www.netbackuphowto.com/wp-content/uploads/2009/04/db_end_bkup" target="_blank">db_end_bkup<br />
</a>Change the following lines (at the end of the file, CUSTOMIZATION section)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
line 410<br />
ORACLE_DBA=${ORACLE_DBA:=oracle}<br />
line 418<br />
ORACLE_BASE=${ORACLE_BASE:=/u01/app/oracle}<br />
line 427<br />
ORACLE_HOME=${ORACLE_HOME:=/u01/app/oracle/product/10.2.0/db_1}<br />
line 433<br />
ORACLE_SID=${ORACLE_SID:=orcl}<br />
line 440<br />
SQLCMD=${SQLCMD:=${ORACLE_HOME}/bin/sqlplus}<br />
line 447<br />
ORACLE_INIT=${ORACLE_INIT:=${ORACLE_HOME}/admin/${ORACLE_SID}/pfile/init.ora}<br />
lines 455 and 456<br />
MAIL_ADDR_SUCCESS=${MAIL_ADDR_SUCCESS:=root@localhost}<br />
MAIL_ADDR_FAILURE=${MAIL_ADDR_FAILURE:=root@localhost}<br />
line 468<br />
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:=${ORACLE_HOME}/lib}<br />
line 475<br />
CONTROL_DIR=/tmp/ORACLE_BACKUP</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>2. Create a policy, choose Policy Type to be <strong>standard</strong> and choose Oracle data directories and Archivelog directories in Backup Selections.</p>
<p>3. Name bpstart_notify as bpstart_notify.policy_name (e.g: if your backup policy name is OracleBackup then the file name should be bpstart_notify.OracleBackup)<br />
Do the same for bpend_notify as well.<br />
Do not rename db_begin_bkup and bp_end_bkup as they will be called by the first two scripts.</p>
<p>4. Make all the scripts executable and owned by root.</p>
<p>chown root bpstart_notify*<br />
chown root bpend_notify*<br />
chown root db_begin_bkup<br />
chown root db_end_bkup</p>
<p>chmod 755 bpstart_notify*<br />
chmod 755 bpend_notify*<br />
chmod 755 db_begin_bkup<br />
chmod 755 db_end_bkup</p>
<p>5. Try a manual backup and see if it works.</p>
<p>Ps : The scripts create the following files, so you can monitor script processes while the backup process continues.<br />
BPRD_CALLED<br />
SESSION_START_CALLED<br />
BPSTART_CALLED<br />
BACKUP_CALLED<br />
BACKUP_EXIT_CALLED<br />
SESSION_CALLED<br />
BPEND_CALLED</p>
]]></content:encoded>
			<wfw:commentRss>http://www.netbackuphowto.com/2009/04/29/oracle-10g-hot-backup-without-rman-unix/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Howto Convert an Oracle RMAN Template to Script</title>
		<link>http://www.netbackuphowto.com/2008/12/24/howto-convert-an-oracle-rman-template-to-script/</link>
		<comments>http://www.netbackuphowto.com/2008/12/24/howto-convert-an-oracle-rman-template-to-script/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 15:29:28 +0000</pubDate>
		<dc:creator>savasirez</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Netbackup Howto]]></category>
		<category><![CDATA[NetBackup Tips]]></category>
		<category><![CDATA[Oracle Backup]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[convert template to script]]></category>
		<category><![CDATA[netbackup]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[oracle for windows backup]]></category>
		<category><![CDATA[rman]]></category>
		<category><![CDATA[rman script]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://www.netbackuphowto.com/?p=198</guid>
		<description><![CDATA[If you are having difficulty in a stuation like this: You have a unix based netbackup master server and have an windows server with oracle that you want to backup through rman catalog backup, but you are unable to use the templates created by the &#8220;Backup, Archive and Restore&#8221; application on windows. On your windows [...]]]></description>
			<content:encoded><![CDATA[<p>If you are having difficulty in a stuation like this:</p>
<p>You have a unix based netbackup master server and have an windows server with oracle that you want to backup through rman catalog backup, but you are unable to use the templates created by the &#8220;Backup, Archive and Restore&#8221; application on windows.</p>
<p><span id="more-198"></span></p>
<p>On your windows server, you can convert your templates to rman scripts using the following line&#8230;</p>
<p>c:\Program Files\Veritas\Netbackup\bin\bpdbsbora -backup -g Full_backup.cmd -t Full_backup.tpl</p>
<p>Now you can enter this script on unix side as a backup selection script&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.netbackuphowto.com/2008/12/24/howto-convert-an-oracle-rman-template-to-script/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Oracle Backup started but didnt continue with Application Backup</title>
		<link>http://www.netbackuphowto.com/2008/12/18/oracle-backup-started-but-didnt-continue-with-application-backup/</link>
		<comments>http://www.netbackuphowto.com/2008/12/18/oracle-backup-started-but-didnt-continue-with-application-backup/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 12:59:14 +0000</pubDate>
		<dc:creator>savasirez</dc:creator>
				<category><![CDATA[NetBackup Tips]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[hosts file]]></category>
		<category><![CDATA[interface problem]]></category>
		<category><![CDATA[netbackup]]></category>
		<category><![CDATA[Oracle Backup]]></category>
		<category><![CDATA[solaris problem]]></category>
		<category><![CDATA[two interfaces]]></category>

		<guid isPermaLink="false">http://www.netbackuphowto.com/2008/12/18/oracle-backup-started-but-doesnt-continue-with-application-backup/</guid>
		<description><![CDATA[If you face a problem like this: You are running oracle on a solaris machine with two interfaces. You created the script and it runs flawlesly on another machine. When you start a backup, the backup schedule starts but doesnt pass to Application Backup schedule, looks like its frozen. There may be more than one [...]]]></description>
			<content:encoded><![CDATA[<p>If you face a problem like this:<br />
You are running oracle on a solaris machine with two interfaces. You created the script and it runs flawlesly on another machine. When you start a backup, the backup schedule starts but doesnt pass to Application Backup schedule, looks like its frozen.</p>
<p><span id="more-188"></span></p>
<p>There may be more than one cause for this problem, here is a solution for me.<br />
You might have two seperate ip definitons on /etc/hosts file with the same hostname for your netbackup master server. e.g<br />
172.6.2.10    veritas<br />
192.168.14.10 veritas<br />
You are connecting through 192.168.14.10 interface but in /etc/hosts file 172.6.2.10 comes first, so netbackup client doesnt recognize netbackup master server correctly.<br />
So, correct this problem and it should run through&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.netbackuphowto.com/2008/12/18/oracle-backup-started-but-didnt-continue-with-application-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

