Solved

Patching Oracle 10g on Win 2k3

Posted on 2006-07-08
6
741 Views
Last Modified: 2008-01-09
Hi there,

I'm attempting to patch Oracle 10g from 10.0.  to  

Shutdown the databases using oradim then shut down all oracle services in management console.
Apply the patch
Then the documentation says:

For single-instance installations, use SQL*Plus to log in to the database as the SYS user with SYSDBA privileges:

C:\> sqlplus /NOLOG
SQL> CONNECT SYS/password AS SYSDBA

but I get the "ORA-12514: TNS listener does not currently know of service requested in connect descriptor."

So I can't do the next bit which is "startup upgrade"

So I then tried starting the database using oradim but if I specify -starttype inst I get "ORA-01092: ORACLE instance terminated. Disconnection forced"  Using -starttype srvc doesn't seem to make any difference to anything.

The only joy I had was using the web based enterprise manager to mount the database then I can connect in SQLPlus but when I issue: "startup upgrade" it says the database is already started and it must be shutdown so then I issue "shutdown" and then "startup upgrade" and I'm back to "ORA-12514: TNS listener does not currently know of service requested in connect descriptor."

What am I missing here?

0
Comment
Question by:djguvnor
  • 4
  • 2
6 Comments
 
LVL 1

Author Comment

by:djguvnor
ID: 17066824
Sorry, that should be upgrading from 10.2.0.1 to Oracle Database 10g Release 10.2.0.2
0
 
LVL 25

Accepted Solution

by:
jrb1 earned 200 total points
ID: 17066866
Hi djguvnor,

I think this is your problem:

http://www.dba-oracle.com/t_ora_12514_tns_listener_service_name.htm

I avoid using a listener connection when I startup or shutdown, as a matter of practice. I realize that cannot always be done. Are you physically on the machine? Can you ssh or telnet in and run sqlplus on the box? Then connect like so:

export ORACLE_SID=mydb  ###Unix/Linux
sqlplus sys as sysdba
[no password needed - just hit return ]
SQL> startup mount

Regards,
John
0
 
LVL 1

Author Comment

by:djguvnor
ID: 17066938
What's the " export ORACLE_SID=mydb  ###Unix/Linux" all about?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 1

Author Comment

by:djguvnor
ID: 17066987
I get: "'export' is not recognized as an internal or external command, operable program or batch file."
0
 
LVL 1

Author Comment

by:djguvnor
ID: 17067051
Aha, well it was nearly right.
instead of export use:
set oracle_sid=mydb

then same as above, though in my case I was upgrading so I used startup upgrade.

Thanks for the pointer jrb1.
0
 
LVL 25

Expert Comment

by:jrb1
ID: 17067100
Sorry, that was the Unix syntax.  You got the windows syntax down.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now