FAQ
altibase4에서 데이터 파일을 옮기는 작업 순서 | |||||
분류 | 운영/관리 | 등록일 | 2013-07-09 | 조회수 | 2163 |
bluetheme 2006-10-19 64 데이터 파일 RENAME 방법 +++++++++++++++++++++++++++++++++++++++ 요약 ++++ altibase4에서 DATAFILE 등을 옮기는 작업의 순서를 설명합니다. 이 작업은 1. 복구 작업시 필요 할 경우가 있으며 2. 디스크 조정을 위해 필요한 경우도 있을 수 있습니다. 온라인에서 불가능하며 오프라인에서 작업이 가능합니다. 작업 절차 +++++++++ 0. checkpoint 발생 2회 명령 : isql > alter system checkpoint; isql > alter system checkpoint; 1. 서비스 중지 명령 : server stop 2. 알티베이스 process 확인 명령 : ps -ef |grep "altibase -p"|grep -v grep |grep `whoami` 3. 변경될 디스크 확인 명령 : df -k |grep 새로운 디스크 4. 파일을 옮김 명령 : cp xxx yyy 5. 알티베이스 control 단계로 기동 명령 : is -sysdba iSQL(sysdba)> startup control; 6. 대상 파일들 확인 명령 : iSQL(sysdba)> select a.spaceid, a.name datafile_name, b.name tablespace_name from x$datafiles a, x$tablespaces b where a.name like '%새로운 디스크%' and a.spaceid = b.id; 7. 대상 파일들을 rename 명령 : iSQL(sysdba)> alter database rename xxx to yyy; 8. 전부 변경되었는지 확인 명령 : iSQL(sysdba)> select a.spaceid, a.name, b.name from x$datafiles a, x$tablespaces b where a.name like '%없어질 디스크%' and a.spaceid = b.id; 9. 서비스 기동 명령 : iSQL(sysdba)> startup service |