bash-2.05# ovdbsetup -o
Entering Phase 1 (ovdbsetupo1.sh)
ovdbsetup for Oracle
Please enter the value for ORACLE_SID [openview]:
Please enter the value for ORACLE_BASE:
/opt/oracle
Please enter the value for ORACLE_HOME:
/opt/oracle/product/9.2.6
ovdbsetupo1.sh: Error: Directory for ORACLE_HOME does not exist !
A Default of /opt/oracle/product/ will be used
/opt/OV/bin/ovdbsetupo1.sh: /opt/oracle/product//bin/svrmgrl: not found
ovdbsetupo1.sh: Error: Cannot find Oracle database programs sqldba, svrmgrl or sqlplus in /opt/oracle/product//bin.
If you need to restart this script please shutdown
this Oracle instance with svrmgrl, sqldba, or sqlplus.
bash-2.05# ovdbsetup -o
Entering Phase 1 (ovdbsetupo1.sh)
ovdbsetup for Oracle
Please enter the value for ORACLE_SID [openview]:
Please enter the value for ORACLE_BASE:
/opt/oracle
Please enter the value for ORACLE_HOME:
/opt/oracle/product/9.0.6
Oracle release is 9.2.0 (from sqlplus)
Please enter the Oracle DBA user [oracle]:
Please enter the data directory [/u01/oradata/openview]:
/opt/oradtat/openview
Please enter the index directory [/u01/oradata/openview]:
/opt/oradtat/openview
Please enter Character set to use [WE8ISO8859P1]:
Creating the database. This may take some time ...
spool file is: /opt/oracle/admin/openview/create/crdbov1.lst
Entering Phase 2 (ovdbsetupo2.sh)
Configuring openview instance
Please enter the existing password for Oracle user 'system' [manager]:
spool file is: /opt/oracle/admin/openview/create/crdbov2.lst
ovdbsetupo2.sh: 1 errors have been found, the first 5 are:
ORA-29807: specified operator does not exist
Please check the spool file
/opt/oracle/admin/openview/create/crdbov2.lst for more information.
Ignore the errors codes:
ORA-01081, ORA-00942,
ORA-01432, ORA-01434, ORA-01471,
ORA-01918, ORA-01919, ORA-01921, ORA-01933,
ORA-02289, ORA-04043
Note also that Oracle error codes frequently change
from release to release.
It may be possible that if the following connect check works,
that your database was sucessfully built and configured.
Checking connection to DB openview...
Connected to openview database.
Potential errors occurred configuring the Oracle database.
Do you want to setup the NNM tablespaces and users [N]?
y
Entering Phase 3 (ovdbsetupo3.sh)
Will you export topology data into
the Oracle openview database (y/n) ? [y]
Will your installation export snmp trend
(data collector) data in the Oracle database (y/n) ?[n]
y
Answers to the following questions will be used to estimate
RDBMS disk requirements for NNM SNMP Data Collector data.
Default answers are provided within []'s. If necessary,
allocations may be altered later using mechanisms provided
by Oracle. See the "Oracle Server Administrator's Guide"
for details.
If at any point, you wish to abort this program
(perhaps to research your data collection needs),
simply press Ctrl-C.
On how many nodes (approximately) will you be collecting SNMP data? [200]
How many MIB objects (average) will you be collecting per node? [10]
On how many instances per node (average) will you be collecting data? [10]
Will you be exporting this data in raw or reduced form? (raw/red) [red]
What reduction interval, in minutes, will be used? [60]
How long will reduced data reside in Oracle before being deleted (days)? [30]
Disk space to be allocated for data collector data:
Data tablespace: 822 MB
Index tablespace: 548 MB
Temporary tablespace: 82 MB
Do you wish to revisit the data collection questions? (y/n)
n
Enter password for Oracle user ovdb [ovdb]
spool file is: /opt/oracle/admin/openview/create/crdbov3.lst
Oracle configuration for Network Node Manager completed
Next you will be prompted for the directory containing the
SQLNET/NET8 configuration files for this Oracle installation.
If you are using an existing database and you are unsure of
this directory, it is recommended that you contact your
database administrator for assistance.
If these files cannot be located, you may accept the default
location in the following prompt.
Please enter the full path name of the directory that
contains the SQLNET/NET8 configuration files [/var/opt/oracle]
Creating new /var/opt/oracle/listener.ora
Creating new /var/opt/oracle/tnsnames.ora
Appending "ov_net" to /var/opt/oracle/tnsnames.ora
Creating new /var/opt/oracle/sqlnet.ora
Regenerating libclntsh.so for Oracle 9
ln: cannot create libclntsh.so: File exists
LSNRCTL for Solaris: Version 9.2.0.6.0 - Production on 27-NOV-2008 15:42:43
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Starting /opt/oracle/product/9.0.6/bin/tnslsnr: please wait...
TNSLSNR for Solaris: Version 9.2.0.6.0 - Production
System parameter file is /var/opt/oracle/listener.ora
Log messages written to /opt/oracle/product/9.0.6/network/log/listener.log
Trace information written to /opt/oracle/product/9.0.6/network/trace/listener.trc
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=openview)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=itsm001)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=itsm001)(PORT=1526)))
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=openview))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Solaris: Version 9.2.0.6.0 - Production
Start Date 27-NOV-2008 15:42:44
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level admin
Security OFF
SNMP OFF
Listener Parameter File /var/opt/oracle/listener.ora
Listener Log File /opt/oracle/product/9.0.6/network/log/listener.log
Listener Trace File /opt/oracle/product/9.0.6/network/trace/listener.trc
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=openview)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=itsm001)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=itsm001)(PORT=1526)))
Services Summary...
Service "openview.itsm001" has 1 instance(s).
Instance "openview", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
Validate User/password in oracle database
Changing Data Warehouse configuration to use oracle
Validate ovdw.configuration using ovdbcheck
Creating tables
Disabling embedded database
Name PID State Last Message(s)
OVsPMD 422 RUNNING -
ovsessionmgr 423 RUNNING Initialization complete.
ovwdb 424 RUNNING Initialization complete.
pmd 425 RUNNING Initialization complete.
ovtopmd 496 RUNNING Connected to native database "openview".
ovuispmd 504 RUNNING Initialized. 0 ovw clients registered.
ovtrapd 497 RUNNING Initialization complete.
ovactiond 498 RUNNING Initialization complete.
ovalarmsrv 499 RUNNING Initialization complete.
genannosrvr - unknown (Does not communicate with ovspmd.)
httpd - unknown (Does not communicate with ovspmd.)
netmon 505 RUNNING Initialization complete.
snmpCollect 506 RUNNING Initialization complete.
ovrequestd 427 RUNNING Initialization complete.
ovctrl - unknown (Does not communicate with ovspmd.)
ovdbcheck 1140 RUNNING Connected to ODBC datasource: OVoraWire.
ovoacomm 1141 DONE Database is not running
ovas 1144 RUNNING Initialization complete.
opc - UNSTARTABLE -
ovspmd: Attempt to start HP OpenView services is complete.
ovdbsetupo3.sh phase for NNM configuration completed.
bash-2.05#
靠,发现OVO起不来了,
#######################
将/var/opt/oracle/*.ora MV到 $ORACLE_HOME/network/admin/*.ora
然后将方该文件用户和组改为oracle 应用程序用户和组。
应该是上面敲快了回车,把文件放到错的地方了.
但再次启动发现仍然不行,
bash-2.05$ ls -l /opt/oradtat/openview/
total 1535392
-rw-r----- 1 oracle dba 228597760 Nov 27 15:58 OV_DATA.dbf
-rw-r----- 1 oracle dba 144711680 Nov 27 15:58 OV_INDEX.dbf
-rw-r----- 1 oracle dba 214966272 Nov 27 15:58 RBS1_1.dbf
-rw-r----- 1 oracle dba 7053312 Nov 27 16:02 control01.ctl
-rw-r----- 1 oracle dba 7053312 Nov 27 16:02 control02.ctl
-rw-r----- 1 oracle dba 7053312 Nov 27 16:02 control03.ctl
-rw-r----- 1 oracle dba 5243392 Nov 27 15:58 redo01.log
-rw-r----- 1 oracle dba 5243392 Nov 27 15:59 redo02.log
-rw-r----- 1 oracle dba 5243392 Nov 27 15:58 redo03.log
-rw-r----- 1 oracle dba 157294592 Nov 27 15:58 system_1.dbf
-rw-r----- 1 oracle dba 2105344 Nov 27 15:58 temp_1.dbf
-rw-r----- 1 oracle dba 1056768 Nov 27 15:58 tools_1.dbf
bash-2.05$ env |grep ORA
天呀,竟然没有建立OVO的数据文件。
######################
bash-2.05# cd /opt/OV/bin/OpC/install/
bash-2.05# ls
cluster_deploy.sh opc_sec_register_svr.sh opclic opctranm
inst_usr_svr.sh opc_sec_verify.sh opcpwcrpt opcupgrade
opc.introfile opcagtutil opcpwd rm_opc.sh
opc_dflt_lang opccat_install opcsareg subagtutil
opc_export.awk opccltconfig opcsv_version upd_vers.sh
opc_getmsg opcconfig opcsvinfo.README
opc_ip_addr opccvtqdsv opcsvreg
opc_rexec opcdeploy opctabledef
bash-2.05# ./opcc
opccat_install opccltconfig opcconfig opccvtqdsv
bash-2.05# ./opcconfig
----------------------------------------------------------
This script configures HP OpenView Operations on Management Server
----------------------------------------------------------
NOTE: Umask is set from 022 to 027
WARNING: After ending this script the umask will be set back to 022
Lockfile /var/opt/OV/share/tmp/OpC/mgmt_sv/opcsw.lock checked
Using database codeset WE8ISO8859P1
and NLS_LANG for the database setup
QUERY: Please enter ORACLE_BASE (e.g. /opt/oracle): ?
QUERY: Please enter ORACLE_HOME (e.g. /opt/oracle/product/9.2.0): ? /opt/oradtat/openview/^H^H^H^H^H^C
----------------------------------------------------
NOTE: While running this script, there occurred no errors or warnings
----------------------------------------------------
For further information see the logfile
/var/opt/OV/log/OpC/mgmt_sv/opcsw_inst.log. All essential steps are
also described in the HP OpenView Operations Installation Guide
bash-2.05# ./opcconfig
----------------------------------------------------------
This script configures HP OpenView Operations on Management Server
----------------------------------------------------------
NOTE: Umask is set from 022 to 027
WARNING: After ending this script the umask will be set back to 022
Lockfile /var/opt/OV/share/tmp/OpC/mgmt_sv/opcsw.lock checked
Using database codeset WE8ISO8859P1
and NLS_LANG for the database setup
QUERY: Please enter ORACLE_BASE (e.g. /opt/oracle): ? /opt/oracle
QUERY: Please enter ORACLE_HOME (e.g. /opt/oracle/product/9.2.0): ? /opt/oracle/product/9.0.6
NOTE: LANG variable checked, currently set to 'C'
NOTE: NLS_LANG variable currently not set, setting to
'american_america.WE8ISO8859P1'
QUERY: Do you want to configure the database automatically (y/n) ? y
NOTE: Stopping HP OpenView Platform services, if they are running ...
NOTE: Starting opcdbsetup. Please wait...
OVO database configuration script opcdbsetup.
Called on Thu Nov 27 16:05:11 CST 2008.
If you want to use an existing database, please enter the password
for the Oracle user 'system'. For a new database creation you can
accept the default.
QUERY: Password of Oracle user 'system' [manager]: ?
This script will create two new Oracle users: opc_op and opc_report.
QUERY: Please enter the password of Oracle user 'opc_op': ? opc_op
QUERY: Please confirm the password of Oracle user 'opc_op': ? opc_op
QUERY: Please enter the password of Oracle user 'opc_report': ? opc_report
QUERY: Please confirm the password of Oracle user 'opc_report': ? opc_report
QUERY: Do you want to enable automatic database startup at system boot
time (y/n) [y] ? y
QUERY: Please enter the Oracle Net listener alias [ov_net]: ?
Core database already created.
Checking connection to DB openview...
Can connect to database openview.
Creating the OVO tablespaces and users.
Checking, if Oracle Net listener is already configured ..
Found the following names in tnsnames.ora:
tcp.loopback.world
test.world
ov_net
Creating the OVO tables ...
Error opcdbinst(1619) : Database: ORA-00942: table or view does not exist
(OpC50-15)
Database: ORA-00406: COMPATIBLE parameter needs to be 9.0.0.0.0 or greater
(OpC50-15)
Aborting installation of OVO tables in database. (OpC55-1)
ERROR: Error occurred in the program opcdbinst during creation of the
database tables.
ERROR: An error occurred running opcdbsetup
-------> Do you want to continue the configuration (y/n) y
NOTE: Integrate OVO in the HP OpenView ovstart/ovstop sequence. Please wait
...
NOTE: Added Local Registration File for OVO to enable 'ovstart/ovstop opc'.
NOTE: Loading the new OV Windows field definitions for OVO
NOTE: Review /tmp/opc_tmp/opc.log to see whether errors have occurred while
OV Windows was loaded. The lines starting with
/etc/opt/OV/share/fields/C/opc are of special interest. Remove the
/tmp/opc_tmp/opc.log file after reviewing
QUERY: Do you want to read the /tmp/opc_tmp/opc.log (y/n) ? y
----------------- /tmp/opc_tmp/opc.log -----------------
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCmanaged"
/etc/opt/OV/share/fields/C/opc: Verified String field "OPC_ID"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCroot"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPChierbank"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCnodehier"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCnodebank"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCngrpbank"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCmgrpbank"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCapplbank"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCopbank"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCprfbank"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCprf"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCngrp"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCnlgrp"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCmgrp"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCagrp"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCapp"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCop"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCalarm"
/etc/opt/OV/share/fields/C/opc: Verified Boolean field "isOPCnode"
--------------- END /tmp/opc_tmp/opc.log ---------------
Created instant on license.
NOTE: ovc was successfully started
One or more HP OpenView Platform services are not running
NOTE: Starting HP OpenView Platform. Please wait...
NOTE: HP OpenView Platform was successfully started
NOTE: Prepare the Management Server as a managed node using the OVO GUI
because the Management Server is an important node. Distribute the
OVO software and the default configuration to the local managed node
(and start the OVO services) by using the OVO GUI, working as the OVO
administrator. The OVO GUI was started automatically. To login as
administrator, use the
NOTE: following sequence:
user: opc_adm
password: OpC_adm
NOTE: The startup of the OVO GUI will take several minutes
--------------------------------------------------------
Check the /var/opt/OV/log/OpC/mgmt_sv/opcsw_inst.log and
/var/opt/OV/log/OpC/mgmt_sv/opcsw_inst_err.log for problems that
might have occurred. These logfiles were updated by this
installation script
bash-2.05#
bash-2.05# Error: Can't open display:
bash-2.05#
bash-2.05#
bash-2.05# pwd
/opt/OV/bin/OpC/install
bash-2.05# ls
cluster_deploy.sh opc_sec_register_svr.sh opclic opctranm
inst_usr_svr.sh opc_sec_verify.sh opcpwcrpt opcupgrade
opc.introfile opcagtutil opcpwd rm_opc.sh
opc_dflt_lang opccat_install opcsareg subagtutil
opc_export.awk opccltconfig opcsv_version upd_vers.sh
opc_getmsg opcconfig opcsvinfo.README
opc_ip_addr opccvtqdsv opcsvreg
opc_rexec opcdeploy opctabledef
bash-2.05# pwd
/opt/OV/bin/OpC/install
bash-2.05# opcdb
opcdbidx opcdbinit opcdbinst opcdbmsgmv opcdbpwd opcdbsetup opcdbupgr
bash-2.05# opcdbinit
Database: ORA-00942: table or view does not exist
(OpC50-15)
WARNING: Could not load configuration data 'defaults'.
bash-2.05# ovstart -c
Name PID State Last Message(s)
OVsPMD 1721 RUNNING -
ovsessionmgr 1722 RUNNING Initialization complete.
ovwdb 1723 RUNNING Initialization complete.
pmd 1724 RUNNING Initialization complete.
ovtopmd 1736 RUNNING Connected to native database "openview".
ovuispmd 1742 RUNNING Initialized. 0 ovw clients registered.
ovtrapd 1737 RUNNING Initialization complete.
ovactiond 1738 RUNNING Initialization complete.
ovalarmsrv 1739 RUNNING Initialization complete.
genannosrvr - unknown (Does not communicate with ovspmd.)
httpd - unknown (Does not communicate with ovspmd.)
netmon 1743 RUNNING Initialization complete.
snmpCollect 1744 RUNNING Initialization complete.
ovdbcheck 1741 RUNNING Connected to ODBC datasource: OVoraWire.
ovas 1748 RUNNING Initialization complete.
ovrequestd 1727 RUNNING Initialization complete.
ovctrl - unknown (Does not communicate with ovspmd.)
ovoacomm 1745 RUNNING Open Agent Service Server Initialization Complete. For details about Open Agent Service use 'opcsv'.
opc 1751 RUNNING OVO Server Initialization Complete. For details about OVO Manager Processes use 'opcsv'.
ovspmd: Attempt to start HP OpenView services is complete.
bash-2.05#
bash-2.05# opcsv
OVO Management Server status:
-----------------------------
Control Manager opcctlm (1751) is running
Action Manager opcactm isn't running
Message Manager opcmsgm isn't running
TT & Notify Mgr opcttnsm isn't running
Forward Manager opcforwm isn't running
Service Engine opcsvcm isn't running
Cert. Srv Adapter opccsad isn't running
BBC config adapter opcbbcdist (1774) is running
Display Manager opcdispm (1765) is running
Distrib. Manager opcdistm isn't running
Open Agent Management status:
-----------------------------
Request Sender ovoareqsdr (1745) is running
Request Handler ovoareqhdlr (1752) is running
Message Receiver (HTTPS) opcmsgrb (1753) is running
Message Receiver (DCE) opcmsgrd (1754) is running
OV Control Core components status:
----------------------------------
OV Control ovcd (439) is running
OV Communication Broker ovbbccb (440) is running
OV Certificate Server ovcs (1697) is running
bash-2.05# opcsv -start
bash-2.05# opcsv
OVO Management Server status:
-----------------------------
Control Manager opcctlm (2053) is running
Action Manager opcactm (2056) is running
Message Manager opcmsgm (2057) is running
TT & Notify Mgr opcttnsm (2058) is running
Forward Manager opcforwm (2059) is running
Service Engine opcsvcm (2078) is running
Cert. Srv Adapter opccsad (2072) is running
BBC config adapter opcbbcdist (2075) is running
Display Manager opcdispm (2066) is running
Distrib. Manager opcdistm (2069) is running
Open Agent Management status:
-----------------------------
Request Sender ovoareqsdr (1745) is running
Request Handler ovoareqhdlr (1752) is running
Message Receiver (HTTPS) opcmsgrb (1753) is running
Message Receiver (DCE) opcmsgrd (1754) is running
OV Control Core components status:
----------------------------------
OV Control ovcd (439) is running
OV Communication Broker ovbbccb (440) is running
OV Certificate Server ovcs (1697) is running
bash-2.05#
阅读(2061) | 评论(1) | 转发(0) |