oracle 10G中临时表空间组的操作和使用
http://blog.csdn.net/zhpsam109/archive/2006/11/09/1376266.aspx[@more@] 在 oracle 10g 中,可以创建多个临时表空间,并把它们组成一个临时表空间组,这样应用数据用于排序时可以使用组里的多个临时表空间,一个临时表空间组至少有一个临时表空间,其最大个数没有限制,组的名字不能和其中某个表空间的名字相同。 临时表空间组是在创建临时表空间时通过指定group字句创建的,如果删除组中的全部临时表空间,那么这个组也将消失。 我们将可以将一个表空间从一个组移动另一个组,或是从一个组中删除临时表空间,或是往组里添加新的表
undo tablespace
2、undo表空间select * from dba_tablespaces 如何创建undo 表空间create undo tablespace undotbs2 datafile 'c:oradataorclundo2.dbf' size 10m--无法在unod表空间中建立表select * from dba_rollback_segs --单实例instance_num=null--回滚段作用 update tt set id = 4 where id = 1oracle 把修改前的信息放在undo空间中一个session update,一个session select ,然后alter system dump file ...;产生跟踪文件...解读只存放修改的数据;insert存放的rowid,把四部分信息拆分开合成rowid...object_id,fid,blockid,seq...undo不阻塞sessio
dba_ts_quotas
describe tablespace quotas to all users[@more@]TABLESPACE_NAMEVARCHAR2(30)NOT NULLTablespace nameUSERNAMEVARCHAR2(30)NOT NULLUser with resource rights on the tablespaceBYTESNUMBERNumber of bytes charged to the userMAX_BYTESNUMBERUser's quota in bytes, or -1 if no limitBLOCKSNUMBERNOT NULLNumber of Oracle blocks charged to the userMAX_BLOCKSNUMBERUser's quota in Oracle blocks, or -1 if no limit其中bytes,blocks = select sum(bytes),sum(blocks) from dba_extents where owner='TEST' 从该数据目录视图中可
alter tablespace rename datafile ... to ...
http://www.docin.com/p-1955439.html在磁盘上移动表空间下的数据文件需要多数据文件的修改,其实就是同步控制文件,以便open阶段通过controlfile引导路径去查找对应的数据文件地址[@more@]1 、在os下移动数据文件到新位置;2、alter tablespace user01 rename datafile '' to ''
ALTER TABLESPACE
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3002.htm这个站点可以链接很多技术细节[@more@]Take the tablespace online or offlineBegin or end a backupMake the tablespace read only or read writeBefore you can make a tablespace read only, the following conditions must be met:The tablespace must be online.The tablespace must not contain any active rollback segments. For this reason, the SYSTEM tablespace can never be made read only, because it contains the SYSTEM rollback
alter tablespace user01 read only offline
1、当atler tablespace user01 offline 以后enabled 自动转移成disable;2、当atler tablespace user01 online 以后enabled 自动转移成READ WRITE;3、当atler tablespace user01 read only,以后online不变;4Alter Tablespace user01 Disable --error5、ONLINE READ ONLY场景下[@more@]
ORACLE Alter database datafile resize extents
http://space.itpub.net/8750110/viewspace-167602[@more@]LMT TABLESPACE,有时候虽然里面的数据不是很多,但是RESIZE DATAFILE的时候会失败,因为一些OBJECT的EXTENTS已经扩展到DATAFILE的边缘(最大的地方)。下面的SQL可以让我们找到前5个最边缘的OBJECTselect * from (select owner, segment_name, segment_type, block_id from dba_extents where file_id = ( select file_id from dba_data_files where file_name = :FILE ) --用你的DATAFILE代替 order by block_id desc ) where rownum <= 5 结果是