Upgrade oracle9204 to 9206 notes

Source: Internet
Author: User

Log On As an Oracle user.
1. Unzip the 9206 patch installation package
$ Unzip p3948480_9206_solaris64.zip

2. Set the environment variables ORACLE_HOME and ORACLE_SID.
$ ORACLE_HOME =/opt/oracle/db01/app/oracle/product/9.2.0
$ ORACLE_SID = ORCL
$ Export ORACLE_HOME ORACLE_SID

3. Stop DB and all oracle-related processes
SQL> shutdown immediate
$ Lsnrctl stop

4. Back up the oracle Installation Directory
$ Tar-cvf oracle9204_clear.tar db01 db02 db03 db04

5. If you are using a software such as XManager for remote login and installation, you need to set DISPLAY:
$ DISPLAY = 172.19.136.98: 0.0; export DISPLAY -- 172.19.136.98 is the IP address of the PC client running XManager software.

6. Enter XWindow and start the installer.
% Cd/opt/wacos/9206/Disk1
%./RunInstaller
Follow the on-screen prompts to install the SDK.

7. Set the initialization parameters SHARED_POOL_SIZE and JAVA_POOL_SIZE.
$ Sqlplus '/as sysdba'
SQL> startup;
SQL> show parameter pfile;
SQL> show parameter shared_pool_size;
SQL> ALTER SYSTEM SET SHARED_POOL_SIZE = '150m' SCOPE = spfile; -- at least 150 MB
SQL> show parameter java_pool_size;
SQL> ALTER SYSTEM SET JAVA_POOL_SIZE = '150m' SCOPE = spfile; -- at least 150 MB
SQL> shutdown;
SQL> exit

8. Upgrade DB (Non-RAC)
$ Lsnrctl start
$ Sqlplus/nolog
SQL> conn/as sysdba
SQL> startup migrate
SQL> spool./patch9206.log
SQL> @? /Rdbms/admin/catpatch. SQL -- long time
SQL> spool off;

9. Check patch. log to see if there are any errors.
$ More patch9206.log

10. compile all invalid objects
SQL> shutdown;
SQL> startup;
SQL> @? /Rdbms/admin/utlrp. SQL

11. Check the upgrade information.
SQL> select * from dba_registry;

12. Package backup
$ Lsnrctl stop
$ Sqlplus '/as sysdba'
SQL> shutdown immediate;
$ Tar-cvf oracle9206_clear.tar db01 db02 db03 db04

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.