Cloning an Oracle AI Database Home Using an Image File
Learn how to clone an Oracle AI Database home using the -createGoldImage option.
Create an image file from the source Oracle home using the -createGoldImage option, unzip the image file, and perform a software-only Oracle AI Database installation to register the Oracle AI Database product.
- Log in as the Oracle installation owner user account (
oracle). Go to the source Oracle home directory.
$ cd /u01/app/oracle/product/23.0.0/dbhome_1Use the
runInstallercommand with the-createGoldImageoption to create a gold image from the source Oracle home.For example, to create an image file of
dbhome_1and save it in the temporary destination locationmy_db_images:./runInstaller -createGoldImage -destinationLocation /tmp/my_db_imagesCreate a new OFA-compliant Oracle home directory and extract the image file that you have created in to this destination Oracle home directory. For example:
$ mkdir -p /u01/app/oracle/product/23.0.0/dbhome_2 $ cd /u01/app/oracle/product/23.0.0/dbhome_2 $ unzip -q /tmp/my_db_images/db_home.zipNote:
Oracle home or Oracle base cannot be symlinks, nor can any of their parent directories, all the way to up to the
rootdirectory.From this new destination Oracle home directory, run the
runInstallercommand to start the Oracle AI Database Setup Wizard and register Oracle AI Database.$ cd /u01/app/oracle/product/23.0.0/dbhome_2 $ ./runInstaller- In the Select Configuration Option screen, select Set Up Software Only to perform a software-only Oracle AI Database installation.
- Select your installation type and respond to the configuration prompts as needed.
Provide information to automate root scripts, or run scripts as
rootwhen prompted by the setup wizard.Note:
Click Help if you have any questions about the information you are asked to submit during installation.
Oracle AI Database is now successfully registered. Run Oracle Database Configuration Assistant (Oracle DBCA) to create a database and configure the listener for the newly-cloned Oracle home.
$ cd /u01/app/oracle/product/23.0.0/dbhome_2/bin $ ./dbca