Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

shutdown immeditae waiting, grep ora, got process

0 views
Skip to first unread message

yls177

unread,
Oct 17, 2003, 10:45:08 PM10/17/03
to
hi, below are my steps

1) shutdown immediate;
2) but oracle still hanging, as in can do a ps -ef | grep ora and
still the set of family oracle processes are alive
3) so i do a select * from v$instance;
4) and when it says that " oracle not available"
5) then i safely do a shutdown abort
6) finally, the family set of oracle processes are gone.

but is it absolutely safe to do this?

please confirm

Howard J. Rogers

unread,
Oct 18, 2003, 4:06:57 AM10/18/03
to
yls177 wrote:

It's never *absolutely* safe to do a shutdown abort. There is a miniscule,
but real, risk that you lose your current redo log seconds after doing the
shutdown abort. *All* shutdown aborts require instance recovery on
subsequent startup. All instance recoveries require the contents of the
current redo log to be available. Therefore, after a shutdown abort, if you
lost your current redo log, you would not be able to do instance recovery
and you would be faced at best with the prospect of performing an
incomplete media recovery... meaning transactions would be lost.

A lot of people do shutdown abort - startup -shutdown immediate to get
around this problem.

Me? I would shutdown the intelligent agent, and then do a shutdown
immediate. The agent has a session on the database, and it's one that seems
not to respond very well to the shutdown immediate command. So kill the
agent first, and you tend to find immediate shutdowns become a lot faster.

Regards
HJR
--
--------------------------------------------
See my brand new website, soon to be full of
new articles: www.dizwell.com.
Nothing much there yet, but give it time!!
--------------------------------------------

joe bayer

unread,
Oct 18, 2003, 9:18:42 AM10/18/03
to
Howard,
How do you kill "intelligent agent"?
ps -eaf|grep intellignet or ps -eaf|grep agent
did not return anything.

Thanks


"Howard J. Rogers" <h...@dizwell.com> wrote in message
news:3f90f533$0$24515$afc3...@news.optusnet.com.au...

Sybrand Bakker

unread,
Oct 18, 2003, 11:01:56 AM10/18/03
to
On Sat, 18 Oct 2003 13:18:42 GMT, "joe bayer"
<joebayerii(no-spam)@hotmail.com> wrote:

>Howard,
>How do you kill "intelligent agent"?
>ps -eaf|grep intellignet or ps -eaf|grep agent
>did not return anything.
>
>Thanks

You need to look for processes starting with dbsnmp
You can just kill the agent by using lsnrctl dbsnmp_stop
8i
or
agentctl stop (look up the exact commnad in the doco)


--
Sybrand Bakker, Senior Oracle DBA

Howard J. Rogers

unread,
Oct 18, 2003, 6:53:47 PM10/18/03
to
joe bayer wrote:

> Howard,
> How do you kill "intelligent agent"?
> ps -eaf|grep intellignet or ps -eaf|grep agent
> did not return anything.


Oh God, don't start killing things at the O/S level. That's why I said
'shutdown the intelligent agent', not kill it. I meant exactly what Sybrand
has listed as the commands. Before 9i, it was lsnrctl dbsnmp_stop. In 9i,
it's agentctl stop.

Regards
HJR

yls177

unread,
Oct 19, 2003, 6:15:37 AM10/19/03
to
"Howard J. Rogers" <h...@dizwell.com> wrote in message news:<3f90f533$0$24515$afc3...@news.optusnet.com.au>...


hi, thanks for your sharing... from what i could understand from your
post, basically 2 areas

1) if there is ever a need to do a shutdown abort. we need to follow
up by a startup and then shutdown immediate. this is because we want
to avoid lost transactions?

2) when we stop this intelligent agent by "Before 9i, it was lsnrctl
dbsnmp_stop. In 9i,it's agentctl stop." this will bring shutdown
immediate a lot faster?

please kindly confirm.

thanks

Howard J. Rogers

unread,
Oct 19, 2003, 7:48:58 AM10/19/03
to
yls177 wrote:


I've always been an advocate of shutdown aborts not being very dangerous,
actually. There is a *miniscule* risk of losing transactions... but
miniscule is not 'none'. The risk arises from the possibility of losing
your current redo log group immediately after the shutdown abort. How
likely is it that you would actually lose an entire redo log group that has
been properly mirrored onto two or three separate hard disks/RAID arrays?

I would say 'not very likely at all'. But the risk is still there, despite
that optimisim.

Therefore, yes... a lot of people do shutdown abort-startup
restrict-shutdown normal.

>
> 2) when we stop this intelligent agent by "Before 9i, it was lsnrctl
> dbsnmp_stop. In 9i,it's agentctl stop." this will bring shutdown
> immediate a lot faster?
>
> please kindly confirm.

Shutdown immediate is supposed to boot users off the system and rollback
whatever they were in the middle of doing at the time. Until all users have
been killed off by the shutdown immediate command, the shutdown process
can't actually begin, and you just sit there waiting for it.

The agent is another connection that is *supposed* to be booted off... but
it quite frequently seems not to. And that means you just sit there waiting
for *it*, too. By terminating the agent yourself, you eliminate one source
of potential delay. Shutdown immediate should indeed therefore be rather
faster than before.

As an indication: when I was trying to work out an automated shutdown
sequence for 9iR2 on Red Hat 9, I had the database shutdown, then the
agent, listener and Management Server process. A bad move on my part:: the
reboot of my Linux box took an interminable amount of time. Reverse the
order of events, so that the agent, listener and management server were
ended first, and the shutdown immediate was pretty well immediate.

Your mileage might, however, vary.

> thanks

No problems,

0 new messages