Você está na página 1de 30

Sybase ASE DBA’s

Guide to Actifio Copy


Data Management

Actifio CDS and Sky 8.0


Copyright, Trademarks, and other Legal Matter
Copyright © 2009 - 2018 Actifio, Inc. All rights reserved.
Actifio®, AnyIT®, Dedup Async®, OnVault®, Enterprise Data-as-a-Service®, FlashScan®, AppFlash DEVOPS
Platform®, Copy Data Cloud®, and VDP® are registered trademarks of Actifio, Inc.
Actifio Sky™, Actifio One™, and Virtual Data Pipeline™ are trademarks of Actifio, Inc.
All other brands, product names, goods and/or services mentioned herein are trademarks or property of their
respective owners.
Actifio, Inc., is a provider of data protection and availability products. Actifio’s technology is used in products sold
by the company and products and services sold and offered by its commercial partners. The current list of Actifio
patents is available online at: http://www.actifio.com/patents/
Actifio believes the information in this publication is accurate as of its publication date. Actifio reserves the right
to make changes to information published in this document, including without limitation specifications and
product descriptions, at any time and without notice. This document supersedes and replaces all information
supplied prior to the publication hereof.
THE INFORMATION IN THIS PUBLICATION IS PROVIDED “AS IS.” ACTIFIO, INC. MAKES NO
REPRESENTATIONS OR WARRANTIES OF ANY KIND WITH RESPECT TO THE INFORMATION IN THIS
PUBLICATION, AND SPECIFICALLY DISCLAIMS IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS
FOR A PARTICULAR PURPOSE.
This software and the associated documentation are proprietary and confidential to Actifio. Use, copying, and
distribution of any Actifio software described in this publication requires an applicable software license. Any
unauthorized use or reproduction of this software and the documentation may be subject to civil and/or criminal
liability.
Actifio strives to produce quality documentation and welcomes your feedback. Please send comments and
suggestions to docs@actifio.com.

ii Sybase ASE DBA’s Guide to Actifio Copy Data Management | actifio.com |


Contents

Preface ......................................................................................................................................... v
The ActifioNOW Customer Portal.....................................................................................................................v
Actifio Support Centers ....................................................................................................................................v

Chapter 1 - Sybase DBA’s Introduction to Actifio Copy Data Management ........................ 1


Actifio Data Virtualization .................................................................................................................................1
Capturing Data...................................................................................................................................................2
Replicating Data ................................................................................................................................................2
Accessing Data ..................................................................................................................................................3
Introduction to Actifio Sybase ASE Administration........................................................................................5

Chapter 2 - Preparing a Sybase ASE Database for Protection ............................................... 7


Before You Begin ...............................................................................................................................................7
Enabling Linux Change Block Tracking ............................................................................................................8

Chapter 3 - Protecting a Sybase ASE Database and its Logs ................................................. 9


Protecting a Sybase Database..........................................................................................................................9
Protecting Sybase Database Logs.................................................................................................................. 11

Chapter 4 - Accessing, Recovering, or Restoring Sybase Database ................................... 15


Mount and Refresh Target Sybase Database as a Virtual Application to Database Backup Point-in-Time and/
or Roll-Forward the Log to a Specific Point-in-Time ....................................................................................15
Logs Roll Forward of Target Sybase Database...............................................................................................................18
Mount and Refresh the Target Sybase Database as Warm Standby ...........................................................21

| actifio.com | Sybase ASE DBA’s Guide to Actifio Copy Data Management iii
iv Sybase ASE DBA’s Guide to Actifio Copy Data Management | actifio.com |
Preface

The information presented in this guide is intended for users who are familiar with basic Actifio processes and
procedures as described in Getting Started with Actifio Copy Data Management and who are qualified to
administer Sybase ASE databases.
Your Actifio appliance’s Documentation Library contains detailed, step-by-step, application-specific instructions on how
to protect and access your data. Each guide is in PDF format and may be viewed online, downloaded, or printed on
demand. The following guides will be of particular interest:
• Connecting Hosts to Actifio Appliances
• Virtualizing and Protecting Copy Data with the Application Manager
• Accessing and Recovering Copy Data with the Application Manager
• Restoring Copy Data with the Application Manager

The ActifioNOW Customer Portal


