You can recreate the database tables after installation without having to reinstall.
Stop the application server, such as Tomcat. For more information, see Stopping, Starting, and Restarting Tomcat.
(Conditional) Delete the existing database.
(Conditional) Create a new database with the same name as the one that you deleted in Step 2.
(Conditional) Clear the database checksums.
Log in to your database as idm_rpt_cfg.
Execute the following command for PostgreSQL:
DO $do$ BEGIN IF EXISTS (select table_name from information_schema.tables where table_schema = 'public' and table_name = 'databasechangelog') THEN update databasechangelog set md5sum = null; END IF; END $do$
or
Execute the following command for Oracle:
BEGIN FOR i IN (select null from ALL_TABLES where OWNER = user and TABLE_NAME = 'DATABASECHANGELOG') LOOP EXECUTE IMMEDIATE 'update DATABASECHANGELOG set MD5SUM = NULL'; END LOOP; END;
or
Execute the following command for MSSQL:
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'DATABASECHANGELOG') UPDATE idm_rpt_cfg.DATABASECHANGELOG SET MD5SUM = NULL
Define the JAVA_HOME variable. For example:
Linux: export JAVA_HOME=/opt/netiq/idm/apps/jre
Windows:
For instructions, see Installing the JDK Software and Setting JAVA_HOME
.
Re-initialize the database using the installed script:
/opt/netiq/idm/apps/idrpt/bin/db-init.sh -cfg_password *** -data_password ***
/opt/netiq/idm/apps/idrpt/bin/db-init.sh -cfg_password *** -data_password *** -sql > /opt/netiq/idm/apps/idrpt/sql/output.sql
Start the application server such as Tomcat. For more information, see Stopping, Starting, and Restarting Tomcat.