You are on page 1of 8

Take a backup

root> su sybprd

> isql -Usapsa -SPRD -X -w 9999


Password:
> use master
> go

Create a File

> sp_config_dump
> go

> sp_config_dump 'PRDDB',


> @Stripe_dir ='/sybase/Sap_Backup',
> @verify='header',
> @compression='101'
> go

Database

> dump database PRD using config = 'PRDDB'


> go

Dump file PRD.DB.20211002.203233.9.000'

Transaction

> dump transaction PRD using config = 'PRDDB'


> go

Copy these dump of database and transaction on target system via


scp <FileName> root@<TargetSystemIP>:/<TargetLocation>

You need following installation media

Follow below screenshots for installation


Check the size of this device (1 & 2) on source system and put the size greater than source system.
Most of screen Next with Default Setting
Restore screen will prompt during the installation, we need to do following steps
dev:/sybase # su - sybdev
dev /sybase/DEV% isql -Usapsa -SDEV -X
Password:

1> use master


2> go
1> load database DEV from '/Sap_Backup/PRD.DB.20211002.203233.9.000'
2> go

The log segment in the target database 'DEV' is too small (20480 MB) to
accommodate the log segment from the dumped database (37888 MB).

If you get small file issue than you can resize via following commands

1> disk resize name = 'DEV_log_001' size ='20G',


2> go

Or

1> disk resize


2> name = 'DEV_log_001',
3> size = '20G'
4> go
Successfully resized the device 'DEV_log_001' to 41943040 kilobytes.

1> use master


2> go

1> alter database DEV LOG ON DEV_log_001='20G' for load


2> go
Extending database by 1310720 pages (20480.0 megabytes) on disk DEV_log_001
Warning: Using ALTER DATABASE to extend the log segment will cause user
thresholds on the log segment within 128 pages of the last chance threshold to
be disabled.

1> load database DEV from '/Sap_Backup/PRD.DB.20211002.203233.9.000'


2> go

Backup Server session id is: 19. Use this value when executing the
Backup Server: 4.188.1.1: Database DEV: 11333670 kilobytes (1%) LOADED.

You might also like