SAP-Forum.ORG
   

Go Back   SAP-Forum.ORG > SAP Forums > SAP BASIS

Reply
 
Thread Tools Display Modes
  #1  
Old 06-13-2010, 09:38 PM
ERP ERP is offline
Senior Member
 
Join Date: May 2010
Location: Rhode Island
Posts: 220
Default Standby database

Good morning,

We have a 4.70 R/3 instance running under HPUX with a Oracle database that we want to create a standby database at a disaster recovery site. I would apprcaite any help on how to configure BRARCHIVE to push archives to the standby system and configure standby to accept archives.

Thank you.
ERP
Reply With Quote
Sponsors
  #2  
Old 06-13-2010, 09:39 PM
Portal Portal is offline
Senior Member
 
Join Date: May 2010
Location: Miami
Posts: 752
Default Re: Standby database

You can change log_archive_dest_1 and add archive_log_dest_2 in your init[SID].ora file. this will create 2 copies of your offline redologs. Use paths so that the second copy is copied on your standby server.
Reply With Quote
  #3  
Old 06-13-2010, 09:40 PM
ERP ERP is offline
Senior Member
 
Join Date: May 2010
Location: Rhode Island
Posts: 220
Default Re: Standby database

Hello,

We are moving along with this project and I have a question about BRARCHIVE. We created a separate database on our Q/A box. Can BRARCHIVE be used to test archiving with a non-SAP database?

This is the command I issued, I modified the uid/password for this posting.
/usr/sap/QSZ/SYS/exe/run/brarchive -s -p initPOCTEST.arc -c -u <uid>/<password>
-f

I ask this because we are getting some errors. The success /error message are as follows.
BR0002I BRARCHIVE 7.00 (16)
BR0925I Public synonym SAP_SDBAH created successfully for table SAPR3.SDBAH
BR0925I Public synonym SAP_SDBAD created successfully for table SAPR3.SDBAD
BR0925I Public synonym SAP_MLICHECK created successfully for table SAPR3.MLICHECK
BR0925I Public synonym SAP_SAPLIKEY created successfully for table SAPR3.SAPLIKEY

BR0301W SQL error -4045 at location BraDbLogOpen-5, SQL statement:
'INSERT INTO SAP_SDBAH (BEG, FUNCT, SYSID, OBJ, RC, ENDE, ACTID, LINE) VALUES ('
20091229161537', 'sve', 'POCTEST', 'stage', '9999', ' ', 'aecfxjkj', ' ')'
ORA-04045: errors during recompilation/revalidation of PUBLIC.SAP_SDBAH
ORA-00980: synonym translation is no longer valid
BR0324W Insertion of database log header failed

BR0011I 30 offline redo log files found for processing, total size 504.163 MB

BR0278E Command output of 'LANG=C rcp -p /oracle/QSZ/102_64/dbs/initPOCTEST.ora
orapse@spg11:/oracle/PSE/oraarch/POCTEST':
remshd: Login incorrect.

ERP.
Reply With Quote
  #4  
Old 06-13-2010, 09:41 PM
Portal Portal is offline
Senior Member
 
Join Date: May 2010
Location: Miami
Posts: 752
Default Re: Standby database

Try reading SAP note 320457 - Installing BR tools on a non-ABAP database.

It might do the trick.
Reply With Quote
  #5  
Old 06-13-2010, 09:43 PM
ERP ERP is offline
Senior Member
 
Join Date: May 2010
Location: Rhode Island
Posts: 220
Default Re: Standby database

Hi All,

I have configured brarchive to ship the redo logs to the standby database, this is a success. What I cannot get going is the applying of the redo logs on the standby database once the logs arrive.

On the standby database, the following is the brarchive command I have put together:
/usr/sap/DSZ/SYS/exe/run/brarchive -s -p initPOCTEST.arc -u / -c -f -m >/scripts
/brarchx.log_POC 2>&1

The result of the above command is:
BR0280I BRARCHIVE time stamp: 2010-03-23 15.10.11
BR0301W SQL error -1033 at location BrDbConnect-2, SQL statement:
'CONNECT /@POCTEST'
ORA-01033: ORACLE initialization or shutdown in progress
BR0310W Connect to database instance POCTEST/PRIMARY failed

