runInstaller -createGoldImage

The runInstaller -createGoldImage command creates a gold image from the current Oracle Database home.

Syntax

runInstaller -createGoldImage -destinationLocation directory_to_store_gold_image [-exclFiles list_of_excluded_files] -silent

Parameters

Table B-5 runInstaller -createGoldImage Command Parameters

Parameter Mandatory? Description
-destinationLocation directory_to_store_gold_image Yes

Specify the complete path, or location, where you want to store the gold images.

-exclFiles list_of_excluded_files No Specify a comma-separated list of absolute file paths or directory paths that you want to exclude from the newly created gold image.
Note:
  • Directory paths can also include wildcards.
  • Directory path names exclude the entire directory tree and all files under the specified path.
-help No

Displays runInstaller -createGoldImage command help.

Examples

  • The following example shows how to exclude a specific file:
    $ORACLE_HOME/runInstaller -createGoldImage -destinationLocation /tmp/my_db_images -exclFiles $ORACLE_HOME/instantclient/libsqlplusic.so -silent
  • The following example shows how to exclude a directory and its contents:
    $ORACLE_HOME/runInstaller -createGoldImage -destinationLocation /tmp/my_db_images -exclFiles $ORACLE_HOME/.patch_storage -silent
  • The following example shows how to exclude multiple folders and files:
    $ORACLE_HOME/runInstaller -createGoldImage -destinationLocation /tmp/my_db_images -exclFiles $ORACLE_HOME/.patch_storage/32916816_Jul_19_2025_01_56_39/*,$ORACLE_HOME/R/migration/* -silent