Windows rman backup to shared drive failed

環境

Windows 2003
Oracle 10.2.0.4 EE

異常  

rman backup to shared drive failed

細節

中午接到南部業務轉來園區客戶的 mail , 附件有 rman backup log 如下


Recovery Manager: Release 10.2.0.4.0 - Production on Fri May 25 11:16:59 2018

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

connected to target database: ExxxDB (DBID=19xxx06)
using target database control file instead of recovery catalog

RMAN> run{
2> backup format 'Y:\oracle\backup\df_full_%U%T.dmp' as compressed backupset database;
3> sql 'alter system archive log current';
4> backup format 'Y:\oracle\backup\ar_full_%U%T.dmp' as compressed backupset archivelog all not backed up delete all input;
5> backup format 'Y:\oracle\backup\my_ControlSpfile_%U%T.dmp' current controlfile spfile;
6> }
7> 
Starting backup at 25-MAY-18
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=24 devtype=DISK
channel ORA_DISK_1: starting compressed full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
.....
<中略>
channel ORA_DISK_1: starting piece 1 at 25-MAY-18
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 05/25/2018 11:17:11
ORA-19504: failed to create file "Y:\ORACLE\BACKUP\DF_FULL_6RT3P85F_1_120180525.DMP"
ORA-27040: file create error, unable to create file
OSD-04002: unable to open file
O/S-Error: (OS 3) ?t??????w????C

Recovery Manager complete.


Workaround 

RMAN 備份時出現無法建立檔案 (backupset), 不外乎下三種原因
1. 磁碟空間滿了
2. 目錄名稱不對
3. 網路磁碟機

實際連線至客戶端檢測, Y: disk 果然是網路磁碟機, 而服務裡的 oracle service 是由 Localsystem 啟動
參考 Doc ID 145843.1 , How to Configure RMAN to Write to Shared Drives on Windows NT/2000/2003
需將服務啟動帳號改為 administrator (或 domain admin, 如果有 domain)
修改完成後需重啟服務






留言

這個網誌中的熱門文章

12c RAC, OS log 出現 WARNING: couldn't allocate FBT table for module oracleacfs

11g client 連上 12c server, 出現 ora-28040

新建的 12.2.0.1 資料庫 alert 出現 ORA-12012