AIX SP update and Oracle interaction


 
Thread Tools Search this Thread
Operating Systems AIX AIX SP update and Oracle interaction
# 1  
Old 08-20-2014
AIX SP update and Oracle interaction

Situation:

AIX 7.1 various SP levels
Update to SP9 on DB systems with Oracle 10 or 11G

Steps:
  • Apply SP9 update
  • Bring down databases
  • shutdown -Fr
  • Check system health - AIX
  • Bring up databases
  • Confirm functionality

Would applying the update while the databases are up cause problems with either the SP update or the Oracle databases?

I've looked for a definitive answer on the web, and asking others, to no avail. The conservative approach is to do the SP update after the databases are down. However, if the SP update can be done before, it would streamline the over all process.

Last edited by rbatte1; 08-20-2014 at 01:12 PM.. Reason: Set LIST tags and correct spellings
# 2  
Old 08-20-2014
What is your backout plan? What if your SP is not consistent and you have to go back to the original OS and SP level?
The answer is you always create an alternative disk (of rootvg) and upgrade that disk, without impacting anything on the current running environment.

For this you need to have an additional disk, if you cannot get an additional disk, then you can also use multibos on the same disk to achieve the similar result (but make sure the root disk have enough space for multibos operation). But, never ever go directly without a backup copy.

But you want to be sure that the new SP is compatible with existing oracle version, so throw that question to oracle DBA team, ask them to find out oracle compatibility with that new SP version.

Last edited by ibmtech; 08-20-2014 at 12:12 PM.. Reason: Added more comments
# 3  
Old 08-20-2014
ibmtech, thank you for the reply. I like the alternative disk suggestion. I'll look into that

Sorry, my steps are a bit sparse. I'll give a bit more detail for my item of 'Apply SP9 update'.

mksysb is the backout plan

I always do the following before applying the update:
If any of these checks reveal something amiss, it is corrected before proceeding:-
  • Check available space for the mksysb and update processing
  • check exclude.rootvg
  • generate the mksysb - smitty mksysb
  • verify the mksysb - lsmksysb -f
  • oslevel -s
  • instfix -i|grep ML
  • installp -C
  • lppchk -v
  • installp -s
  • installp -c all if some packages are not committed
  • emgr -P to determine if there are any efixes which may cause a conflict
  • If a DB server, ps -ef|grep smon and agent to verify the DBs are down
  • I run the update from a NIM - smitty nim, using the preview only option
  • If all looks good, then I proceed with the actual update, access the system, redo all the pre checks to confirm current status, shutdown -Fr, redo all the checks again to ensure it all came up healthy

I do have the DBA team verify the oracle version is compatible with the intended OS update. I also read up to determine myself.

I'm curious if applying the SP while the databases are still up would cause issues. The oracle is 11G, on AIX 7 TL1 SP9. I'd try it in a test area, if I could.

Last edited by rbatte1; 08-21-2014 at 07:03 AM.. Reason: Set as LIST with ICODE tags round commands
# 4  
Old 08-21-2014
Those are all good, but make sure you use alternate disk install
To summarize
1. You need to have a free disk (equal to greater in size of rootvg)
2.
Code:
smitty -->   Software Installation and Maintenance -->  Alternate Disk Installation  -->
  Clone the rootvg to an Alternate Disk

Code:
[TOP]                                                   [Entry Fields]
* Target Disk(s) to install                          [hdisk1]                             +
  Phase to execute                                    all                                 +
  image.data file                                    []                                    /
  Exclude list                                       []                                    /

  Bundle to install                                  [update_all]                         +
    -OR-
  Fileset(s) to install                              []

  Fix bundle to install                              []
    -OR-
  Fixes to install                                   []

  Directory or Device with images                    [/export/aix71/tl01sp09]
  (required if filesets, bundles or fixes used)

  installp Flags
  COMMIT software updates?                            yes                                 +
  SAVE replaced files?                                no                                  +
  AUTOMATICALLY install requisite software?           yes                                 +
  EXTEND file systems if space needed?                yes                                 +
  OVERWRITE same or newer versions?                   no                                  +
  VERIFY install and check file sizes?                no                                  +
  ACCEPT new license agreements?                      yes                                 +

  Customization script                               []                                    /
