Set Up the Oracle Database to Cache Data
You need to complete tasks in the Oracle database before using TimesTen Cache. The tasks are described in the following sections:
Create the Oracle Database Users
Before you can use TimesTen Cache, you need to create the following users in your Oracle database:
-
A cache administration user. This user creates and maintains Oracle Database objects that store information about the cache environment. This user also enforces predefined behaviors of cache group types.
-
One or more schema users who owns Oracle Database tables that are cached in a TimesTen database.
See Create the Oracle Database Users and Default Tablespace in the Oracle TimesTen In-Memory Database Cache Guide.
This example creates the cacheuser_grid
cache administration user and the oratt_grid
schema user in the Oracle Database.
Grant Privileges to the Cache Administration User
The cache administration user needs a specific set of privileges to work with TimesTen cache groups. TimesTen provides the grantCacheAdminPrivileges.sql
SQL*Plus script as part of the TimesTen installation distribution. You run this script in your Oracle database to grant the cache administration user the minimum set of privileges required to perform cache operations. See Grant Privileges to the Oracle Cache Administration User and see Required Privileges for Cache Administration User for Cache Operations in the Oracle TimesTen In-Memory Database Cache
Guide.
Perform these steps to run the grantCacheAdminPrivileges.sql
script:
You successfully ran the script to grant privileges to the cache administration user.