However, if your instance is out of processes, then a non-SYSDBA connection will error out with ORA-0020, and a SYSDBA connection will error out with "Connected to idle instance." It's a little misleading, but that's what happens.
Usually, when this happens, I want to get connected to the instance, so that I can try to figure out which user is causing the problem. One way to do that is to use the 'ps' command to identify some of the oldest server processes, and kill the 3-5 oldest processes, and then quickly try connecting to the database. Once you're in, you can look at things like V$SESSION to try and determine which user(s) is (are) consuming so many connections, and then go from there.
To start or shut down Oracle Database:
- Go to your Oracle Database server.
- Start SQL*Plus at the command prompt: C:\> sqlplus /NOLOG.
- Connect to Oracle Database with username SYSDBA: SQL> CONNECT / AS SYSDBA.
- To start a database, enter: SQL> STARTUP [PFILE=path\filename] ...
- To stop a database, enter: SQL> SHUTDOWN [mode]
No comments:
Post a Comment