Question

Upgrade Oracle 10.2.0.2 to 10.2.0.4

Asked by: Mubin

Database 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.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-09-24 at 11:07:40ID24759445
Tags

Oracle 10g

Topic

Oracle Database

Participating Experts
2
Points
250
Comments
25

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

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.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

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.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

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.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. upgrade oracle 7 to oracle 8
    Anybody know how to upgrade or migrate oracle 7 to oracle 8? Step by step instruction is much appreciated. Thanks
  2. Upgrading Oracle
    Can anyone give me some good business reasons (except from the fact that Oracle has stopped support for 7.3.x versions) to upgrade to Oracle 9i. Or is upgrading to Oracle 8.x an option ? Suggestions from people who did the excercise are very welcome (could spare me some ti...
  3. How to upgrade from Oracle 8i to 9i?
    Hi, All: Now I want to upgrade from Oracle 8.1.7 to 9.2.0. How and where can I get some documents about this task, especially about the usage of DBUA tools? Now, I have Oracle 8i installed and have two databases on it. The $ORACLE_HOME is set to /myoracle/8.1.7 for example....
  4. MS-SQL to ORACLE Step by Step instructions
    Guys Can anybody help me with this? I have my DB in MS-SQL 2000,, one of my customers use ORACLE 9i, there are some tables I have to replicate to them from my MS-SQL to their Oracle,, one table increase its size with appended data,, the other two append but also make chang...
  5. ORACLE UPGRADE
    Hi All, I have five databases on one machine all versions 9.2.05. Is there a way for me to upgrade only three of them to 9.2.0.7? I was thinking about creating a new ORACLE_HOME for the three databases. Can someone please help me with this.
  6. oracle binaries installation
    how do i install binaries of oracle 10.2.0.4 on a server? I have got 10204 binary packages OraSunA.ds_10204-64bit-SOLARIS-1of5.Z OraSunB.ds_10204-64bit-SOLARIS-2of5.Z OraSunC.ds_10204-64bit-SOLARIS-3of5.Z OraSunD.ds_10204-64bit-SOLARIS-4of5.Z OraSunE...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

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.

Join the Community

Answers

 

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.

 

by: MubinPosted on 2009-09-24 at 11:26:35ID: 25416234

I don't have access to the patchset or to the readme file. Is it possible to get it from somewhere else?

 

by: mrjoltcolaPosted on 2009-09-24 at 11:28:32ID: 25416254

Not without Oracle support (Metalink access).

You can legally find the upgrade steps online on Google, but not the actual patchset.

 

by: mrjoltcolaPosted on 2009-09-24 at 11:29:51ID: 25416271

To clarify. You need to buy Oracle support for your database. Do you have a license?

 

by: MubinPosted on 2009-09-24 at 11:30:38ID: 25416280

I navigated to the oracle/product/10.2.0.4 location. I don't see any readme file placed there. Is there any way to get it from different source?

 

by: MubinPosted on 2009-09-24 at 11:38:51ID: 25416353

This is a practice project. I am learning.

 

by: MubinPosted on 2009-09-24 at 11:40:25ID: 25416365

Can I get the README.html file without having access to the metalink?

Thanks

 

by: mrjoltcolaPosted on 2009-09-24 at 11:53:30ID: 25416505

>>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/10204_patch_note_Win32.htm

 

by: sdstuberPosted on 2009-09-24 at 12:00:11ID: 25416570

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.

 

by: MubinPosted on 2009-09-24 at 12:26:24ID: 25416830

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

 

by: sdstuberPosted on 2009-09-24 at 12:37:33ID: 25416939

if you already have a 10.2.0.4 home, it looks like you already have upgraded
there's nothing for you to do.

 

by: mrjoltcolaPosted on 2009-09-24 at 12:37:36ID: 25416941

>> 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.

 

by: MubinPosted on 2009-09-24 at 12:55:18ID: 25417151

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?


 

by: MubinPosted on 2009-09-24 at 13:04:22ID: 25417256

sdstuber,
scenario 2 is the case. Any guidence, please!

Thanks

 

by: mrjoltcolaPosted on 2009-09-24 at 13:04:25ID: 25417257

Start by reading the link I posted. Section 9.2 particularly.

 

by: mrjoltcolaPosted on 2009-09-24 at 13:48:54ID: 25417725

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/catupgrd

After finished, make sure to shutdown and restart the DB in regular mode and recompile any invalid objects with utlrp.sql

All this is covered in the release notes for the patchset and at the link I provided above.

Good luck.

 

by: MubinPosted on 2009-09-24 at 17:55:13ID: 25419398

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



 

by: MubinPosted on 2009-09-25 at 09:10:59ID: 25424414

Please give me some  hint on changing the variables in oratab file, reloading the variables value using . oraenv....
Do I have to change the ORACLE_HOME value in the .profile file and than reload the new value using the . oraaenv?
Any information about the env will be helpful

Thanks

 

by: sdstuberPosted on 2009-09-25 at 09:29:36ID: 25424559

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/product/11.2:Y
MYDB:/oracle/product/11.1:Y
YOURDB:/oracle/product/10.2.04:Y
HISDB:/oracle/product/9.2.0.8:N

There should be comments in the file to indicate the structure and use of each field too

 

by: MubinPosted on 2009-09-25 at 14:36:50ID: 25427487

I have
M101PROD:/oracle/product/10.2.0.2:Y

Do I have to change it to ....../10.2.0.4 in order to upgrade the db to 10.2.0.4?

Thanks


 

by: mrjoltcolaPosted on 2009-09-25 at 21:18:53ID: 25428782

Yes, /etc/oratab should have the correct Oracle home path set for each instance.

 

by: MubinPosted on 2009-09-26 at 07:28:29ID: 25429911

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.

 

by: mrjoltcolaPosted on 2009-09-26 at 09:32:53ID: 25430277

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.4
PATH=$PATH:$ORACLE_HOME/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib

export ORACLE_HOME

 

by: mrjoltcolaPosted on 2009-09-26 at 09:35:39ID: 25430283

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.

 

by: MubinPosted on 2009-10-12 at 17:48:08ID: 31633164

Thanks to both the respected experts.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...