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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORACLE LOB大欄位維護Oracle
- [20181020]lob欄位的索引段.txt索引
- oracle 修改表欄位的長度Oracle
- Oracle中表空間、表、索引的遷移Oracle索引
- 【ORA-01555】Oracle LOB欄位匯出 報錯 ORA-01555Oracle
- [20181022]lob欄位的lobid來之那裡.txt
- [20210208]lob欄位與查詢的問題.txt
- oracle增加欄位帶預設值Oracle
- Oracle資料庫高水位釋放——LOB欄位空間釋放Oracle資料庫
- Oracle-欄位的新增Oracle
- oracle 分割槽表move和包含分割槽表的lob moveOracle
- [20181031]lob欄位與布隆過濾.txt
- 【STATS】Oracle遷移表統計資訊Oracle
- 【LOB】Oracle Lob管理常用sqlOracleSQL
- [重慶思莊每日技術分享]-重建LOB欄位上的IndexIndex
- Oracle 12cbigfile表空間物件遷移Oracle物件
- ORACLE 資料匯出LOB欄位報錯ORA-31693,ORA-02354,ORA-22924Oracle
- 【LOB】Oracle lob管理常用語句Oracle
- oracle遷移OCR盤Oracle
- Oracle遷移文件大全Oracle
- Oracle遷移文章大全Oracle
- MySQL 更新一個表裡的欄位等於另一個表某欄位的值MySql
- JPA使用pg資料庫時,bool欄位不能跨庫遷移的解決方案資料庫
- 表單欄位
- win10如何使用自帶遷移工具 win10使用自帶遷移工具的方法Win10
- oracle xtts遷移 AIX to LinuxOracleTTSAILinux
- 【效能】Oracle表並行對邏輯遷移後查詢效能的影響Oracle並行
- Oracle表 列欄位的增加、刪除、修改以及重新命名操作sqlOracleSQL
- 5_MySQL 表的欄位約束MySql
- oracle中判斷欄位是否存在和新增表結構Oracle
- 檢視oracle資料庫中,哪些表的欄位是null值比較多Oracle資料庫Null
- Oracle rman duplicate遷移測試Oracle
- oracle 19c pdb遷移Oracle
- AWS RDS Oracle資料遷移Oracle
- oracle fga審計(欄位級)Oracle
- Oracle官方推薦的資料遷移方式評估Oracle
- Oracle 行遷移 & 行連結的檢測與消除Oracle
- mysql建立表的時候對欄位和表新增COMMENTMySql
- ORACLE查詢欄位中含有空格的資料Oracle