I never thought that starting up Oracle is difficult. Usually it looks something like this:
sqlplus / as sysdba
startup
Except when Oracle is used on Windows. We have one or two dev servers installed on Windows, but in the three years I’ve been working as a DBA, I never had to restart one. Today, I connected to one of these machines, noticed it was down and attempted to restart it as usual:
C:\Documents and Settings\chen>set ORACLE_SID=ORCL
C:\Documents and Settings\chen>sqlplus / as sysdba
SQL*Plus: Release 11.1.0.6.0 - Production on Thu Mar 27 22:56:25 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name:
C:\Documents and Settings\chen>set | grep ORA
ORACLE_HOME=D:\app\chen\product\11.1.0\db_1
ORACLE_SID=ORCL
C:\Documents and Settings\chen>sqlplus
SQL*Plus: Release 11.1.0.6.0 - Production on Thu Mar 27 22:57:11 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Enter user-name: / as sysdba
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name:
At that point I recalled that Windows has these Oracle “service” things. So I started the service (from UI! how humiliating!) and surprise:
C:\Documents and Settings\chen>sqlplus
SQL*Plus: Release 11.1.0.6.0 - Production on Thu Mar 27 23:03:26 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Enter user-name: / as sysdba
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Seems that Windows will not let me connect to an idle instance to start it. Very strange.
Subscribe