alter system set open_cursors=600 scope=both 重启后修改失效

[复制链接]
查看11 | 回复9 | 2010-3-1 11:20:04 | 显示全部楼层 |阅读模式
oracle 10g环境,如标题问题
回复

使用道具 举报

千问 | 2010-3-1 11:20:04 | 显示全部楼层
600应该没有问题呀
报什么错?
回复

使用道具 举报

千问 | 2010-3-1 11:20:04 | 显示全部楼层
没报错,修改成功
我的参数原来是300,修改为600后重启还是300
回复

使用道具 举报

千问 | 2010-3-1 11:20:04 | 显示全部楼层
怎么失效﹐open_cursors 是變大了還是變小了?
回复

使用道具 举报

千问 | 2010-3-1 11:20:04 | 显示全部楼层
show parameter spfile
回复

使用道具 举报

千问 | 2010-3-1 11:20:04 | 显示全部楼层
确认一下你用的是spfile启动吗?
回复

使用道具 举报

千问 | 2010-3-1 11:20:04 | 显示全部楼层
确定是spfile,如下所示:
SQL> show parameter spfile
NAME
TYPEVALUE
------------------------------------ ----------- ------------------------------
spfile
stringD:\ORACLE\PRODUCT\10.2.0\DB_1\

DATABASE\SPFILEORCL.ORA
SQL>
回复

使用道具 举报

千问 | 2010-3-1 11:20:04 | 显示全部楼层
值还是300
执行:alter system set open_cursors=600 spoce=both
重启数据库,执行如下:
SQL> show parameter open_cursors
NAME
TYPEVALUE
------------------------------------ ----------- -----------------------
open_cursors
integer 300
SQL>
显示还是300,之前的alter 没效,不知是不是10g的bug
回复

使用道具 举报

千问 | 2010-3-1 11:20:04 | 显示全部楼层
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining
and Real Application Testing options
SQL> show parameter cursor
NAME
TYPEVALUE
------------------------------------ ----------- ------------------------------
cursor_sharing
stringEXACT
cursor_space_for_time
boolean FALSE
open_cursors
integer 300
session_cached_cursors
integer 20
SQL> alter system set open_cursors=600 scope=both ;
系统已更改。
SQL> show parameter cursor
NAME
TYPEVALUE
------------------------------------ ----------- ------------------------------
cursor_sharing
stringEXACT
cursor_space_for_time
boolean FALSE
open_cursors
integer 600
session_cached_cursors
integer 20
SQL> shutdown immediate
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup
ORACLE 例程已经启动。
Total System Global Area603979776 bytes
Fixed Size
1298112 bytes
Variable Size
167772480 bytes
Database Buffers
427819008 bytes
Redo Buffers
7090176 bytes
数据库装载完毕。
数据库已经打开。
SQL> show parameter cursor
NAME
TYPEVALUE
------------------------------------ ----------- ------------------------------
cursor_sharing
stringEXACT
cursor_space_for_time
boolean FALSE
open_cursors
integer 600
session_cached_cursors
integer 20
SQL>
回复

使用道具 举报

千问 | 2010-3-1 11:20:04 | 显示全部楼层
我重试了还是不行,??????
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE10.2.0.1.0Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL> show parameter cursor
NAME
TYPEVALUE
------------------------------------ ----------- ------------------------------
cursor_sharing
stringEXACT
cursor_space_for_time
boolean FALSE
open_cursors
integer 300
session_cached_cursors
integer 20
SQL> show parameter spfile
NAME
TYPEVALUE
------------------------------------ ----------- ------------------------------
spfile
stringD:\ORACLE\PRODUCT\10.2.0\DB_1\

DATABASE\SPFILEORCL.ORA
SQL> show parameter cursor
NAME
TYPEVALUE
------------------------------------ ----------- ------------------------------
cursor_sharing
stringEXACT
cursor_space_for_time
boolean FALSE
open_cursors
integer 300
session_cached_cursors
integer 20
SQL> alter system set open_cursors=600 scope=both;
系统已更改。
SQL> show parameter cursor
NAME
TYPEVALUE
------------------------------------ ----------- ------------------------------
cursor_sharing
stringEXACT
cursor_space_for_time
boolean FALSE
open_cursors
integer 600
session_cached_cursors
integer 20
SQL> shutdown immediate
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup
ORACLE 例程已经启动。
Total System Global Area612368384 bytes
Fixed Size
1250428 bytes
Variable Size
167775108 bytes
Database Buffers
436207616 bytes
Redo Buffers
7135232 bytes
数据库装载完毕。
数据库已经打开。
SQL> show parameter cursor
NAME
TYPEVALUE
------------------------------------ ----------- ------------------------------
cursor_sharing
stringEXACT
cursor_space_for_time
boolean FALSE
open_cursors
integer 300
session_cached_cursors
integer 20
SQL>
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行