During the configuration and initialization of your Actifio appliance your Actifio representative provided you with a user
name and password for the ActifioNOW customer portal.
From the customer portal you can obtain detailed reports about your Actifio appliance as well as search the portal’s
knowledge base for answers to specific questions.
To log into the ActifioNOW customer portal:
1. Go to: https://now.actifio.com
2. When prompted, enter the user name and password provided by your Actifio representative.

Actifio Support Centers


To contact an Actifio support representative, you can:
• Send email to: support@actifio.com
• Call:
From anywhere: +1.315.261.7501
US Toll-Free: +1.855.392.6810
Australia: 0011 800-16165656
Germany: 00 800-16165656
New Zealand: 00 800-16165656
UK: 0 800-0155019

| actifio.com | Sybase ASE DBA’s Guide to Actifio Copy Data Management v


vi Sybase ASE DBA’s Guide to Actifio Copy Data Management | actifio.com |
1 Sybase DBA’s Introduction to
Actifio Copy Data Management

This chapter introduces Actifio concepts and the procedures used to capture and access databases. It includes:
Actifio Data Virtualization on page 1
Capturing Data on page 2
Replicating Data on page 2
Accessing Data on page 3
Introduction to Actifio Sybase ASE Administration on page 5

Actifio Data Virtualization


An Actifio appliance is a highly scalable copy data management platform that virtualizes application data to improve the
resiliency, agility, and cloud mobility of your business. It works by virtualizing data in much the same way other
technologies have virtualized servers and networks. This enables you to capture data from production systems,
manage it in the most efficient way possible, and use virtual copies of the data however they are needed.

Sybase ASE with Linux Change Block Tracking

Application data is captured at the block level, in application native format, according to a specified SLA. A Golden copy
of that data is created and stored once, and is then updated incrementally with only the changed blocks of data in an
“incremental forever” model. Unlimited virtual copies of the data can be made available instantly for use, without
proliferating physical copies and taking up additional storage infrastructure.

| actifio.com | Sybase ASE DBA’s Guide to Actifio Copy Data Management 1


Capturing Data
Capturing data consists of four simple steps:
1. Add servers that host databases.
2. Create a generic application.
3. Define Actifio Policy Templates and Resource Profiles according to your RPOs and RTOs.
4. Assign Actifio Policy Templates and Resource Profiles to discovered databases.

The Actifio Connector


The Actifio Connector is used to capture selected databases. The Actifio Connector is a small-footprint, lightweight
service that can be installed on either virtual or physical servers.
Specifically, the Actifio Connector:
• Creates a generic application to which data and log volumes will be added.
• Uses Linux changed block tracking to capture data at block level in incremental forever fashion.
• Identifies changes to database data for Actifio’s incremental forever capture strategy.

Replicating Data
Data can be replicated to a second Actifio appliance or to the cloud for recovery, disaster recovery, or test/
development purposes.
Data replication has traditionally been an inhibitor to efficient data management in a geographically distributed
environment. Actifio replication addresses these issues with a global deduplication and compression approach that:
• Drives down overall network usage.
• Eliminates the need for a dedicated WAN accelerator/optimizer.
• Does not require storage array vendor licenses as data is sent from one Actifio appliance to another.
• Is heterogeneous from any supported array to any supported array: Tier 1 to Tier 2 and/or Vendor A to
Vendor B.
• Preserves write-order, even across multiple LUNs.
• Is fully integrated with VMware Site Recovery Manager (SRM) and Actifio Resiliency Director.
• Encrypts data using the AES-256 encryption standard. Authentication between Actifio appliances is
performed using 1024-bit certificates.
Replication is controlled by Actifio Policy Template policies:
• Production to Mirror policies have several options to replicate data to a second Actifio appliance.
• Dedup Backup to Dedup DR policies use a fixed, Actifio proprietary replication engine to replicate data to a
second Actifio appliance. In addition, Dedup Backup to Dedup DR policies allow you to replicate data to two
locations.
• Production to Vault policies use a fixed, Actifio proprietary replication engine to replicate data to the cloud.

2 Sybase ASE DBA’s Guide to Actifio Copy Data Management | actifio.com |


Accessing Data
The Actifio appliance can instantly present a copy of the database rolled forward to a specific point of time. The roll
forward operation is performed from the Actifio Desktop (user interface).
Access options include:
Mounts
LiveClones
Restores
Workflows

