想取消自动分析,但是不可以

[复制链接]
查看11 | 回复7 | 2006-4-17 13:46:34 | 显示全部楼层 |阅读模式
alter system set statistics_level = basic scope=both;
alter system set statistics_level = basic scope=both
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-00830: cannot set statistics_level to BASIC with auto-tune SGA enabled
回复

使用道具 举报

千问 | 2006-4-17 13:46:34 | 显示全部楼层
是不是把sga_target这个参数去掉就行了,为什么要取消自动分析啊?
回复

使用道具 举报

千问 | 2006-4-17 13:46:34 | 显示全部楼层
同意楼上.凡事要考虑后果.
回复

使用道具 举报

千问 | 2006-4-17 13:46:34 | 显示全部楼层
alter system set statistics_level = basic scope=spfile
然后重启
回复

使用道具 举报

千问 | 2006-4-17 13:46:34 | 显示全部楼层
谢谢楼上的几位兄弟,我按照各位兄弟的说法办了,
首先把sga_target去掉,然后再执行alter system set statistics_level = basic scope=both;
但是有问题,在切换用户的时候出现
SQL> connect ive/live@pd
ERROR:
ORA-00604: error occurred at recursive SQL level 3
ORA-04031: unable to allocate 4000 bytes of shared memory ("shared
pool","select /*+ rule */ bucket_cn...","Typecheck heap","seg:kggfaAllocSeg&quot


ERROR:
ORA-00604: error occurred at recursive SQL level 3
ORA-04031: unable to allocate 4096 bytes of shared memory ("shared
pool","select name,password,datats#...","Typecheck heap","kgghteInit&quot


Error accessing package DBMS_APPLICATION_INFO
Connected.
在执行SQL的时候也出现这个问题
SQL> declare
2 cursor c_1 is select * from user_tables where last_analyzed is not null;
v_sql1 varchar2(200);
begin
for x_1 in c_1 loop345
6 v_sql1 := ' analyze table '||x_1.table_name||' delete statistics ';
execute immediate (v_sql1);
end loop;
end;789
10/
cursor c_1 is select * from user_tables where last_analyzed is not null;

*
ERROR at line 2:
ORA-06550: line 2, column 30:
PL/SQL: ORA-00604: error occurred at recursive SQL level 3
ORA-04031: unable to allocate 4000 bytes of shared memory ("shared
pool","select /*+ rule */ bucket_cn...","Typecheck heap","seg:kggfaAllocSeg&quot

ORA-06550: line 2, column 16:
PL/SQL: SQL Statement ignored
ORA-06550: line 6, column 31:
PLS-00364: loop index variable 'X_1' use is invalid
ORA-06550: line 6, column 2:
PL/SQL: Statement ignored
看来,这次问题是大了...............................
回复

使用道具 举报

千问 | 2006-4-17 13:46:34 | 显示全部楼层
去掉sga_target,然后得设置别的参数啊,shared_pool, large_pool, java_pool, db_cache_size这些都得设置阿!
show sga的结果是什么?
回复

使用道具 举报

千问 | 2006-4-17 13:46:34 | 显示全部楼层
最初由 teddyboy 发布
[B]去掉sga_target,然后得设置别的参数啊,shared_pool, large_pool, java_pool, db_cache_size这些都得设置阿!
show sga的结果是什么? [/B]

  谢谢兄弟,我第一次接触10G,很多东西不知道
回复

使用道具 举报

千问 | 2006-4-17 13:46:34 | 显示全部楼层
设大一点,shared_pool
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行