Originally posted by Turin

I'm using sqlplus in windows 2k for generate this report, but when I try to connect to a not-running server it sends me an error (ORA-12560 TNS: protocol adapter error) and the .bat who calls cannot continue. Obviously this error is produced because the server is not running,
Well, obviously not. TNS-12560 is for other reasons. This is what it looks like when the server is not running:
Code:
SQL> conn system/manager@sys1
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
SVR4 Error: 2: No such file or directory


Warning: You are no longer connected to ORACLE.
SQL>
--OR---

Code:
SQL> conn / as sysdba
Connected.
SQL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> conn system/manager
ERROR:
ORA-01034: ORACLE not available


Warning: You are no longer connected to ORACLE.
SQL>