Oracle OSW安装
admin
2023-04-22 10:23:09
0

生产环境强烈建议安装部署
Introduction

OSWatcher (oswbb) is a collection of UNIX shell scripts intended to collect and archive operating system and network metrics to aid support in diagnosing performance issues. As a best practice, all customers should install and run OSWatcher on every node that has a running Oracle instance. In the case of a performance issue, Oracle support can use this data to help diagnose performance problems which may outside the database. OSWatcher can be downloaded from MOS Note 301137.1 . Installation instructions for OSWatcher are provided in this user guide.

具体安装过程看文档,301137.1

Installation

The following sections describe how to install and remove OSWatcher on your system..

Installing oswbb

OSWatcher can be installed as any user as long as that user has permission to execute the underlying Unix utilities such as vmstat, top, etc. In most cases you can install as the Oracle user. OSWatcher needs to be installed on each node if you are running in a RAC environment, one installation per node. Install by using the following procedure:

Downloaded the oswbb.tar file from MOS. Place the tar file is the desired location and untar the file. Next, make sure to change the file permissions on these files to execute by using chmod.

tar xvf oswbb.tar

chmod 744 *

A directory named oswbb will be created which contains the full installation of OSWatcher including the OSWatcher analyzer and all supporting files. OSWatcher is now installed.

Uninstalling oswbb

To uninstall OSWatcher issue the following command on the oswbb directory.

rm -rf oswbb

Back to Contents

Configuration

OSWatcher collects and stores data to files in an archive directory. By default, this directory is created under the oswbb directory where oswbb is installed. There are 2 options if you want to change this location to point to any other directory or device.

1. set the UNIX environment variable OSWBB_ARCHIVE_DEST to the location desired before starting the tool. In this example the archive directory will be created in this location (/usr/app/archive) and not created under the home oswbb directory

export OSWBB_ARCHIVE_DEST=/usr/app/archive

2. start oswbb by running the startOSWbb.sh script located in the directory where oswbb is installed and specify the 4th parameter on the command line.

./startOSWbb 30 48 None /usr/app/archive

This script accepts an optional 4th parameter which is the location where you want oswbb to write the the data it collects. If you use the optional 4th parameter you must also set the optional 3rd parameter which specifies the name of a compress or zip(gzip,compress, etc) utility. If you do not want to compress the files you can specify NONE as the 3rd parameter. See the startOSWbb.sh for more details.

OSWbb writes the archive location to a heartbeat file named osw.hb in the /tmp directory. This is done so other oracle utilities like RAC-DDT and RDA can find OSWbb data when these utilities are run. This file gets removed when OSWatcher is stopped.

Once oswbb is installed, scripts have been provided to start and stop the oswbb utility. When oswbb is started for the first time it creates the archive subdirectory, either in the default location under the oswbb directory or in an alternate location as specified above. The archive directory contains a minimum of 7 subdirectories, one for each data collector. Private networks can be monitored by using the traceroute command. This is done automatically in release 8 of OSWatcher. This can also be done manually by the user by creating an executable file in the oswbb directory named private.net. An example of what this file should look like is named Exampleprivate.net with samples for each operating system: Solaris, LINUX, AIX, and HP-UX in the oswbb directory. This file can be edited and renamed private.net or a new file named private.net can be created. This file contains entries for running the traceroute command to verify RAC private networks.

Exampleprivate.net entry on Solaris:

traceroute -r -F private_nodename

Where node1 and node2 are 2 nodes in addition to the hostnode of a 3 node RAC cluster. If the file private.net does not exist or is not executable then no data will be collected and stored under the oswprvtnet directory.

oswbb will need access to the OS utilities: top, vmstat, iostat, mpstat, netstat, and traceroute. These OS utilities need to be installed on the system prior to running oswbb.  Execute permission on these utilities need to be granted to the user of oswbb.

Back to Contents

RAC Considerations

OSWbb needs to be installed on each node in the cluster. If installing on a shared file system then install each node's OSWbb into a unique directory.

Back to Contents

相关内容

热门资讯

终于懂了“棋乐碰胡怎么开挂?”... 终于懂了“棋乐碰胡怎么开挂?”(原来真的有挂)您好,棋乐碰胡这个游戏其实有挂的,确实是有挂的,需要了...
终于明白“白金岛三打哈究竟有挂... 终于明白“白金岛三打哈究竟有挂吗?”(太坑了果然有挂)您好,白金岛三打哈这个游戏其实有挂的,确实是有...
【今日要闻】“吉林白山麻将真的... 【今日要闻】“吉林白山麻将真的有挂吗?”(必胜开挂神器)您好,吉林白山麻将这个游戏其实有挂的,确实是...
今日重磅消息“鹤岗52麻将开挂... 您好:鹤岗52麻将这款游戏可以开挂,确实是有挂的,需要了解加客服微信【9784099】很多玩家在这款...
玩家攻略科普“微信小程序掼蛋真... 网上科普关于“微信小程序掼蛋有没有挂”话题很是火热,小编也是针对微信小程序掼蛋作*弊开挂的方法以及开...
我来教教您“全民游戏开挂器?”... 家人们!今天小编来为大家解答全民游戏透视挂怎么安装这个问题咨询软件客服徽4282891的挂在哪里买很...
我来教教您“聚友互娱怎么开挂?... 我来教教您“聚友互娱怎么开挂?”(必胜开挂神器)您好,聚友互娱这个游戏其实有挂的,确实是有挂的,需要...
今日重大发现“新绍兴麻将是不是... 有 亲,根据资深记者爆料新绍兴麻将是可以开挂的,确实有挂(咨询软件无需打...
【今日要闻】“酷玩联盟开挂神器... 【今日要闻】“酷玩联盟开挂神器?”(太坑了原来有挂)您好,酷玩联盟这个游戏其实有挂的,确实是有挂的,...
玩家攻略科普“乐游510k怎么... 有 亲,根据资深记者爆料乐游510k是可以开挂的,确实有挂(咨询软件无需...