设为首页 加入收藏

TOP

减轻dictionary cache压力的方法
2014-11-24 08:23:54 来源: 作者: 【 】 浏览:2
Tags:减轻 dictionary cache 压力 方法
减轻dictionary cache压力的方法
1) SQL中减少公共同义词的使用,SQL中明确的写明schema的名字。
Large OLTP systems where users log in to the database as their own user ID can benefit from explicitly qualifying the segment owner, rather than using public synonyms. This significantly reduces the number of entries in the dictionary cache. For example: SELECT employee_id FROM hr.employees WHERE department_id = :dept_id;
2) application使用相同的id登录DB。
An alternative to qualifying table names is to connect to the database through a single user ID, rather than individual user IDs. User-level validation can take place locally on the middle tier. Reducing the number of distinct userIDs also reduces the load on the dictionary cache.
3) 使用PL/SQL
Using stored PL/SQL packages can overcome many of the scalability issues for systems with thousands of users, each with individual user sign-on and public synonyms. This is because a package is executed as the owner, rather than the caller, which reduces the dictionary cache load considerably.
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Oracle数据库多路归档,防止单点.. 下一篇oracle library cache pin、libra..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·一篇说人话的文章, (2025-12-27 07:50:09)
·Python Web框架哪家 (2025-12-27 07:50:06)
·基于Python的数据分 (2025-12-27 07:50:03)
·深入理解 Java 集合 (2025-12-27 07:22:48)
·Java集合框架全面解 (2025-12-27 07:22:45)