自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Oracle數(shù)據(jù)庫在linux和windows下自動備份腳本總結(jié)

數(shù)據(jù)庫 Oracle
本文我們主要對Oracle數(shù)據(jù)庫在Linux和Windows下自動備份的腳本進行了總結(jié),以便于我們對于Oracle數(shù)據(jù)庫在不同平臺上的備份的掌握,希望能夠?qū)δ兴鶐椭?/div>

Oracle數(shù)據(jù)庫操作中,數(shù)據(jù)庫備份是非常重要的操作之一,因為它涉及到數(shù)據(jù)庫的安全性。數(shù)據(jù)庫管理員常常將數(shù)據(jù)庫設置為自動備份來備份數(shù)據(jù)庫,那么如何設置自動備份呢?不同操作系統(tǒng)平臺的設置有什么區(qū)別嗎?本文我們主要就介紹這一部分內(nèi)容,希望能夠?qū)δ兴鶐椭?/p>

Linux系統(tǒng)下Oracle數(shù)據(jù)庫的備份:

 

  1. FIELNAME=/home/oracle/dmp/`date +%Y%m%d`.dmp  
  2. echo $FIELNAME > /home/oracle/dmp/filename  
  3. /home/oracle/product/9.2/bin/exp ccbip/'und\=2008CN(Y|N)' full=y file=$FIELNAME  
  4. bzip2 $FIELNAME 

 

注:創(chuàng)建的文件都是Oracle用戶oinstall組的。

Windows系統(tǒng)下Oracle數(shù)據(jù)庫自動備份腳本:

expData.bat的內(nèi)容:

 

  1. exp system/system@orcl file=c:\oracle_bak\tne%date:~4,10%.dmp owner=tne   
  2. exp system/system@orcl file=c:\oracle_bak\prt%date:~4,10%.dmp owner=prt   
  3. exp system/system@orcl file=c:\oracle_bak\sec%date:~4,10%.dmp owner=sec   
  4. exp system/system@orcl file=c:\oracle_bak\tea%date:~4,10%.dmp owner=tea   
  5. exp system/system@orcl file=c:\oracle_bak\pic%date:~4,10%.dmp owner=pic   
  6. exp system/system@orcl file=c:\oracle_bak\system%date:~4,10%.dmp owner=system   
  7. path=D:\WinRAR 3.20  
  8. rar a Data%date:~4,10%.rar *%date:~4,10%.dmp  
  9. del *%date:~4,10%.dmp 

 

以上就是Oracle數(shù)據(jù)庫在linux和windows下自動備份腳本的全部內(nèi)容,本文我們就介紹到這里了,如果您想了解更多Oracle數(shù)據(jù)庫的內(nèi)容,也可以看一下這里的文章:http://database.51cto.com/oracle/,相信一定可以給您帶來收獲的!

【編輯推薦】

  1. Oracle數(shù)據(jù)庫GLOBAL_NAMES參數(shù)的詳細研究
  2. Oracle數(shù)據(jù)庫分析函數(shù)應用實例之查找狀態(tài)全為1的ID
  3. Oracle 10g UNDO表空間過大導致磁盤空間不足的解決
  4. Oracle handbook系列之虛擬專用數(shù)據(jù)庫VPD的使用詳解
  5. Oracle 10g中UNDO數(shù)據(jù)的作用及UNDO表空間的操作詳解
責任編輯:趙鵬 來源: ChinaUnix博客
相關推薦

2010-04-19 12:54:01

Oracle數(shù)據(jù)庫

2018-12-12 19:10:01

Oracle數(shù)據(jù)庫自動備份

2009-03-26 11:42:36

定時備份Oracle

2010-04-19 12:35:36

Oracle數(shù)據(jù)庫

2010-04-09 15:22:57

Oracle數(shù)據(jù)庫

2010-04-12 10:40:49

Oracle數(shù)據(jù)庫

2013-05-24 13:24:46

Mysql數(shù)據(jù)庫自動備份

2009-08-12 18:16:37

Oracle數(shù)據(jù)庫自動UNIX

2010-04-19 13:15:00

Oracle數(shù)據(jù)庫

2010-11-15 10:30:04

Oracle數(shù)據(jù)庫啟動

2023-09-21 09:31:24

MySQL數(shù)據(jù)庫

2011-05-17 15:02:15

ORACLE數(shù)據(jù)庫備份

2009-11-20 14:08:39

Oracle數(shù)據(jù)庫備份

2010-04-12 14:19:00

Oracle數(shù)據(jù)庫備份

2011-03-30 10:41:58

Linux服務器網(wǎng)站

2023-05-11 08:46:28

MySQL

2010-10-26 13:33:08

Oracle自動備份

2011-03-30 13:57:41

MySQL數(shù)據(jù)庫自動備份

2009-03-16 13:30:55

腳本數(shù)據(jù)字典Oracle

2019-10-16 00:37:36

Oracle數(shù)據(jù)庫游標數(shù)
點贊
收藏

51CTO技術棧公眾號