아카이브 로그 파일 포맷 변경은 온라인 중에 가능할까? 라는 의문이 갑자가 생겼다.
그래서 테스트를 진행해 보았다.
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
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 ;
------------------------------------ ----------- ------------------------------
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
-------------------------------------------------------------------------------- ---------- ---------- ----------
log_archive_format FALSE FALSE FALSE
'Oracle > Admin' 카테고리의 다른 글
오라클 자동 기동 (0) | 2010.11.08 |
---|---|
데이터 파일 자동 증가 (0) | 2010.10.15 |
스케쥴링 하기(일주일마다 통계 정보) (0) | 2010.10.13 |
[펌]dbms_metadata 패키지 (테이블 스크립트 가져오기) (0) | 2010.09.16 |
특정 패키지가 invalid 되었을 때 (0) | 2010.09.07 |