You are on page 1of 7

FPT INFORMATION SYSTEM CORPORATION

SUPPLY & INSTALLATION OF AN ENTERPRISE


RESOURCE PLANNING (ERP) AND ENTERPRISE ASSET
MANAGEMENT (EAM) SYSTEM FOR EGCB
(Contract No. 27.27.2666.104.02.002.16.F65 under IDA Credit No: 4508 BD)

Restore System Guide

Project code: EGCB


Document code: Restore system guide
Version : 1.0

Dhaka, February 2020

Backup and Restore System Guide Page 1/7


RECORD OF CHANGE

Changed
Version Date Changed Summary of Changes Change Reference
by
V1.0 20-10-2020 HuynhDV3 Create new document

Backup and Restore System Guide Page 2/7


SIGNATURE PAGE

Prepared by: Do Vuong Huynh Date


FIS Basis Member

Reviewed by: Vu Duc Son Date


FIS Project Manager

Approved by: Date


EGCB Project Director

Backup and Restore System Guide Page 3/7


TABLE OF CONTENTS

1. RESTORE SAP ASE DATABASE.....................................................................................6


1.1. Prerequisites............................................................................................................. 6
1.2. Solutions................................................................................................................... 6

Backup and Restore System Guide Page 4/7


TERMINOLOGY AND DEFINITION

Terminology Definition Remark


DB Data Base
OS Operating system
DEV Development
QAS Quality Assurance
PRD Production
ERP Enterprise Resource Planning
V Version
FIS FPT Information System
EGCB Electricity Generation
Company of Bangladesh
<Add more, if needed>

1. RESTORE SAP ASE DATABASE


1.1. Prerequisites
- Login access of syb<sid> user
- Login access of sapsa or sa user.
Backup and Restore System Guide Page 5/7
- Should have proper compress Database dump.
- SAP instance should be stop when executing load database.

1.2. Solutions
1.2.1. Stop sap instance
- Step1: Login QAS servers (10.2.12.61) by root user via ssh tool.
- Step2: Switch to the administrator user by su command:
- Step3: Execute the command stopsap R3
[root@qas-erp ~]# su - qasadm
qas-erp:qasadm 10> stopsap R3
1.2.2. Copy backup file from PRD system to QAS system
- Step1: Login PRD database servers (10.2.13.21) by root user via ssh tool.
- Step2: Execute the command scp to copy backup file to QAS server
o Note:
 PRD backup folder: /backup/daily_backup_egcb/PRD
 How to use scp command:
https://linuxize.com/post/how-to-use-scp-command-to-securely-transfer-files/
1.2.3. Restore QAS database from backup file
- Step1: Login servers by root user via ssh tool.
- Step2: Switch to the administrator user by su command:
- Step3: Execute the command:
[root@qas-erp ~]# su - sybqas
[sybqas@qas-erp ~]$ cd /sybase/QAS/
[sybqas@qas-erp ~]$ source SYBASE.csh
[sybqas@qas-erp ~]$ isql -Usapsa -SQAS -X -PAbc12345
1> use master
2> go
1> load database QAS from '/backup/16102020_backupPRD/PRD_DB/

Backup and Restore System Guide Page 6/7


PRD.DB.20201015.192002.000'
2> go
Successfully 100% execution
1.2.4. Start database
- Step1: Login servers by root user via ssh tool.
- Step2: Switch to the administrator user by su command:
- Step3: Execute the command:
[root@qas-erp ~]# su - sybqas
[sybqas@qas-erp ~]$ cd /sybase/QAS/
[sybqas@qas-erp ~]$ source SYBASE.csh
[sybqas@qas-erp ~]$ isql -Usapsa -SQAS -X -PAbc12345
1> use master

2> go

1> online database QAS

2> go

Successfully Restore an SAP Adaptive Server Enterprise (ASE) database instance on


Linux
1.2.5. Start sap instance
- Step1: Login QAS servers by root user via ssh tool.
- Step2: Switch to the administrator user by su command:
- Step3: Execute the command startsap R3
[root@qas-erp ~]# su - qasadm
qas-erp:qasadm 10> startsap R3

Backup and Restore System Guide Page 7/7

You might also like