我这里使用的操作系统是OEL4.8,完成GC的Agent部署有很多种方法,这里给出最快速的方法:使用agentDownload.linux完成Grid Control Agent的部署安装。 使用这种方法的特点:一次只能部署一个Agent;使用的是从GC服务器上pull的技术;可以针对具体环境对脚本进行修改;非交互性静默类型的操作;纯文本输出等。
3)执行agentDownload.linux完成在Agent的部署安装 命令中“/u01/app/oracle/agent”表示Agent部署的路径。 [oracle@ocmdb1 ~]$ ./agentDownload.linux -b /u01/app/oracle/agent …… …… ……省略输出的log信息…… /u01/app/oracle/agent/agent10g/root.sh needs to be executed by root to complete this installation.
注意安装完成之后,安装日志最后输出的内容,需要在root用户下执行root.sh脚本。
4)在root用户下执行root.sh脚本 [oracle@ocmdb1 ~]$ su - root Password: [root@ocmdb1 ~]# sh /u01/app/oracle/agent/agent10g/root.sh Running Oracle10 root.sh script...
The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/agent/agent10g
Enter the full pathname of the local bin directory: [/usr/local/bin]: The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]:
Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed. Finished product-specific root actions.