Connectionless SQL*Plus Session with /NOLOG

用 /NOLOG 选项可以不用连接到一个数据库就能启动一个SQL*Plus会话。

 

什么情况下可能会用到此选项:

1、when you're starting the database

2、if you just want to use SQL*Plus editing commands to write or edit scripts.

 

一旦启动了SQL*Plus会话,你就可以用CONNECT命令连接到一个数据库。

 

下面是使用 NOLOG选项的一个例子:
$ sqlplus /NOLOG
SQL*Plus: Release 11.1.0.6.0 - Production on Wed Jan 2 18:35:25 2008
Copyright (c) 1982, 2007, Oracle.  All rights reserved.
SQL> SHO USER
USER is "
"
SQL> SHO SGA
SP2-0640: Not connected
SQL> CONNECT salapati/sammyy1
Connected.
SQL>

你可能感兴趣的:(/nolog)