客户想实现对会话空闲时间的控制,下面是做的一个例子。 Microsoft Windows [版本 6.1.7601] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:UsersLIUBINGLIN>sqlplus sys/Oracle123@localhost:1521/hello as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on 星期二 4月 14 08:42:55 2015
Copyright (c) 1982, 2011, Oracle. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ resource_limit boolean FALSE resource_manager_cpu_allocation integer 4 resource_manager_plan string
SQL> alter system set resource_limit =true; 对PROFILE中KERNEL类型的项目进行控制需要将该参数设置为TRUE,PASSWORD类型的项目不受此参数限制。
系统已更改。
SQL> create user test111 identified by test111 default tablespace users temporary tablespace temp profile test_profile;
SQL*Plus: Release 11.2.0.3.0 Production on 星期二 4月 14 08:55:49 2015
Copyright (c) 1982, 2011, Oracle. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> create table test (id number); create table test (id number) * 第 1 行出现错误: ORA-02396: 超出最大空闲时间, 请重新连接