社区
基础和管理
帖子详情
alter system flush shared_pool有什么用?
zjhzylp
2006-03-22 10:26:15
alter system flush shared_pool有什么用?
...全文
775
3
打赏
收藏
alter system flush shared_pool有什么用?
alter system flush shared_pool有什么用?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
zjhzylp
2006-03-22
打赏
举报
回复
再问一下:
怎样看sql*plus环境变量(如serveroutput、timing)的状态。
zjhzylp
2006-03-22
打赏
举报
回复
清空?
javapigpig
2006-03-22
打赏
举报
回复
清理共享池。
alter
system
flush
shared
_
pool
alter
system
flush
shared
_
pool
是将SGA里面的内容进行刷新,并不会将procedure与function删除。你可以将它理解为执行此语句后,ORACLE将SGA里面的内容都当作最近最少使用内存换出机制换出。 应该说
alter
system
flush
shared
_
pool
;可以暂时解决
shared
_
pool
中的碎片问题,大量的不能共享的SQL很快又会
alter
system
flush
shared
_
pool
;
今天oracle主机一句简单的sql就出现了共享池不够用的情况: ora-00604:递归sql级别2出现错误 ora-04031:无法分配4120字节的共享内存(“
shared
pool
”,“select name,online$”)的异常问题。 后来寻找解决方案,可以用:
alter
system
flush
shared
_
pool
; 脚本来临时解决这种问题,不过此解决办法治标不
alter
system
flush
shared
_
pool
的作用
alter
system
flush
shared
_
pool
的作用The
FLUSH
SHARED
POOL
clause lets you clear all data from the
shared
pool
in the system global area (SGA). The
shared
pool
stores Cached data dictiona
alter
system
flush
shared
_
pool
的作用 .
alter
system
flush
shared
_
pool
的作用 The
FLUSH
SHARED
POOL
clause lets you clear all data from the
shared
pool
in the system global a
alter
system
flush
shared
_
pool
究竟做了些什么事情
我们的数据库的sga比较小,存储过程又多又长,老是出现oracle不能分配多少字节的内存这个错。有人告诉我可以用这个语句来优化
shared
pool
.我查了一下sql reference,说是可以把sga里边所有的
shared
pool
里边的东西都删除。但是那些仍旧在执行的sql语句不会被清除。这样会不会把那些pin在sga里边的包,function也一起删除?如何知道那些包已经被pin了? =...
基础和管理
17,377
社区成员
95,128
社区内容
发帖
与我相关
我的任务
基础和管理
Oracle 基础和管理
复制链接
扫一扫
分享
社区描述
Oracle 基础和管理
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章