压缩表是我们维护管理中常常会用到的.以下我们看都oracle给我们提供了哪些压缩方式. 文章摘自"Oracle® Database Administrator's Guide11g Release 2 (11.2)".由于Hybrid Columnar Compression压缩仅仅有在Exadata上才支持,眼下用的比較少,我们会重点说一下basic和oltp两种压缩方式. Consider Using Table Compression As your database grows…
Oracle Schema Objects Table Compression 表压缩 The database can use table compression to reduce the amount of storage required for the table. 数据库可以使用表压缩来消除数据块中的重复值. Compression saves disk space, reduces memory use in the database buffer cache, and in so…
查询用户创建的表 select * from user_tab_comments; -- 查询本用户的表,视图等. select * from user_col_comments; -- 查询本用户的表的列名和注释. 查询所有表大小 select Segment_Name, Sum(bytes) / 1024 / 1024 / 1024 "size(DB)" From User_Extents Group By Segment_Name order by "size(DB)&…
1. fnc_table_to_mysql 主体程序 create or replace function fnc_table_to_mysql ( i_owner in string, i_table_name in string, i_number_default_type in string := 'decimal', i_auto_incretment_column_name in string := '%ID' ) /* 功能:ORACLE表生成MYSQL建表DDL 作者:叶正盛 20…
Tables A table describes an entity such as employees. You define a table with a table name, such as employees, and set of columns. In general, you give each column a name, a data type, and a width when you create the table. 1.普通堆表(Heap-Organized Tabl…
簇和簇表       簇其实就是一组表,是一组共享相同数据块的多个表组成. 将经常一起使用的表组合在一起成簇可以提高处理效率.       在一个簇中的表就叫做簇表.建立顺序是:簇→簇表→数据→簇索引       1.创建簇的 格式       CREATE CLUSTER cluster_name    (column date_type [,column datatype]...)    [PCTUSED 40 | integer] [PCTFREE 10 | integer]    [SI…
SELECT * FROM XMLTABLE('$B/DEAL_BASIC/USER_DEAL_INFO' PASSING XMLTYPE('<?xml version="1.0" encoding="gb2312" ?> <DEAL_BASIC> <USER_DEAL_INFO> <USER_DEAL_ID>1000100001</USER_DEAL_ID> <DEAL_INURE_TIME>…
1.制作测试表 create table t1 as select * from FW_T_GTXLOG insert into t1 select * from t1; create table t2 compress as select * from t1 create table t3 as select * from t1 2.查看测试表数据量 select count(*) from t1; select count(*) from t2; select count(*) from t…
问题背景: oracle表空间不足报错是比较常见的故障,尤其是没有对剩余表空间做定期巡检的系统: 报错代码如下: oracle表空间不足错误代码:ORA-01653: unable to extend table : 解决方式: 1.查看表空间使用率: set linesize 220;set pagesize 500;col tbsn for a40;select total.tablespace_name TBSN,        round(total.MB,3) as total_spa…
oracle表空间相关常用命令小结: 1.ALTER DATABASE SET DEFAULT BIGFILE TABLESPACE;              //修改表空间数据文件类型 2.ALTER TABLESPACE 旧表空间名称 TO 新表空间名称;                      //修改表空间名称 3.select * from v$database;   show parameter db                                        …