Oracle/Admin2010. 10. 14. 17:11


아카이브 로그 파일 포맷 변경은 온라인 중에 가능할까? 라는 의문이 갑자가 생겼다.

그래서 테스트를 진행해 보았다.

SQL> archive log list
Database log mode        Archive Mode
Automatic archival        Enabled
Archive destination        /u01/app/oracle/oradata/ORCL/arc
Oldest online log sequence     21
Next log sequence to archive   23
Current log sequence        23
SQL> show parameter log_archive_format
NAME         TYPE  VALUE
------------------------------------ ----------- ------------------------------
log_archive_format       string  orcl_%s_%t_%r.arc

SQL> alter system set log_archive_format='orcl_%s_%t_%r.dbf' scope=memory;
alter system set log_archive_format='orcl_%s_%t_%r.dbf' scope=memory
                 *
ERROR at line 1:
ORA-02095: specified initialization parameter cannot be modified

=> log_archive_format 파라미터는 온라인 중에 변경되지 않네요..


# 참고 : 파라미터에 관련된 뷰를 조회해보면
SQL> select name, ISSES_MODIFIABLE, ISSYS_MODIFIABLE, ISINSTANCE_MODIFIABLE
from v$parameter
where name like '%archive_format'  2    3  ;
NAME           ISSES_MODI ISSYS_MODI ISINSTANCE
-------------------------------------------------------------------------------- ---------- ---------- ----------
log_archive_format         FALSE     FALSE      FALSE


Posted by 자수성가한 부자