Mounts
The Actifio mount function provides instant access to data without moving data. Captured copies of databases can be
rolled forward via the Actifio user interface and mounted on any database server. Application Aware mounts are
described in Chapter 4, Accessing, Recovering, or Restoring Sybase Database.

LiveClones
The LiveClone is an independent copy of data that can be refreshed when the source data changes. The advantage of
LiveClones is that they are independent copies of data that can be incrementally refreshed and masked before being
made available to users. This allows teams such as development and test to ensure they are working on the latest set
of data without having to manually manage the data and not access or interfere with the production environment.

Restores
The restore function reverts the production data to a specified point in time. Restore operations actually move data.
Typically restore operations are performed to restore a database to a valid state after a massive data corruption or
storage array failure. The amount of time required to complete a restore operation depends on the amount of data
involved. Restores are described in Chapter 6, Restoring and Recovering a SAP HANA Database.

Workflows
While SLAs govern the automated capture of a production database, Workflows automate access to the captured
database.
Workflows are built with captured data. Workflows can present data as either a direct mount or as a LiveClone:
• Direct mounts (standard or application aware) work well for data that does not need to be masked prior to
being presented. A mounted copy of data can be refreshed manually or on automatically on a schedule.
Direct mounts allow you to instantly access captured data without actually moving the data.
• A LiveClone is a copy of your production data that can be updated manually or on a scheduled basis. You
can mask sensitive data in a LiveClone prior to making it available to users.
Combining Actifio’s automated data capture and access control with Workflows and their optional data masking
capabilities allows you to create self-provisioning environments. Now, instead of having to wait for DBAs to update
test and development environments, users can provision their own environments almost instantly.
For example, an Actifio administrator can create an SLA Template Policy that captures data according to a specified
schedule. Optionally, the administrator can mark the captured production data as sensitive and only accessible by
users with the proper access rights.
After access rights have been defined and data has been captured, the administrator can create a Workflow that:
• Makes the captured data available as a LiveClone or as a direct mount
• Updates the LiveClone or mountable data on a scheduled or on-demand basis
• (Optional) Automatically applies scripts to the LiveClone’s data after each update. This is useful for masking
sensitive data.

| actifio.com | Sybase ASE DBA’s Guide to Actifio Copy Data Management 3


Once the Workflow completes, users with proper access can provision their environments with the LiveClone or
mountable data via the Actifio Desktop.

Workflow With Masked Social Security Data

4 Sybase ASE DBA’s Guide to Actifio Copy Data Management | actifio.com |


Introduction to Actifio Sybase ASE Administration

Sybase ASE for LVM Linux Change Block Tracking

Actifio Benefits: Sybase ASE Platform

Backup Manual and/or scheduled online backups (incremental forever full snapshots).

Test/Dev Copy Multiple point in time copies and instant Test/Dev refresh

Accelerate and automate Test/Dev provisioning

Migration of Sybase from a physical to a virtualized environment

Recovery Recovery of a database to its most recent state.

Recovery of a database to a specific point in time of data backup, or log backup.

Recovery to the original host or an alternate host.

Backup Catalog view Actifio Desktop

Sybase ASE Configurations Support


Sybase Primary and Standby protection can be set from Primary or the Standby. Protection is at the database level
residing on protected LVM. Transaction log protection is from Primary database only.

| actifio.com | Sybase ASE DBA’s Guide to Actifio Copy Data Management 5


6 Sybase ASE DBA’s Guide to Actifio Copy Data Management | actifio.com |
2 Preparing a Sybase ASE
Database for Protection

This section details the steps involved in preparing a Sybase database for Actifio protection and management:
Before You Begin on page 7
Enabling Linux Change Block Tracking on page 8

Before You Begin


