互通有无,共同提高。
全部博文(144)
分类: 系统运维
2007-10-10 08:20:28
Backing Up Projects Using a Command Line Utility 用命令行程序备份井工区
owbackup
The owbackup program is a command line utility that allows you to back up the database tables in an OpenWorks project to a disk file.
External files are not backed up, and external devices are not available. owbackup can be run from any command line interface using the arguments shown below. The program will work both with and without X running.
To run owbackup as a cron job, you must first set OWHOME, ORACLE_HOME, and ORACLE_SID. OWSYSSID also must be set if it is not correctly set in $OWHOME/conf/lgcenv.cf.
Usage:
owbackup
Arguments:
Examples:
UNIX:
$OWHOME/bin/owbackup TESTDATA $HOME/backup/TESTdata.dmp
$OWHOME/bin/owbackup WERTZ /backup/WERTZ-’date +”%d-%b-%y”’
单位机器上的实例:
blade{owuser:/home/OpenWorks/bin}% owbackup HJQ /home4/hjq_backup/HJQ.dmp
HJQ: project backup successful
blade{owuser:/home/OpenWorks/bin}%
Windows:
%OWHOME%\bin\owbackup TESTDATA D:\backups\TESTdata.dmp
project name: the name of the project to back up
backup file name: the name of the backup file
owbackup-all
The owbackup-all program is a command line utility that allows you to back up all of the OpenWorks project in a directory to which you have manage access to a disk file. External files are not backed up, and external devices are not available.
owbackup-all backs up each project in the specified directory using a file name consisting of the project name and an extension.
owbackup-all can be run from any command line interface using the arguments shown below. The program will work both with and without X running.
To run owbackup-all as a cron job, you must first set OWHOME, ORACLE_HOME, and ORACLE_SID. OWSYSSID also must be set if it is not correctly set in $OWHOME/conf/lgcenv.cf.
Usage:
owbackup-all
Arguments:
Examples:
UNIX:
$OWHOME/bin/owbackup-all /pa/backups
$OWHOME/bin/owbackup-all /export/home/backups ow987.bkup
Windows:
%OWHOME%\bin\owbackup-all D:\backups ow987.bkup
directory name: the directory where the backup file will be created
extension: the extension of the backup file; optional;
.bkup will be used if no argument is provided
Restoring Using a Command Line Utility 用命令行程序恢复井工区
The owrestore program is a command line utility that allows you to restore the database tables in an OpenWorks project that have been backed up to a disk file. External files are not restored, and external devices are not available.
owrestore can be run from any command line interface using the arguments shown below. The program will work both with and without X running.
Usage:
owrestore
Arguments:
Examples:
UNIX:
$OWHOME/bin/owrestore TESTDATA owstar 100 $HOME/backup/TESTdata.dmp
$OWHOME/bin/owrestore WERTZ owwertz 200 /backup/WERTZ-’date +”%d-%b-%y”’
#############################
单位机器上的实例:
blade{owuser:/home/OpenWorks/bin}% owrestore HJQ owblade 400 /home4/hjq_backup/HJQ.dmp
HJQ: project restore successful
blade{owuser:/home/OpenWorks/bin}%
#############################
Windows:
%OWHOME%\bin\owrestore TESTDATA owst 100 D:\backup\TESTdata.dmp
project name: the name of the project to restore
sid: the Oracle instance to restore the project to
size: the size of the OpenWorks project to create in Mb
backup file name: the name of the backup file
如何把某台工作站上的Landmark工区搬到另一台工作站上