Redian新闻
>
面试问题,关于oracle 8i
avatar
面试问题,关于oracle 8i# Database - 数据库
s*e
1
My friend had a DBA interivew question to ask me, but I do not know how to
help her.
An 8.0.6 database is being hit very hard with transactions that do not utilize
bind variables. The shared pool is set to 300MB. Intermittently, users are
unable to connect to the database. What specific actions would you take in
this situation?
Does sb know the answer? thanks a lot!
avatar
c*d
2
不知道这道题目想考那方面的知识?
1. increase the shared_pool_size
2. modify cursor_sharing
3. query v$session and v$process
4. restart db

utilize

【在 s*******e 的大作中提到】
: My friend had a DBA interivew question to ask me, but I do not know how to
: help her.
: An 8.0.6 database is being hit very hard with transactions that do not utilize
: bind variables. The shared pool is set to 300MB. Intermittently, users are
: unable to connect to the database. What specific actions would you take in
: this situation?
: Does sb know the answer? thanks a lot!

avatar
s*e
3
我也不知道。 应该是和bind variables有关吧。 我就没有用过oracle8, 所以 想问这里
高人的意见。

are
in

【在 c*****d 的大作中提到】
: 不知道这道题目想考那方面的知识?
: 1. increase the shared_pool_size
: 2. modify cursor_sharing
: 3. query v$session and v$process
: 4. restart db
:
: utilize

avatar
s*c
4
Cursor sharing should be the key.
1st: verify the shared pool memory usage: most used by cursors
2nd: set cursor_sharing to force
3rd: restart the database or (alter system set and flush shared pool)
The purpose to use force is that the optimzer will the following cursors
SELECT * FROM user_names WHERE name='Jeff' AND county = 'Butler';
SELECT * FROM user_names WHERE name='Melody' AND county = 'Butler';
as one cursor with system generated bind variables:
SELECT * FROM user_names WHERE name=:SY

【在 s*******e 的大作中提到】
: 我也不知道。 应该是和bind variables有关吧。 我就没有用过oracle8, 所以 想问这里
: 高人的意见。
:
: are
: in

avatar
s*e
5
yes, I am quite sure the database is 8.0.6. anyway, thanks a lot for your
answer.


how
users
take

【在 s*****c 的大作中提到】
: Cursor sharing should be the key.
: 1st: verify the shared pool memory usage: most used by cursors
: 2nd: set cursor_sharing to force
: 3rd: restart the database or (alter system set and flush shared pool)
: The purpose to use force is that the optimzer will the following cursors
: SELECT * FROM user_names WHERE name='Jeff' AND county = 'Butler';
: SELECT * FROM user_names WHERE name='Melody' AND county = 'Butler';
: as one cursor with system generated bind variables:
: SELECT * FROM user_names WHERE name=:SY

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。