Skip to main content
SnapManager for SAP

Customize the email subject for a new profile

Contributors

You can customize the email subject for the new profile when you create it.

About this task

You can customize the email subject by using the {profile}_{operation-name}_{db-sid}_{db-host}_{start-date}_{end-date}_{status} pattern or enter your own text.

Variable name Description Example value

profile

Profile name used for the database operation

PROF1

operation-name

Database operation name

Backup, Data Backup, Data and Archive Logs Backup

db-sid

SID of the database

DB1

db-host

Name of the host server

hostA

start-date

Start time of the database operation in the mmdd:hh:ss yyyy format

April 27 21:00:45 PST 2012

end-date

End time of the database operation in the mmdd:hh:ss yyyy format

April 27 21:10:45 PST 2012

status

Database operation status

Success

If you do not provide any value for the variables, then SnapManager displays the following error message: Missing value(s) -subject.

Step
  1. Enter the following command:

    smsap profile create -profile profile [-profile-password profile_password] -repository -dbname repo_service_name -host repo_host -port repo_port -login -username repo_username -database -dbname db_dbname -host db_host [-sid db_sid] [-login-username db_username -password db_password -port db_port] [-rman {-controlfile | {-login -username rman_username -password rman_password -tnsname rman_tnsname} } ] [-retain [-hourly [-count n] [-duration m]] [-daily [-count n] [-duration m]] [-weekly [-count n] [-duration m]] [-monthly [-count n] [-duration m]]] [-comment comment][-snapname -pattern pattern][ [ ]] [-notification [-success -email email_address1, email_address2 -subject subject_pattern] [-failure -email email_address1, email_address2 -subject subject_pattern]]