先确定一下当前启动是pfile还是spfile。 只有spfile 启动才能够sql语句修改。 pfile的情况下去修改init文件,然后重启动。 修改命令为 alter system set xxx= scope=spfile;
alter system set open_cursors = 3000 scope=spfile alter system set session_cached_cursors=3000 scope=spfile 这个两个参数是静态参数修改时必须要加上scope=spfile 需要重启数据库才能生效 shutdown immedaite; startup;
修改参数文件:1.创建 pfileCREATE PFILE='/app/oracle/product/10.2.0/db_1/admin/ora10/pfile/init.ora.test' FROM SPFILE='/app/oracle/product/10.2.0/db_1/dbs/spfileora10.ora';
2.修改pfile
3.用修改后的pfile来启动数据库
4.更改spfile.
create spfile from pfile...
alter system set xxxx = xxx;
alter system reset xxxx;
alter system set open_cursors = 3000;
alter system set session_cached_cursors=3000;
执行完成后可能需要重启数据库服务才能生效
只有spfile 启动才能够sql语句修改。 pfile的情况下去修改init文件,然后重启动。
修改命令为 alter system set xxx= scope=spfile;
alter system set session_cached_cursors=3000 scope=spfile
这个两个参数是静态参数修改时必须要加上scope=spfile 需要重启数据库才能生效
shutdown immedaite;
startup;