oracle
text的索引跟其它的基本索引不同,当执行dml操作时,数据库不会自动维护这些索引(不过会将这些dml操作记录在表CTX_USER_PENDING里),需要调用存储过程ctx_dll.sync_index来维护索引。
当执行ctx_dll.sync_index时,会先去CTX_USER_PENDING表里查看未索引的行,然后将其索引。ctx_dll.sync_index能够利用多cpu的优势,并行执行。
Index Fragmentation
The CONTEXT index is an inverted index where each word contains
the list of documents that contain that word. For example, after a single
initial indexing operation, the word DOG might have an entry as follows:
DOG DOC1 DOC3 DOC5
When new documents are added to the base table, the index is synchronized by
adding new rows. Thus if you add a new document (DOC 7) with the word dog to the
base table and synchronize the index, you now have:
DOG DOC1 DOC3 DOC5
DOG DOC7
Subsequent DML will also create new rows:
DOG DOC1 DOC3 DOC5
DOG DOC7
DOG DOC9
DOG DOC11
我们可以用ctx_dll.optimize_index来优化索引,去除索引碎片。
You optimize your index after you synchronize it. Optimizing an index removes old data and minimizes index fragmentation,
which can improve query response time. Querying and DML may proceed while optimization takes place.
Some users choose to perform frequent time-limited full optimizations along with occasional rebuild optimizations.
下面是一些限制,关于并行执行的
You can run CTX_DDL.SYNC and CTX_DDL.OPTIMIZE at the same time.
You can also run CTX_DDL.SYNC and CTX_DDL.OPTIMIZE with parallelism at the same time.
However, you should not run CTX_DDL.SYNC with parallelism at the same time as CTX_DDL.OPTIMIZE,
nor CTX_DDL.SYNC with parallelism at the same time as CTX_DDL.OPTIMIZE with parallelism.
If you should run one of these combinations, no error is generated;
however, one operation will wait until the other is done.
看起来,如果数据库服务器的cpu数量如果足够的话,估计性能应该还是不错的。可以每隔几分钟就执行一次
sync_index, optimize_index(full 模式)。晚上执行一次optimize_index(rebuild 模式)。
不太清楚多cpu的工作方式,也不太清楚oracle是怎样利用多cpu的,不知道它在并行执行sync_index时,
会不会用到主cpu?如果不用的话,应该是比较完美吧?
分享到:
相关推荐
SELECT sql_text FROM v$sqlarea WHERE command_type = 47 AND length(sql_text) > 500; ``` 7. **Dictionary Cache 优化**:确保Dictionary Cache的Misses数量保持稳定,避免频繁的Misses。 #### 三、总结 ...
This text covers the three parts of tuning an Oracle database: data modeling, SQL code tuning, and physical database configuration, and explains both problem detection and resolution
This text covers the three parts of tuning an Oracle database: data modeling, SQL code tuning, and physical database configuration, and explains both problem detection and resolution.
- **相关文档:** [Oracle Database Performance Tuning Guide](https://docs.oracle.com/en/database/oracle/performance-tuning/index.html) ##### 14. **SI_INFORMTN_SCHEMA** - **用户名:** `SI_INFORMTN_...
- 参考资料: [Oracle Database Performance Tuning Guide](https://docs.oracle.com/cd/B19306_01/perftune.102/b14299/toc.htm) 13. **SI_INFORMTN_SCHEMA** - 用户名: `SI_INFORMTN_SCHEMA` - 密码: 默认为空...
了解更多关于性能调优的信息,可查阅Oracle Database Performance Tuning Guide。 11. SI_INFORMTN_SCHEMA - 存储SQL/MM静止图像标准信息视图的账户。有关多媒体处理的更多信息,参阅Oracle interMedia User's ...
```plaintext ORCHHDEV = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.10.39)(PORT = 1521)) ) (CONNECT_DATA = (SID = ORCHHDEV) ) ) ``` 此段配置表示 SAP BW 通过 `...
- **参考文档**: Oracle Database Performance Tuning Guide 11. **SI_INFORMTN_SCHEMA** - **用户名**: SI_INFORMTN_SCHEMA - **密码**: SI_INFORMTN_SCHEMA - **描述**: 存储 SQL/MM Still Image 标准的信息...
10. Oracle Text:10g版本的Oracle Text增强了全文索引和搜索能力,支持更多语言和文本格式,便于构建智能的信息检索系统。 每个PPT文件可能对应Oracle 10g新特性的一章,例如: - "Les00.ppt"可能是介绍和概述; -...
在 Oracle 中,动态性能视图(Dynamic Performance Views,简称 DGVs)是用于收集和展示数据库实时运行状态的重要工具。这里我们将深入探讨其中的一个常见视图——V$SESSION。 V$SESSION 视图是 Oracle 提供的核心...
7. **Oracle Text**: Oracle 10增强了文本搜索功能,支持更复杂的全文检索和智能索引,使得在大量文本数据中查找信息更为便捷。 8. **Partitioning Enhancements**: 分区是Oracle数据库的一个重要特性,Oracle 10对...
```plaintext *.control_files='/u01/app/oracle/oradata/orcl/control01.ctl','/u01/app/oracle/oradata/orcl/control02.ctl','/u01/app/oracle/oradata/orcl/control03.ctl' *.db_recovery_file_dest='/u01/app...
- **主机名称**:orclmaster,已安装 Oracle 11g 的软件和数据库,其保护模式设为 MAXIMUM PERFORMANCE。 - **实例名称**:ORCL,DB_UNIQUE_NAME 同样为 ORCL。 - **Hosts 文件**:路径为 `C:\Windows\System32\...
不过,我们可以通过查询动态性能视图(Dynamic Performance Views)来获取类似的信息。以下是两个常用的脚本: 1. **查看简化的SQL进程脚本**: ```sql SET LINESIZE 400; SET PAGESIZE 400; COL sql_text ...
而附录B涉及到了系统调优指南,其中包括了针对Life Sciences REST设置(LSRESTSettings)、隧道服务配置(Tunnel Service Configurations)、Oracle数据库设置(Oracle Settings)和Java虚拟机配置(JVM ...
sqlhelper是一个完全开源的源码组件,使用sqlhelper可以方便操作sqlserver、oracle、access等数据库。语法简单,提高性能。 SqlHelper 的两种写法: SqlHelper make in Visual studio 2010.support sqlserver,...
64位版本的 PLSQL 正式版,只能运行在64位系统中,需要你安装 64 位的 Oracle11g 或 Oracle12c 客户端。 安装中文包时请注意安装路径是否为PLSQL程序的路径。 备注:新版本Ribbon启用了 Ribbon 界面,改动较大,不...
These new features and enhancements in Oracle 11g significantly improve the functionality, performance, and ease of use of PL/SQL, making it a more powerful and flexible programming language for ...