http://iotn.co.kr 연락처: gilho.kr@gmail.com [ The Japanese government should apologize to Japanese Military Sexual Slavery victim. / 日本政府は日本軍の性的奴隷?牲者に謝罪すべき. ]

사용자

ID:
PW:

INDEX
01.게시판
게시판 [69]
02.File Book
File 자료실 [95]
Site Link [18]
개인폴더 [194]
03.Field Book
Altibase [19]
Tibero [30]
MS-SQL [18]
MySQL [40]
DB2 [79]
ORACLE [2888]
PostgreSQL [103]
기타정보 [150]
운영체제 [577]
04.Q/A Book
Q/A [53]
05.방명록
방명록 [54]
레벨업 [37]
구인/구직 [2]

기념일
Search
LINK
+ 가족 Hompy
+ DNSEver
IOTN :: Field Book :: Altibase

 회원가입

hot backup script [ alter database backup database to '/backup/'; ]
최길호 [LIST]   2016-10-02 11:34:42, 조회 : 1,181

[ 추천 ]
=============================================================================
[root@dbsvr backup]# su - altibase
[altibase@dbsvr ~]$ is -sysdba
-----------------------------------------------------------------
     Altibase Client Query utility.
     Release Version 6.5.1.1.2
     Copyright 2000, ALTIBASE Corporation or its subsidiaries.
     All Rights Reserved.
-----------------------------------------------------------------
ISQL_CONNECTION = UNIX, SERVER = localhost
iSQL(sysdba)> alter database backup database to '/backup/';
Alter success.
iSQL(sysdba)>

[ 비추 ]
=============================================================================
# ALTIBASE_ENV
. /altibase/product/6.1/conf/altibase_user.env
alias sql='isql -s 127.0.0.1 -u SYS -p MANAGER -sysdba'
alias sql='isql -u sys -p manager -port 20301 -nls_use MS949 -s 127.0.0.1 -sysdba'
alias ah='cd $ALTIBASE_HOME'

su - altibase -c '/home/altibase/backup.sh' > /backup/altibase.log 2>&1

#!/bin/sh
#backup.sh
isql -s localhost -u sys -p manager -sysdba -f backup.sql

-- backup.sql
set colsize 80
set heading off
set Feedback off
alter system switch logfile;
alter system checkpoint;
! rm backup.lst bk.begin.sql bk.end.sql
spool backup.lst
SELECT distinct nls_characterset,nls_nchar_characterset FROM v$nls_parameters;
select checkpoint_path||'/'||space_name||'*' name
from v$mem_tablespaces m, v$mem_tablespace_checkpoint_paths c
where m.space_id=c.space_id
union all
select name from v$datafiles;
spool off
! echo $ALTIBASE_HOME/conf/ >> backup.lst
! echo $ALTIBASE_HOME/dbs/ >> backup.lst
! grep ^LOG_DIR $ALTIBASE_HOME/conf/altibase.properties | awk '{print $3}' >> backup.lst
! grep ^LOGANCHOR_DIR $ALTIBASE_HOME/conf/altibase.properties | awk '{print $3}' | sort | uniq >> backup.lst
! grep ^ARCHIVE_DIR $ALTIBASE_HOME/conf/altibase.properties | awk '{print $3}' >> backup.lst
-- ! grep ^/ backup.lst
spool bk.begin.sql
select 'alter tablespace '||name||' begin backup;' SQL from v$tablespaces where name not in ('SYS_TBS_DISK_TEMP') ;
spool off
@ bk.begin.sql
! find `grep ^/ backup.lst`  | cpio -pdvmu /backup
spool bk.end.sql
select 'alter tablespace '||name||' end backup;' SQL from v$tablespaces where name not in ('SYS_TBS_DISK_TEMP') ;
spool off
@ bk.end.sql
exit
3.235.78.122


  LIST

제목 작성자 작성일 조회
Admin  dbf 위치 확인 / 삭제 / create database [$ server create MS949 UTF8 ] / 서비스 시작    최길호 2020/10/08 263
Troubleshoot  [FAILURE] Unable to invoke the open() function on [/home/altibase/altibase-HDB-server-6.1.1-2/logs/logfile100]    최길호 2020/10/07 343
Admin  주소 iloader in [ csv data import ]    최길호 2020/10/07 271
Admin  altibase replication test    최길호 2016/11/17 1847
Backup & Recovery  hot backup script [ alter database backup database to '/backup/'; ]    최길호 2016/10/02 1181
Admin  -- 모든 테이블    최길호 2016/10/02 1092
Admin  [ERR-110A4 : Backup in progress. Please wait until the current backup is completed.]    최길호 2016/10/02 746
Admin  Sybase IQ 15.2 evaluation software    최길호 2013/08/21 2875
Admin  alter database rename datafile    최길호 2013/07/27 4150
Backup & Recovery  aexport lv:9   최길호 2013/07/22 1346
Admin  alter tablespace ts_disk1 alter datafile '/altibase/6.1/dbs/tbs_disk1_200.dbf' autoextend on next 200m maxsize unlimited;    최길호 2013/04/13 2784
Troubleshoot  [FAILURE] The data file '/altibase/6.1/dbs/SYS_TBS_MEM_DIC-0-0' has an invalid header. lv:9   최길호 2013/04/11 1383
Troubleshoot  oracle to altibase data type 호환     최길호 2013/04/05 2892
Admin  getdata.sql [ 오라클, 알티베이스 마이그레이션 내용 ] lv:9   최길호 2013/04/05 1299
Admin  http://support.altibase.com/kr/manual [ NLS_DATE_FORMAT = altibase.properties:DEFAULT_DATE_FORMAT ]    최길호 2013/04/04 13605
Admin  altibase 교육 자료 lv:4   최길호 2013/04/03 1496

    목록보기 1
       

Copyright 1999-2022 Zeroboard / skin by 최길호(gilho.kr@gmail.com)
최근 댓글
최근 게시물
06/29
[ORACLE]
DDE: Problem Key 'ORA 600 [133....
by 최길호
06/25
[ORACLE]
Replication may not be valid i....
by 최길호
06/22
[운영체제]
CentOS7 홈페이지 Migration 메모.
by 최길호