Here the procedure for Upgrading the database release of Oracle to 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 (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;

0.1) .0. 5.1) ORACLE UNIVERSAL INSTALLER VERSION REQUIREMENTS Patch set 6810189 includes Oracle Universal Installer release 10. We should not use Oracle universal installer from the earlier maintenance release or Oracle home. which was installed when we installed this patch set.PREREQUISITES Here are the prerequisites to apply this patch • Oracle Database Oracle10g release 2 (10.4.2) SERVER DETAILS Upgrade performed on the following platforms: • Operating System Red Hat Enterprise Linux 4.2.

zip patch.1) DOWNLOAD AND EXTRACT THE INSTALLATION SOFTWARE 1) Download p6810189_10204_Linux_x86. $ unzip p6810189_10204_Linux-x86. $ ps –ef | grep <instance name> 2) Shutdown the following Oracle Database 10g processes in the order specified. on to /home/oracle directory. 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 . a) Shutdown all processes under the Oracle home that might be accessing a database. 2) Execute the following command to extract the installation files..PRE-INSTALLATION TASKS Before installing the patch set. 6.2) STOP ALL PROCESSES 1) The processes that are running now can be checked by using following command. the following steps were followed.zip 6.3. before installing the patch set.

3) BACKUP THE SYSTEM Oracle recommends to create a backup of the oracle Inventory. Inventory_loc=/etc/oraInventory_10g . (For oraclehome directories) and take the backup of the following directory as well as complete oracle database.6. Identify all the Oracle Database installations from /etc/oratab file. oracle 10g home. and oracle 10g Database before installation of Patchset.

0. . Now to enable X applications.1) INSTALLING THE ORACLE DATABASE 10G PATCH SET INTERACTIVELY Following steps involved in installing the patch. $ export DISPLAY=localhost:0. click Next.1 or higher installation. 7. 1) Logged into Database server as oracle user.4. 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.INSTALLATION TASKS The patch can be installed either interactively or Non interactively. 2) Make sure that install X-Server software on the local computer to carry out the installation from remote computer. 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.2.0 Here localhost refers to the Hostname or IP address of the computer that used to display Oracle universal installer. Oracle universal installer displays a warning dialog with error. where patchset_directory is the directory where we unpacked the patchset software. Run the following command on local machine to get the OUI screen./runInstaller 4) On the welcome screen. (This will invoke OUI on local computer) . $ cd /home/oracle/Disk1 $ .

4.sh script as the root user to upgrade oracle home to 10. This screen lists all of the patches available for installation. 8) On the end of Installation screen.2. then click Next. select the name of the oracle home to update.5) On the specify Home details screen. 7) When prompted. . 6) On the summary screen click Install. click Exit. run the $ ORACLE_HOME/root.0. and then click yes to exit from oracle Universal Installer.

2.5.1 to 10. 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.0.1) RUN THE PRE-UPGRADATION TOOL Analyze database by running the pre-upgrade information tool. Sql> spool upgrade_info.2.4. b) This script also checks for the list of database components which are upgraded or installed when the current database is upgraded.POST-INSTALLATION TASKS After the completion of installation of patch set perform the following steps to upgrade database release. then space must be added to the tablespace in the current database. 8.1. If the tablespace does not have enough free space.2. Database can be upgraded either manually or by using Database Upgrade Assistant. The pre-upgrade information tool is a SQL script that ships with Oracle Database 10. .0. Complete the following procedure to run the pre-upgrade Information tool.2 DATABASE Complete the following sections to upgrade an Oracle 10g release 10. 8.1) MANUALLY UPGRADING A RELEASE 10. the tablespace name and minimum required size is displayed. In addition. Sql> @?/rdbms/admin/utlu102i. a message is displayed if the tablespace is adequate for the upgrade.

