Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

There a nice new functionality in rman 11.2.0.3 i don’t know when it was added
It checks the syntax rman script without executing.

i created following file called restore.rman  with just this :

restore database;

then I executed following :

oracle@oraclelinux TEST]$  rman checksyntax cmdfile=”restore.rman”
Recovery Manager: Release 11.2.0.3.0 – Production on Thu Mar 1 16:57:49 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
RMAN> restore database;2>The cmdfile has no syntax errors
Recovery Manager complete.

add following deliberate error to the file :

recover databae;

[TEST oracle@oraclelinux TEST]$  rman checksyntax cmdfile=”restore.rman”
Recovery Manager: Release 11.2.0.3.0 – Production on Thu Mar 1 16:59:10 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
RMAN> restore database;2> recover databaeRMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-00558: error encountered while parsing input commandsRMAN-01009: syntax error: found “identifier”: expecting one of: “allow, archivelog, auxiliary, check, clear, copy, corruption, database, datafilecopy, datafile, delete, device, exclude, from, noparallel, noredo, parallel, preview, restore, skip readonly, standby, tablespace, test, undo, validate”RMAN-01008: the bad identifier was: databaeRMAN-01007: at line 2 column 9 file: restore.rman

I find this a usefull feature

Leave a Reply