

Installation and Upgrade Guides › Directory Configuration Guide › MySQL Server › Configure a MySQL Policy Store › How to Configure the Policy Store › Create the SiteMinder Schema
Create the SiteMinder Schema
You create the SiteMinder schema so that the MySQL database can store policy, key, and audit logging information.
Follow these steps:
- Navigate to siteminder_home\db\tier2\MySQL.
- siteminder_home
-
Specifies the Policy Server installation path.
- Open the following file in a text editor:
sm_mysql_ps.sql
- Locate the following lines:
DROP FUNCTION IF EXISTS `databaseName`.`getdate` $$
CREATE FUNCTION `databaseName`.`getdate` () RETURNS DATE
- Replace each instance of 'databaseName' with the name of the database functioning as the policy store.
Example: If the name of the database is smpolicystore, the required update appears as follows:
DROP FUNCTION IF EXISTS `smpolicystore`.`getdate` $$
CREATE FUNCTION `smpolicystore`.`getdate` () RETURNS DATE
- Copy the contents of the entire file.
- Paste the file contents in to a query and execute the query.
Note: You can also use this schema file to create a seperate key store.
- (Optional) If the policy store is to store audit logs:
Note: You can use a separate database to function as this type of SiteMinder data store.
- Open the following file in a text editor:
sm_mysql_logs.sql
- Locate the following lines:
DROP FUNCTION IF EXISTS `databaseName`.`getdate` $$
CREATE FUNCTION `databaseName`.`getdate` () RETURNS DATE
- Replace each instance of 'databaseName' with the name of the database functioning as the audit store.
- Copy the contents of the entire file.
- Paste the file contents into a query and execute the query.
The audit store schema is created.
- (Optional) If the policy store is to function as a SiteMinder sample user store:
Note: You can use a separate database to function as this type of SiteMinder data store.
- Open the following file in a text editor:
smsampleusers_mysql.sql
- Locate the following lines:
DROP FUNCTION IF EXISTS `databaseName`.`getdate` $$
CREATE FUNCTION `databaseName`.`getdate` () RETURNS DATE
- Replace each instance of 'databaseName' with the name of the database functioning as the SiteMinder sample user store.
- Copy the contents of the entire file.
- Paste the file contents into a query and execute the query.
The SiteMinder sample user store schema is created.
- Navigate to siteminder_home\xps\db\tier2\MySQL
- siteminder_home
-
Specifies the Policy Server installation path.
- Open the following file in a text editor and copy the contents of the entire file:
MySQL.sql
- Paste the file contents into a query.
- Use the MySQL command line tool to exectute the query.
The policy store schema is created.
Copyright © 2012 CA.
All rights reserved.
 
|
|