µÚÒ»·¶ÎÄÍø - רҵÎÄÕ·¶ÀýÎĵµ×ÊÁÏ·ÖÏíÆ½Ì¨

EMC Legato NetWorkerʹÓÃÊÖ²á

À´Ô´£ºÓû§·ÖÏí ʱ¼ä£º2025/6/9 4:52:44 ±¾ÎÄÓÉloading ·ÖÏí ÏÂÔØÕâÆªÎĵµÊÖ»ú°æ
˵Ã÷£ºÎÄÕÂÄÚÈݽö¹©Ô¤ÀÀ£¬²¿·ÖÄÚÈÝ¿ÉÄܲ»È«£¬ÐèÒªÍêÕûÎĵµ»òÕßÐèÒª¸´ÖÆÄÚÈÝ£¬ÇëÏÂÔØwordºóʹÓá£ÏÂÔØwordÓÐÎÊÌâÇëÌí¼Ó΢ÐźÅ:xxxxxxx»òQQ£ºxxxxxx ´¦Àí£¨¾¡¿ÉÄܸøÄúÌṩÍêÕûÎĵµ£©£¬¸ÐлÄúµÄÖ§³ÖÓëÁ½⡣

EMC LEGATO NETWORKER°²×°Ê¹ÓÃ˵Ã÷Êé

# # # #

# Samples: # # #

# Optional Variable: TNS_ADMIN #

# Default value: NONE #

# Description: # # #

# Samples: # #

export_environment_variables() {

export ORACLE_HOME

export NSR_RMAN_ARGUMENTS export PRECMD export POSTCMD export PATH

export NSR_SB_DEBUG_FILE #export LD_LIBRARY_PATH #export TNS_ADMIN }

###################################################################### # Do not edit anything below this line.

####################################################################### Pid=0 #

# Handle cancel signals sent by savegrp when user stops the group. #

handle_signal() {

if [ $Pid != 0 ]; then fi

kill -2 $Pid

# process to kill if we are cancelled

nsrnmostart_status=0 # did it work?

TNS_ADMIN=/disk3/oracle/app/oracle/product/8.1.6/network/admin1

This variable needs to be set if Oracle Net configuration

files are not located in default locations.If it is set you must also uncomment the export TNS_ADMIN in the function export_environment_variables below.

LD_LIBRARY_PATH=/disk3/oracle/app/oracle/product/8.1.6/lib

We suggest leaving it unset unless you have a scheduled backup problem. If it is set you must also uncomment the export LD_LIBRARY_PATH in the function export_environment_variables below.

- 37 -

EMC LEGATO NETWORKER°²×°Ê¹ÓÃ˵Ã÷Êé

} #

# The main portion of this shell. #

# Make sure we respond to savegrp cancellations. #

trap handle_signal 2 15

# Build the nsrnmostart command # opts=\

while [ $# -gt 0 ]; do case \

-s ) # server name

opts=\

shift 2 ;;

-N ) # save set name opts=\ shift 2 ;;

-e ) # expiration time opts=\ shift 2 ;;

-b ) # Specify pool opts=\ shift 2 ;;

-c ) # Specify the client name opts=\ shift 2 ;;

-g ) # Specify group opts=\ shift 2 ;;

-m ) # Specify masquerade opts=\ shift 2 ;; *)

# rest of options

opts=\ shift

exit 1

- 38 -

EMC LEGATO NETWORKER°²×°Ê¹ÓÃ˵Ã÷Êé

;; esac done

