[原]记一次调整Oracle参数的小失误
2009-12-15 14:48
267 查看
新装一个Oracle 11g数据库,今天调整了一下参数,出了点小意外,特此记录,警示自己,其实操作很简单,只是简单地改一下archivelog的名字格式,顺便将数据库打开 flashback 和 archivelog 模式,以下是我的操作:
有技术还不够,还得细心!!
sys@logdw(10.163) SQL> alter system set log_archive_format='archivelog_%t_%s_r.arc' scope=spfile; System altered. sys@logdw(10.163) SQL> shutdown immediate ; ...... ...... ...... sys@logdw(10.163) SQL> startup ; ORA-19905: log_archive_format must contain %s, %t and %r ### archivelog_%t_%s_r.arc .. SQL> startup nomount; ORA-19905: log_archive_format must contain %s, %t and %r SQL> create pfile from spfile ; [oracle@logserver dbs]$ echo $ORACLE_HOME /u01/app/oracle/11gr2 [oracle@logserver dbs]$ cd $ORACLE_HOME/dbs [oracle@logserver dbs]$ ls -lth total 24K -rw-r--r-- 1 oracle oinstall 1.1K Dec 15 14:00 initlogdw.ora -rw-r----- 1 oracle oinstall 3.5K Dec 15 13:57 spfilelogdw.ora -rw-r----- 1 oracle oinstall 1.5K Nov 25 22:11 orapwlogdw -rw-r----- 1 oracle oinstall 24 Nov 25 22:06 lkLOGDW -rw-rw---- 1 oracle oinstall 1.6K Nov 25 22:05 hc_logdw.dat -rw-r--r-- 1 oracle oinstall 2.8K May 15 2009 init.ora [oracle@logserver dbs]$ vim initlogdw.ora ### 将 *.log_archive_format='archivelog_%t_%s_r.arc' ### 修改成 *.log_archive_format='archivelog_%t_%s_%r.arc' SQL> create spfile from pfile='/u01/app/oracle/11gr2/dbs/initlogdw.ora' ; File created. Elapsed: 00:00:00.04 SQL> startup ; ORACLE instance started. Total System Global Area 1887350784 bytes Fixed Size 2214456 bytes Variable Size 1426064840 bytes Database Buffers 436207616 bytes Redo Buffers 22863872 bytes Database mounted. Database opened.
有技术还不够,还得细心!!
相关文章推荐
- [转自Oracle官方博客]一次服务器时间调整引发的实例宕机
- Linux 内核参数 和 Oracle相关参数调整
- Linux 内核参数 和 Oracle相关参数调整
- Oracle SGA参数调整
- Linux 内核参数及Oracle相关参数调整
- linux内核参数Oracle相关调整(网摘)
- Linux安装oracle时对共享内存段和信号量的系统内核参数调整
- Oracle系统参数调整实操--小记
- Linux 内核参数 和 Oracle相关参数调整
- 【原】Linux内核参数及Oracle相关参数调整
- Oracle 内存参数调整
- Linux安装Oracle内核调整参数说明
- Linux 内核参数 和 Oracle相关参数调整
- oracle性能优化参数的调整
- linux内核参数Oracle相关调整(网摘)
- Oracle Service Bus Socket Adapter调整的参数
- Linux 内核参数 和 Oracle相关参数调整 .
- Oracle性能参数调整
- Linux内核参数(如kernel.shmmax)及Oracle相关参数调整(如SGA_MAX_SIZE)
- Oracle 内在索引和参数数的调整