http://iotn.co.kr ¿¬¶ôó: gilho.kr@gmail.com [ The Japanese government should apologize to Japanese Military Sexual Slavery victim. / ìíÜâïÙݤªÏìíÜâÏÚªÎàõîÜÒ¿ÖË?ßåíºªËÞóñªª¹ªÙª. ]
[ ̵̧ ]
=============================================================================
[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)>
-- 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