偶是个从9i升级到10g的DBA,10g其实很多新特性都不熟悉
在备份数据库的时候,发现10g的RMAN多了个checksyntax参数
checksyntax none check the command file for syntax errors
用该参数进入RMAN的语法检查模式,在该模式下,并不会真实执行输入的SQL语句,只是校验语法:
[oracle10@WESTZQ ~]$ rman checksyntax
Recovery Manager: Release 10.2.0.4.0 - Production on Fri Aug 14 10:00:27 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
RMAN> backup database;
The command has no syntax errors
RMAN>
当然,该参数也能这么用 rman CHECKSYNTAX @filename
不是个新东西,只是以前不知道的,记录下
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8242091/viewspace-613038/ ,如需转载,请注明出处,否则将追究法律责任。