This list provides the version and status of each SERVER component in the Database.sql script updates certain base tables and views to upgrade database.sql Sql> spool off catupgrad. $ sqlplus <connect as SYSDBA> 4) Enter the Following SQL*Plus command. .2 DATABASE For upgrading the Database follow the below steps 1) Log in as the oracle software owner user. 5) Review the patch.4) Turn off the spooling of script result to the log file.2) UPGRADING A RELEASE 10. Sql> spool off Note: Tablespace adjustments must be made before the database is upgraded. 2) Start the listener as follows $ lsnrctl start 3) Use SQL*Plus to log in to the Database as the sys user with SYSDBA. log file for errors and inspected the list of components that were displayed at the end of catupgrd. .1. 8.sql script. Sql> startup upgrade Sql> spool patch.log Sql> @?/rdbms/admin/catupgrd.

sql is not run as described and if any attempt makes to start up a Database for normal operation. Sql> shutdown immediate Sql> startup 7) Run the utlrp. 8) Run the following command to check the status of all the components a after upgrade.dba_registry. so the packages developed based on the earlier base tables got invalid.sql script updates some of the base tables and views. In the output of the preceding command. run the utlrp. 6) Restart the Database. then ORA-01092: ORACLE instance terminated.sql script. the status of all the components should be VALID for a successful upgrade 8. these errors can be checked in the alert log file. status from sys. and was not installed before running the catupgrd.sql Script to recompile all invalid PL/SQL Packages Sql> @?/rdbms/admin/utlrp. re run the catupgrd. Sql> select comp_name. then need to install the missing component from the companion CD and run the catupgrd.sql script after correcting any issues. . Note: Ignore any messages indicating that the Database contains invalid recycle bin objects. If necessary.sql script.1. so to make those packages valid. Disconnection forced errors and ORA-39700: Database must be opened with UPGRADE option will occur.sql script again. version.Note: If the script catupgrd.3) MISSING COMPONENTS WHEN UPGRADING Note: If any component listed as missing by the pre-upgrade utility script.sql The catupgrd.

2. 2) Start the listener. a) On the Welcome screen. click close to exit from oracle Database Upgrade Assistant. b) On the Database screen. and then click Finish. d) If the backup of the database is not taken earlier. select or guarantee the path. on the Backup screen. Select the Recompile the Invalid objects at the end of the Upgrade option. click Next.Database can be upgraded by using Database Upgrade Assistant also as follows 8. select the ‘I would like to take this tool to backup the database’ option.2) UPGRADING A RELEASE 10. 1) Log in as the oracle software Owner user. and then click Next. f) On the end of Database Upgrade Assistant’s Upgrade Results screen. the following steps should be performed. then click Next. .2 DATABASE USING ORACLE DATABASE UPGRADE ASSISTANT After installation of the Patchset. check the summary. then click Next. e) On the summary screen. c) On the Recompile Invalid objects screen. select the name of the Oracle Database that is going to update.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. 8. $ lsnrctl start 3) Run Oracle Database Upgrade Assistant in either Interactive mode or Non Interactive mode.

before accessing client-side utilities in the Database home. a) Change to the install directory by using following command. will see permission errors when trying to access these files or directories. 3) During patch set installation.SH DATABASE SERVER HOME SCRIPT ON AN ORACLE 1) Oracle recommends using the most restrictive file permissions possible for the given implementation. which try to access client-side utilities or libraries in the database home. $ cd $ORACLE_HOME/install b) Run changePerm. by default users or third party applications with a different group identifier from that of the database.8.3) RUNNING CHANGEPERM. . all new files and directories are created with restricted access.sh and specify the patched server oracle home location. The following steps to be performed to change the permissions. 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.

. 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.) Where pid is the process identifier.. status from dba_registry. Sql> select comp_name. While doing upgradation Check the operating system information with $uname -a To know the invalid objects use dba_objects table. To kill the processes use the following command $ Kill -9 pid (if any process is running. version. To know the component versions use dba_registry table. Sql > select object_name. 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. kill the process.