if [ \then else #

# Export all necessary environment variables #

export_environment_variables #

# Call nsrnmostart to do the backups. #print $BACKUP_COMMAND_LINE eval ${BACKUP_COMMAND_LINE} & Pid=$! wait $Pid

nsrnmostart_status=$?

if [ $nsrnmostart_status != 0 ] ; then fi exit 0

echo \echo $0 \exit 1

BACKUP_COMMAND_LINE=\

BACKUP_COMMAND_LINE=\

ÊÖ¹¤²âÊÔ±¸·Ý£º

1¡¢¹éµµÈÕÖ¾ ££ su £­ oracle

$ rman cmdfile /nsr/script/bck_arc.rcv 2¡¢È«¿â ££ su £­ oracle

$ rman cmdfile /nsr/script/bck_all.rcv

Oracle×Ô¶¯±¸·ÝµÄÉèÖ㺠Save setÖÐÇëÌîдÈçϵÄÄÚÈÝ£º

/nsr/script/bck_all.rcv£ºÈ«¿â±¸·ÝµÄ½Å±¾£¬×¢Òâ·¾¶µÄÍêÕûÌîд¡£ /nsr/script/bck_arc.rcv£º¹éµµÈÕÖ¾µÄ½Å±¾£¬×¢Òâ·¾¶µÄÍêÕûÌîд¡£

ÁíÍâÇëÔÚNetWorker AdminstratorÖеÄbackup commandÖÐÌîд£ºnsrnmo.sh

ËÄ¡¢oracleÊý¾Ý¿âµÄ»Ö¸´£º

- 39 -

EMC LEGATO NETWORKER°²×°Ê¹ÓÃ˵Ã÷Êé

4.1¡¢¿ÉÒÔÓÃÓÚϵÄÃüÁî²é¿´ËùÓеÄÊý¾ÝÎļþ¡£ ½øÈë¹ÜÀíÆ÷£º su £­ oracle svrmgrl

svrmgrl>connect internal svrmgrl>select * from V$datafile

4.2¡¢½«Êý¾Ý¿âÖÃÓÚmount״̬ su £­ oracle svrmgrl

svrmgrl>connect internal svrmgrl>startup mount

4.3¡¢ÔÚrmanÖлָ´ËùÓеÄÊý¾Ý£» su £­ oracle

rman cmdfile /nsr/scripts/res_ora.rcv

4.4¡¢Êý¾Ý¿â»Ö¸´½Å±¾Îļþ£º res_ora.rcv

connect target rman/rman@rman; connect catalog rman/rman@backup; run {

allocate channel t1 type ?SBT_TAPE? parms

?ENV=(NSR_DATA_VOLUME_POOLTfault,NSR_SERVER=smbackup,NSR_CLIENT=jf3,NLS_LANG=AMERICAN)?;

allocate channel t2 type ?SBT_TAPE? parms

?ENV=(NSR_DATA_VOLUME_POOLTfault,NSR_SERVER=smbackup,NSR_CLIENT=jf3,NLS_LANG=AMERICAN)?; restore database;

release channel t1; release channel t2; }

4.5¡¢ÔÚLegato NetWorker userÖлָ´×îеÄarchivelog£¬µ½archivelogµÄĿ¼λÖᣠ# su ¨C oracle

$ rman cmdfile=res_arc.res

4.6¡¢»Ö¸´archivelog½Å±¾ÈçÏ£º res_arc.res

connect target rman/rman@rman; connect catalog rman/rman@backup;

- 40 -

ËÑË÷¸ü¶à¹ØÓÚ£º EMC Legato NetWorkerʹÓÃÊÖ²á µÄÎĵµ
EMC Legato NetWorkerʹÓÃÊÖ²á.doc ½«±¾ÎĵÄWordÎĵµÏÂÔØµ½µçÄÔ£¬·½±ã¸´ÖÆ¡¢±à¼­¡¢ÊղغʹòÓ¡
±¾ÎÄÁ´½Ó£ºhttps://www.diyifanwen.net/c9a3uj980s779c964hv0p_10.html£¨×ªÔØÇë×¢Ã÷ÎÄÕÂÀ´Ô´£©

Ïà¹ØÍÆ¼ö£º

ÈÈÃÅÍÆ¼ö
Copyright © 2012-2023 µÚÒ»·¶ÎÄÍø °æÈ¨ËùÓÐ ÃâÔðÉùÃ÷ | ÁªÏµÎÒÃÇ
ÉùÃ÷ :±¾ÍøÕ¾×ðÖØ²¢±£»¤ÖªÊ¶²úȨ£¬¸ù¾Ý¡¶ÐÅÏ¢ÍøÂç´«²¥È¨±£»¤ÌõÀý¡·£¬Èç¹ûÎÒÃÇ×ªÔØµÄ×÷Æ·ÇÖ·¸ÁËÄúµÄȨÀû,ÇëÔÚÒ»¸öÔÂÄÚ֪ͨÎÒÃÇ£¬ÎÒÃǻἰʱɾ³ý¡£
¿Í·þQQ£ºxxxxxx ÓÊÏ䣺xxxxxx@qq.com
ÓåICP±¸2023013149ºÅ
Top