6.4.1 Execute the Schema Creator Utility in Offline Mode

Choose the Offline Mode option if you do not have login credentials to the database with SYSDBA privileges. In this mode, the utility generates an SQL script with all the required DDLs for Users, Objects, and Grants. That script must be executed by the DBA on the appropriate database identified for OFSAA usage.

To execute the schema creator utility in the offline mode, you must have the following 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 OFS_PFT_PACK/schema_creator/bin directory.
  3. Execute the osc.sh file using the following command:

    ./osc.sh -o -s

    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).

    Enter Y to proceed.

  4. Enter the DB Username with SELECT privileges.
  5. Enter the User Password.

    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/N).

  6. 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/N). Enter Y to proceed.

    Figure 6-3 Schema Creation in Offline Mode – Script Generation


    This illustration shows the script generation during schema creation in offline mode.

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

    Schema Creator executed successfully.

    Execute the file scratch/ofsaaapp/OFS_PFT_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_PFT_SCHEMA_IN.xml file and repeat steps in this procedure to execute the utility. This regenerates the script with the correct information.
  8. Navigate to the OFS_PFT_PACK/schema_creator directory.
  9. Log in to the database using credentials with SYSDBA privileges.
  10. Execute the sysdba_output_scripts.sql file using the following command:

    @sysdba_output_scripts.sql

    Alternatively, you can copy the sysdba_output_scripts.sql file and SQLScripts folder to a remote server, and execute the sysdba_output_scripts.sql file after providing appropriate execute permissions.

    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 procedure, the OFS_PFT_SCHEMA_OUTPUT.XML file is generated. Do not modify this file.