Before you begin, on the Sybase server:
• Sybase database must be residing under LVM and it must not be the boot volume.
• Run the below query to get the Data and Log mount for particular database.
select distinct sde.phyname from master..sysdatabases sda, master..sysdevices sde,
master..sysusages su where su.dbid=sda.dbid and su.vdevno=sde.vdevno and sda.name in
('<DB_NAME>')
• Create user without password to run the quiesce command on the source with sa_role/or with quiesce
privileges
• Run the below command to create the user:
isql -Usa -P<password> -S<Sybase_Server_Name>
1>sp_addlogin actuser, '<password>'
2>go
1>grant role sa_role to actuser
2>go
To set the password to null, run the below command.
1>sp_configure "minimum password length", 0
2>go
1>sp_modifylogin actuser, "min passwd length", "0"
2>go
3>exit
isql -Uactuser -P'<password>' -S<server_name>
> sp_password '<password>', NULL
>go
>sp_configure "minimum password length", 8
>go
• For best results, the LVM volume from which the Sybase volumes are provisioned should have at least
20% free space.
• Install the Actifio Connector on the Sybase server host (see Connecting Hosts to Actifio Appliances.)

| actifio.com | Sybase ASE DBA’s Guide to Actifio Copy Data Management 7


Enabling Linux Change Block Tracking
Before you begin, from the Actifio Desktop, enable Linux change block tracking on the database server from Actifio
Desktop > Domain Manager > Host > Details:

8 Sybase ASE DBA’s Guide to Actifio Copy Data Management | actifio.com |


3 Protecting a Sybase ASE
Database and its Logs

This section includes:


Protecting a Sybase Database on page 9
Protecting Sybase Database Logs on page 11

Protecting a Sybase Database


To protect a Sybase database:
1. From Actifio Desktop > Application Manager Service Menu > New
Application, create a new application to protect data and log volumes of
Sybase database. This will open the Add an Application window.
2. From Add an Application:
a. Select Out-of-Band as an application type and enter an
Application Name to identify this database in the Actifio Desktop.
b. From Select Host drop down, select the Sybase database server.
c. Under Select logical volume , use the green + to add the data and
log volume to Selected volumes on the right.
d. Put "genlvmscript.sh" under "Generic LVM Script Name".
e. Click Add to add this application as generic application.
f. To check, go to Actifio Desktop > Application Manager > Generic.

| actifio.com | Sybase ASE DBA’s Guide to Actifio Copy Data Management 9


7. Set up the scripts. Log into the database server as root and cd to /act: cd /act
Create an /act/scripts directory if it does not already exist:
mkdir scripts
cd /act/scripts
8. Copy the Actifio-provided script /act/act_scripts/sybase/outofband to /act/scripts. This contains 4 scripts:
genlvmscript.sh
freeze.xxx
thaw.xxx
act_Sybase_Src.xxx
9. Provide 755 permission: chmod 755 *
10. Get the application id for the created generic application. From the Application Manager, mouse over and
get the application id, for example 5534800.

Note: You can also get this application id from the appliance command line; run udsinfo lsapplication.

11. Modify freeze, thaw and configuration file script extension from "xxx" to the application id from step 4
above (for example: 5534800).
From the command line:
mv freeze.xxx freeze.5534800
mv thaw.xxx thaw.5534800
mv act_Sybase_Src.xxx act_Sybase_Src. 5534800
12. Edit and modify the act_Sybase_Src.5534800 script for the input parameters:
vi act_Sybase_Src.5534800
Replace the line:
OSUSER=<Sybase Binary Owner>
SRC_SYBASE_SQLD="<Sybase Software Home Location>"
SRC_BACKUP_USER="<DB Username who has Backup Privs>"
#SRC_USER_PASSWD="<SRC_BACKUP_USER password if PASSWORD IS NOT SET TO NULL>"
PROTECTED_LVM_LIST="<Comma separated List of LVM Protected under Actifio>"
SRC_DBNAME="< Comma separated List of Source DB Names >"
SRC_SERVER_NAME="<Sybase Server Name>"
MANIFEST_FILE_LOC="<Manifest file Location (Must be one of the protected LVM)>"
With
OSUSER=sybase
SRC_SYBASE_SQLD=/opt/sybase/OCS-16_0
SRC_BACKUP_USER="actuser"
PROTECTED_LVM_LIST="/actprd/data,/actprd/log"
SRC_DBNAME="primarydb,sybasedb"
SRC_SERVER_NAME=sybase01
MANIFEST_FILE_LOC="/actprd/data"
Where
OSUSER= Operating system user who owns the Sybase Binary Owner
SRC_SYBASE_SQLD=Sybase Software Home Location
Home Location can be retrieved by running ps -ef | grep sybase
SRC_BACKUP_USER=DB Username who has Backup Privileges created in Before You Begin on page 7.

