Database Backup and Recovery (MOSC)

MOSC Banner

Syntax parsing error

edited Jul 12, 2010 8:51AM in Database Backup and Recovery (MOSC) 8 commentsAnswered
 Hi All,

I am getting RMAN-01005: syntax error: found "and": expecting one of:.

Please let me know the correct syntax if possible.It is listed below:-

List Archivelog backups for a Specific Database Instance ‘&&DB_NAME’

 

select a.db_name “Database”,db.dbid “DBID”,a.end_time “Latest Backup”,

round(a.output_bytes/1000000) “MBytes Processed”,

round((end_time – start_time) * 60 * 24) “Minutes Taken”

from v$rman_status a, v$database db

where

 object_type =’ARCHIVELOG’

and status = ‘COMPLETED’

and operation = ‘BACKUP’

and a.db_name=’&&DB_NAME’

and end_time in (select end_time from v$rman_status b

where

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center