Oracle Audio Technologies 9i Ptgservices.tcl Parameters, Parameter Value in Example Description

Models: 9i

1 140
Download 140 pages 57.75 Kb
Page 85
Image 85

Setting up the ptg_services.tcl File

set HostName($NEW_PARAMETER_NAME) $Host;

set tnsaddress($NEW_PARAMETER_NAME) "(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = TRACE_DB_HOSTNAME)(PORT = TRACE_DB_ PORT)))(CONNECT_DATA=(SID=TRACE_DB_SID)(ORACLE_HOME=TRACE_DB_ORACLE_ HOME)(SERVER=DEDICATED)))"

In the following example a new parameter (ServiceName2) is added and the values for the PTG_INSTANCE_NAME, TRACE_DB... are set. For this example the listed parameters are replaced with the values in the following. The values are similar to the tnsnames.ora configuration.

Table 6–1 ptg_services.tcl Parameters

Parameter

Value in Example

Description

 

 

 

NEW_PARAMETER_NAME

ServiceName2

Parameter name declaration.

PTG_INSTANCE_NAME

PTG2

The Wireless Edition instance

 

 

name.

TRACE_DB_HOSTNAME

ptgserver-sun.us.oracle.com

The host name of the

 

 

database log database.

TRACE_DB_PORT

1521

The port of the database

 

 

listener.

TRACE_DB_SID

ptgdev

The SID of the log database.

TRACE_DB_ORACLE_

/private/oracle/8.1.7

The Oracle home directory.

HOME

 

 

 

 

 

#Example:

#The Service name "PTG2" (Wireless Edition Instance name) is a subnode in the

#Navigator tree

#In the line below, just append the new parameter name

#i.e. ServiceName2. Don’t duplicate this line.

global Parameters ServiceType HostName tnsaddress argv ServiceName2

set Parameters(oracle_sysman_ptg) {ServiceType HostName tnsaddress };

set Host [lindex $argv 0];

#Lines below need to be duplicated every time a new instance is added set ServiceName2 PTG2;

lappend ServiceNames $ServiceName2;

set ServiceType($ServiceName2) oracle_sysman_ptg;

Oracle Enterprise Manager 6-11

Page 85
Image 85
Oracle Audio Technologies 9i manual Ptgservices.tcl Parameters, Parameter Value in Example Description