标签云
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,682)
- DB2 (22)
- MySQL (73)
- Oracle (1,544)
- Data Guard (52)
- EXADATA (8)
- GoldenGate (24)
- ORA-xxxxx (159)
- ORACLE 12C (72)
- ORACLE 18C (6)
- ORACLE 19C (15)
- ORACLE 21C (3)
- Oracle 23ai (7)
- Oracle ASM (67)
- Oracle Bug (8)
- Oracle RAC (53)
- Oracle 安全 (6)
- Oracle 开发 (28)
- Oracle 监听 (28)
- Oracle备份恢复 (565)
- Oracle安装升级 (92)
- Oracle性能优化 (62)
- 专题索引 (5)
- 勒索恢复 (79)
- 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-08102: 未找到索引关键字, 对象号 39故障处理
- ORA-00227: corrupt block detected in control file
- 手工删除19c rac
- 解决oracle数据文件路径有回车故障
- .wstop扩展名勒索数据库恢复
- Oracle Recovery Tools工具一键解决ORA-00376 ORA-01110故障(文件offline)
- OGG-02771 Input trail file format RELEASE 19.1 is different from previous trail file form at RELEASE 11.2.
- OGG-02246 Source redo compatibility level 19.0.0 requires trail FORMAT 12.2 or higher
- GoldenGate 19安装和打patch
- dd破坏asm磁盘头恢复
- 删除asmlib磁盘导致磁盘组故障恢复
- Kylin Linux 安装19c
- 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
标签归档: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)