I don't have access to the patchset or to the readme file. Is it possible to get it from somewhere else?
Main Topics
Browse All TopicsDatabase D101PROD is currently version 10.2.0.2; I have to upgrade it to Version 10.2.0.4.
The $ORACLE_HOME with 10.2.0.4 binaries is /oracle/product/10.2.0.4
Please provide me some detail instructions on how to accomplish the task.
Thanks a lot.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
>>I navigated to the oracle/product/10.2.0.4 location.
10.2.0.4 is not publicly available, its for licensed customers only. I am unclear on how you have 10.2.0.4 without a license or Metalink access.
The README.html is included in the patchset. I am not sure if it is available in the online docs. I did find it on Google but its not an Oracle link. http://www.eygle.com/Notes
Maybe the question itself needs clarification.
Are you trying to upgrade the oracle software from 10.2.0.2 to 10.2.0.4?
or
Are you trying to upgrade a 10.2.0.2 database to 10.2.0.4 and you already have the 10.2.0.4 software installed?
mrjoltcola is correct, you need to be licensed to get the 10.2.0.4 software
However, if you already have a 10.2.0.4 oracle home then it seems you already have it installed and you are in scenario 2.
It is upgrading the oracle software.
It is in a lab environment. I am trying to switch my position from a QA tester to a junior dba. I have been given the task to complete. The software is licensed. The pacth(10.2.0.4) is licenced. I had 2 lines of email which I mentioned in my question.
I don't want to ask too many question to my tech lead. I want to complete this by myself. That is why I appeared before you all.
Thanks
>> I don't want to ask too many question to my tech lead
The first step to learn as a junior DBA is when installing Oracle patches, you use the documentation for that patch _everytime_. So if you don't have that, you aren't really doing it the approved way.
I'm not sure who gave you the 10.2.0.4 version, but I always download from Metalink and review the README and release docs with that patch.
So I am not trying to be difficult with you, but if you are trying to learn, this is the way it is done.
Thanks.
After paying good attention to the mail I received I find it is updating the db not the software:
Here is the mail:
Database D101PROD is currently version 10.2.0.2; please upgrade it to Version 10.2.0.4.
The $ORACLE_HOME with 10.2.0.4 binaries is /oracle/product/10.2.0.4
So it is updating the db not the software. How can I procede?
Since you've probably had time to read the notes at the link I gave above, here are a couple of pointers.
1) 99.8% of the time, you can upgrade the database with DBUA (just type dbua). It wants a graphical desktop just like the installer, but can also be run in silent mode.
2) If you upgrade manually, typically you startup in upgrade mode, then run catupgrd.sql
sqlplus / as sysdba
SQL> startup upgrade
SQL> @$ORACLE_HOME/rdbms/admin/
Af
All this is covered in the release notes for the patchset and at the link I provided above.
Good luck.
Yes, I read the contents in the link. Nothing has been mentioned there about the environment variables.
I have collected a document which has some steps as follows:
Line # 1 - 3 were in the link and in my document as well.
1. SQL> Spool upgrade_info.log
2. SQL> @?/rdbms/admin/utl102i.sql
3. spool Off
Check the log file upgrade_info.sql for any issues needs to be addressed before proceeding.
Line # 4 & 5 are not in the link. These are in my document.
4. Set environment initially to the current(old) Oracle Home of the instance to be upgraded:
$ . oraenv
5. Verify that all environment variables correctly point to the current (old) Oracle Home directory:
$ env
6. Logon as sysdba, Shutdown Immediate and exit from SQL prompt
7. Update database instance environment settings to the newer set of Oracle binaries:
$vi /var/opt/oracle/oratab
8. Set environment to database instance again to take the updated values:
$ . oraenv
9. verify that all environment variables now correctly contain the new $ORACLE_HOME directory:
$ env
Note: this is a very improtant step to ensure that patching goes smoothly, so double click the environment variables very carefully.
My Questions:
# 4 and 5 should already be the current (old) env variables. How do I set them again?
# 5 says "all env....variabls" - what are all?
# 7 - How do I change the oratab file and what changes need to be there?
# 9 - Do i change all the env varbls by exporting those? And see them in the $ env?
Thanks
oraenv makes the home, sid and path changes for you
your /etc/oratab is a colon delimited file listing the instances and homes on your machine
The Y/N on the end indicates if the DB should be automatically started when the machine reboots
Sample lines might look like these...
NEWDB:/oracle/prod
MYDB:/orac
YOU
H
There should be comments in the file to indicate the structure and use of each field too
Thanks.
One more question:
When I use the env command I see that there are values for AGENT_HOME, OHLIB_PATH, LD_LIBRARY_PATH, OH, ORA_NLS10, ORA_NLS33, ORA_NLS, PATH and all the values contain 10.2.0.2.
I need to change the env in all places where there is references to 10.2.0.2.
The question is "How do I change the values to 10.2.04?"
Do I change the .profile file (I am using kron shell)? Will all changes take place if I change the .profile file?
Please let me know how can I change all variables to reflect the new value of 10.2.0.4.
Thanks a lot again.
First, change them where they are set. They will exist somewhere. Find out where.
Look in /etc/profile or in the user's home directory (.profile, .bash_profile, .kshrc). Use grep if you must to find them.
When done properly, all of the environment variables are dependant on the $ORACLE_HOME and/or $ORACLE_BASE variable. The other variables should be set to "relative" values, and should not explicitly include the path, so you just change one variable:
Sample .profile
ORACLE_HOME=/oracle/10.2.0
PATH=$PATH:$ORACLE_HOME/bi
LD_LIBRARY_PATH=$LD_LIBRAR
export ORACLE_HOME
You may also find that the user profiles source the common Oracle profile from the Oracle directory.
$ORACLE_HOME/bin/oraenv
So you may find in your /etc/profile or your user profiles the line:
. $ORACLE_HOME/bin/oraenv
or the path may be explicitly spelled out. So the way to fix it is to source the correct oraenv, there is one with each Oracle home.
Business Accounts
Answer for Membership
by: mrjoltcolaPosted on 2009-09-24 at 11:17:28ID: 25416155
Did you start with the README.html included in the upgrade patchset?
It is as detailed as it gets.