Database Backup and Recovery (MOSC)

MOSC Banner

Rman/linux question...

edited Sep 22, 2021 1:55PM in Database Backup and Recovery (MOSC) 6 commentsAnswered
I am trying to write a script to remove old or unneeded archive logs. I want this to run from cron, so I'm writing a shell script. I've looked at MANY searched pages on how to do this, none of them seem to work. What I am trying to do, which comes up repeatedly on searches is this, ignore the actual run { } stuff - it does not get that far anyway:
connect target /
connect catalog rman/secretpass@rmancat 
run {
           allocate channel c1 type disk format '/orabak/%U';
           backup tablespace users;
}
I cannot get past the "connect target /". To run this I saved the file, called archivelog. I try to execute this by doing:

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