You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Contents\t\t\t \n \n
\n \n

The up.time DataStore can run on an Oracle database to leverage existing Oracle installations and take advantage of Oracle's advanced replication, recovery and archiving features. This article assumes that you have already installed up.time and have an Oracle database available (see Supported Databases for version details).

\n \n
Step 1 - Preparing the Oracle Database
\n

To run up.time with an Oracle database, first create a database on your Oracle instance that up.time will be able to use. If you are unsure which databases are available to you or how to create a new database, please contact your Oracle administrator and have a database configured for up.time.

\n \n

Within the Oracle database that will hold up.time configuration and historical data, create a user account that up.time will use to access the database. The example below illustrates how to create an up.time database user with a 10 GB tablespace for storing historical performance data although you can allocate a tablespace of any size to the up.time database user (other user settings are similarly flexible).

\n \n

Note that larger installations should allocate a large tablespace to accommodate large volumes of historical data.

\n \n

NOTE: This script is provided as an example. Your exact steps and settings will vary depending on your Oracle database configuration.

\n \n

\ncreate tablespace uptime_data logging
\ndatafile '/u01/app/oracle/oradata/uptime/uptime_data' size 10000m
\nblocksize 8192
\nextent management local uniform size 256k
\nsegment space management auto
\nonline;
\n
\ncreate user uptime identified by password default
\ntablespace uptime_data;
\n
\ngrant create session to uptime;
\ngrant create table to uptime;
\ngrant create sequence to uptime;
\n
\nalter user uptime quota 10000m on uptime_data; \n

\n \n

Also set up the following permissions, which are sufficient for up.time to create the up.time data structure and continue with standard operations:

\n
    \n
  • Roles \n
      \n
    • Connect
    • \n
    \n
  • \n
  • System Privileges: \n
      \n
    • create procedure
    • \n
    • create sequence
    • \n
    • create synonym
    • \n
    • create table
    • \n
    • create view
    • \n
    • unlimited tablespace
    • \n
    \n
  • \n
\n \n
Step 2 - Configuring up.time
\n

After you have created the Oracle database and set up the up.time database, you need to configure up.time to access the new database.

\n \n

To do this, edit the uptime.conf file (located in the up.time installation folder) and add a # character to the beginning of each of the following lines:

\n

\ndbDriver=com.mysql.jdbc.Driver
\ndbType=mysql
\ndbHostname=localhost
\ndbPort=3308
\ndbName=uptime
\ndbUsername=uptime
\ndbPassword=uptime

\n \n

Just below the lines listed above, there is a second group of lines in the uptime.conf file that define how up.time will connect to an Oracle database (see below). Remove the # character from the start of these lines and update the dbHost, dbPort, dbName, dbUsername and dbPassword to match the settings of your Oracle database and the user that you created in Step 1.

\n

\n#dbDriver=oracle.jdbc.OracleDriver
\n#dbType=oracle
\n#dbHostname=10.1.1.124
\n#dbPort=1521
\n#dbName=uptime
\n#dbUsername=uptime
\n#dbPassword=password
\n

\n \n
Step 3 - Resetting the up.time DataStore
\n

Reset the up.time DataStore settings to create the tables and default values required by up.time on your Oracle database. To do this, run the following command on your up.time monitoring station:

\n \n

up.time_install_path/resetdb really

\n \n

NOTE: This command will reset any existing up.time-specific database settings. Before running this command, ensure that the settings in the uptime.conf file are correct.

\n \n
Step 4 - Restarting up.time
\n

After the resetdb utility has finished updating your database settings, restart up.time. When up.time restarts, it will be running from your Oracle database with an empty up.time installation.

\n
  • No labels