Differences between connection, session and process

#In Linux oracle server  instance: denver
[oracle@oracle9i ~]$ ps -ef | grep oracledenver
oracle   21013 20864  0 07:25 pts/0    00:00:00 grep oracledenver
no process, no anything

#In windows command
C:\>sqlplus sys/oracle@oracle9i as sysdba

SQL*Plus: Release 11.1.0.6.0 - Production on 星期二 7月 6 22:19:34 2010

Copyright (c) 1982, 2007, Oracle.  All rights reserved.


连接到:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production

#In Linux oracle server
[oracle@oracle9i ~]$ ps -ef | grep oracledenver
oracle   21017     1  0 07:27 ?        00:00:00 oracledenver (LOCAL=NO)
oracle   21021 20864  0 07:28 pts/0    00:00:00 grep oracledenver
server established a process 21017

#In windows command
SQL> select * from dual;

DU
--
X
session activity

SQL> disconnect
从 Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production 断开
session disconnected

SQL> select * from dual;
SP2-0640: 未连接
can not retrive data from database

#In Linux oracle server
[oracle@oracle9i ~]$ ps -ef | grep oracledenver
oracle   21017     1  0 07:27 ?        00:00:00 oracledenver (LOCAL=NO)
oracle   21030 20864  0 07:34 pts/0    00:00:00 grep oracledenver
the process still alive, and then connect still established but have not a session.

#In windows command
SQL> quit

C:\>
quit in SQL prompt, retrun to cmd window

#In Linux oracle server
[oracle@oracle9i ~]$ ps -ef | grep oracledenver
oracle   21035 20864  0 07:37 pts/0    00:00:00 grep oracledenver
the process disappered, and the connection is cut

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16817148/viewspace-667385/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/16817148/viewspace-667385/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值