일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- oracleasm
- supplemental log 활성화
- create role
- oracle SCN
- oracle tde
- oracle system lock
- ora-00439: feature not enabled: partitioning
- SSMS
- oracle install
- oracle dba_profile password_life_time
- oracle 테스트 데이터
- ora-28002: the password will expire within 7 days
- oracle
- MSSQL
- mssql database 삭제
- sql user 생성
- oracle pdb
- SQL Server
- Oracle Database
- oracle supplemental
- oracle awr
- oracle account_status expired
- 오라클
- oracle 파티션 datapump
- ORA-00020
- partition_options=merge
- Oracle RAC
- oracle datapump
- oracle role 삭제
- ora-39083 ora-00439
Archives
- Today
- Total
신문지한장
expdp crontab 설정 본문
- expdp 스크립트 작성
[test11]dbtest:/oracle/app/oracle/product/11.2.0.4/truin> :vi crontab.sh
#!/bin/bash
export ORACLE_BASE=/oracle/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.4
export ORACLE_SID=test11
export ORACLE_TERM=xterm
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
# backup date
DATE=`date '+%Y%m%d'`
# backup destination
DMPFILE=${DATE}_table.dmp
LOGFILE=${DATE}_table.log
expdp scott/1234 directory=datapump dumpfile=${DMPFILE} logfile=${LOGFILE} tables=emp
2. 스크립트 권한 부여
[test11]dbtest:/oracle/app/oracle/product/11.2.0.4/truin> :chmod 775 crontab.sh
3-1. crontab 설정 (oracle os 유저) - 새벽 1시 수행
[test11]dbtest:/oracle/app/oracle/product/11.2.0.4/truin> :crontab -e
0 1 * * * /oracle/app/oracle/product/11.2.0.4/truin/crontab.sh
3-2. crontab 설정 (root os 유저) - 새벽 1시 수행
0 1 * * * su - oracle -c /oracle/app/oracle/product/11.2.0.4/truin/crontab.sh
'Oracle > Backup&Recovery' 카테고리의 다른 글
[B&R] oracle LOGMINER (11g 이하) (0) | 2024.05.10 |
---|---|
[B&R] oracle Migration [ 11g to 19c (PDB) ] (0) | 2024.05.10 |
[B&R] oracle RMAN (0) | 2024.05.10 |
[B&R] oracle CSScan (0) | 2024.05.10 |
[B&R] oracle parameter file 손실 (4) | 2024.01.04 |