Oracle cloud DBCS에서 Timezone 변경


- DBCS 생성시 Timezone이  기본 UTC 로 한국시간보다 9시간 느리기 때문에 한국사용자의 편의에 맞게 바꿔 타임존을 바꿔 주도록 하자.


- Cloud 상의 DBCS 는 Single instance 이어도 grid 환경 내에 생성되므로 기존 on-premise 와 같이 RAC 환경처럼 timezone 관련한 화일을 수정해 주어야 함. (fast provisioning 이 아닌 grid infrsstructure 로 선택한 경우)


1. 우선 OS Timezone 먼저 변경 후 리부팅


-- linux 7 계열

 

timedatectl

timedatectl set-timezone Asia/Seoul

ll /etc/localtime


-- linux 6 계열


cp /etc/localtime /etc/localtime_bak

ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime


또는


vi /etc/sysconfig/clock

ZONE=""Asia/Seoul" 

UTC=true

ARC=false


Note : /etc/sysconfig/clock 내의 Zone 필드는 /usr/share/zoneinfo 의 내용과 다를수 있음.


2. Grid 환경 Timezone 변경

 

Grid 환경의 경우 해당화일도 변경해 주어야 함.


1) crs 중지

2) OS 의 timezone 변경

3) $GRID_HOME/crs/install/s_crsconfig_<nodename>_env.txt 의 TZ 변경

TZ=Asia/Seoul 

4) crs 재개


s_crsconfig_<nodename>_env.txt 화일은 /usr/share/zoneinfo 화일의 내용을 참조함.

Posted by pat98

05-20 07:05
Flag Counter
Yesterday
Today
Total

글 보관함

최근에 올라온 글

달력

 « |  » 2024.5
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

최근에 달린 댓글