Translate

DB Refresh of HANA Based systems using HANA Studio Backup/Recovery without SWPM





DB Refresh using HANA Studio DB Restore  with SID Modification -  NON SAPinst

The DB restoration option in HANA Studios, followed by hdbuserstore, makes the entire system transfer process a lot easier. The target schema would still be the source, which is the only restriction.

The purpose of this blog is to demonstrate how to perform a simple homogenous system copy of a HANA-based system using HANA Studio to restore the source backup on the destination HANA DB.

In this scenario, we'll look at transferring a Prod backup and refreshing it in an already operational quality system.
These are the salient steps involved in achieving this

Step 1 ) Take a complete DB backup of the source Database
Step 2) Move the database backup to the Target system
Step 3) Using HANA Studio recover the source db in the target HANA box
Step 4) Supply the license text so that the HANA Studio can automatically apply the license after install
Step 5) Modification of Schema access at the target DB
Step 6) Modify the default key  using the hdbuserstore on the application servers  and DB instance.
Step 7 ) Start sap
Step 8 ) Post activities.


Activities in the Source System :

Step 1 - Backup of the source DB .

Use the HANA studio backup studio to take a complete DB backup either at the disk level or using Backint.

image Courtesy : SAP HANA Backup/Recovery Overview by Andrea Kristen in SCN
Normally, this should suffice to do a DB Refresh, but if you're looking for a point-in-time recovery, you may want to add the backups from the log area as well.


Step 2 ) : Move the database backup to the Target system

Once the backup is complete, you'll need to move it to a target system directory. You should have four unique files with your backup prefix. The prefix in this example is “COMPLETE DATA BACKUP 20122015.”

Activities in the Target system

Step 3 ) Using HANA Studio recover the source db in the target HANA box

→ Shutdown SAP Application alone

→ Open HANA Studio and right click on the SID ( target) where you want to perform the recovery.
You will have to specify the destination location and the Backup Prefix for the HANA studio to recognize the backups .


You can use the option “Initialize Log Area” if you only have a complete data backup and do not intend to recover log segments... This is similar to how Oracle resets logs.

Step 4) Supply the license text so that the HANA Studio can automatically apply the license after install

Your existing HANA Licensing will be invalid after the recovery, thus this is a good time to provide the licence text so that it may be installed automatically. If not, this can be done later by hand.



Continue on with the recovery. Please keep in mind that the configuration of the target and source versions must be same. Is there any setting in the target system that needs to be done manually as part of the Post steps?



Following recovery, you should be able to see the Memory and Host Details in HANA Studio's Overview tab.

You could expect to see all of the schemas under Catalog, but it will fail as seen below. When you try to expand Content, the same thing happens.

The reason for this is that the new SID will most likely be looking for a schema named SAPSID and will be unable to identify one, necessitating a few adjustments in the target system.

Step 6) On the application servers and the DB instance, change the default key hdbuserstore.

  • Go to /usr/sap/<SID>/hdbclient   and execute the below

hdbuserstore set default <dbhost>:<dbport> <dbuser> <dbpassword>

Let's say our target host is host01, the source SID is PRD, the system number is 00, and the source schema is SAPPRD with the password sapprd#!

hdbuserstore set default host01:30015 SAPPRD sapprd#!

The above example is for the Unix system for Windows its a bit different (Refer SAP Note 1709838)


Execute a hdbuserstore list you should find the new Key set as below

KEY DEFAULT
   ENV:host01:30015
User: SAPPRD

This confirms that the key is set .

This has to be done on the appservers , else R3trans -d would fail.


Return to HANA Studio, and the contents should be visible under Catalog and Contents. Under Catalog, you should also discover the source Schema.

Before we start the apps on the target system, there is one more thing that needs to be done.

Modify the /dbs/hdb/schema to SAPPRD ( or whatever your source schema is ) in the DEFAULT profiles.

You are now ready to begin using SAP.

From then, proceed with the regular Post Refresh operations.

A few things to keep in mind

- > Before starting SAP, you may want to disable the btc processes. - > Perform typical post actions like SE06/STMS/BDLS, as well as activities particular to your situation.

No comments:

Labels

