| Oracle9i OLAP User's Guide Release 2 (9.2.0.2) Part Number A95295-02  | 
  | 
  | 
View PDF | 
This procedure specifies an ALTER SESSION parameter for OLAP API users with a particular database role. It adds a row to the OLAP$ALTER_SESSION table.
ADD_ALTER_SESSION ( role_name IN VARCHAR2, session_parameter IN VARCHAR2);
The role_name and session_parameter are added as a row in OLAP$ALTER_SESSION.
| Parameter | Description | 
|---|---|
|  
 
  | 
 
 The name of a valid role in the database. Required.  | 
|  
 
  | 
 
 A parameter that can be set with a SQL   | 
| Exception | Description | 
|---|---|
|  
 
  | 
 
 Role is not defined in the database.  | 
|  
 
  | 
 
 Session parameter has already been set for that role.  | 
The following call inserts a row in OLAP$ALTER_SESSION that turns on query rewrite for users with the OLAP_DBA role.
call olap_api_session_init.add_alter_session( 'OLAP_DBA', 'SET QUERY_REWRITE_ENABLED=TRUE');
The ALL_OLAP_ALTER_SESSION view now contains the following row:
|  
 
  | 
 
 
  |