Veritas-bu

[Veritas-bu] unable to restore to alternate client

2003-09-30 13:18:49
Subject: [Veritas-bu] unable to restore to alternate client
From: ckstehman AT pepco DOT com (ckstehman AT pepco DOT com)
Date: Tue, 30 Sep 2003 13:18:49 -0400
This is a multipart message in MIME format.
--=_alternative 005F1B6F85256DB1_=
Content-Type: text/plain; charset="us-ascii"

Try checking the following:

1. Insure you can connect to the RMAN catalog database from host1 
(destination client)
2. Set environment variable NBA_ORA_CLIENT=host2 (Which you have done), 
and ORACLE_SID
3. Copy the init.ora file from the source client to the alternate 
(destination client) to the same directory on the destination client
4. Be sure all the directories are set up on the destination client and 
match exactly the ones from the source client
5. Be sure the directories on the destination client have write permission
6. Set up a password file for the desination client database
7. Start the database in nomount state
8. start "rman" on the destination client
9. set dbid to the dbid of the source client database from rman set 
dbid=<dbid of source database on host2)
10 Connect to the target database without using a userid/password
11. Run the RMAN restore script

bp.conf SERVER=<Master server>
Check the Oracle System Administrator's guide for Netbackup, there are 
examples in there.  We have successfully
done an alternate client restore.

Hope this helps..

=============================
Carl Stehman
PHI Services Company
202-331-6619
Pager 301-765-2703
ckstehman AT pepco DOT com





"Wei Cao" <wcao AT winants.rutgers DOT edu>
Sent by: veritas-bu-admin AT mailman.eng.auburn DOT edu
09/30/2003 12:07 PM

 
        To:     <veritas-bu AT mailman.eng.auburn DOT edu>
        cc:     "Wei Cao" <wcao AT winants.rutgers DOT edu>
        Subject:        [Veritas-bu] unable to restore to alternate client


Hello All,

I am trying to do an alternate client restore using NetBackup 3.4 with 
Oracle extension without any success. Does anyone know what I am doing 
wrong?

1) login as user oracle do a hot backup on node Host2
2) want to restore the hot backup to host1; host1 is also where the 
NetBackup server is installed.
3) login as user oracle do a restore on node host1, get the following 
message in the dbclient log file:

                 09:46:44 [27384] <4> dbc_InitializeDBClient: INF - 
client's Debug Level = <1>
                 09:46:44 [27384] <4> dbc_InitializeDBClient: --- SESSION 
INITIATED ---
                 09:46:44 [27384] <4> getOracleVersion: ORACLE_HOME= 
</oracle/oracle805/app/oracle/product/8.1.7>
                 09:46:44 [27384] <4> dbc_GetServerClientConfig: 
ServerName: <host1>, ClientName: <host2>
                 09:46:44 [27384] <4> dbc_GetServerClientConfig: NBU's 
client name= <host2> differs from gethostname()= <host1>
                 09:46:44 [27384] <4> dbc_GetClassNameFromConfig: user's 
class= <ora85>
                 09:46:44 [27384] <4> get_class: Class <ora85> found in 
configuration
                 09:46:44 [27384] <4> sbtinit: VERITAS NetBackup for 
Oracle8 - Release 3.4GA (030800)
                         System name:    SunOS
                         Node name:      host1
                         Release:        5.8
                         Version:        Generic_108528-20
                         Machine:        sun4u
                         User name:      oracle
                         Group name:     dba
                         Client Host:    host1

                 09:46:44 [27384] <4> sbtinit: support for Proxy Copy 
enabled
                 09:46:46 [27384] <4> get_bfs_date_range: Start Time = 
09/29/03 09:54:18
                 09:46:46 [27384] <4> get_bfs_date_range: End Time = 
10/01/03 09:54:18
                 09:46:46 [27384] <4> dbc_GetMediaListByName: Request 
String = <3.4GA host2 host1 *NULL* 4 1064843658 1065016458 
/bk_62_1_506076858>
                 09:46:46 [27384] <2> getsockconnected: host=host1 
service=bprd address=host1 protocol=tcp non-reserved port=13720
                 09:46:47 [27384] <4> find_backup_image: bk_62_1_506076858 
not found
                 09:46:47 [27384] <16> sbtrestore: Backup file not found.
                 09:46:47 [27384] <4> sbtend: --- END of SESSION --- 

