Monitor backup job from db control

Dear Oracle users,
My database version is standard edition 10.2.0.3. I set up some database backup jobs from db console on our test db server including ‘schedule oracle-suggested backup’ and ‘schedule customized backup’.
The jobs are running very well at daily schedule. However, I need to monitor them in case they failed. Is there any way I can monitor these jobs through db console?
Thanks,
Belinda

[email protected] wrote:
Dear Oracle users,
Is there any way I can monitor these jobs through db console?It seems like one way is mentioned in documentation
Thanks,ok

Similar Messages

  • Problem in deleting backup job in Grid Control

    Hi,
    The topology and versions are as follows:
    1 windows 2003 server with Oracle Grid Control 10.2.0.4.0.
    1 windows 2003 server with Oracle Databases 10.2.0.3.
    1 windows 2003 server with Oracle Databases 10.2.0.3 - Data Guard setup
    I have tried to stop (and delete) some scheduled fullbackup jobs from Grid Control.
    The job has now status SUSPEND. I have tried to stop and delete the job, but I get the message:
    All executions of the job were stopped successfully. Currently running steps will not be stopped.
    I cannot delete the job and the job is not running.
    I have run this procedure in order to delete the job:
    DECLARE
    jguid RAW;
    BEGIN
    SELECT job_id
    INTO jguid
    FROM mgmt_job
    WHERE job_name = '<name of your job>'
    AND job_owner = '<owner of your job>';
    mgmt_job_engine.stop_all_executions_with_id(jguid,TRUE);
    COMMIT;
    END;
    With no effect. The job is still shown in Grid Control with status SUSPEND.
    I have restarted all servers and all the components in Grid Control, but the jobs will not disappear from Grid Control although they have been deleted.
    I am struggling with this for about 2 days now.
    I have search in Metalink and the internet, but I have not found anything that provides a solution.
    Any help will be very much appreciated.

    hi,
    I have in the past used the following from metalink
    Do you have a metalink account?
    SET verify OFF
    SET linesize 255
    SET pagesize 128
    SET trimout ON
    SET trimspool ON
    SPOOL jobdump.log
    ALTER SESSION SET nls_date_format='MON-DD-YYYY hh:mi:ss pm';
    COLUMN status format a15
    COLUMN job_name FORMAT a64
    COLUMN job_type FORMAT a32
    COLUMN job_owner FORMAT a32
    COLUMN job_status format 99
    COLUMN target_type format a64
    COLUMN frequency_code format a20
    COLUMN interval format 99999999
    VARIABLE JOBID VARCHAR2(64);
    PROMPT *********************** JOB INFO ********************************
    REM Get the job id
    SET serveroutput on
    BEGIN
    SELECT job_id INTO :JOBID
    FROM MGMT_JOB
    WHERE job_name='&&jobName'
    AND job_owner='&&jobOwner'
    AND nested=0;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    BEGIN
    DBMS_OUTPUT.put_line('JOB NOT FOUND, TRYING NAME ONLY');
    SELECT job_id INTO :JOBID
    FROM MGMT_JOB
    WHERE job_name='&&jobName'
    AND nested=0
    AND ROWNUM=1;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    DBMS_OUTPUT.put_line('JOB NOT FOUND');
    END;
    END;
    SELECT job_name, job_owner, job_type, system_job, job_status, target_type
    FROM MGMT_JOB
    WHERE job_id=HEXTORAW(:JOBID);
    PROMPT *********************** JOB SCHEDULE ****************************
    SELECT DECODE(frequency_code,
    1, 'Once',
    2, 'Interval',
    3, 'Daily',
    4, 'Day of Week',
    5, 'Day of Month',
    6, 'Day of Year', frequency_code) "FREQUENCY_CODE",
    start_time, end_time, execution_hours, execution_minutes,
    interval, months, days, timezone_info, timezone_target_index,
    timezone_offset, timezone_region
    FROM MGMT_JOB_SCHEDULE s, MGMT_JOB j
    WHERE s.schedule_id=j.schedule_id
    AND j.job_id=HEXTORAW(:JOBID);
    PROMPT ********************** PARAMETERS ********************************
    SELECT parameter_name,
    decode(parameter_type,
    0, 'Scalar',
    1, 'Vector',
    2, 'Large', parameter_type) "PARAMETER_TYPE",
    scalar_value, vector_value
    FROM MGMT_JOB_PARAMETER
    WHERE job_id=HEXTORAW(:JOBID)
    AND execution_id=HEXTORAW('0000000000000000')
    ORDER BY parameter_name;
    PROMPT ********************** TARGETS ********************************
    SELECT target_name, target_type
    FROM MGMT_JOB_TARGET jt, MGMT_TARGETS t
    WHERE job_id=HEXTORAW(:JOBID)
    AND execution_id=HEXTORAW('0000000000000000')
    AND jt.target_guid=t.target_guid
    ORDER BY target_type, target_name;
    PROMPT ********************** FLAT TARGETS ********************************
    SELECT target_name, target_type
    FROM MGMT_JOB_FLAT_TARGETS jft, MGMT_TARGETS t
    WHERE job_id=HEXTORAW(:JOBID)
    AND jft.target_guid=t.target_guid
    ORDER BY target_type, target_name;
    PROMPT ************************ EXECUTIONS *******************************
    SELECT execution_id,
    DECODE(status,
    1, 'SCHEDULED',
    2, 'RUNNING',
    3, 'FAILED INIT',
    4, 'FAILED',
    5, 'SUCCEEDED',
    6, 'SUSPENDED',
    7, 'AGENT DOWN',
    8, 'STOPPED',
    9, 'SUSPENDED/LOCK',
    10, 'SUSPENDED/EVENT',
    11, 'SUSPENDED/BLACKOUT',
    12, 'STOP PENDING',
    13, 'SUSPEND PENDING',
    14, 'INACTIVE',
    15, 'QUEUED',
    16, 'FAILED/RETRIED',
    17, 'WAITING',
    18, 'SKIPPED', status) "STATUS",
    scheduled_time, start_time, end_time
    FROM MGMT_JOB_EXEC_SUMMARY e
    WHERE job_id=HEXTORAW(:JOBID)
    ORDER BY scheduled_time;
    UNDEFINE jobName
    UNDEFINE jobOwner
    UNDEFINE JOBID
    SPOOL OFFAlan

  • How can u schedule or monitor Bacground jobs from OS level?

    Hello,
         I was faced one question recently in IBM interview,, How can u schedule or monitor Background Jobs through OS level.anyone pls help me.
    regards,
    balaram

    In my knowledge, for scheduling background jobs in windows we can use scheduler.
    In unix flavours, cronjobs or at commands can be used.
    Again it depends on which version of OS we use.
    hope this helps.
    inspire by rewarding

  • OEM ERROR: Run backup job from Enterprise Maneger failed

    After configuring backup policy on my database by means of OEM console (Oracle 9.2, OEM 9.2.0.1) scheduled job failed. Job Output show:
    "Could Not Find C:\WINNT\TEMP\3212132705.44]" (square bracket at the end of filename). This file (without bracket) exist and contain rman's script.
    But how can I force OEM (or RMAN or other product) remove last square bracket!

    I had the same problem of not discovering nodes and teh problem escalated to a point that jobs remained in "submitting" or "deleting" status. I couldn't delete nodes becuase jobs were dependent on it, and couldn't delete jobs because the node was manually configures.
    The following steps are by trial and error and got me back to a working status where nodes are discovered. Try them at your own risk :)
    Oracle Agent doens't seem to like changing IPs... if your machine IP has changed do the following:
    1. Stop the Agent service (under control panel)
    2. under Oracle's folder, ora92/network/agent, backup all the .q and .ora files and delete them. If it does not allow you to delete, disable the Agent service, reboot the computer and try to delete them
    3. Start the agent service (if you had disabled it, change the startup back to "automatic"
    4. I dropped the OEM repository and recreated it. Not sure if it helped or not, you can do the same or just go ahead and start OMS.
    Hope it helps, again, no garantee this works. It did work on my computer.

  • Backup problems from Enterprise Manager Database control

    I'm having a problem with performing backups from EM DB Control on two of my Oracle 10g 10.2.0.4 systems. When I configure and submit any backup job from EM (either online or offline), the following happens:
    - When the job is due to run a Pre backup task has status of 'Scheduled'
    - Prebackup task completes and status changes to 'Succeeded'
    - Backup task appears with status of 'Scheduled' and value of started time within the next minute
    - Status of backup task never changes from 'Scheduled', and the started time keeps updating to the current time
    - This goes on indefinitely until I abort the job
    At the moment I have scheduled tasks configured to run an RMAN job every night, but I need to get this working through Enterprise Manager Database control. Please help!
    Something else which has happended on one of these systems is that after applying some Microsoft Critical updates the database control service would not start. The only way I could find to resolve this was to recreate the Enterprise Manager repository. Could there be a link here at all?
    Cheers,
    Strak

    I think Rodney may have the cause, because the database has been copied. I have looked in every property file I can think of, and then all the rest anyway, and there is no reference to the old host name. And I have ralready e-installed EM using emca -config -dbcontrol db. And I'm definately on the correct port.
    So it must be held internally in the database. I've seen partial instructions on deleting the EM repository in the database & java files, does anyone have a full set I can use ? Once that is done, does emca reinstall everything ?
    Many thanks, Duncan

  • EM DB control, backup jobs email notification

    Hello all,
    I have some 10.2 databases and I schedule the backup jobs through Enterprise Manager Db Control.
    Is it possible to receive email notifications about the job executions?
    I've configured the email notification in Enterprise Manager DB Control and I receive the "test email", but I don't receive any other emails from EM.
    Thank you.
    Bye,
    Andrea

    Andrea,
    You need to create your own emailing stored procedure using utl_smtp package.
    Then you can make a call to this procedure after your jobs completion, using chained jobs for example.
    Marco

  • How to clean /Delete all the jobs from Job monitor.

    Hi,
    we have done lot of testing in redwood. we have scheduled many jobs through redwood.we want to clean up the Job monitor now.we want to delete all the jobs from job monitor.
    1)Is there any standard system give Job definition to do so?
    2) how to delete jobs in waiting status?(next run is going to lock wait due to this waiting job status)
    3)how to delete all the Operator messages?
    Regards
    Rajesh

    Hi,
    Yes that was for individual job definitions but often if there are many jobs, most jobs come from only a few job definitions (SAP_AbapRun, SAP_CCMSJob, ...) so these options could help you already to delete most jobs.
    You could also create a filter showing all Waiting jobs, then select all jobs, right-click and kill all these jobs.
    Then a filter for all jobs in an end-state (Completed, Error, Killed, Canceled), select all jobs, right-click and delete them.
    Regards,
    Anton.

  • Data Guard configuration for RAC database disappeared from Grid control

    Primary Database Environment - Three node cluster
    RAC Database 10.2.0.1.0
    Linux Red Hat 4.0 2.6.9-22 64bit
    ASM 10.2.0.1.0
    Management Agent 10.2.0.2.0
    Standby Database Environment - one Node database
    Oracle Enterprise Edition 10.2.0.1.0 Single standby
    Linux Red Hat 4.0 2.6.9-22 64bit
    ASM 10.2.0.1.0
    Management Agent 10.2.0.2.0
    Grid Control 10.2.0.1.0 - Node separate from standby and cluster environments
    Oracle 10.1.0.1.0
    Grid Control 10.2.0.1.0
    Red Hat 4.0 2.6.9-22 32bit
    After adding a logical standby database through Grid Control for a RAC database, I noticed sometime later the Data Guard configuration disappeared from Grid Control. Not sure why but it is gone. I did notice that something went wrong with the standby creation but i did not get much feedback from Grid Control. The last thing I did was to view the configuration, see output below.
    Initializing
    Connected to instance qdcls0427:ELCDV3
    Starting alert log monitor...
    Updating Data Guard link on database homepage...
    Data Protection Settings:
    Protection mode : Maximum Performance
    Log Transport Mode settings:
    ELCDV.qdx.com: ARCH
    ELXDV: ARCH
    Checking standby redo log files.....OK
    Checking Data Guard status
    ELCDV.qdx.com : ORA-16809: multiple warnings detected for the database
    ELXDV : Creation status unknown
    Checking Inconsistent Properties
    Checking agent status
    ELCDV.qdx.com
    qdcls0387.qdx.com ... OK
    qdcls0388.qdx.com ... OK
    qdcls0427.qdx.com ... OK
    ELXDV ... WARNING: No credentials available for target ELXDV
    Attempting agent ping ... OK
    Switching log file 672.Done
    WARNING: Skipping check for applied log on ELXDV : disabled
    Processing completed.
    Here are the steps followed to add the standby database in Grid Control
    Maintenance tab
    Setup and Manage Data Guard
    Logged in as sys
    Add standby database
    Create a new logical standby database
    Perform a live backup of the primary database
    Specify backup directory for staging area
    Specify standby database name and Oracle home location
    Specify file location staging area on standby node
    At the end am presented with a review of the selected options and then the standby database is created
    Has any body come across a similar issue?
    Thanks,

    Any resolution on this?
    I just created a Logical Standby database and I'm getting the same warning (WARNING: No credentials available for target ...) when I do a 'Verify Configuration' from the Data Guard page.
    Everything else seems to be working fine. Logs are being applied, etc.
    I can't figure out what credentials its looking for.

  • 11G R2 How to stop the backup job totally

    I have a third party application connected to 11G R2 database and is having issue every morning at 2. After applying the patch from the third part application, most of the issues are resolved. Unfortunately, I still get an ORA-12528 error - Failed to connect to database instance. Look like the third party application is having issue with the backup job. I have tried the command "alter tablespace tsname flashback off", but I check the alert log, the backup job is still running. I may have turn on the backup job during the database installation. How do I stop it?
    Thanks for any help!
    - Johnny

    Sorry, I forgot to add "alter database flashback off "command on top of the other one. The third party application is basically a monitoring and scheduler tool. It uses JBOSS and TOMCAT connecting to the database using both jdbc and odcb. It doesn't store a lot of data. Here is the alert email I got this morning:
    Target Name=MEDIAMGR
    Target Type=Database Instance
    Host=mediamgr2-db
    Metric=Status
    Metric Value=0
    Timestamp=Jan 4, 2012 2:01:12 AM PST
    Severity=Critical
    Message=Failed to connect to database instance: ORA-12528: TNS:listener: all appropriate instances are blocking new connections (DBD ERROR: OCIServerAttach).
    Notification Rule Name=Database Availability and Critical States
    Notification Rule Owner=SYSMAN
    Notification Count=1
    as for backup, I have already disabled the archive logs and flashback database. A few minutes ago, I just turn off RMAN autoback. What else can I turn off related to backup?
    Thanks,
    - Johnny

  • How do I cancel a rman job from command line?

    Hello to all,
    I am having some problems with a rman job that is running via OEM-GC. I get an error message regading the SPFILE and control file being locked due to another job accessing it. I found this in the RMAN ref guide:
    To determine which job is holding the conflicting enqueue:
    1. After you see the first RMAN-08512: waiting for snapshot controlfile enqueue message, start a new SQL*Plus session on the target database:
    % sqlplus sys/sys_pwd@prod1
    2. Execute the following query to determine which job is causing the wait:
    SELECT s.sid, username AS "User", program, module, action, logon_time "Logon", l.*
    FROM v$session s, v$enqueue_lock l
    WHERE l.sid = s.sid and l.type = 'CF' AND l.id1 = 0 and l.id2 = 2;
    You should see output similar to the following (the output in this example has been truncated):
    SID User Program Module Action Logon
    9 SYS rman@h13 (TNS V1-V3) backup full datafile: c1 0000210 STARTED 21-JUN-99
    Solution
    After you have determined which job is creating the enqueue, you can do one of the following:
    * Wait until the job creating the enqueue completes
    * Cancel the current job and restart it once the job creating the enqueue completes
    * Cancel the job creating the enqueue
    So with this in mind; How do I cancel the job from RMAN command line!!!
    This is my output by the way:
    SID User PROGRAM MODULE ACTION Logon ADDR KADDR SID TY ID1 ID2 LMODE REQUEST CTIME BLOCK
    475 SYS [email protected] (TNS V1-V3) backup full datafile 0000018 STARTED16 23-APR-09 00000023EB8D488 000000023EB8D4A8
    475 CF 0 2 4 0 113123 0
    Any help will be gratefully received
    Thanks to all that reply

    I used the following to get the spid and killed the process on the OS.
    set linesize 120
    col sid for 999
    col username for a14 trunc
    col osuser for a18 trunc
    col spid for 99990
    col logon_time for a12
    col status for a9 trunc
    col machine for a26 trunc
    col running for a10 trunc
    select s.sid
    , s.username
    , s.osuser
    , s.machine
    , s.status
    , p.spid spid
    , to_char( logon_time, 'Mon dd@hh24:mi') logon_time
    , rtrim (s.module)||decode( nvl(length( rtrim(s.module)),0),0,'',' ')|| upper(s.program) running
    from v$session s
    , v$process p
    where ( p.addr = s.paddr ) and s.type!='BACKGROUND'
    and upper(s.program) not like '%CJQ0%' and s.program is not null and s.username is not null
    order by s.sid;

  • Which views have RMAN backup jobs information?

    Hi there,
    I use EM to schedule the db backup using RMAN.
    I can view the jobs in the EM.
    But I can not find out which views have RMAN backup jobs information in sqlplus.
    like dba_scheduler_jobs.
    Your advice will be appreciated.
    Thanks,
    SZ

    Hi,
    V$RMAN_STATUS - Shows the success/failure status of all recently completed RMAN jobs.
    V$RMAN_OUTPUT
    Displays messages reported by an RMAN job in progress
    If you want to monitor then go the following :-
    Monitoring RMAN Job Progress :- view V$SESSION_LONGOPS.
    first Step :-
    Before starting the job, create a script file (called, for this example, longops) containing the following SQL statement:
    SELECT SID, SERIAL#, CONTEXT, SOFAR, TOTALWORK,
    ROUND(SOFAR/TOTALWORK*100,2) "%_COMPLETE"
    FROM V$SESSION_LONGOPS
    WHERE OPNAME LIKE 'RMAN%'
    AND OPNAME NOT LIKE '%aggregate%'
    AND TOTALWORK != 0
    AND SOFAR <> TOTALWORK
    After connecting to the target database and, if desired, the recovery catalog database, start an RMAN job. For example, enter:
    RESTORE DATABASE;
    While the job is running, start SQL*Plus connected to the target database, and execute the longops script to check the progress of the RMAN job. If you repeat the query while the restore progresses, then you see output such as the following:
    SQL> @longops
    SID SERIAL# CONTEXT SOFAR TOTALWORK %_COMPLETE
    8 19 1 10377 36617 28.34
    SQL> @longops
    SID SERIAL# CONTEXT SOFAR TOTALWORK % COMPLETE
    8 19 1 21513 36617 58.75
    Cheers
    Pavan Kumar N

  • New Grid Installation & Copy/Migration Of Existing Jobs From Old Grid

    Existing Setup:*
    EM Grid Control: 10.2.0.2 Hosted on Windows 2003
    Repository Database: 10.2.0.3 Hosted on AIX 5.1
    Agent: 10.2.0.2
    Monitored Databases/servers: About 90 servers/databases are monitored which are on AIX and having 10g DB version and agant installed in 10.2.0.2
    Proposed Setup:_
    EM Grid Control: 10.2.0.5 Will be hosted on AIX 6.1
    Repository Database: 10.2.0.4 Will be hosted on AIX 6.1 (different server from EM Grid control server)
    Agent: 10.2.0.5
    Monitored Databases/servers: All the existing servers + Oracle E-business Application
    We are planing to install a new grid with option of installing with existing database(New 10.2.0.4 database will be installed). Once new grid start working properly, we will stop old grid.
    During this process we don't want to stop/modify/change the existing grid jobs..
    So, My questions are:
    1) Can we have two agents (both with different OS users and having different AGENT_HOMES) on each server, which will feed to different grids? Old one will be stopped eventually.
    2) How we can copy/migrate existing jobs from old grid to new grid ?

    Can you point me towards any document or link for same.
    Any idea for copy/migration of jobs from old grid to new grid....

  • Installing New Grid & Copy/Migrate Jobs From New Grid

    Existing Setup:_
    EM Grid Control: 10.2.0.2 Hosted on Windows 2003
    Repository Database: 10.2.0.3 Hosted on AIX 5.1
    Agent: 10.2.0.2
    Monitored Databases/servers: About 90 servers/databases are monitored which are on AIX and having 10g DB version and agant installed in 10.2.0.2
    Proposed Setup:_
    EM Grid Control: 10.2.0.5 Will be hosted on AIX 6.1
    Repository Database: 10.2.0.4 Will be hosted on AIX 6.1 (different server from EM Grid control server)
    Agent: 10.2.0.5
    Monitored Databases/servers: All the existing servers + Oracle E-business Application
    We are planing to install a new grid with option of installing with existing database(New 10.2.0.4 database will be installed). Once new grid start working properly, we will stop old grid.
    During this process we don't want to stop/modify/change the existing grid jobs..
    So, My questions are:
    1) Can we have two agents (both with different OS users and having different AGENT_HOMES) on each server, which will feed to different grids? Old one will be stopped eventually.
    2) How we can copy/migrate existing jobs from old grid to new grid ?

    >
    >
    We are planing to install a new grid with option of installing with existing database(New 10.2.0.4 database will be installed). Once new grid start working properly, we will stop old grid.
    During this process we don't want to stop/modify/change the existing grid jobs..
    ---- When you the existing database option , new repository will be created with user SYSMAN.
    So, My questions are:
    1) Can we have two agents (both with different OS users and having different AGENT_HOMES) on each server, which will feed to different grids? Old one will be stopped eventually.--- You have two different agents home on each server as source to different grids.
    2) How we can copy/migrate existing jobs from old grid to new grid ?--- You can clone the database and use the cloned database jobs for your new grid. Even cloned database can be used for your new grid.

  • Ola Hallengren maintenance solution TSQL script not deleting old backup files from my local SQL server

    I have looked on Ola's site (https://ola.hallengren.com/frequently-asked-questions.html) and I did see this:
    DatabaseBackup is not deleting old backup files. What could the problem be?
    Verify that the SQL Server and SQL Server Agent service accounts have full control of the backup directory.
    If that directory is a network share, verify that the SQL Server and SQL Server Agent service accounts have full control of the network share.
    If you are using a proxy account, verify that the account is a member of the sysadmin server role and that it has full control of the backup directory and network share.
    Verify that the file is not locked in the file system; for example, a backup or antivirus software could be locking the file.
    DatabaseBackup has been designed not to delete transaction log backups that are newer than the most recent full or differential backup. This could explain why transaction log backups are not being deleted.
    I followed these instructions and then I right clicked the "sp_delete_backuphistory" job under "SQL Server Agent > Jobs" folder and clicked the "Start job at step ..." option. The job successfully ran, but my .bak backup
    files were still on located on my separate drive partition I use specifically for these backups. 
    The SQL Server and the SQL Server Agent are both using the same AD account. 
    Would any of you SQL gurus out there know how to resolve this?
    Thank you 

    The sp_delete_backuphistory job only deletes the historical info from the backup & restore tables in the msdb database. It does not do anything to the files on disk.
    https://msdn.microsoft.com/en-us/library/ms188328.aspx
    The code to actually purge the backup files from disk is inside the DatabaseBackup stored procedure. It is controlled by using the @CleanupTime parameter for that stored proc. Verify the value for that parameter is low enough to delete your files on disk. The
    value is in hours, and I believe the default is 48 hours. The SQL agent job name usually starts with "DatabaseBackup...".

  • Error: Sheduled Backup Job Problem

    Dear all.
    I've been getting a problem with a scheduled backup job through OEM since yesterday which I'm not able to find out why as it was working fine. When I access OEM I can see that I have a problem execution and when I investigate why it says "Unable to perform the backup because the database is closed". But my db is open for sure and I'm able to execute the backup from RMAN command line normally. I shut my db down and started it up again but didn't work. Does anybody know why this is happening?
    OS: Oracle Enterprise Linux 5
    DB: Oracle Database 10g
    Thanks a lot.

    **** Job Definition ****
    Status: Scheduled
    Scheduled: 09-Jun-2009 20:00:00 o'clock GMT-03:00
    Repeating: Daily beginning 09-Jun-2009 20:00:00 (because I changed to do tests)
    Type: Database Backup
    Owner: SYS
    Description: Whole Database Backup
    Database Connect String: (DESCRIPTION=(ADDRESS_LIST=(ADDR...
    Version 10g or higher: YES
    Backup Strategy: advanced
    Offline Backup: NO
    Blackout: NO
    Database Name: ORCL
    **** Script ****
    $rman_script="backup incremental level 0 cumulative device type disk filesperset = 3 tag '%TAG' database;
    backup device type disk filesperset = 3 tag '%TAG' archivelog all not backed up;
    allocate channel for maintenance type disk;
    delete noprompt obsolete device type disk;
    release channel;
    &br_save_agent_env();
    &br_prebackup($l_db_connect_string, $l_is_cold_backup, $l_use_rcvcat, $l_db_10_or_higher, $l_backup_strategy, "TRUE");
    my $result = &br_backup();
    exit($result);

Maybe you are looking for