In this lesson, you start the SQL Anywhere sample database, demo.db, and then add this database as a resource to be monitored.
Start the SQL Anywhere sample database. From the Start menu, choose Programs » SQL Anywhere 12 » SQL Anywhere » Network Server Sample.
Log in to the Monitor as an administrator. See Lesson 1: Log in to the Monitor as the default administrator.
Choose Tools » Administration. which is located on the left sidebar.
Click Resources, and then click Add.
Select SQL Anywhere Server, and then click Next.
In the Name field, type demo12, and then click Next.
In the Host field, type localhost, and in the Server field, type demo12.
When you are prompted for the required authorization, in the DBA User ID field, type DBA, and in the Password field, type sql. Click OK.
When you add a database as a resource to be monitored, you must supply the DBA user ID and password for the database. These credentials are used to:
Connect to the database.
Create a new user named sa_monitor_user. The Monitor uses the sa_monitor_user to connect to the database and monitor it.
Install the database objects needed by the sa_monitor_user to monitor the database. For a list of the objects installed, see Installed objects.
Discard from the Monitor the DBA credentials. Because the sa_monitor_user is added to the database being monitored, it is not necessary to store the DBA credentials anywhere outside the database that is being monitored. See Installed objects.
The resource is added and monitoring of the resource starts automatically.
Choose Dashboards » Overview.
The demo12 resource appears in the Resource List.
Click demo12 to open the demo12 dashboard and view the collected metrics.
Discuter à propos de cette page dans DocCommentXchange.
|Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0|