Customize the email subject for a new profile
You can customize the email subject for the new profile when you create it.
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 name used for the database operation |
PROF1 |
|
Database operation name |
Backup, Data Backup, Data and Archive Logs Backup |
|
SID of the database |
DB1 |
|
Name of the host server |
hostA |
|
Start time of the database operation in the mmdd:hh:ss yyyy format |
April 27 21:00:45 PST 2012 |
|
End time of the database operation in the mmdd:hh:ss yyyy format |
April 27 21:10:45 PST 2012 |
|
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.
-
Enter the following command:
smsap profile create -profile profile [-profile-password profile_password] -repository -dbname repo_service_name -host repo_host -portrepo_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} } ] -osaccount osaccount -osgroup osgroup [-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][-protect [-protection-policy policy_name]] [-notification [-success -email email_address1,email_address2 -subject subject_pattern] [-failure -email email_address1,email_address2 -subject subject_pattern]]
The following is an example showing the email subject pattern:
smsap profile create -profile sales1 -profile-password admin1 -repository -dbname repo2 -host 10.72.197.133 -port 1521 -login -username admin2 -database -dbname DB1 -host 10.72.197.142 -sid DB1 -osaccount oracle -osgroup dba -profile-notification -success -email admin@org.com -subject {profile}_{operation-name}_{db-sid}_{db-host}_{start-date}_{end-date}_{status}