<?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 10g backup</title>
	<atom:link href="http://www.netbackuphowto.com/tag/oracle-10g-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>
	</channel>
</rss>

