[20131109]deferred segment creation與12c的exp命令.txt
[20131109]deferred segment creation與12c的exp命令.txt
參考連結:http://space.itpub.net/267265/viewspace-713311
昨天想匯出一些資料在自己的12c測試環境,發現具有段延遲建立特性的表使用exp也能匯出。
例子如下:
SCOTT@test01p> @ver
BANNER CON_ID
-------------------------------------------------------------------------------- ----------
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production 0
SCOTT@test01p> create table t ( a number);
Table created.
SCOTT@test01p> select DBMS_METADATA.get_ddl ('TABLE','T') from dual;
DBMS_METADATA.GET_DDL('TABLE','T')
-------------------------------------------------------------------------
CREATE TABLE "SCOTT"."T"
( "A" NUMBER
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "USERS"
--SEGMENT CREATION DEFERRED說明表具有段延遲建立特性。
d:\tools\rlwrap>exp scott/tiger@test01p tables=(t) file=t.dmp
Export: Release 12.1.0.1.0 - Production on Sat Nov 9 22:26:23 2013
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table T 0 rows exported
Export terminated successfully without warnings.
--說明12c可以匯出,這樣看來前面的版本應該算BUG。
做一個move看看
參考連結:http://space.itpub.net/267265/viewspace-713311
SCOTT@test01p> alter table t move tablespace users;
Table altered.
SCOTT@test01p> select table_name ,segment_created from user_tables where table_name='T';
TABLE_NAME SEG
---------- ---
T NO
SCOTT@test01p> select segment_name ,segment_type ,bytes from user_segments where segment_name='T' and segment_type='TABLE';
no rows selected
--看來11G遇到的問題都是bug。看看11.2.0.3問題還存在嗎?
SCOTT@test> @ver
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
SCOTT@test> create table t ( a number);
Table created.
SCOTT@test> select DBMS_METADATA.get_ddl ('TABLE','T') from dual;
DBMS_METADATA.GET_DDL('TABLE','T')
------------------------------------------------------------------
CREATE TABLE "SCOTT"."T"
( "A" NUMBER
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "USERS"
$ exp scott/btbtms tables=(t) file=t.dmp
Export: Release 11.2.0.3.0 - Production on Mon Nov 11 09:09:08 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table T 0 rows exported
Export terminated successfully without warnings.
--可以發現t也被匯出!
--做一個move看看
SCOTT@test> alter table t move tablespace users;
Table altered.
SCOTT@test> select table_name ,segment_created from user_tables where table_name='T';
TABLE_NAME SEG
---------- ---
T NO
SCOTT@test> select segment_name ,segment_type ,bytes from user_segments where segment_name='T' and segment_type='TABLE';
no rows selected
--做一個imp匯入看看。
SCOTT@test> rename t to tx;
Table renamed.
$ imp scott/btbtms full=y file=t.dmp
Import: Release 11.2.0.3.0 - Production on Mon Nov 11 09:12:24 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export file created by EXPORT:V11.02.00 via conventional path
import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. importing SCOTT's objects into SCOTT
. importing SCOTT's objects into SCOTT
. . importing table "T" 0 rows imported
Import terminated successfully without warnings.
SCOTT@test> desc t;
Name Null? Type
----- -------- ---------
A NUMBER
SCOTT@test> select segment_name ,segment_type ,bytes from user_segments where segment_name='TX' and segment_type='TABLE';
no rows selected
SCOTT@test> select segment_name ,segment_type ,bytes from user_segments where segment_name='T' and segment_type='TABLE';
no rows selected
--可以發現t表結構匯入(沒有記錄).但是沒有建立資料段。
總結:
可以發現每一個新特性的出現,總是意味著一堆bug的出現。使用新特性要注意。
參考連結:http://space.itpub.net/267265/viewspace-713311
昨天想匯出一些資料在自己的12c測試環境,發現具有段延遲建立特性的表使用exp也能匯出。
例子如下:
SCOTT@test01p> @ver
BANNER CON_ID
-------------------------------------------------------------------------------- ----------
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production 0
SCOTT@test01p> create table t ( a number);
Table created.
SCOTT@test01p> select DBMS_METADATA.get_ddl ('TABLE','T') from dual;
DBMS_METADATA.GET_DDL('TABLE','T')
-------------------------------------------------------------------------
CREATE TABLE "SCOTT"."T"
( "A" NUMBER
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "USERS"
--SEGMENT CREATION DEFERRED說明表具有段延遲建立特性。
d:\tools\rlwrap>exp scott/tiger@test01p tables=(t) file=t.dmp
Export: Release 12.1.0.1.0 - Production on Sat Nov 9 22:26:23 2013
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table T 0 rows exported
Export terminated successfully without warnings.
--說明12c可以匯出,這樣看來前面的版本應該算BUG。
做一個move看看
參考連結:http://space.itpub.net/267265/viewspace-713311
SCOTT@test01p> alter table t move tablespace users;
Table altered.
SCOTT@test01p> select table_name ,segment_created from user_tables where table_name='T';
TABLE_NAME SEG
---------- ---
T NO
SCOTT@test01p> select segment_name ,segment_type ,bytes from user_segments where segment_name='T' and segment_type='TABLE';
no rows selected
--看來11G遇到的問題都是bug。看看11.2.0.3問題還存在嗎?
SCOTT@test> @ver
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
SCOTT@test> create table t ( a number);
Table created.
SCOTT@test> select DBMS_METADATA.get_ddl ('TABLE','T') from dual;
DBMS_METADATA.GET_DDL('TABLE','T')
------------------------------------------------------------------
CREATE TABLE "SCOTT"."T"
( "A" NUMBER
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "USERS"
$ exp scott/btbtms tables=(t) file=t.dmp
Export: Release 11.2.0.3.0 - Production on Mon Nov 11 09:09:08 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table T 0 rows exported
Export terminated successfully without warnings.
--可以發現t也被匯出!
--做一個move看看
SCOTT@test> alter table t move tablespace users;
Table altered.
SCOTT@test> select table_name ,segment_created from user_tables where table_name='T';
TABLE_NAME SEG
---------- ---
T NO
SCOTT@test> select segment_name ,segment_type ,bytes from user_segments where segment_name='T' and segment_type='TABLE';
no rows selected
--做一個imp匯入看看。
SCOTT@test> rename t to tx;
Table renamed.
$ imp scott/btbtms full=y file=t.dmp
Import: Release 11.2.0.3.0 - Production on Mon Nov 11 09:12:24 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export file created by EXPORT:V11.02.00 via conventional path
import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. importing SCOTT's objects into SCOTT
. importing SCOTT's objects into SCOTT
. . importing table "T" 0 rows imported
Import terminated successfully without warnings.
SCOTT@test> desc t;
Name Null? Type
----- -------- ---------
A NUMBER
SCOTT@test> select segment_name ,segment_type ,bytes from user_segments where segment_name='TX' and segment_type='TABLE';
no rows selected
SCOTT@test> select segment_name ,segment_type ,bytes from user_segments where segment_name='T' and segment_type='TABLE';
no rows selected
--可以發現t表結構匯入(沒有記錄).但是沒有建立資料段。
總結:
可以發現每一個新特性的出現,總是意味著一堆bug的出現。使用新特性要注意。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-776265/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 11g的Deferred Segment CreationOracle
- 11GR2的新特性Deferred Segment Creation
- oracle 11g deferred_segment_creation段延遲建立Oracle
- 【Deferred Segment Creation】Oracle 11g新特性-延期建立段Oracle
- 我嘞個去,11G新特性deferred_segment_creation
- 【延遲段建立】Oracle 11gR2的延遲段建立(deferred segment creation)特性Oracle
- 【故障處理】EXP-00003: no storage definition found for segment
- EXP-00003: no storage definition found for segment(9, 907)
- initially immediate 與 initially deferred
- Oracle-exp命令Oracle
- 常用find命令與xargs.txt
- Oracel 12c Alert日誌中的Creating new log segment
- exp/imp命令詳解
- [20190917]oracle引數deferred屬性.txtOracle
- imp/exp命令 詳解(1)
- 12C SQL Translation Framework.txtSQLFramework
- jQuery 的deferred物件jQuery物件
- jQuery DeferredjQuery
- [20140823]12c null與預設值.txtNull
- RMAN與exp / imp的區別
- exp匯出命令中的query選項(轉)
- jQuery的Deferred物件概述jQuery物件
- exp與expdp區別
- ORACLE匯入匯出命令exp/impOracle
- exp/expdp與imp/impdp的區別
- Oracle physical standby中的邏輯備份(exp命令)Oracle
- exp/imp兩個命令可以說是oracle中最常用的命令了.Oracle
- Unity的Deferred ShadingUnity
- jQuery的deferred物件詳解jQuery物件
- [20160809]exp語法問題.txt
- [20210421]12c以上版本增加欄位與預設值.txt
- 使用exp命令匯出報EXP-00008 和ORA-01455的解決方法
- exp / imp 任務的檢視與管理
- [20171105]exp imp buffer引數解析.txt
- [20160803]exp/imp語法問題.txt
- deferred中done和then的區別
- 約束的DEFERRABLE and DEFERRED特性
- Oracle 12C新特性-History命令Oracle