Home » RDBMS Server » Server Administration » Closing the database
Closing the database [message #165227] Wed, 29 March 2006 00:23 Go to next message
gajini
Messages: 262
Registered: January 2006
Senior Member
I connected to the database as SYS(no other users are accessing the database,currently it's the only connection made to the database) & tried to close the database,but it shows the following error,

SQL> alter database close;
alter database close
*
ERROR at line 1:
ORA-01093: ALTER DATABASE CLOSE only permitted with no sessions connected


What i've to do to close the database?

Please anyone answer clear this doubt.
Re: Closing the database [message #165252 is a reply to message #165227] Wed, 29 March 2006 01:13 Go to previous messageGo to next message
kmsalih
Messages: 197
Registered: March 2006
Senior Member
Hi gajini,

Did you monitored V$sessions?

Sometimes there may be some sessions alive.

Kill those sessions and try.


Rgds
SALIH KM Smug
Re: Closing the database [message #165258 is a reply to message #165227] Wed, 29 March 2006 01:45 Go to previous messageGo to next message
oradba16
Messages: 54
Registered: September 2005
Member
hi,

to perform this action check v$session and make sure no other sessions are there except only one 'sys' user if it is there kill those session.and now you use the command
>alter database close
it will work..
Re: Closing the database [message #165910 is a reply to message #165227] Mon, 03 April 2006 04:57 Go to previous message
nmacdannald
Messages: 460
Registered: July 2005
Location: Stockton, California - US...
Senior Member
>sqlplus
>username: sys / as sysdba
>password: xxxx
sqlplus> shutdown immediate
or
sqlplus> shutdown abort

sqlplus> exit

>lsnrctl stop

you can not back up a database unless you can get it to shudown without the abort clause, I *think*.
Previous Topic: Does Oracle 10gr2 client work on mandrake (10.2) Linuxs?
Next Topic: upgrading database from v9.2.0.1 to v9.2.0.6
Goto Forum:
  


Current Time: Fri Sep 20 12:48:36 CDT 2024