在11g中alter system set recyclebin = off 报错 recyclebin 参数在11g和10g中的区别
来源:互联网 发布:am域名投资 编辑:程序博客网 时间:2024/06/05 03:04
在Oracle 11g中,recyclebin参数发生了微小的变化.
This supported parameter was introduced in Oracle 10.2.0
VersionParameter NameData TypeSession ModifiableSystem Modifiable10.2.0recyclebinStringTRUEIMMEDIATE11.1.0recyclebinStringTRUEDEFERRED
从文档上我们可以看到这个变化说明,到了11g中,这个参数在session依然可以理解修改并影响当前的session,但如果是在系统一级修改的话,那么就要加deferred参数,对当前已经连接的sesion没有影响,但新连接的session将受到影响
SQL> select name,isses_modifiable,issys_modifiable from v$parameter where name='recyclebin';
NAME ISSES_MODIFIABLE ISSYS_MODIFIABLE
----------- ---------------- ----------------
recyclebin TRUE DEFERRED
SQL>
下面做一个测试看看:
一开始,我用study用户分别发起2个session连接到到我的ora11g数据库上
SESSION 1
Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.6.0
Connected as study
SQL> show parameter recyclebin
NAME TYPE VALUE
-------------- ----------- --------------
recyclebin string ON
SQL> alter system set recyclebin=off;
alter system set recyclebin=off
ORA-02096: 此选项的指定初始化参数不可修改
SQL> alter session set recyclebin=off;
Session altered
SQL> create table zrp(no int);
Table created
SQL> drop table zrp;
Table dropped
SQL> flashback table zrp to before drop;
flashback table zrp to before drop
ORA-38305: 对象不在回收站中
可以看到,在system一级,不加DEFERRED参数是不允许修改的,但在session一级可以修改.
SQL> alter system set recyclebin=off DEFERRED;
System altered
SQL>
SESSION 2
说明:在session 1中发出alter system set recyclebin=off DEFERRED;命令的时候,我的session 2已经连接到了ora11g上.在这个session中,我们用来体会
alter system set recyclebin=off DEFERRED;
命令对当前已经连接的session不影响
C:\Documents and Settings\zhangrp>sqlplus study/study
SQL*Plus: Release 11.1.0.6.0 - Production on 星期五 2月 20 16:20:50 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show parameter recyclebin
NAME TYPE VALUE
-------------- ----------- --------------
recyclebin string ON
SQL> create table test_2(no int);
表已创建。
SQL> drop table test_2;
表已删除。
SQL> flashback table test_2 to before drop;
闪回完成。
SQL> desc test_2
名称 是否为空? 类型
------------ --------- -----------
NO NUMBER(38)
SESSION 3
在session 1中完成alter system set recyclebin=off DEFERRED;命令以后,我们再发起一个新的连接,看看是不是对新的连接生效:
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\zhangrp>sqlplus study/study
SQL*Plus: Release 11.1.0.6.0 - Production on 星期五 2月 20 16:23:46 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show parameter recyclebin
NAME TYPE VALUE
-------------- ----------- --------------
recyclebin string OFF
This supported parameter was introduced in Oracle 10.2.0
VersionParameter NameData TypeSession ModifiableSystem Modifiable10.2.0recyclebinStringTRUEIMMEDIATE11.1.0recyclebinStringTRUEDEFERRED
从文档上我们可以看到这个变化说明,到了11g中,这个参数在session依然可以理解修改并影响当前的session,但如果是在系统一级修改的话,那么就要加deferred参数,对当前已经连接的sesion没有影响,但新连接的session将受到影响
SQL> select name,isses_modifiable,issys_modifiable from v$parameter where name='recyclebin';
NAME ISSES_MODIFIABLE ISSYS_MODIFIABLE
----------- ---------------- ----------------
recyclebin TRUE DEFERRED
SQL>
下面做一个测试看看:
一开始,我用study用户分别发起2个session连接到到我的ora11g数据库上
SESSION 1
Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.6.0
Connected as study
SQL> show parameter recyclebin
NAME TYPE VALUE
-------------- ----------- --------------
recyclebin string ON
SQL> alter system set recyclebin=off;
alter system set recyclebin=off
ORA-02096: 此选项的指定初始化参数不可修改
SQL> alter session set recyclebin=off;
Session altered
SQL> create table zrp(no int);
Table created
SQL> drop table zrp;
Table dropped
SQL> flashback table zrp to before drop;
flashback table zrp to before drop
ORA-38305: 对象不在回收站中
可以看到,在system一级,不加DEFERRED参数是不允许修改的,但在session一级可以修改.
SQL> alter system set recyclebin=off DEFERRED;
System altered
SQL>
SESSION 2
说明:在session 1中发出alter system set recyclebin=off DEFERRED;命令的时候,我的session 2已经连接到了ora11g上.在这个session中,我们用来体会
alter system set recyclebin=off DEFERRED;
命令对当前已经连接的session不影响
C:\Documents and Settings\zhangrp>sqlplus study/study
SQL*Plus: Release 11.1.0.6.0 - Production on 星期五 2月 20 16:20:50 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show parameter recyclebin
NAME TYPE VALUE
-------------- ----------- --------------
recyclebin string ON
SQL> create table test_2(no int);
表已创建。
SQL> drop table test_2;
表已删除。
SQL> flashback table test_2 to before drop;
闪回完成。
SQL> desc test_2
名称 是否为空? 类型
------------ --------- -----------
NO NUMBER(38)
SESSION 3
在session 1中完成alter system set recyclebin=off DEFERRED;命令以后,我们再发起一个新的连接,看看是不是对新的连接生效:
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\zhangrp>sqlplus study/study
SQL*Plus: Release 11.1.0.6.0 - Production on 星期五 2月 20 16:23:46 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show parameter recyclebin
NAME TYPE VALUE
-------------- ----------- --------------
recyclebin string OFF
- 在11g中alter system set recyclebin = off 报错 recyclebin 参数在11g和10g中的区别
- 在11g中alter system set recyclebin = off 报错 recyclebin 参数在11g和10g中的区别
- 在11g中alter system set recyclebin = off 报错 recyclebin 参数在11g和10g中的区别
- ORACLE 10G中的RecycleBin
- Oracle 11g中recyclebin参数的微小变化
- oracle 11g 回收站(recyclebin)的使用
- Oracle 11g中recyclebin已经是静态参数,在线不能修改
- 10g Recyclebin Feature…
- ORACLE中10g和11g之后版本在parallel ctas时的区别
- oracle 10g recyclebin引起的dba_free_space性能问题
- Oracle闪回技术之三 Oracle 11g Oracle RecycleBin (回收站)管理一
- Oracle闪回技术之三 Oracle 11g Oracle RecycleBin (回收站)管理二
- oracle 10g 11g中的SGA_MAX_SIZE与SGA_TARGET参数
- Oracle闪回技术之二 Oracle 11g 利用Oracle RecycleBin (回收站)闪回删除功能
- 9i客户端无法“直接”使用purge recyclebin命令清理10g数据库回收站信息
- CRSD进程在11g中的变化
- oracle9i、10g、11g区别
- oracle9i、10g、11g区别
- 飞思卡尔Kinetis 60(K60)时钟系统分析
- appfuse
- 剖析 epoll ET/LT 触发方式的性能差异误解
- volatile
- mysql表类型MyISAM和InnoDB有什么区别?
- 在11g中alter system set recyclebin = off 报错 recyclebin 参数在11g和10g中的区别
- JS Cookies 函数 通过IE6、IE7,IE8,FF,Safari,Chrome,Opera
- RMI远程调用时的内外网端口映射问题(RMI远程调用如何穿透防火墙)
- hibernate延迟加载
- The Property Browser Framework
- zz : memcached源码学习-内存管理机制slab allocator
- vs2005连接Oracle远程数据库
- 火车票电话预订流程
- 足协做让步仍难寻女足助教 李铁专心俱乐部弃执教