Oracle 帶LOB欄位的表的遷移
[oracle@blliu ~]$ sqlplus test/test
SQL*Plus: Release 10.2.0.4.0 - Production on Sat Feb 27 13:27:07 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> create table test (id number,description clob);
Table created.
SQL> select tablespace_name from user_segments where segment_name='TEST';
TABLESPACE_NAME
------------------------------
USERDATA
SQL> set linesize 200
SQL> col table_name format a30
SQL> col column_name format a30
SQL> col segment_name format a30
SQL> col tablespace_name format a30
SQL> select table_name,column_name,segment_name,tablespace_name from user_lobs;
TABLE_NAME COLUMN_NAME SEGMENT_NAME TABLESPACE_NAME
------------------------------ ------------------------------ ------------------------------ ------------------------------
TEST DESCRIPTION SYS_LOB0000013214C00002$$ USERDATA
SQL>alter table test move tablespace users;
Table altered.
SQL> select tablespace_name from user_segments where segment_name='TEST';
TABLESPACE_NAME
------------------------------
USERS
SQL> select table_name,column_name,segment_name,tablespace_name from user_lobs;
TABLE_NAME COLUMN_NAME SEGMENT_NAME TABLESPACE_NAME
------------------------------ ------------------------------ ------------------------------ ------------------------------
TEST DESCRIPTION SYS_LOB0000013214C00002$$ USERDATA
SQL>alter table test move tablespace users lob(description) store as (tablespace users);
Table altered.
SQL> select tablespace_name from user_segments where segment_name='TEST';
TABLESPACE_NAME
------------------------------
USERS
SQL> select table_name,column_name,segment_name,tablespace_name from user_lobs;
TABLE_NAME COLUMN_NAME SEGMENT_NAME TABLESPACE_NAME
------------------------------ ------------------------------ ------------------------------ ------------------------------
TEST DESCRIPTION SYS_LOB0000013214C00002$$ USERS
SQL>
come from:http://space.itpub.net/23135684/viewspace-628031
SQL*Plus: Release 10.2.0.4.0 - Production on Sat Feb 27 13:27:07 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> create table test (id number,description clob);
Table created.
SQL> select tablespace_name from user_segments where segment_name='TEST';
TABLESPACE_NAME
------------------------------
USERDATA
SQL> set linesize 200
SQL> col table_name format a30
SQL> col column_name format a30
SQL> col segment_name format a30
SQL> col tablespace_name format a30
SQL> select table_name,column_name,segment_name,tablespace_name from user_lobs;
TABLE_NAME COLUMN_NAME SEGMENT_NAME TABLESPACE_NAME
------------------------------ ------------------------------ ------------------------------ ------------------------------
TEST DESCRIPTION SYS_LOB0000013214C00002$$ USERDATA
SQL>alter table test move tablespace users;
Table altered.
SQL> select tablespace_name from user_segments where segment_name='TEST';
TABLESPACE_NAME
------------------------------
USERS
SQL> select table_name,column_name,segment_name,tablespace_name from user_lobs;
TABLE_NAME COLUMN_NAME SEGMENT_NAME TABLESPACE_NAME
------------------------------ ------------------------------ ------------------------------ ------------------------------
TEST DESCRIPTION SYS_LOB0000013214C00002$$ USERDATA
SQL>alter table test move tablespace users lob(description) store as (tablespace users);
Table altered.
SQL> select tablespace_name from user_segments where segment_name='TEST';
TABLESPACE_NAME
------------------------------
USERS
SQL> select table_name,column_name,segment_name,tablespace_name from user_lobs;
TABLE_NAME COLUMN_NAME SEGMENT_NAME TABLESPACE_NAME
------------------------------ ------------------------------ ------------------------------ ------------------------------
TEST DESCRIPTION SYS_LOB0000013214C00002$$ USERS
SQL>
come from:http://space.itpub.net/23135684/viewspace-628031
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/90618/viewspace-693091/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 帶有LOB欄位的表遷移
- lob欄位表空間遷移
- 遷移帶LOB等大欄位資料到非預設表空間
- 移動一個帶有lob欄位的表到另外一個表空間的語法
- Oracle 建表時LOB欄位語法Oracle
- oracle中lob欄位Oracle
- 行連結與行遷移, LOB欄位的儲存及效能影響
- ORACLE LOB大欄位維護Oracle
- LOB欄位EMPTY_LOB和NULL的區別Null
- Long -> lob , to_lob 轉換,遷移
- oracle刪除表欄位和oracle表增加欄位Oracle
- Oracle lob載入bfile資料到blob欄位中Oracle
- oracle 修改表欄位的長度Oracle
- LOB欄位在Oracle中的存放方式。Oracle
- 釋放大資料量的lob欄位空間大資料
- LONG欄位型別向CLOB遷移型別
- 【LOB】使用資料泵時 LOB 欄位存放位置
- pl/sql dev建表加欄位時建的欄位名都帶了“”SQLdev
- 移動 oracle object 到新的表空間(表,索引,分割槽,LOB)OracleObject索引
- lob欄位的ora-1555處理方案
- Oracle中表空間、表、索引的遷移Oracle索引
- LOB欄位資料清理 - 更新為null後move lobNull
- oracle查出某個欄位帶空格的資料Oracle
- Oracle分割槽表遷移Oracle
- oracle 表遷移方法 (一)Oracle
- 查詢oracle表的資訊(表,欄位,約束,索引)Oracle索引
- oracle:聯表更新多個欄位的值Oracle
- ORACLE表批量遷移表空間Oracle
- 一次PLSQL處理LOB欄位的優化SQL優化
- oracle增加欄位帶預設值Oracle
- LONG RAW的欄位型別不能使用impdp + dblink遷移型別
- 如果對10g 中含LOB欄位的表僅僅進行insert 的同步 ?
- Oracle中檢視所有表和欄位以及表註釋.欄位註釋Oracle
- 可以處理LOB欄位的常用字元函式字元函式
- oracle檢視該使用者的所有表名字、表註釋、欄位名、欄位註釋、是否為空、欄位型別Oracle型別
- Oracle資料庫高水位釋放——LOB欄位空間釋放Oracle資料庫
- ORACLE 10G下LOB_DATA欄位型別佔滿臨時表空間問題Oracle 10g型別
- 匯出Oracle中的所有表和欄位的註釋Oracle