By default, the delete schema script contains the required
grant statements if multiple versions of the model are deployed, but
the statements are commented out. Grants must be issued because the
cross-version views are dropped and re-created when the drop schema
script runs. To implement the grant statements for greater security,
uncomment the grant statements and run the monitor model delete schema
script.
Procedure
- Export the delete schema script using the following steps.
- In the WebSphere® Application
Server administrative
console, click .
- Click the version of the model.
- Click Manage Schema.
- Click Export Delete Schema Script.
- Save the file.
- Navigate to the directory containing the exported script,
which is a DDL file.
- Edit the DeleteSchema_ModelName.ddl file,
removing the comment indicators for each GRANT statement and allowing
the statements to be implemented in the next step by replacing the
string "--GRANT STMT--" with "".
- Run the delete script using the DeleteSchema_ModelName.ddl file.
On
DB2®,
in the
DB2 command
window, enter the following command:
db2 -td@ -vf DeleteSchema_ModelName.ddl
On
Oracle, enter
the following command:
sqlplus dbadmin/dbpassword@orcl @DeleteSchema_ModelName.ddl
On
Microsoft SQL Server,
enter the following command:
sqlcmd -U <userid> -P <password> -e -i DeleteSchema_ModelName.ddl
where
ModelName is the name
of the model.