标签云
asm恢复 bbed bootstrap$ dul In Memory kcbzib_kcrsds_1 kccpb_sanity_check_2 kfed MySQL恢复 ORA-00312 ORA-00607 ORA-00704 ORA-01110 ORA-01555 ORA-01578 ORA-08103 ORA-600 2131 ORA-600 2662 ORA-600 2663 ORA-600 3020 ORA-600 4000 ORA-600 4137 ORA-600 4193 ORA-600 4194 ORA-600 16703 ORA-600 kcbzib_kcrsds_1 ORA-600 KCLCHKBLK_4 ORA-15042 ORA-15196 ORACLE 12C oracle dul ORACLE PATCH Oracle Recovery Tools oracle加密恢复 oracle勒索 oracle勒索恢复 oracle异常恢复 Oracle 恢复 ORACLE恢复 ORACLE数据库恢复 oracle 比特币 OSD-04016 YOUR FILES ARE ENCRYPTED 勒索恢复 比特币加密文章分类
- Others (2)
- 中间件 (2)
- WebLogic (2)
- 操作系统 (102)
- 数据库 (1,670)
- DB2 (22)
- MySQL (73)
- Oracle (1,532)
- Data Guard (52)
- EXADATA (8)
- GoldenGate (21)
- ORA-xxxxx (159)
- ORACLE 12C (72)
- ORACLE 18C (6)
- ORACLE 19C (14)
- ORACLE 21C (3)
- Oracle 23ai (7)
- Oracle ASM (65)
- Oracle Bug (8)
- Oracle RAC (52)
- Oracle 安全 (6)
- Oracle 开发 (28)
- Oracle 监听 (28)
- Oracle备份恢复 (560)
- Oracle安装升级 (91)
- Oracle性能优化 (62)
- 专题索引 (5)
- 勒索恢复 (78)
- PostgreSQL (18)
- PostgreSQL恢复 (6)
- SQL Server (27)
- SQL Server恢复 (8)
- TimesTen (7)
- 达梦数据库 (2)
- 生活娱乐 (2)
- 至理名言 (11)
- 虚拟化 (2)
- VMware (2)
- 软件开发 (37)
- Asp.Net (9)
- JavaScript (12)
- PHP (2)
- 小工具 (20)
-
最近发表
- ORA-600 krse_arc_complete.4
- Oracle 19c 202410补丁(RUs+OJVM)
- ntfs MFT损坏(ntfs文件系统故障)导致oracle异常恢复
- .mkp扩展名oracle数据文件加密恢复
- 清空redo,导致ORA-27048: skgfifi: file header information is invalid
- A_H_README_TO_RECOVER勒索恢复
- 通过alert日志分析客户自行对一个数据库恢复的来龙去脉和点评
- ORA-12514: TNS: 监听进程不能解析在连接描述符中给出的SERVICE_NAME
- ORA-01092 ORA-00604 ORA-01558故障处理
- ORA-65088: database open should be retried
- Oracle 19c异常恢复—ORA-01209/ORA-65088
- ORA-600 16703故障再现
- 数据库启动报ORA-27102 OSD-00026 O/S-Error: (OS 1455)
- .[metro777@cock.li].Elbie勒索病毒加密数据库恢复
- 应用连接错误,初始化mysql数据库恢复
- RAC默认服务配置优先节点
- Oracle 19c RAC 替换私网操作
- 监听报TNS-12541 TNS-12560 TNS-00511错误
- drop tablespace xxx including contents恢复
- Linux 8 修改网卡名称
标签归档:DEFERRED_SEGMENT_CREATION
DEFERRED_SEGMENT_CREATION 参数相关说明
DEFERRED_SEGMENT_CREATION specifies the semantics of deferred segment creation. If set to true, then segments for tables and their dependent objects (LOBs, indexes) will not be created until the first row is inserted into the table.
这句话的意思是 DEFERRED_SEGMENT_CREATION 参数的作用是:创建表的时候延迟创建这个表相关的segment(包括lobs,indexes),直到第一次插入数据的时候才创建segment.补充说明:DEFERRED_SEGMENT_CREATION 参数从11.2.0.1引进,默认值为true;如果要使其恢复老版本功能,设置该参数为false.
DEFERRED_SEGMENT_CREATION默认值
SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production PL/SQL Release 11.2.0.3.0 - Production CORE 11.2.0.3.0 Production TNS for Linux: Version 11.2.0.3.0 - Production NLSRTL Version 11.2.0.3.0 - Production SQL> select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') "WWW.XIFENFEI.COM" FROM DUAL; WWW.XIFENFEI.COM -------------------------------------- 2012-06-01 05:31:03 SQL> show parameter DEFERRED_SEGMENT_CREATION; NAME TYPE VALUE ------------------------------------ ---------- -------- deferred_segment_creation boolean TRUE
DEFERRED_SEGMENT_CREATION效果验证
SQL> create table t_xifenfei (id number,name varchar2(30)); Table created. SQL> create index ind_t_xifenfei on t_xifenfei(id); Index created. SQL> select segment_name,segment_type from dba_segments where 2 segment_name in('T_XIFENFEI','IND_T_XIFENFEI') AND OWNER='CHF'; no rows selected --未创建segment SQL> INSERT INTO T_XIFENFEI VALUES(1,'WWW.XIFENFEI.COM'); 1 row created. SQL> commit; Commit complete. SQL> select segment_name,segment_type from dba_segments where 2 segment_name in('T_XIFENFEI','IND_T_XIFENFEI') AND OWNER='CHF'; SEGMENT_NAME SEGMENT_TYPE -------------------- ------------------------------------ IND_T_XIFENFEI INDEX T_XIFENFEI TABLE --创建segment SQL> alter session set deferred_segment_creation=false; Session altered. SQL> create table t_xifenfei_2 (id number,name varchar2(30)); Table created. SQL> select segment_name,segment_type from dba_segments where segment_name='T_XIFENFEI_2'; SEGMENT_NAME SEGMENT_TYPE -------------------- ------------------------------------ T_XIFENFEI_2 TABLE --创建segment
问题1(朋友疑惑为什么它没有给相关表空间分配配额但是创建表成功)
SQL> create user xifenfei identified by xifenfei default tablespace users; User created. SQL> grant connect,resource to xifenfei; Grant succeeded. SQL> revoke unlimited tablespace from xifenfei; Revoke succeeded. SQL> alter user xifenfei quota unlimited on users; User altered. SQL> conn xifenfei/xifenfei Connected. SQL> create table t_xifenfei (id number,name varchar2(30)) tablespace system; Table created. --在system表空间无配额,但是创建表成功 SQL> insert into t_xifenfei values(1,'www.xifenfei.com'); insert into t_xifenfei values(1,'www.xifenfei.com') * ERROR at line 1: ORA-01950: no privileges on tablespace 'SYSTEM' --插入数据库失败,因为在system上创建segment失败 SQL> alter session set deferred_segment_creation=false; Session altered. SQL> create table t_xifenfei_2 (id number,name varchar2(30)) tablespace system; create table t_xifenfei_2 (id number,name varchar2(30)) tablespace system * ERROR at line 1: ORA-01950: no privileges on tablespace 'SYSTEM' --deferred_segment_creation设置为false后,创建表直接失败
问题2(exp未导segment不存在表)
该问题帮朋友解决过.因为暂时无11.2.0.1版本数据库,直接摘录MOS
In 11.2 the deferred storage segment feature is enabled by default. Conventional export (exp) silently skips tables with deferred segment creation if no segment has yet been created. ie: If the table does not yet contain any rows. In some cases "exp" will report EXP-11 for the table. eg: create table t(c1 int) tablespace sysaux; select segment_created from user_tables where table_name='T'; SEG --- NO Table level export: exp scott/tiger file=/tmp/scott.dmp tables=t ^ EXP-11 SCOTT.T does not exist Schema level export: exp scott/tiger file=/tmp/scott.dmp owner=scott statistics=none ^ Export completes successfully but silently does not export table "T". Rediscovery Notes: Tables that may be affected by this can be found thus: select owner, table_name from dba_tables where segment_created='NO'; EXP-11 on export for tables with no data. Tables missing after exp/imp Workaround Re-create the missing table at the export site from DDL. (the table did not contain rows otherwise it would have had a segment created for it) In 11.2 the deferred storage segment feature is enabled by default. Conventional export (exp) silently skips tables with deferred segment creation if no segment has yet been created. ie: If the table does not yet contain any rows. In some cases "exp" will report EXP-11 for the table. eg: create table t(c1 int) tablespace sysaux; select segment_created from user_tables where table_name='T'; SEG --- NO Table level export: exp scott/tiger file=/tmp/scott.dmp tables=t ^ EXP-11 SCOTT.T does not exist Schema level export: exp scott/tiger file=/tmp/scott.dmp owner=scott statistics=none ^ Export completes successfully but silently does not export table "T". Rediscovery Notes: Tables that may be affected by this can be found thus: select owner, table_name from dba_tables where segment_created='NO'; EXP-11 on export for tables with no data. Tables missing after exp/imp Workaround Re-create the missing table at the export site from DDL. (the table did not contain rows otherwise it would have had a segment created for it) This issue is fixed in •12.1 (Future Release) •11.2.0.2 (Server Patch Set)