[原创]PPT瘦身工具
有时写的ppt文档大小很大,发送邮件或者移动端打开多少会浪费时间和流量。找了这个可以瘦身的Macro工具,可以删除ppt里面不必要的模板。
[原创]ipmitool命令
ipmitool Oracle Exadata IPMI — Intelligent Platform Management Interface, an interface standard that allows remote management, of a server from another, using standardized interface and to check status of components.
[原创]Oracle 11g之后内存管理
Oracle 11gR之后内存管理的初始化参数追加了以下参数:
MEMORY_TARGET
MEMORY_MAX_TARGET
[原创]Oracle Autonomous Databas 简单介绍
什么是Oracle Autonomous Databas?自治数据库?全球首款自治数据库?
[原创]Oracle DBSAT简单介绍
The Oracle Database Security Assessment Tool (DBSAT) is a command line tool focused on detecting areas of potential security vulnerabilities or misconfigurations and providing recommendations on how to mitigate those potential vulnerabilities. The DBSAT focuses on the database but also examines surrounding database related system components including OS and network (listener). The tool provides a view into the current status, users, roles and policies in place, with the goal of promoting successful approaches to mitigate potential security risks.
The DBSAT has two components: the Collector and the Reporter. The Collector is responsible to collect raw data from the target database by executing SQL queries and OS commands. The Reporter will read the collected data, analyze it and produce reports with the findings. The Reporter outputs three reports in Text, HTML, and XLS formats.
[原创]Oracle12cR2_创建公用用户
在CDB模式下,公用用户(Common User)和本地用户(Local User)两个概念被引入进来,
公用用户可以在CDB和PDB中同时存在,能够连接ROOT和PDB进行操作;而本地用户则只在特定的PDB中存在,也只能在特定的PDB中执行操作;
在PDB中不能创建公用用户,而在CDB中(CDB$ROOT中)同样不能创建本地用户。
[原创]Oracle12cR2_测试在线移动表
Oracle 12cR2 之后 通过
ALTER TABLE...MOVE [PARTITION|SUBPARTITION]
语句容许移动表,分区到另外物理存储空间,或者更改压缩属性等。
更重要的是支持在线-online ,即容许在操作对象在DML操作下也可以实现, 也可以不需要rebuild index等操作了,方便很多。
详细的细节如下:
Moving a table changes the rowids of the rows in the table. If you move a table and include the ONLINE keyword and the UPDATE INDEXES clause, then the indexes remain usable during the move operation. If you include the UPDATE INDEXES clause but not the ONLINE keyword, then the indexes are usable immediately after the move operation. The UPDATE INDEXES clause can only change the storage properties for the global indexes on the table or storage properties for the index partitions of any global partitioned index on the table. If you do not include the UPDATE INDEXES clause, then the changes to the rowids cause the indexes on the table to be marked UNUSABLE, and DML accessing the table using these indexes receive an ORA-01502 error. In this case, the indexes on the table must be dropped or rebuilt.
[原创]Oracle12cR2_通过控制文件查看cdb的结构
通过trace控制文件可以清楚了解CDB的结构
[原创]Oracle12cR2_创建PDB
PDB创建有很多方法,下面介绍一下比较常用的创建方法
[原创]Oracle12cR2_手工创建CDB
Oracle12cR2创建CDB有很多方法:
常用有 DBCA创建CDB 和 手工创建CDB 两种方法,以下是手工创建CDB的步骤。
Oracle 开放了开发者的hands-on虚拟环境
目前有:
Oracle OpenStack for Oracle Linux 2.0.2 Hands-on-Lab Oracle Enterprise Data Quality 12.1.3 VM Oracle Database 12c (12.1.0.2) Upgrade and Migration Hands-on Lab Oracle WebCenter Portal VM Oracle Data Integrator 12c VM Oracle Big Data Lite VM Network Applications VM Database App Development VM Oracle Linux 6 Admin VM Solaris 11 Admin VM Solaris 10 Admin VM OBIEE Sample Application v511 SOA Suite 12.1.3.0.1 VM Enterprise PHP Development VM
[转]为何在查询中索引未被使用 (Doc ID 1549181.1)
文档内容
用途
排错步骤
快速检查
表上是否存在索引?
索引是否应该被使用?
索引本身的问题
索引列或者索引的前置列是否在单表(non-join)查询的 Where 条件中(predicate list)?
索引列是否用在连接谓词中(join predicates)?
索引列在 IN 或者多个 OR 语句中?
索引列是否被函数修改?
隐式类型转换(implicit type conversion)是什么?
是否在语义(semantically)上无法使用索引?
错误类型的索引扫描?
是否索引列为可空?
NLS_SORT是否设置为二进制(BINARY)?
是否使用的是不可见索引(invisible indexes)?
优化器和成本计算相关问题
是否存在准确且合适的统计信息(Statistics)?
一个索引是否与其它的索引有相同的等级或者成本(cost)?
索引的选择度不高?
在总体成本中,表扫描的成本占大部分
访问空索引并不意味着比访问有值的索引高效。
参数设置
其它问题
是否使用了视图/子查询?
是否存在远程表(remote table)?
是否使用并行执行(PX)?
是否是包含了子查询的Update语句?
查询是否使用了绑定变量?
查询是否引用了带有延迟约束的列?
索引提示(hint)不工作
有用的 hints:
参考