数据库安装及数据库问题解决方法(五)
2012-05-29 10:38
357 查看
构建数据表t,其中构建专门的索引对象。
SQL> create table t as select * from dba_objects;
Table created
--索引对象1
SQL> create index idx_t_owner on t(owner);
Index created
--索引对象2
SQL> create index idx_t_id on t(object_id);
Index created
SQL> exec dbms_stats.gather_table_stats(user,'T',cascade => true);
PL/SQL procedure successfully completed
同时,我们准备四个SQL作为演示DEMO。
explain plan for select * from t where wner='SYS';
select * from table(dbms_xplan.display);
explain plan for select * from t where wner='SCOTT';
select * from table(dbms_xplan.display);
explain plan for select * from t where object_id between 10 and 50000;
select * from table(dbms_xplan.display);
explain plan for select * from t where object_id between 1 and 100;
select * from table(dbms_xplan.display);
CURSOR_SHARING=SIMILAR | EXACT | FORCE
db_file_multiblock_read_count
sort_area_size
db_keep_cache_size
log_buffer
db_block_buffers
----------------------------------------------------------------------------------------------------------------------------------
HWM 高水位
如何知道一个表的高水位
1、首先对表进行分析
execute dbms_stats.gather_table_stats()
ora-14401: inserted partition key is outside specified partition
插入的分区键值大于分区键
ORA-01008: not all variables bound
动态sql语句里:1这种变量出现了重复
-----------------双重调用变量------------------------
eval echo "$""$a"port
试试这个
我测试:
$ aport=1010
$ b=a
$ eval echo "$""$b"port
1010
-------------------------------------------------------------------------
alter index IDX_TB_INTERACTSRVLOG_1 rebuild
ORA-14086: a partitioned index may not be rebuilt as a whole
分区表需要一个一个分区rebuild
SQL> create table t as select * from dba_objects;
Table created
--索引对象1
SQL> create index idx_t_owner on t(owner);
Index created
--索引对象2
SQL> create index idx_t_id on t(object_id);
Index created
SQL> exec dbms_stats.gather_table_stats(user,'T',cascade => true);
PL/SQL procedure successfully completed
同时,我们准备四个SQL作为演示DEMO。
explain plan for select * from t where wner='SYS';
select * from table(dbms_xplan.display);
explain plan for select * from t where wner='SCOTT';
select * from table(dbms_xplan.display);
explain plan for select * from t where object_id between 10 and 50000;
select * from table(dbms_xplan.display);
explain plan for select * from t where object_id between 1 and 100;
select * from table(dbms_xplan.display);
CURSOR_SHARING=SIMILAR | EXACT | FORCE
db_file_multiblock_read_count
sort_area_size
db_keep_cache_size
log_buffer
db_block_buffers
----------------------------------------------------------------------------------------------------------------------------------
HWM 高水位
如何知道一个表的高水位
1、首先对表进行分析
execute dbms_stats.gather_table_stats()
ora-14401: inserted partition key is outside specified partition
插入的分区键值大于分区键
ORA-01008: not all variables bound
动态sql语句里:1这种变量出现了重复
-----------------双重调用变量------------------------
eval echo "$""$a"port
试试这个
我测试:
$ aport=1010
$ b=a
$ eval echo "$""$b"port
1010
-------------------------------------------------------------------------
alter index IDX_TB_INTERACTSRVLOG_1 rebuild
ORA-14086: a partitioned index may not be rebuilt as a whole
分区表需要一个一个分区rebuild
相关文章推荐
- 数据库sql server安装使用遇到的问题以及解决方法
- 【数据库】SQLsever2005安装经验(三)安装问题和解决方法
- 安装数据库及数据库问题解决方法
- 数据库安装及数据库问题解决方法(二)
- rhel 5.10下安装oracle 11g R1 启动数据库报错问题解决方法
- 安装Sql Server 2008,遇到的无权限创建数据库、修改身份验证模式等问题的原因及解决方法
- Windows7旗舰版安装PLSQLDeveloper连接数据库遇到:ora-12514 问题和ORA-12545:因目标主机或对象不存在,连接失败”解决方法
- 关于数据库SQL安装问题以及解决方法
- Linux下安装MariaDB数据库问题及解决方法(二进制版本的安装)
- 安装widows mysql 免安装版(zip) 步骤详解 以及遇到问题解决 以及忘记密码的修改方法
- 安装widows mysql 免安装版(zip) 步骤详解 以及遇到问题解决 以及忘记密码的修改方法
- win10 下安装scrapy遇到的问题及解决方法
- OpenStack安装部署管理中常见问题解决方法(OpenStack-Lite-FAQ)
- 导入Excel表时,提示"找不到可安装的ISAM"问题的解决方法
- asp问题,谁还知道其他解决方法?Jet 数据库引擎打不开文件'(未知的)'
- VMware安装CentOS遇到Intel VT-x被禁用问题的解决方法
- Linux上安装Oracle汉字乱码问题的解决方法
- 关于安装IE8之后VS2008使用MFC出现问题的解决方法
- hadoop 安装出现的几种异常的处理方法,hadoop无法启动,no namenode to stop问题的解决方法,no datanode
- Ubuntu16.04安装CPU版的caffe 时出现的“没有那个文件或目录”问题解决方法