Thinking Out Loud

March 1, 2020

Create 19c Gold Image

Filed under: 19c — mdinh @ 5:01 am

What the hell. My blog posts can be so terrible that I don’t even understand at times what I post.

Anyhow, here is a reminder for creating 19c Gold Image.

From my notes, log and .patch_storage directories need to be excluded and not sure if there are any others as I have not fully tested deployment using 19c Gold Image.

[oracle@ol7-122-rac1 ~]$ echo $ORACLE_HOME; ls -l $ORACLE_HOME/.patch_storage $ORACLE_HOME/log
/u01/app/19.3.0.0/grid

/u01/app/19.3.0.0/grid/log:
total 4
drwxr-xr-x.  2 oracle oinstall    6 Feb 29 18:16 crs
drwxr-x---.  4 oracle oinstall   57 Feb 29 18:49 diag
drwxr-xr-t. 20 root   oinstall 4096 Feb 29 18:32 ol7-122-rac1

/u01/app/19.3.0.0/grid/.patch_storage:
total 48
drwxr-xr-x.  3 oracle oinstall    74 Apr 18  2019 29517242_Apr_17_2019_23_27_10
drwxr-xr-x.  3 oracle oinstall    74 Apr 18  2019 29517247_Apr_1_2019_15_08_20
drwxr-xr-x.  3 oracle oinstall    74 Apr 18  2019 29585399_Apr_9_2019_19_12_47
drwxr-xr-x.  4 oracle oinstall    87 Feb 29 20:10 30489227_Jan_7_2020_03_37_45
drwxr-xr-x.  4 oracle oinstall    87 Feb 29 20:11 30489632_Dec_24_2019_03_32_55
drwxr-xr-x.  4 oracle oinstall    87 Feb 29 20:15 30557433_Jan_6_2020_19_07_34
drwxr-xr-x.  4 oracle oinstall    87 Feb 29 20:15 30655595_Dec_12_2019_04_55_54
-rw-r--r--.  1 oracle oinstall 17034 Feb 29 20:15 interim_inventory.txt
-rw-r--r--.  1 oracle oinstall   101 Feb 29 20:15 LatestOPatchSession.properties
drwxr-xr-x. 18 oracle oinstall  4096 Feb 29 20:15 NApply
-rw-r--r--.  1 oracle oinstall 16892 Feb 29 20:15 record_inventory.txt

[oracle@ol7-122-rac1 ~]$ $ORACLE_HOME/OPatch/opatch lspatches
30655595;TOMCAT RELEASE UPDATE 19.0.0.0.0 (30655595)
30557433;Database Release Update : 19.6.0.0.200114 (30557433)
30489632;ACFS RELEASE UPDATE 19.6.0.0.0 (30489632)
30489227;OCW RELEASE UPDATE 19.6.0.0.0 (30489227)

OPatch succeeded.

[oracle@ol7-122-rac1 ~]$ $ORACLE_HOME/gridSetup.sh -creategoldimage -exclFiles $ORACLE_HOME/log,$ORACLE_HOME/.patch_storage -destinationlocation /u01/app/oracle/goldimage -silent
Launching Oracle Grid Infrastructure Setup Wizard...

Successfully Setup Software.
Gold Image location: /u01/app/oracle/goldimage/grid_home_2020-03-01_04-40-18AM.zip

[oracle@ol7-122-rac1 ~]$

[oracle@ol7-122-rac1 goldimage]$ cp -fv grid_home_2020-03-01_04-40-18AM.zip /vagrant_software/LINUX.X64_19600_grid_home.zip; echo $?
‘grid_home_2020-03-01_04-40-18AM.zip’ -> ‘/vagrant_software/LINUX.X64_19600_grid_home.zip’
0

[oracle@ol7-122-rac1 goldimage]$ ls -l /vagrant_software/
total 18236448
drwxrwxrwx. 1 vagrant vagrant          0 Feb 29 16:41 JAN2019
drwxrwxrwx. 1 vagrant vagrant          0 Feb 29 16:35 JAN2020
-rwxrwxrwx. 1 vagrant vagrant 3453696911 Feb 19  2019 linuxx64_12201_database.zip
-rwxrwxrwx. 1 vagrant vagrant 2994687209 Feb 19  2019 linuxx64_12201_grid_home.zip
-rwxrwxrwx. 1 vagrant vagrant 3059705302 Sep  5 15:45 LINUX.X64_193000_db_home.zip
-rwxrwxrwx. 1 vagrant vagrant 2889184573 Aug  5  2019 LINUX.X64_193000_grid_home.zip
-rwxrwxrwx. 1 vagrant vagrant 6276814110 Mar  1 05:05 LINUX.X64_19600_grid_home.zip
-rwxrwxrwx. 1 vagrant vagrant      21848 Feb 23 15:24 sshpass-1.06-1.el7.x86_64.rpm
[oracle@ol7-122-rac1 goldimage]$

As you can see, this looks to be full of confusion.

The environment started as Vagrant RAC build – ol7-122-rac.
GI was then upgraded to 19.3 and patched to 19.6.

Does it even make sense to create home with version specific vs 19c?

One day when I am really bored, I will probably try to upgrade GI 12.2 to 19.6 using Gold Image.

UPDATE: I thought having LINUX.X64_193000_grid_home.zip in GRID Home was an oversight and I was wrong since it’s seems to be required.

[oracle@ol7-122-rac2 ~]$ $ORACLE_HOME/gridSetup.sh -creategoldimage -exclFiles $ORACLE_HOME/log,$ORACLE_HOME/.patch_storage -destinationlocation /u01/app/oracle/goldimage -silent
Launching Oracle Grid Infrastructure Setup Wizard...

[FATAL] [INS-42505] The installer has detected that the Oracle Grid Infrastructure home software at (/u01/app/19.6.0.0/grid) is not complete.
   CAUSE: Following files are missing:
[/u01/app/19.6.0.0/grid/LINUX.X64_193000_grid_home.zip]
   ACTION: Ensure that the Oracle Grid Infrastructure home at (/u01/app/19.6.0.0/grid) includes the files listed above.
[oracle@ol7-122-rac2 ~]$

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Create a free website or blog at WordPress.com.

%d bloggers like this: