Target Properties

The host command is executed using the Enterprise Manager job system. The job system allows you to specify system variables called target properties. The supported target properties are listed in the following table. Note that the available properties change according to the type of target the job is run against.

Name Description Target Type

%emd_root%

Location of Management Agent

Host, Database Instance

%perlbin%

Location of Perl binary used by Management Agent

Host, Database Instance

%TargetName%

Target Name

Host, Database Instance

%TargetType%

Target Type

Host, Database Instance

%orcl_gtp_comment%

Comment

Host, Database Instance

%orcl_gtp_contact%

Contact

Host, Database Instance

%orcl_gtp_deployment_type%

Deployment Type

Host, Database Instance

%orcl_gtp_line_of_bus%

Line of Business

Host, Database Instance

%orcl_gtp_location%

Location

Host, Database Instance

%OracleHome%

Oracle home path

Database Instance

%Port%

Port

Database Instance

%SID%

Database SID

Database Instance

%Role%

Database Role

Database Instance

%MachineName%

Listener Machine Name

Database Instance

Note the following:

  • Property names are case-sensitive.

  • Properties can be used in both the Command and OS Script fields.

  • To use the % character without a target property, escape it with a second %.

  • To use the Database Instance target type, launch Execute Host Command from a group containing one or more host targets and switch the Target Type.

Examples:

To execute a Perl script, passing in the target name as an argument, enter the following in the Command field: %perlbin%/perl myPerlScript %TargetName%

To execute a program in the directory identified by the TEMP environment variable on a Windows host: %%TEMP%%/myProgram