Professional Documents
Culture Documents
When you moved oracle binary files from one ORACLE_HOME server to another
server then which oracle utility will be used to make this new ORACLE_HOME
usable?
Relink all.
You have collection of patch (nearly 100 patches) or patchset. How can you
apply only one patch from it?
With Napply itself (by providing patch location and specific patch id) you
can apply only one patch from a collection of extracted patch. For more
information check the opatch util NApply help. It will give you clear
picture.
For Example:
opatch util napply <patch_location> -id 9 -skip_subset -skip_duplicate
This will apply only the patch id 9 from the patch location and will skip
duplicate and subset of patch installed in your ORACLE_HOME.
If both CPU and PSU are available for given version which one, you will
prefer to apply?
From the above discussion it is clear once you apply the PSU then the
recommended way is to apply the next PSU only. In fact, no need to apply
CPU on the top of PSU as PSU contain CPU (If you apply CPU over PSU will
considered you are trying to rollback the PSU and will require more effort
in fact). So if you have not decided or applied any of the patches then, I
will suggest you to go to use PSU patches. For more details refer: Oracle
Products [ID 1430923.1], ID 1446582.1
PSU is superset of CPU then why someone choose to apply a CPU rather than
a PSU?
CPUs are smaller and more focused than PSU and mostly deal with security
issues. It seems to be theoretically more consecutive approach and can
cause less trouble than PSU as it has less code changing in it. Thus any
one who is concerned only with security fixes and not functionality fixes,
CPU may be good approach.
REFERENCES:
http://docs.oracle.com/cd/E11857_01/em.111/e12255/e_oui_appendix.htm
Oracle Universal Installer and OPatch User's Guide
11g Release 2 (11.2) for Windows and UNIX
Part Number E12255-11
What is OPatch?
1. You MUST read the Readme.txt file included in opatch file, look for any
prereq. steps/ post installation steps or and DB related changes. Also,
make sure that you have the correct opatch version required by this patch.
2.Make sure you have a good backup of database.
3. Make a note of all Invalid objects in the database prior to the patch.
4. Shutdown All the Oracle Processes running from that Oracle Home ,
including the Listener and Database instance, Management agent etc.
5. You MUST Backup your oracle Home and Inventory
tar -cvf $ORACLE_HOME $ORACLE_HOME/oraInventory | gzip >
Backup_Software_Version.tar.gz
6. Unzip the patch in $ORACLE_HOME/patches
7. cd to the patch direcory and do opatch -apply to apply the patch.
8. Read the output/log file to make sure there were no errors.
1. Download the required Patch from Metalink based on OS Bit Version and
DB Version.
2. Need to down the database before applying patch.
3. Unzip and Apply the Patch using opatch apply command.On successfully
applied of patch you will see successful message OPatch succeeded.,
Crosscheck your patch is applied by using opatch lsinventory command .
4. Each patch has a unique ID, the command to rollback a patch is opatch
rollback -id <patch no.> command.On successfully applied of patch you
will see successful message OPatch succeeded., Crosscheck your patch is
applied by using opatch lsinventory command .
5. Patch file format will be like, p<patch no.>_<db version>_<os>.zip
6. We can check the opatch version using opatch -version command.
7. Generally, takes 2 minutes to apply a patch.
8. To get latest Opatch version download patch 6880880 - latest opatch
tool, it contains OPatch directory.
9. Contents of downloaded patches will be like etc,files directories and
a README file
10. Log file for Opatch utility can be found at
$ORACLE_HOME/cfgtoollogs/opatch
11. OPatch also maintains an index of the commands executed with OPatch
and the log files associated with it in the history.txt file located in
the <ORACLE_HOME>/cfgtoollogs/opatch directory.
12. Starting with the 11.2.0.2 patch set, Oracle Database patch sets are
full installations of the Oracle Database software. This means that you do
not need to install Oracle Database 11g Release 2 (11.2.0.1) before
installing Oracle Database 11g Release 2 (11.2.0.2).
13. Direct upgrade to Oracle 10g is only supported if your database is
running one of the following releases: 8.0.6, 8.1.7, 9.0.1, or 9.2.0. If
not, you will have to upgrade the database to one of these releases or use
a different upgrade option (like export/ import).
14.Direct upgrades to 11g are possible from existing databases with
versions 9.2.0.4+, 10.1.0.2+ or 10.2.0.1+. Upgrades from other versions
are supported only via intermediate upgrades to a supported upgrade
version.
http://avdeo.com/2008/08/19/opatch-utility-oracle-rdbms-patching/
Types of Patches?
What is PSU?
REFERENCES:
OPATCH Utility (Oracle RDBMS Patching)
http://avdeo.com/2008/08/19/opatch-utility-oracle-rdbms-patching/
Cloning
=======
What is Cloning?
Upgrade
=======
Note:
----
The UPGRADE keyword enables you to open a database based on an earlier
Oracle Database release. It also restricts logons to AS SYSDBAsessions,
disables system triggers, and performs additional operations that prepare
the environment for the upgrade.
You might be required to use the PFILE option to specify the location of
your initialization parameter file.
Once the database is started in upgrade mode, only queries on fixed views
execute without errors until after the catupgrd.sql script is run. Before
running catupgrd.sql, queries on any other view or the use of PL/SQL
returns an error.
startup migrate:
---------------
Used to upgrade a database till 9i.
Startup Upgrade
---------------
From 10G we are using startup upgrade to upgrade database.
REFERENCE:
---------
Oracle Database Upgrade Guide 11g Release 2 (11.2)
http://docs.oracle.com/cd/E11882_01/server.112/e23633/upgrade.htm