Solved

Oradim not shutting the db when server reboots.oradim -EDIT -SID PERISTAT -STARTMODE a -SHUTMODE i -PFILE

Posted on 2006-10-27
5
569 Views
Last Modified: 2012-06-21
I need that the database shutsdown in immediate manner before rebotting sever.the Oradim is not functioning in this way.
How should I approach this issue?
0
Comment
Question by:LindaC
  • 2
  • 2
5 Comments
 
LVL 13

Expert Comment

by:anand_2000v
ID: 17820655
what is you OS ??
0
 
LVL 8

Author Comment

by:LindaC
ID: 17820677
If i include the "oradim" command, you should know is some kind of indows server.
Specifically is a Windows 2003 server R2
0
 
LVL 13

Expert Comment

by:anand_2000v
ID: 17820762
what is you oracle version ?? If it is 8 on windows 2000 and above ,its a known bug which makes auto shutdown impossible (which  is de supported ).
0
 
LVL 8

Author Comment

by:LindaC
ID: 17820786
Version 9.2.0.8
0
 
LVL 34

Accepted Solution

by:
Mark Geerlings earned 125 total points
ID: 17821339
Oracle9 on WindowsServer2003 occasionally hangs when the shutdown command is given.  This may be a bug.  We used that combination for a couple years and I filed a TAR with Oracle on it, but they never found a solution.

I did not use the "oradim" executable for this.  I used a *.SQL script that had the line: "shutdown immediate", and called that from a batch file that called SQL*Plus to run the *.sql file.  But this hung occasionally for us.  When that happened, I did a "net stop OracleService[SID]" from a command prompt, or just rebooted the Windows server.

I automated this process with two different batch files that were scheduled via the Windows Task Scheduler.  The first one first renamed a special text file that I kept just for that purpose (named: "keep_me.txt") to: "weekend.txt" then attempted to do an Oracle shutdown and cold backup.  If that succeeded (and that took about 30-40 minutes on our server, then at the end of the process, it restarted Oracle, then renamed: "weekend.txt" back to "keep_me.txt".

The second batch file was scheduled to run one hour later than the first one, early Sunday mornings.  It checked for the existance of the file named "weekend.txt".  If it found it (which indicated that the shutdown-backup-restart process failed, probably in the shutdown) it simply did: "shutdown.exe /R /F".  This forced a server reboot, which restarted Oracle.  I didn't get a cold backup that way, but we also did hot backups each night, and this way at least the server and database were restarted for the next week.
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

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

746 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

13 Experts available now in Live!

Get 1:1 Help Now