sap hana hana database aws s4 hana hana db s4hana conversion steps sap hana azure bw4hana hana migration s4hana migration sap cloud migration steps sap hana migration steps sap hana migration to azure s4hana sap fiori fiori performance fiori erp s4 hana fiori sap fiori app sap fiori client sap fiori launchpad sap s4 hana fiori cisco ecc AI SAP AI abap dumps hana sap S/4HANA S/4HANA Conversion best sap ui5 & fiori training configuration database fiori tutorial on webide free sap ui5 & fiori training s/4 hana sap dumps sap fiori tutorial sap ui5 sap ui5 & fiori sap ui5 & fiori tutorial sara ui5cn 2367245 - Troubleshooting performance issues with SAP BPA Amazon free tier for SAP AWS setup Experience CALL_FUNCTION_NOT_FOUND CCMS Configuration and Use Create New Data Class in SAP (Oracle) Critical top SAP Abap dumps DHCP Clients Not Receiving IP Addresses Download Stack.xml HAN-DB HAN-DB-ENG High CPU Usage Due to Excessive Process Switching How To How to Start and Stop SAP Hana Tenant Database How to change SAP Hana Sql Output results are limited to 5000 Records How to perform SAP Dual Stack Split - Netweaver Inactive Objects in SAP Intercompany transactions in SAP AP / AR : Cross Company Code Transaction Interface Flapping Due to Duplex Mismatch KBA LOAD_PROGRAM_LOST MSSQL shrinking transaction log file Migrating to SAP hana database NAT Overload Causing Internet Access Failure Note 500235 - Network Diagnosis with NIPING OSPF Adjacency Not Forming PRINCE2 Foundation Sample Questions Preparing for S/4HANA Conversion and the MUST know items Push to Download Basket S/4HANA Migration Cockpit S/4JANA SAP BI Support Data Load Errors and Solutions SAP BI/BW Landscape SAP BPA SAP Basis SAP Basis Automation SAP Business Objects SAP CPS SAP Certification SAP FI Certification SAP FI Certification Sample Questions SAP HANA Admin - Cockpit SAP HANA DB Engines SAP HANA Database SAP HANA terminate session connection disconnect cancel kill hang stuck SAP Hana DB restore SAP Hana Numeric Error Codes SAP Landscape SAP Language installation SAP MM and Purchase Order Tables SAP Maintenance Planner SAP Note 500235 SAP R/3 Glossary SAP Readiness Check SAP S/4HANA 1709 Installation Files SAP S/4HANA 2023 SAP S/4HANA 2023 Installation SAP S/4HANA 2023 running SAP S/4HANA Installation SAP Scheduling SAP Solman 7.2 CHARM: SAP Support Package Stack Strategy SAP Support package SAP Upgrade SAP support stack upgrade SP stacks STORAGE_PARAMETERS_WRONG_SET SUSE/SLES/Kernel versions Setup of S/4hana 2023 TSV_TNEW_PAGE_ALLOC_FAILED TSV_TNEW_PAGE_ALLOC_FAILED error Transaction ID Unable to download an SAP Note Unix/Linux Command That Are Helpful For SAP Basis Upgrading SAP Kernel Without Downtime Upgrading windows server 2008 to windows server 2019 What is OSS Notes? SAP SNOTE Tutorial accounting agile ale idoc ale/edi archive FI documents audit auditing auditor aws aws cloud basic type bluefield approach ccms ccmsidb charm copilot datavard dbacockpit download sap note download snote edi idoc electronic data interchange enable sap archiving objects erpprep ffid firefighter fraud functional hana admin how to apply sap security note https://www.erpprep.com/ idoc install install sap fiori installation interfaces intermediate document internal control license key linux version materials management messsage niping test order type port prince2 agile prince2 agile practitioner purchasing quick info s4 hana sap abap dumps sap abbreviations sap activate certification sap activate project manager sap authorization sap aws sap brownfield sap ccms sap ccms configuration sap erp sap error sap grc sap greenfield sap internet demo system sap license sap maintenance certificate sap material management sap meaning sap mm sap mm consultant sap monthly security note sap netweaver sap network diagnostic sap niping sap note sap oss sap patch day sap performance sap performance issue sap purchase order sap s/4hana sap sales and distribution sap sap otc sap sd sap sd certification training sap sd course sap sd jobs sap sd module sap sd online training sap sd training sap sd tutorial sap sd tutorial for beginners sap security sap security note sap snote sap snote tutorial sap solution manager sap sql segregation of duties separation of duties sles slicense smc snote snote in sap system sod conflict solution manager solution maneger stop start hana database suse linux techie trex two step upgrade required waterfall