ORACLE BackupRestore
LowyCCN edited this page Jan 18, 2022
·
13 revisions
Shell
rman target /
RMAN
backup database;
- バックアップはdb_recovery_file_destの設定に影響があるので必ず下記を注意すること
- db_recovery_file_dest_size = 10TB
- サイズがDBデータサイズを超えるとエラーになってバックアップが止まる
- db_recovery_file_dest_size
- バックアップしたディスクの容量及びディスクのIOが余裕があることを確認すること
- db_recovery_file_dest_size = 10TB
alter system set db_recovery_file_dest_size = 12800G scope=both;
alter system set db_recovery_file_dest = '/data3/fast_recovery_area/' scope=both;
Shell
rman target /
RMAN
startup mount
restore database;
recover database;
-
It must execute config backup dir SQL before execute data pump
-
Set export directory on sqlplus
create or replace directory BAK_DIR as '/data/bak';
- export schema
expdp admin/pass@orcl schemas=servie01 directory=BAK_DIR dumpfile=service01_20210301.dmp logfile=exp.log
- Delete job table if you see error message when execute expdp or impdp
With the Partitioning, OLAP and Data Mining options
ORA-31634: job already exists
ORA-31664: unable to construct unique job name when defaulted
select 'drop table ' || owner_name || '.' || job_name || ';'
from dba_datapump_jobs
where state = 'NOT RUNNING';
select * from v$log;
select * from v$logfile;
-- Drop logfile group
ALTER DATABASE DROP LOGFILE GROUP 4;
-- Add logfile group
ALTER DATABASE ADD LOGFILE GROUP 7;
-- add logfile to group
ALTER DATABASE ADD LOGFILE MEMBER '/mnt/sdb1/redolog/redo06.log' TO GROUP 6;
-- rename and change path log file
ALTER DATABASE
RENAME FILE '/app/oracle/flash_recovery_area/SMARTDB/onlinelog/o1_mf_6_h3hzqkx2_.log'
TO '/mnt/sdb1/redolog/redo06.log';
- Oracle backup and restore, duplicate, replica planning(jp)
- Cumulate differential backup and restore(jp)
- バックアップおよびリカバリ・ユーザーズ・ガイド
- Oracle stream (jp)
- 高速リカバリ領域の構成
- Oracle stream(replication) official documentation
- Cumulate differential backup and restore(jp)
- KB wiki is multi-lingual writing. If you want translate to your language, use google translate!
- Go to giip service Page : http://giipweb.littleworld.net
- Documentation : https://github.com/LowyShin/giip/wiki
- Sample automation scripts : https://github.com/LowyShin/giip/tree/gh-pages/giipscripts
See more : https://github.com/LowyShin/giip/wiki
- Token exchanges : https://tokenjar.io/GIIP
- Token exchanges manual : https://www.slideshare.net/LowyShin/giipentokenjario-giip-token-trade-manual-20190416-141149519
- GIIP Token Etherscan : https://etherscan.io/token/0x33be026eff080859eb9dfff6029232b094732c52
If you want get GIIP, contact us any time!
- LowyWorkEnv : https://github.com/LowyShin/Lowyworkenv/wiki
- CLoud RDBMS比較
- MachineLearning
- SQL Server
- ORACLE
- MySQL
- mariadh
- Redis with MySQL
- Mongodb
- Apache-Drill
- A5MK2-MultiDBMSTool
- BI
- Referrals
- Juliaの自動微分パッケージ Zygote の紹介
- color code table
- Canva - free Online Design tool
- vscode
- git(github)
- GoogleSheet
- UiPath(RPA)
- WinAutomation(official)
- Excel
- VNC
- VPN
- Note Tool
- Blog
- google news alert
- Online PDF to JPG
- LoadTest " putty
- Shell/bash
- crontab
- PowerShell
- Windows(DOS) batch
- Wscript/wsf
- AWS
- Azure
- File Sync(rsync, scp...)
- KnownPort(wikipedia)
- CentOS(Linux)
- Windows10
- Android