4) bp.conf for user oracle on host2 is as follows:

                 SERVER = host1
                 CLIENT_NAME = host2
                 BPBACKUP_CLASS = ora85
                 VERBOSE = 9 

5) bp.conf for user oracle on host1

                 SERVER = host1
                 CLIENT_NAME = host2
                 BPBACKUP_CLASS = ora85
                 VERBOSE 

6) bp file in the /usr/openv/netbackup directory

                 SERVER = host1
                 CLIENT_NAME = host2
                 VERBOSE
                 CLIENT_READ_TIMEOUT = 3600

7) No.Restrictions is in the /usr/openv/netbackup/db/altnames directory

8) NB_ORA_CLIENT is specified in the script as well
                 allocate auxiliary channel dupt1 type 'sbt_tape' 
parms="ENV=(NB_ORA_CLENT=host2)";

I appreciate any help and ideas. Thank you very much.

Wei
 

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu




--=_alternative 005F1B6F85256DB1_=
Content-Type: text/html; charset="us-ascii"


<br><font size=2 face="sans-serif">Try checking the following:</font>
<br>
<br><font size=2 face="sans-serif">1. Insure you can connect to the RMAN 
catalog database from host1 (destination client)</font>
<br><font size=2 face="sans-serif">2. Set environment variable 
NBA_ORA_CLIENT=host2 (Which you have done), and ORACLE_SID</font>
<br><font size=2 face="sans-serif">3. Copy the init.ora file from the source 
client to the alternate (destination client) to the same directory on the 
destination client</font>
<br><font size=2 face="sans-serif">4. Be sure all the directories are set up on 
the destination client and match exactly the ones from the source client</font>
<br><font size=2 face="sans-serif">5. Be sure the directories on the 
destination client have write permission</font>
<br><font size=2 face="sans-serif">6. Set up a password file for the desination 
client database</font>
<br><font size=2 face="sans-serif">7. Start the database in nomount state</font>
<br><font size=2 face="sans-serif">8. start &quot;rman&quot; on the destination 
client</font>
<br><font size=2 face="sans-serif">9. set dbid to the dbid of the source client 
database from rman set dbid=&lt;dbid of source database on host2)</font>
<br><font size=2 face="sans-serif">10 Connect to the target database without 
using a userid/password</font>
<br><font size=2 face="sans-serif">11. Run the RMAN restore script</font>
<br>
<br><font size=2 face="sans-serif">bp.conf SERVER=&lt;Master server&gt;</font>
<br><font size=2 face="sans-serif">Check the Oracle System Administrator's 
guide for Netbackup, there are examples in there. &nbsp;We have 
successfully</font>
<br><font size=2 face="sans-serif">done an alternate client restore.</font>
<br>
<br><font size=2 face="sans-serif">Hope this helps..</font>
<br><font size=2 face="sans-serif"><br>
=============================<br>
Carl Stehman<br>
PHI Services Company<br>
202-331-6619<br>
Pager 301-765-2703<br>
ckstehman AT pepco DOT com</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>&quot;Wei Cao&quot; &lt;wcao AT 
winants.rutgers DOT edu&gt;</b></font>
<br><font size=1 face="sans-serif">Sent by: veritas-bu-admin AT 
mailman.eng.auburn DOT edu</font>
<p><font size=1 face="sans-serif">09/30/2003 12:07 PM</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; 
&nbsp; &nbsp; &nbsp;&lt;veritas-bu AT mailman.eng.auburn DOT edu&gt;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; 
&nbsp; &nbsp; &nbsp;&quot;Wei Cao&quot; &lt;wcao AT winants.rutgers DOT 
edu&gt;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; 
&nbsp; &nbsp; &nbsp;[Veritas-bu] unable to restore to alternate 
client</font></table>
<br>
<br>
<br><font size=2 face="Courier New">Hello All,<br>
<br>
I am trying to do an alternate client restore using NetBackup 3.4 with Oracle 
extension without any success. Does anyone know what I am doing wrong?<br>
<br>
1) login as user oracle do a hot backup on node Host2<br>
2) want to restore the hot backup to host1; host1 is also where the NetBackup 
server is installed.<br>
3) login as user oracle do a restore on node host1, get the following message 
in the dbclient log file:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 09:46:44 [27384] 
&lt;4&gt; dbc_InitializeDBClient: INF - client's Debug Level = &lt;1&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 09:46:44 [27384] 
&lt;4&gt; dbc_InitializeDBClient: --- SESSION INITIATED ---<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 09:46:44 [27384] 
&lt;4&gt; getOracleVersion: ORACLE_HOME= 
&lt;/oracle/oracle805/app/oracle/product/8.1.7&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 09:46:44 [27384] 
&lt;4&gt; dbc_GetServerClientConfig: ServerName: &lt;host1&gt;, ClientName: 
&lt;host2&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 09:46:44 [27384] 
&lt;4&gt; dbc_GetServerClientConfig: NBU's client name= &lt;host2&gt; differs 
from gethostname()= &lt;host1&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 09:46:44 [27384] 
&lt;4&gt; dbc_GetClassNameFromConfig: user's class= &lt;ora85&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 09:46:44 [27384] 
&lt;4&gt; get_class: Class &lt;ora85&gt; found in configuration<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 09:46:44 [27384] 
&lt;4&gt; sbtinit: VERITAS NetBackup for Oracle8 - Release 3.4GA (030800)<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; System name: &nbsp; &nbsp;SunOS<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; Node name: &nbsp; &nbsp; &nbsp;host1<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; Release: &nbsp; &nbsp; &nbsp; &nbsp;5.8<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; Version: &nbsp; &nbsp; &nbsp; &nbsp;Generic_108528-20<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; Machine: &nbsp; &nbsp; &nbsp; &nbsp;sun4u<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; User name: &nbsp; &nbsp; &nbsp;oracle<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; Group name: &nbsp; &nbsp; dba<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; Client Host: &nbsp; &nbsp;host1<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 09:46:44 [27384] 
&lt;4&gt; sbtinit: support for Proxy Copy enabled<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 09:46:46 [27384] 
&lt;4&gt; get_bfs_date_range: Start Time = 09/29/03 09:54:18<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 09:46:46 [27384] 
&lt;4&gt; get_bfs_date_range: End Time = 10/01/03 09:54:18<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 09:46:46 [27384] 
&lt;4&gt; dbc_GetMediaListByName: Request String = &lt;3.4GA host2 host1 *NULL* 
4 1064843658 1065016458 /bk_62_1_506076858&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 09:46:46 [27384] 
&lt;2&gt; getsockconnected: host=host1 service=bprd address=host1 protocol=tcp 
non-reserved port=13720<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 09:46:47 [27384] 
&lt;4&gt; find_backup_image: bk_62_1_506076858 not found<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 09:46:47 [27384] 
&lt;16&gt; sbtrestore: Backup file not found.<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 09:46:47 [27384] 
&lt;4&gt; sbtend: --- END of SESSION --- &nbsp; &nbsp;<br>
<br>
4) bp.conf for user oracle on host2 is as follows:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SERVER = host1<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLIENT_NAME = host2<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BPBACKUP_CLASS = 
ora85<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VERBOSE = 9 &nbsp; 
&nbsp; &nbsp;<br>
<br>
5) bp.conf for user oracle on host1<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SERVER = host1<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLIENT_NAME = host2<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BPBACKUP_CLASS = 
ora85<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VERBOSE <br>
<br>
6) bp file in the /usr/openv/netbackup directory<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SERVER = host1<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLIENT_NAME = host2<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VERBOSE<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLIENT_READ_TIMEOUT = 
3600<br>
<br>
7) No.Restrictions is in the /usr/openv/netbackup/db/altnames directory<br>
<br>
8) NB_ORA_CLIENT is specified in the script as well<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; allocate auxiliary 
channel dupt1 type 'sbt_tape' parms=&quot;ENV=(NB_ORA_CLENT=host2)&quot;;<br>
<br>
I appreciate any help and ideas. Thank you very much.</font>
<br><font size=2 face="Courier New"><br>
Wei<br>
 &nbsp; &nbsp; &nbsp; <br>
<br>
_______________________________________________<br>
Veritas-bu maillist &nbsp;- &nbsp;Veritas-bu AT mailman.eng.auburn DOT edu<br>
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu<br>
</font>
<br>
<br>
<br>
--=_alternative 005F1B6F85256DB1_=--

<Prev in Thread] Current Thread [Next in Thread>