This action might not be possible to undo. Are you sure you want to continue?
Here the procedure for Upgrading the database release of Oracle 10.2.0.1 to 10.2.0.4 on Linux for single instance (Non RAC System) applying patch number 6810189. This patch can be used to upgrade database release 10.2.0.x to 10.2.0.4 (where x can be 1, 2 or 3). This document describes the details of platforms on which the patch set can be applied and about patch installation process. During the upgradation process, Oracle home gets upgraded, changes to certain base tables and views happen. To know the details of invalid objects before upgradation, query the dba_objects table, as explained in the procedure below: 1) From the backend (for example Linux) Log in as an Oracle user. 2) Use SQL*Plus to log in to the database as the sys user with SYSDBA to check for invalid objects. $ sqlplus <connect as SYSDBA> Sql > select object_name, status from dba_objects where status <> ‘VALID’; 3) Query dba_registry table to know the component versions. Sql> select comp_name, version, status from dba_registry;
2) SERVER DETAILS Upgrade performed on the following platforms: • Operating System Red Hat Enterprise Linux 4.0 • Oracle Database Oracle10g release 2 (10. 5.2.PREREQUISITES Here are the prerequisites to apply this patch 22.214.171.124. We should not use Oracle universal installer from the earlier maintenance release or Oracle home.1) ORACLE UNIVERSAL INSTALLER VERSION REQUIREMENTS Patch set 6810189 includes Oracle Universal Installer release 10. which was installed when we installed this patch set.0.1) .2.
1) DOWNLOAD AND EXTRACT THE INSTALLATION SOFTWARE 1) Download p6810189_10204_Linux_x86.2) STOP ALL PROCESSES 1) The processes that are running now can be checked by using following command. before installing the patch set.zip patch. the following steps were followed.PRE-INSTALLATION TASKS Before installing the patch set. for example sqlplus $ sqlplusctl stop b) Shutdown all listeners running under Oracle home Directory: $ lsnrctl stop c) Shut down all database instances running in the Oracle Home directory: Sql > shutdown immediate . 6.. a) Shutdown all processes under the Oracle home that might be accessing a database. $ unzip p6810189_10204_Linux-x86. 2) Execute the following command to extract the installation files.zip 6.3. $ ps –ef | grep <instance name> 2) Shutdown the following Oracle Database 10g processes in the order specified. on to /home/oracle directory.
Identify all the Oracle Database installations from /etc/oratab file. oracle 10g home. Inventory_loc=/etc/oraInventory_10g . (For oraclehome directories) and take the backup of the following directory as well as complete oracle database.6.3) BACKUP THE SYSTEM Oracle recommends to create a backup of the oracle Inventory. and oracle 10g Database before installation of Patchset.
1 or higher installation. 1) Logged into Database server as oracle user. Note: If any attempt makes to install the patch set in an Oracle home directory that does not contain an Oracle Database 10g release 10.0 Here localhost refers to the Hostname or IP address of the computer that used to display Oracle universal installer.INSTALLATION TASKS The patch can be installed either interactively or Non interactively. Now to enable X applications.1) INSTALLING THE ORACLE DATABASE 10G PATCH SET INTERACTIVELY Following steps involved in installing the patch.2. Run the following command on local machine to get the OUI screen. Oracle universal installer displays a warning dialog with error. . $ cd /home/oracle/Disk1 $ . where patchset_directory is the directory where we unpacked the patchset software. click Next. (This will invoke OUI on local computer) . $ export DISPLAY=localhost:0. 2) Make sure that install X-Server software on the local computer to carry out the installation from remote computer.4.0. run the following command on the Database server that used to display Oracle universal installer $ xhost + $ xclock (On Server) ( To check the Graphic screen from local computer ) 3) Run the following commands to start Oracle universal Installer. 7./runInstaller 4) On the welcome screen.
then click Next. select the name of the oracle home to update. click Exit.5) On the specify Home details screen.0.2.sh script as the root user to upgrade oracle home to 10. and then click yes to exit from oracle Universal Installer. 8) On the end of Installation screen. 6) On the summary screen click Install. 7) When prompted. . This screen lists all of the patches available for installation.4. run the $ ORACLE_HOME/root.
1) MANUALLY UPGRADING A RELEASE 10. Sql> spool upgrade_info.0. then space must be added to the tablespace in the current database.0. 8.1. b) This script also checks for the list of database components which are upgraded or installed when the current database is upgraded.2.2. The pre-upgrade information tool is a SQL script that ships with Oracle Database 10. In addition.5. Complete the following procedure to run the pre-upgrade Information tool.POST-INSTALLATION TASKS After the completion of installation of patch set perform the following steps to upgrade database release. 8. a message is displayed if the tablespace is adequate for the upgrade. the tablespace name and minimum required size is displayed. If the tablespace does not have enough free space.2 DATABASE Complete the following sections to upgrade an Oracle 10g release 10. Sql> @?/rdbms/admin/utlu102i.4. Database can be upgraded either manually or by using Database Upgrade Assistant.1 to 10.1) RUN THE PRE-UPGRADATION TOOL Analyze database by running the pre-upgrade information tool.2. . 1) Start the Database in UPGRADE mode Sql> startup upgrade 2) Set the system to spool results to a log file for later analysis.log 3) Run the pre-upgrade Information Tool.sql Where ‘?’ represents the $ORACLE_HOME (environment Variable) a) This script checks for the tablespaces in the current database for each tablespace.
2) UPGRADING A RELEASE 10. $ sqlplus <connect as SYSDBA> 4) Enter the Following SQL*Plus command.log Sql> @?/rdbms/admin/catupgrd. .4) Turn off the spooling of script result to the log file. This list provides the version and status of each SERVER component in the Database.2 DATABASE For upgrading the Database follow the below steps 1) Log in as the oracle software owner user. Sql> startup upgrade Sql> spool patch. 8.1.sql script. log file for errors and inspected the list of components that were displayed at the end of catupgrd. Sql> spool off Note: Tablespace adjustments must be made before the database is upgraded.sql Sql> spool off catupgrad. 5) Review the patch.sql script updates certain base tables and views to upgrade database. 2) Start the listener as follows $ lsnrctl start 3) Use SQL*Plus to log in to the Database as the sys user with SYSDBA. .
and was not installed before running the catupgrd.Note: If the script catupgrd. Sql> select comp_name. so the packages developed based on the earlier base tables got invalid. then need to install the missing component from the companion CD and run the catupgrd. 8) Run the following command to check the status of all the components a after upgrade. If necessary. run the utlrp.sql script again.sql script. status from sys.dba_registry. . Sql> shutdown immediate Sql> startup 7) Run the utlrp. version. 6) Restart the Database.sql is not run as described and if any attempt makes to start up a Database for normal operation. the status of all the components should be VALID for a successful upgrade 8.sql Script to recompile all invalid PL/SQL Packages Sql> @?/rdbms/admin/utlrp.3) MISSING COMPONENTS WHEN UPGRADING Note: If any component listed as missing by the pre-upgrade utility script. Disconnection forced errors and ORA-39700: Database must be opened with UPGRADE option will occur.1.sql script updates some of the base tables and views. these errors can be checked in the alert log file.sql The catupgrd. Note: Ignore any messages indicating that the Database contains invalid recycle bin objects. so to make those packages valid.sql script after correcting any issues. re run the catupgrd.sql script. then ORA-01092: ORACLE instance terminated. In the output of the preceding command.
select the name of the Oracle Database that is going to update. then click Next. 8. the following steps should be performed. 1) Log in as the oracle software Owner user. f) On the end of Database Upgrade Assistant’s Upgrade Results screen. e) On the summary screen. $ lsnrctl start 3) Run Oracle Database Upgrade Assistant in either Interactive mode or Non Interactive mode. Select the Recompile the Invalid objects at the end of the Upgrade option. 2) Start the listener. and then click Next. select the ‘I would like to take this tool to backup the database’ option. then click Next. d) If the backup of the database is not taken earlier.2 DATABASE USING ORACLE DATABASE UPGRADE ASSISTANT After installation of the Patchset. select or guarantee the path.Database can be upgraded by using Database Upgrade Assistant also as follows 8.2. click close to exit from oracle Database Upgrade Assistant. . check the summary.2) UPGRADING A RELEASE 10. click Next.1) RUNNING THE INTERACTIVE MODE DATABASE UPGRADE ASSISTANT IN Enter the following command from the command prompt $ dbua Complete the following steps displayed in the Oracle Dbua screen. c) On the Recompile Invalid objects screen. on the Backup screen. and then click Finish. a) On the Welcome screen. b) On the Database screen.
2) Perform these optional steps only after considering all security issues and only if this installation is going to be shared by users or clients.sh and specify the patched server oracle home location. by default users or third party applications with a different group identifier from that of the database. The following steps to be performed to change the permissions. 3) During patch set installation. all new files and directories are created with restricted access. which try to access client-side utilities or libraries in the database home. before accessing client-side utilities in the Database home.3) RUNNING CHANGEPERM.8. $ cd $ORACLE_HOME/install b) Run changePerm. . will see permission errors when trying to access these files or directories. a) Change to the install directory by using following command.SH DATABASE SERVER HOME SCRIPT ON AN ORACLE 1) Oracle recommends using the most restrictive file permissions possible for the given implementation.
While doing upgradation Check the operating system information with $uname -a To know the invalid objects use dba_objects table. kill the process.. To know the component versions use dba_registry table. . status from dba_objects.APPENDIX The following points used to know few basic things like operation system information and to query tables to know component versions etc. version. status from dba_registry. To kill the processes use the following command $ Kill -9 pid (if any process is running. To change the permissions of a file $ chmod 777 <filename> (indicates all permissions) Symbols ‘$’ Represents the command prompt ‘Sql>’ Represents the sql prompt ‘?’ Represents the Oraclehome. Sql > select object_name.) Where pid is the process identifier. Sql> select comp_name.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue reading from where you left off, or restart the preview.