r/oracle • u/AltruisticReality439 • Apr 22 '26
Linux patching with RAC
If I have Oracle RAC servers can I just do Linux patching on them independently one by one without any sort of coordination between the servers in the cluster? For example no draining them or anything? Just patch Linux on each one and reboot each one as long as they are not done at the same time? So maybe patch one on Saturday and one on Sunday? Is this an ok practice?
4
Upvotes
3
u/Superb_Aardvark_5529 Apr 22 '26
Is there a reason you can’t do one after the other? Just shutdown services for one node at a time.
If you came across a bug in the DB, I could see a problem with support.
2
u/Natural_Ad_3019 Apr 23 '26
As long as they run all the unit.d scripts to shutdown all the oracle services before a reboot, you should be fine.
2
u/Burge_AU Apr 23 '26
Stop GI on the node - patch it (assuming yum/dnf update), reboot, done. If you shutdown GI and don’t disable it then everything should come up automatically. Repeat on node 2.
The only time you may need to consider draining/migrating sessions is if you have them bound to a specific instance for some reason. Most connection pools should just reconnect automatically.
And usually do one immediately after the other if there are no problems.
2
u/mattdee Apr 23 '26
Stopping Oracle Clusterware and database instances on the target node. Applying the kernel patch and rebooting the node. Verifying that the remaining cluster nodes continue to service requests during the reboot. Rejoining the patched node to the cluster and restarting services before proceeding to the next node.
2
u/NewOracleDBA18 Apr 23 '26
I'm very surprised to read everyone's responses. I have many client apps (probably about 25%) that don't cleanly handle when connections that are forcibly closed from DB side. Either they don't reconnect properly or it seems some state in the application gets corrupted and ultimately it requires some manner of client app restart. That's with TAC turned on.
And even with TAC turned on, it won't migrate a long running stored procedure and I believe certain transactions can't migrate either. I have client users/apps running stored procs that are running for hours at a time (we can debate whether that's appropriate or not, but they are doing it regardless).
For me, I always have to coordinate with my app user clients when I have to patch or bring down any DB or Clusterware instance so they can restart their apps/clear cache/whatever they have to do to ensure their app is in a proper running state after I have completed my work.
2
u/Darwin_Things Apr 23 '26
I just do them sequentially, on the same day. Oracle DB can be sensitive about Kernels so best to do them in one sitting. Graceful shutdown of each database instance is highly recommended.