10 Sybase ASE DBA’s Guide to Actifio Copy Data Management | actifio.com |


#SRC_USER_PASSWD=Backup User Password in case password is not set to null
PROTECTED_LVM_LIST=Comma separated List of LVM for data and log, Protected under Actifio
SRC_DBNAME=Comma separated List of Source Database Names "
SRC_SERVER_NAME=Sybase Server Name
MANIFEST_FILE_LOC=Provide one of the mount path of LVM from the list. This will be used to save Actifio
Manifest file for application consistency
13. Save the file.
14. To protect the database, open the Actifio Desktop to the Application Manager, Protect tab. Select the
database, then under Protection select an SLA template from Template drop-down list, and a resource
profile from the Profile drop-down list and click Protect.
You can run the snapshot job immediately as an on-demand job, or wait for the scheduler to run the job
during the time period specified in the template.

Protecting Sybase Database Logs

Note: Sybase database logs can be protected from primary only.

To protect SYBASE database logs:


1. Discover the file system (Sybase database log backup path) by running Discover App from the Actifio
Desktop (if not discovered already).
2. The log backup mount path will appear in the Actifio Desktop under App > Filesystem:

3. To restrict the log backup path set the "Start Paths" under Advanced settings of this application.
4. Set up the scripts:
Log into the database server as root.
cd to /act (cd /act)

| actifio.com | Sybase ASE DBA’s Guide to Actifio Copy Data Management 11


Create /act/scripts directory if not there:
mkdir scripts
cd /act/scripts
Copy the Actifio-provided log backup scripts from /act/act_scripts/sybase/outofband/log to /act/scripts
This contains 5 files:
appid.xxx
freeze.xxx
thaw.xxx
act_sybase_logbackup.sh
act_Sybase_logbackup.conf
Provide 755 permission: chmod 755 *
5. Get the application id for the created filesystem application. From the Application Manager, mouse over and
get the application id.

Note: Another way to get the application id is to log into the appliance and run udsinfo lsapplication.

6. Modify the appid.xxx, freeze.xxx, ,thaw.xxx script extension from "xxx" to the appid from Step 4 (for
example: 5542334)
From the command line:
mv thaw.xxx thaw.5542334
mv freeze.xxx freeze.5542334
mv appid.xxx appid.5542334
7. Edit and modify act_Sybase_logbackup.conf script for log cleanup input parameters.
vi act_Sybase_logbackup.conf
OSUSER="<Sybase Binary Owner>"
SRC_SYBASE_SQLD="<Sybase Software Home Location>"
SRC_BACKUP_USER="<DB Username who has Backup Privs>"
#SRC_USER_PASSWD="<SRC_BACKUP_USER password if PASSWORD IS NOT SET TO NULL>"
SRC_DBNAME="<Comma separated List of Source DB Names>"
SRC_SERVER_NAME="<Sybase Server Name>"

12 Sybase ASE DBA’s Guide to Actifio Copy Data Management | actifio.com |