My gut feeling as to why I am failing to connect to the database is because brarchive is issuing the @POCTEST in the connect command. When I go into sqplus /nolog and then connect as system/**** all is good. When I go into sqplus /nolog and then connect as system/****@POCTEST I get the exact message when using brarchive.

Any help in stopping brarchive from adding @POCTEST would be greatly appreciated.

Best regards,
ERP
Reply With Quote
  #6  
Old 06-13-2010, 09:46 PM
Ramma Ramma is offline
Senior Member
 
Join Date: May 2010
Location: California
Posts: 278
Default Re: Standby database

Quote:
Originally Posted by ERP View Post
BR0310W Connect to database instance POCTEST/PRIMARY failed...

...When I go into sqplus /nolog and then connect as system/****@POCTEST I get the exact message when using brarchive.
Really?
Does it really complain about PRIMARY ?

And by the way, what is POCTEST?
Primary or standby db? Or what else?

Afaik (I am not using brarchive to apply logs) brarchive on the standby system will always try to connect to the primary db, in order to store logs.
For this it will need an entry primary_db = <PRIM_NAME> in its brarchive profile, and an entry for <PRIM_NAME> in the tnsnames.ora file. And of course a network connection to the primary db. Did you configure these?

Regards,
Ramma.
Reply With Quote
  #7  
Old 06-13-2010, 09:47 PM
ERP ERP is offline
Senior Member
 
Join Date: May 2010
Location: Rhode Island
Posts: 220
Default Re: Standby database

POCTEST is the sid of our test db and standby db for working with this project. It is a non SAP database, but BRARCHIVE works with it after applying note 320457. After hoinz said that brarchive will always try to connect to the primary db we made this happen. We already had primary_db = POCTEST defined. We did not have tnsnames.ora configured correctly, this we changed. We now have brarchive shipping redo logs to the standby database. On the standby database brarchive is now applying the redo logs to the standby database.

We have one last hurdle to get over. When an redo log arrives on the standby database brarchive applies the log and then immediately tries to apply the very same redo log and then fails, which causes brarchive to terminate. I have set up parameters to copy the log to a different directory on disk, and then delete. Yet in the archive directory the redo log remains and in the original destination directory the redo log has not been copied. When I look in the brarchive log I see that disk has been chosen as the media type and I see that the archive copy directory is correct. I used the parameter -sd in the brarchive command. Did I miss something in regards to telling brarchive to save and delete?

Best regards,
ERP.
Reply With Quote
  #8  
Old 06-13-2010, 09:48 PM
Ramma Ramma is offline
Senior Member
 
Join Date: May 2010
Location: California
Posts: 278
Default Re: Standby database

Does SAP note 1360542 apply?
Reply With Quote
  #9  
Old 06-13-2010, 09:49 PM
ERP ERP is offline
Senior Member
 
Join Date: May 2010
Location: Rhode Island
Posts: 220
Default Re: Standby database

Hello again,

I looked closely at the note and I looked closely at my alert_SID.log. The issue is ‘slightly’ different between note 1360542 and what I saw in my alert log.

The note shows brarchive applying the redo logs like this: log6, log7, log6, log7. The first two log6 and log7 apply correctly. The second log6 and log7 fails.

My alert log shows the following: log_196, log_196, log_197, log_197. The first log_196 and log_197 are applied correctly. The second log_196 and log_197 fails. brarchive process then dies.

We were on patch level 16 for brarchive, I brought down the latest version of BR*TOOLS. We are now on brarchive 7.00 (46) for brarchive on the disaster recover server. After bringing BR*Tools up to the latest I see the same results in my alert log.

Any path that you can send me down to research this issue is appreciated.

ERP.
Reply With Quote
  #10  
Old 06-13-2010, 11:31 PM
ERP ERP is offline
Senior Member
 
Join Date: May 2010
Location: Rhode Island
Posts: 220
Default Re: Standby database

Hello All,

I would like to report back on the conclusion of shipping the redo logs to the standby database server and applying the redo logs to the standby database.

Our Basis release is 6.20. Our kernel release is 6.40. Our Oracle is 10g. Since we are on 10g we must use BR*Tools 7.00 or higher. We were on BR*Tools 7.00 (46). The shipping of the redo logs worked well, for months now using BR*Tools 7.00 (46). The automatic applying of the redo logs to the standby database failed. We opened up a message to SAP. We were asked to run BRARCHIVE with option –TRC 15 and send SAP the log file. I returned the log file and this file was turned over to SAP development. The end result was I was asked to: “please download the corrected version of BR*Tools 7.10(30+)”. We are now systematically and automatically shipping redo logs to the standby database server and applying the redo logs to the standby database. All who wish to use the BRARCHIVE process in conjunction with a standby database please ensure that you are using a valid version of BR*TOOLS.

Best regards,
ERP.
Reply With Quote
Entre a los Links relacionados
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 01:57 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum Design By inferno