Installation for oracle 10g
Oracle 10g (10.2.0.1) and patch set (10.2.0.3) CD package:
O:\proj\shanghai\1150\software\EMS\Oracle10g
Preinstallation tasks
1. Run ‘gzip -d 10gr2_db_sol.cpio.gz’ to decompress oracle 10g.
2. Run ‘cpio -idmv < 10gr2_db_sol.cpio’ to decompress oracle 10g.
3. Run ‘gzip -d ems.7.0.0.0.0.tar.Z’ and ‘tar –xvf ems.7.0.0.0.0.tar’ to decompress Panorama
4. Run ‘./uninstall.sh manager’ to uninstall Panorama and Oracle. When it asks if you want to uninstall Oracle, say ‘yes’.
5. After running ‘./setup.sh’, ‘cd /usr/afcems_install’ and edit the file installOracleConfigEMS.rsp to make sure all values match your server; i.e. the number of Oracle mount points to be configured is correct, the location of the mount points is correct, the Oracle version to be installed is Oracle 10 (it defaults to 9i), Oracle source location also defaults to Oracle 9i, so change it to where your Oracle 10 files can be found, etc.
TIP – you can only save your changes with ‘:w!’.
Silent installation for oracle 10g
1. Configure your DISPLAY variable to be your PC IP address (in bash: DISPLAY=192.168.xxx.xxx:0.0;export DISPLAY)( run /usr/openwin/bin/xclock to make sure it is set correctly )
2. Now run ‘./installOracleConfigEMS –f installOracleConfigEMS.rsp’ which will silently install Oracle 10. It may ask you to reboot the server (‘/etc/shutdown –y –g0 –i6’) if the /etc/system file has been changed, and you must run the above executable again.
Installation oracle 10g patch set
Preinstallation tasks
1. Complete silent installation for oracle 10g.
2. Run ‘/etc/init.d/dbora stop’ to stop all processes
If the scrīpt doesn’t work, you have to manually stop all processes, listeners and database instances in the Oracle home directory, where you need to install the patch set.
3. Run ‘unzip patch5337014_10203_SOLARIS64.zip’ to decompress patch set.
Interactive installation for oracle 10g patch set
1. Login in as the oracle user.
2. Configure your DISPLAY variable to be your PC IP address (in bash: DISPLAY=192.168.xxx.xxx:0.0;export DISPLAY)( run /usr/openwin/bin/xclock to make sure it is set correctly )
3. Run ‘cd patchset_directory/Disk1’.
4. Run ‘./runInstaller’.
5. On the Welcome screen, click Next.
6. In the Specify Home Details screen, select the name of the Oracle home that you want to update, or select the Path that you want to update from the list, then click Next.
7. On the Summary screen, click Install. (This screen lists all of the patches available for installation.)
8. When prompted, run the ‘$ORACLE_HOME/root.sh’ scrīpt as the root user.
9. On the End of Installation screen, click Exit, then click Yes to exit from Oracle Universal Installer.
Postinstallation tasks
Upgrading a Release 10.2 Database using Oracle Database Upgrade Assistant
After you install the patch set, you must perform the following steps on every database associated with the upgraded Oracle home:
1. $ dbua
2. On the Welcome screen, click Next.
3. On the Databases screen, select the name of the Oracle Database that you want to update, then click Next.
4. On the Recompile invalid objects screen, select the Recompile the invalid objects at the end of upgrade option, then click Next.
5. If you have not taken the back up of the database earlier, on the Backup screen, select the I would like to take this tool to backup the database option, mentions the Path, and then click Next.
6. On the Summary screen, check the summary, then click Finish.
7. On the End of upgradation screen, click Exit, then click Yes to exit from Oracle Database Upgrade Assistant.
Troubleshooting:
behavīor:
After completing installation for oracle 10g, startup oracle database throws the following errors:
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-39700: database must be opened with UPGRADE option.
Solution:
You must finish the postinstallation tasks.
TIP:
1. Path for installation oracle error log: $ORACLE_BASE/admin/EMS/bdump/alert_EMS.log
2. Type ‘SQL> !oerr ora 39700‘ in sqlplus to get more details:
SQL>!oerr ora 39700
39700, 00000, "database must be opened with UPGRADE option"
// *Cause: A normal database open was attempted, but the database has not
// been upgraded to the current server version.
// *Action: Use the UPGRADE option when opening the database to run
// catupgrd.sql (for database upgrade), or to run catalog.sql
// and catproc.sql (after initial database creation).