Previous Topic: How to Store Session Information in IBM DB2Next Topic: How to Store Session Information in Oracle


How to Store Session Information in MySQL

Complete the following procedures to configure MySQL as a standalone session store:

  1. Be sure that MySQL is installed using the default character set (Latin1). If MySQL was not installed using the default character set, reinstall MySQL before configuring the CA SiteMinder® data store.
  2. Gather database information.
  3. Create the session store schema.
  4. Configure a MySQL data source for CA SiteMinder®.
  5. Point the Policy Server to the database.
  6. Restart the Policy Server.

More information:

Gather Database Information

Configure a MySQL Data Source for CA SiteMinder®

Create the Session Store Schema

You create the session store schema so the MySQL database can store the session information.

Follow these steps:

  1. Log in to the Policy Server host system.
  2. Navigate to the following location:
    siteminder_home\db\tier2\MySQL.
    
    siteminder_home

    Specifies the Policy Server installation path.

  3. Open the following file in a text editor:
    sm_mysql_ss.sql
    
  4. Locate the following lines:
    DROP FUNCTION IF EXISTS `databaseName`.`getdate` $$
    CREATE FUNCTION `databaseName`.`getdate` () RETURNS DATE
    
  5. Replace each instance of 'databaseName' with the name of the database functioning as the session store.
  6. Copy the contents of the entire file.
  7. Paste the file contents into a query and execute the query.

    The session store schema is created.

Point the Policy Server to the Database

You point the Policy Server to the database so the Policy Server can read and store session information.

To point the Policy Server to the data store

  1. Open the Policy Server Management Console, and click the Data tab.

    Database settings appear.

  2. Select Session Server from the Database list.

    Data source settings become active.

  3. Enter the name of the data source in the Data Source Information field.
  4. Enter and confirm the user name and password of the database account that has full access rights to the database instance in the respective fields.
  5. Specify the maximum number of database connections allocated to CA SiteMinder®.

    Note: We recommend retaining the default for best performance.

  6. Click Apply.

    The settings are saved.

  7. Click Test Connection.

    SiteMinder returns a confirmation that the Policy Server can access the data store.

  8. Click OK.

    The Policy Server is configured to use the database as a session store.

Restart the Policy Server

You restart the Policy Server for certain settings to take effect.

Follow these steps:

  1. Open the Policy Server Management Console.
  2. Click the Status tab, and click Stop in the Policy Server group box.

    The Policy Server stops as indicated by the red stoplight.

  3. Click Start.

    The Policy Server starts as indicated by the green stoplight.

    Note: On UNIX or Linux operating environments, you can also execute the stop-all command followed by the start-all command to restart the Policy Server. These commands provide an alternative to the Policy Server Management Console.