[MORE...5]

This will 1st copy the existing mksysb to new disk, then it will update the OS, all your setting will remain the same.

If your Tl01SP09 binaries are on NIM server, you can export that directory to the client and use that location.

Make sure you accept the license agreement.
# 5  
Old 08-21-2014
Quote:
Originally Posted by allenhibbert
mksysb is the backout plan

I do have the DBA team verify the oracle version is compatible with the intended OS update. I also read up to determine myself.

I'm curious if applying the SP while the databases are still up would cause issues. The oracle is 11G, on AIX 7 TL1 SP9. I'd try it in a test area, if I could.
You seem to come from a different flavour of Unix, so maybe a bit of background information about Alternate Disk Migration is in order. To expand on what ibmtech already explained:

One usually has a mirrored rootvg, which means that you have two identical disks carrying identical copies of the OS. ADM now does the following: it breaks up the mirror. Then you apply the update (or the installation - there is not only Alternate Disk Migration but also Alternate Disk Installation) to one of these copies. Then you reboot into this newly installed/updated environment.

If everything turns out OK you destroy the unchanged copy and remirror, so that you now have two copies of the new system images. If some problem occurs you reboot back into the old environment from the still existing (and unchanged) disk, destroy the new installation and remirror, arriving at the point you started from again.

Most of these steps are done behind the scenes by the provided procedures, but it helps to have a working picture of what is going on.

NOTE: at the end of the procedure do not forget to apply the bosboot command and maintain the system bootlist with bootlist command.

I hope this helps.

bakunin
# 6  
Old 08-21-2014
Thank you both for the information. I understand the concept, the procedure sounds straight forward. Knowing what is done behind the scenes is always desired, thanks for that.
Most of my background is with AIX, then some years with RHEL as well. My AIX background was mostly in a small shop, 3 stand alone systems. I am now in a sizeable shop, 2,000+ systems, with exposure to greater depth of the technology.
I'll try out the alternate disk update on one of the next test systems up for SP9. I'll post back how it went.
Thanks again
# 7  
Old 08-22-2014
NIM ADM is by far the preferred method if you have a suitable NIM environment, DON'T forget you can provision a new lun for rootvg and three way mirror on to it, then use it for the NIMADM leaving the original mirrored rootvg intact in case of any problems...
HTH
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to update a Oracle table through shell scripting?

My Code is get_week_date() { `sqlplus -s ${DQM_SQL_LOGON}@${DQM_SID} << EOF SET ECHO OFF SET FEEDBACK OFF SET PAGES 0 SET SERVEROUTPUT ON SET VERIFY OFF SET TRIMSPOOL ON (update file_level_qc fq set FQ.DATA_FILE_NAME='Hyvee_Pharmacy_Solutions_201304_v1.txt'... (2 Replies)
Discussion started by: karthick.cho
2 Replies

2. UNIX for Advanced & Expert Users

oracle update not working

Hi, I have a oracle source with a field my_date =06/02/2009 I am trying to update the table to SYSDATE with a myscript.sql where I have UPDATE table set my_date=to_DATE(SYSDATE,'MM/DD/YYYY'); Now I try to run it with myupdate.SH script where I have sqlplus nolog @myscript.sql ... (4 Replies)
Discussion started by: RubinPat
4 Replies

3. UNIX for Advanced & Expert Users

unix script for update or insert records from a file to a oracle table

Hi, I have delimited file(|). Sample data: 1|name|50009|DS24|0|12 2|name|30009|DS24|0|13 3|name|20409|DS24|0|14 4|name|20009|DS24|0|15 5|name|10009|DS24|0|16 I want to load this data into a oracle table (update and insert) Please help me the commands and also... (1 Reply)
Discussion started by: unihp1
1 Replies

4. Shell Programming and Scripting

update a oracle table using shell script

Hi, I would like to know how to update a table in Oracle database, if a command in one shell script either successfully completes or it fails.(like Y if its success or N if its a failure) While the command is running,I am able to view the log file created in the Unix machine.After the command... (2 Replies)
Discussion started by: ann_124
2 Replies
Login or Register to Ask a Question