LOG_BKP_LOC="<Sybase Log Backup Path>"
BKP_LOG_RETENTION="<Log backup Retention period (# of day's)>"
With:
OSUSER=sybase
SRC_SYBASE_SQLD=/opt/sybase/OCS-16_0
SRC_BACKUP_USER="actuser"
#SRC_USER_PASSWD=
SRC_DBNAME="primarydb,sybasedb"
SRC_SERVER_NAME=sybase01
LOG_BKP_LOC=/home/sybase/log
BKP_LOG_RETENTION=2
Where:
OSUSER= Operating system user who owns the Sybase Binary Owner
SRC_SYBASE_SQLD=Sybase Software Home Location
(Home Location can be retrieved by running ps -ef | grep sybase)
SRC_BACKUP_USER=DB Username who has Backup Privileges created in Before You Begin on page 7.
#SRC_USER_PASSWD=Backup User Password in case password is not set to null
SRC_DBNAME=Comma separated List of Source Database Names "
SRC_SERVER_NAME=Sybase Server Name
LOG_BKP_LOC=Sybase Log Backup path
BKP_LOG_RETENTION=Log backup Retention period (# of day's)
8. To protect the database, open the Actifio Desktop to the Application Manager, Protect tab. Select the
database, then under Protection select an SLA template from Template drop-down list, and a resource
profile from the Profile drop-down list and click Protect.
You can run the snapshot job immediately as an on-demand job, or wait for the scheduler to run the job
during the time period specified in the template.

| actifio.com | Sybase ASE DBA’s Guide to Actifio Copy Data Management 13


14 Sybase ASE DBA’s Guide to Actifio Copy Data Management | actifio.com |
4 Accessing, Recovering, or
Restoring Sybase Database

Use cases:
• Mount and Refresh Target Sybase Database as a Virtual Application to Database Backup Point-in-Time and/
or Roll-Forward the Log to a Specific Point-in-Time: To present and refresh a read-write virtual copy of the
Sybase database on a new target to a scheduled database backup point in time and or Mount and Refresh
a target Sybase database with roll-forward of log.
• Mount and Refresh the Target Sybase Database as Warm Standby: To add a virtual standby as warm
standby database to the source primary.

Mount and Refresh Target Sybase Database as a Virtual Application to


Database Backup Point-in-Time and/or Roll-Forward the Log to
a Specific Point-in-Time
Pre-requisites
Create a Sybase user on the target server with sa_role. This is required to rename deivces and databases.
1. On the target node, run the below command to create the password less user.
Log into the target database node as Sybase OS user. For example: su - Sybase (for Sybase as OS user
who owns the Sybase binary).
isql -Usa -P<password> -S<Sybase_Server_Name>
1> sp_addlogin actuser, '<password>'
2> go
1> grant role sa_role to actuser
2> go
To set the password to null, run the below command.
1> sp_configure "minimum password length", 0
2> go
1> sp_modifylogin actuser, "min passwd length", "0"
2> go
3> exit
isql -Uactuser -P'<password>' -S<server_name>
>sp_password '<password>', NULL
>go
>sp_configure "minimum password length", 8
>go
2. On the target node, set up the scripts:
Log into the target database node as root. cd to /act (cd /act).
Create /act/scripts directory if not there:
mkdir scripts
cd /act/scripts

| actifio.com | Sybase ASE DBA’s Guide to Actifio Copy Data Management 15


Copy the Actifio-provided scripts from /act/act_scripts/Sybase/outofband/clone to target node /act/scripts:
act_Pre_Target_Primary.sh
act_Post_Target_Primary.sh
act_Conf_Target_Primary.conf
act_Sybase_logrecovery.sh
Edit and update the parameter of the configuration file act_Conf_Target_Primary.conf for the target
clone operation:
MANIFEST_FILE_LOC="<Manifest file Location (from the source)>"
OSUSER="<Operating system user who owns Sybase Binary>"
TARGET_MNT_PNT="<TARGET Mount Point Name for Actifio image mount>"
TARGET_SYBASE_SQLD="<Sybase Software Home Location>"
TARGET_DB_USER="<Target Sybase DB Username>"
#TARGET_DBUSER_PASSWD="<(Optional) DB Username Password if the password is not set to
null>"
TARGET_SERVER_NAME="<Sybase Server Name>"
SRC_DBNAME="<Comma separated List of Source DB Names >"
#NEWDBNAME_PREFIX="<(Optional)Prefix string to rename all Source Databases>"

Note: TARGET_DBNAME_LIST: uncomment and set this value if database name on target is different than
source.

#TARGET_DBNAME_LIST="<List of New Database Name Format:


SRC_DB_NAME1:NEW_DB_NAME1,SRC_DB_NAME2:NEW_DB_NAME2>"
# Below parameter is needed for roll forward of log only
#LOG_RECOVERY="<Log Recovery Required YES/NO >"
#LOG_BKP_LOC="<Log Backup Mount Point >"
#UNTIL_TIME="<Point in time Recovery Format:YYYYMMDDHH24MI>"

Note: 
TARGET_DBNAME_LIST is to change each individual database name from source to target. 
NEWDBNAME_PREFIX is to change all the source database name by using the prefix value.
If both TARGET_DBNAME_LIST and NEWDBNAME_PREFIX are not set, then the source database name
will be retained on the target clone copy.
If both values are set then the clone will error out.

Example:
MANIFEST_FILE_LOC=/actprd/data
OSUSER=sybase
TARGET_MNT_PNT=/primary
TARGET_SYBASE_SQLD=/opt/sybase/OCS-16_0
TARGET_DB_USER="actuser"
TARGET_DBUSER_PASSWD=
TARGET_SERVER_NAME=sybase01
SRC_DBNAME="primarydb,sybasedb"
TARGET_DBNAME_LIST="primarydb:devprimarydb,sybasedb:devsybasedb"
#LOG_RECOVERY=
#LOG_BKP_LOC=
#UNTIL_TIME=
Save the file.

16 Sybase ASE DBA’s Guide to Actifio Copy Data Management | actifio.com |


Procedure
Now that the scripts are set up, the rest of the steps are performed in the Actifio Desktop.
1. Open the Actifio Desktop to the Application Manager and select the snapshot image.
2. From the gear icon dropdown menu, select Mount. The Mount window opens.

3. Provide a label as needed. This is optional.


4. In the Select Host drop down list, select the Sybase target database nodes.

5. Provide a mount point name.


6. Click Mount. This will mount the data volume to the target server as /primary
7. Log into the target database server as root.
8. Change the directory to /act/scripts on the target host and run the script act_Post_Target_Primary.sh. This
will bring up Sybase services and database online.

| actifio.com | Sybase ASE DBA’s Guide to Actifio Copy Data Management 17


Note: Note: To run this script from command line, edit act_Post_Target_Primary.sh and uncomment these
two lines: 
#export ACT_JOBTYPE="mount"
#export ACT_PHASE="post"
If running from workflow using these scripts as pre/post, make sure these two lines are commented.

9. Run the act_Post_Target_Primary.sh script:


./act_Post_Target_Primary.sh
10. If you have protected the database logs, and if you want to roll forward the logs, continue below to Logs
Roll Forward of Target Sybase Database on page 18.

Logs Roll Forward of Target Sybase Database


For a point in time mount and refresh of a target database, first modify the configuration file act_Conf_Target_Primary
as defined in the step 1 of Mount and Refresh Target Sybase Database as a Virtual Application to Database Backup
Point-in-Time and/or Roll-Forward the Log to a Specific Point-in-Time on page 15, and then:
1. On the target node, edit and update the parameter of the configuration file "act_Conf_Target_Primary.conf "
for:
#LOG_RECOVERY="<Log Recovery Required YES/NO >"
#LOG_BKP_LOC="<Log Backup Mount Point >"
#UNTIL_TIME="<Point in time Recovery Format:YYYYMMDDHH24MI>"
Uncomment and set the above three parameters:
Example:
LOG_RECOVERY=YES
LOG_BKP_LOC=/sybaselog
UNTIL_TIME="201803070158"
Save the file.
2. Open the Actifio Desktop to the Application Manager and from the protected log backup file system
application select the Snapshot Image
3. From the gear icon dropdown menu, select Mount. The Mount window opens:

4. Provide a label as needed. This is optional

18 Sybase ASE DBA’s Guide to Actifio Copy Data Management | actifio.com |


5. In the Select Host drop down list, select Sybase target database node.
6. Provide a mount point name

7. Click Mount. This will mount the data volume to the target server as /sybaselog
8. Change the directory to /act/scripts on target host and run the script act_Post_Target_Primary.sh. This will
bring up Sybase database online with roll-forward of log.

Note: Note: To run this script from command line, edit act_Post_Target_Primary.sh and uncomment these
two lines: 
#export ACT_JOBTYPE="mount"
#export ACT_PHASE="post"
If running from workflow using these scripts as pre/post, make sure these two lines are commented.

9. Run the act_Post_Target_Primary.sh script:


./act_Post_Target_Primary.sh

To Unmount and Delete the Image


To unmount and delete any previously mounted image:
1. Log into the target database server as root.
2. cd /act/scripts
3. Run the pre script to stop and clean up any previously mounted image.

Note: Note: If running from workflow using these scripts as pre/post, make sure these two lines are
commented. 
#export ACT_JOBTYPE="unmount"
#export ACT_PHASE="pre"
To run this script from command line, edit act_Pre_Target_Primary.sh and uncomment the above two lines

4. Run the act_Pre_Target_Primary.sh script


./act_Pre_Target_Primary.sh

| actifio.com | Sybase ASE DBA’s Guide to Actifio Copy Data Management 19


5. Open the Actifio Desktop to the Application Manager.
6. From the protected application, click on the Restore tab and select the mounted image from the ACTIVE
IMAGES window.
7. Click the gear wheel and select Unmount & Delete.

8. The Unmount window opens. Submit the job.

Confirming the Mounted Image Deletion

20 Sybase ASE DBA’s Guide to Actifio Copy Data Management | actifio.com |


Mount and Refresh the Target Sybase Database as Warm Standby
To add a virtual standby as warm standby database to the source primary:
1. On Target node set up the scripts:
Login to target database node as root.
cd to /act (cd /act)
Create an /act/scripts directory if it does not exist:
mkdir scripts
cd /act/scripts
Copy the Actifio-provided scripts from /act/act_scripts/sybase/outofband/clone to target node /act/ scripts
folder.
act_Post_Target_Standby.sh
act_Pre_Target_Standby.sh
act_Conf_Target_Standby.conf
Edit and update the parameter of the configuration file "act_Conf_Target_Standby.conf"
MANIFEST_FILE_LOC="<Manifest file Location (from the source)>"
OSUSER="<Sybase Binary Owner>"
TARGET_MNT_PNT="<TARGET Mount Point Name for Actifio image mount>"
TARGET_SYBASE_SQLD="<Target Sybase home location>"
TARGET_DB_USER="<Target Sybase DB Username>"
#TARGET_DBUSER_PASSWD="<(Optional) DB username password if the password is not set to
null>"
TARGET_SERVER_NAME="<Target Sybase server name>"
#SRC_DBNAME="<(Optional)Comma separated list of Source DB Names>"
#NEWDBNAME_PREFIX="<(Optional)Prefix string to rename all Source Databases>"
#TARGET_DBNAME_LIST="<(Optional)List of New Database Name Format:
SRC_DB_NAME1:NEW_DB_NAME1,SRC_DB_NAME2:NEW_DB_NAME2>"
With
MANIFEST_FILE_LOC=/actprd/data
OSUSER=sybase
TARGET_MNT_PNT=/pritostd
TARGET_SYBASE_SQLD=/opt/sybase/OCS-16_0
TARGET_DB_USER="actuser"
TARGET_SERVER_NAME=sybase01
2. Open the Actifio Desktop to the Application Manager Restore tab. Select the database, and then select the
snapshot image.
3. From the gear icon dropdown menu, select Mount. The Mount window opens.

| actifio.com | Sybase ASE DBA’s Guide to Actifio Copy Data Management 21


4. Provide a label as needed. This is optional.
5. In the Select Host drop down list, select the Sybase target database node.
6. Provide a mount point name.

7. Click Mount. This will mount the data volume to the target server as /standby.
8. On the target host, log in as root and change the directory to /act/scripts and execute the script
act_Post_Target_Standby.sh as:
To run this script from command line, open the act_Post_Target_Standby.sh script and uncomment these
two lines:
#export ACT_JOBTYPE="mount"
#export ACT_PHASE="post"
9. Run the act_Post_Target_Standby.sh script:
./act_Post_Target_Standby.sh

Note: If running from workflow using this script as pre/post, make sure these two lines are commented

This will bring up the Sybase database in warm standby mode.

22 Sybase ASE DBA’s Guide to Actifio Copy Data Management | actifio.com |


How to Unmount and Delete the Image
1. Log into the target server as root.
2. cd /act/scripts
3. Run the pre script to stop and cleanup any previously mounted image:
To run this script from command line, edit act_Pre_Target_Standby.sh and uncomment these two lines:
#export ACT_JOBTYPE="unmount"
#export ACT_PHASE="pre"

Note: If running from workflow using these script as pre/post, make sure these two lines are commented.

4. Run the act_Pre_Target_Standby.sh script


./ act_Pre_Target_Standby.sh
5. Open the Actifio Desktop to the Application Manager.
6. From the target, click on restore tab and select the mounted image from the Active Image panel at the
bottom.
7. Click the gear wheel and select Unmount & Delete.

8. The Unmount window opens.Submit the job.

| actifio.com | Sybase ASE DBA’s Guide to Actifio Copy Data Management 23


24 Sybase ASE DBA’s Guide to Actifio Copy Data Management | actifio.com |

Você também pode gostar