6.4.1 Execute the Schema Creator Utility in Offline Mode

In the Offline mode, the utility generates an SQL script with all the required DDLs for Users, Objects, and Grants. This script must be executed by the DBA on the appropriate database identified for OFSAA usage. If you do not have the SYSDBA privileges, you can execute the Schema Creator Utility in Offline mode and generate the script file that contains the Schemas, Objects, and Grants information. Subsequently, an SYSDBA user can execute the script file manually. To run the OFSAA Application Pack installer in Silent mode, it is mandatory to execute the schema creator utility with -s option.

To execute the utility in Offline mode, you must have a database user with the following GRANTS (alternatively, you can also connect as a user with SYSDBA privileges):
  • SELECT ON DBA_ROLES
  • SELECT ON DBA_USERS
  • SELECT ON DBA_DIRECTORIES
  • SELECT ON DBA_TABLESPACES
  • CREATE SESSION

Note:

Explicit Grants to the user are required. Grants assigned through Roles are not supported.
To execute the schema creator utility in the offline mode, follow these steps:
  1. Log in to the system as a non-root user.
  2. Navigate to the following path: OFS_HM_PACK/schema_creator/bin.
  3. Execute the osc.sh file using the following command:

    ./osc.sh -s -o

    The following message is displayed:

    You have chosen OFFLINE mode. Triggering the utility in OFFLINE mode will generate the script. Do you wish to proceed? (Y/y or N/n).

  4. Enter Y to proceed.
  5. Enter the DB Username with SELECT privileges.
  6. Enter the User Password.
  7. The console runs the initial validation checks and displays the following message:

    You have chosen to install this Application Pack on <Name of the Atomic Schema> ATOMIC schema. Do you want to proceed? (Y or N).

  8. Enter Y to start the script generation. The following message is displayed:

    You have chosen to install this Application Pack on <Name of the Infodom>. Do you want to proceed? (Y or N).

    On successful execution of the schema creator utility, the console displays the following status message:

    Schema Creator executed successfully. Please execute scratch/ofsaaapp/OFS_HM_PACK/schema_creator/sysdba_output_scripts.sql before proceeding with the installation.

    Note:

    If there are any errors during the SQL script execution, reconfigure the OFS_HM_SCHEMA_IN.xml, and repeat steps in this procedure to execute the utility. This regenerates the scripts with the correct information.
  9. Navigate to the OFS_HM_PACK/schema_creator directory.
  10. Log in to SQLPLUS as a user having SYSDBA Privileges.
  11. Execute the sysdba_output_scripts.sql file using the following command:

    SQL>@sysdba_output_scripts.sql

  12. Alternatively, you can copy the sysdba_output_scripts.sql file and SQLScripts directory to a remote server and execute the sysdba_output_scripts.sql file, after providing appropriate execute permissions.
  13. Make a TNS entry for the new users created. For details, see Add the TNS entries in TNSNAMES.ORA file section.

    Note:

    See the sysdba_output_scripts.log file for execution status. If there are any errors, contact My Oracle Support. If there are no errors in the execution, the log file is empty.

    As a result of this task, the OFS_HM_SCHEMA_OUTPUT.XML file is generated. Do not modify this file.

    After creating the schema, proceed to Configure the OFSAAI_InstallConfig.xml File section.