Rman job in OEM

Hi All,
This is my requirement. I want to execute below rman script in all the databases we monitor. After that we are thinking of creating UDM to poll against v$database_block_corruption and alert for any corruption.
RMAN> backup validate check logical database;
Would like to know best way to implement in OEM. Pls advise.
Regards,
Satheesh Shanmugam
http://borndba.com

Rob, I tried something like this to force archive backup during specific time of the day. So thinking of doing something similar here.
You should be knowing only corrective action requires host credential, the agent response action script doesn't require host credential.
In the host target keep the required rman script, which can be invoked via agent response action. Then create a UDM in such a way that it raises alert during specific time of a day. Say every sunday between 8-10am, the UDM returns 1 which will match the critical threshold. Invoke the agent response action script in the critical threshold.
Regards,
Satheesh Shanmugam
http://borndba.com

Similar Messages

  • RMAN settings in OEM not accepting changed password

    Database 10.2.0.3.0, 32 and 64 bit versions.
    OSes: Windows 2003 R2 Standard Edition
    The previous DBA had the same password for the sys, system, and rman accounts. The RMAN backups are scheduled through the OEM's Backup/Recovery Schedule Backup. I finally changed the passwords so that sys, system, and rman are now different. I changed the rman password to be the same as in the Oracle rman account in the Windows local user accounts and made sure that the rman account is in the ora_dba account and that batch jobs are permitted. Note that these scheduled jobs were working just fine so I suspect the windows accounts are correctly configured. The rman account I'm using is the rman account used in a repository. This is the only Oracle rman account among all the databases that I backup.
    I attempted to schedule a job to run immediately using the new password in the Host Credentials and I check the box for 'Save as Preferred Credential' but at the end of the run I get the error: RMAN-04004: error from recovery catalog database: ORA-01017: invalid username/password; logon denied
    I'm logged into the OEM with the same exact system account log in as I would use from the rman command line target connection.
    The Recovery Catalog Settings will not accept this new password. Instead I get the error message:
    java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    After so many attempts the error message will say the account is locked and it is locked in the repository so it appears to be attempting validation against the correct location.
    I prefer using the OEM over the Windows Task Scheduler - any ideas on what to do?
    Edited by: pointreyes on Feb 4, 2010 8:30 AM - Discovered that a scheduled job ran immediately will fail to work as well.
    Edited by: pointreyes on Feb 4, 2010 8:39 AM - note that I did not change all the passwords at the same time. The sys and system passwords were changed last week and the backups continued to work. Only after the RMAN password was changed did the backups fail.

    EdStevens wrote:
    pointreyes wrote:
    Database 10.2.0.3.0, 32 and 64 bit versions.
    OSes: Windows 2003 R2 Standard Edition
    <snip>
    I prefer using the OEM over the Windows Task Scheduler - any ideas on what to do?
    Edited by: pointreyes on Feb 4, 2010 8:30 AM - Discovered that a scheduled job ran immediately will fail to work as well.
    Edited by: pointreyes on Feb 4, 2010 8:39 AM - note that I did not change all the passwords at the same time. The sys and system passwords were changed last week and the backups continued to work. Only after the RMAN password was changed did the backups fail.This is exactly why I don't schedule my rman backups in OEM. I never was able to figure out what was going on under the covers, but if I have to recreate something every time I change the password, then I'm looking for a different approach. Since I work in Unix, create shell scripts to execute my rman backups, and schedule them with cron. If on windows, I'd take the same approach .. the one you prefer not to use. OEM is a great tool, but it's not the perfect solution for every problem.Actually this is not really an OEM problem. I discovered this when I changed the rman catalog schema owner password and then attempted to backup the system through a remote job on another server. I am surprised if you changed your rman catalog schema owner that you have not ran into this yourself. Unless you are doing backups from a centralzied server that the rman catalog resides on.
    You come across all kinds of interesting things no matter which tool us use. For example we are to log onto the system using our personal accounts and then sudo to Oracle....guess what happened when the Oracle users password expired...
    Now that was a fun day....other DBA..."Backups are not working.."....Me..."Yes they are just fine when I execute them.".....other DBA.."Well cron jobs do not work."....Me..."Anyone log in recently with Oracle user??"
    Problem was that the Oracle user password had expired and was needing to be changed.....cronjobs don't like it when that happens.

  • Users priveleges who is able to edit the RMAN script in OEM

    Hi
    Can anyone help me, how to find the list of users who has privileges to change/edit the RMAN script in OEM?
    Thanks

    Hi,
    I believe its required DBA privileges as well as OS level login credential to edit the job,
    you can Query from dba_role_privs which user having DBA role assign, and find those user having OS level Credential.
    HTH

  • Rman jobs "Suspended on Agent Unreachable" through EM

    Hi, all:
    when I schedule an RMAN backup in OEM, It has a
    suspended on agent unreachable status immediately. Deleting the job and creating a new one, and the new job became suspended even before it's first scheduled job
    I can manually backup through rman prompt, no problem.
    The database is RAC 10.2.0.3 on linux*86.
    I checked web found lots of friends had the same problem without solutions, is there anyone has experience to fix it?
    Thanks a lot

    Have you done anything to determine why the agent is unreachable such as checking its status with emctl or reading a log file?

  • RMAN job very slow

    Oracle 9i, patch set_04,two node fail safe cluster.
    I have set up, with OEM, a RMAN job in order to backup the databaase of approx 20GB.
    I use RMAN with a recovery catalog.
    The job run for about 4 minutes, so very good performance I think.
    Now something change and the job run for about 27 minutes, the db is always the same and the job is still succesfull.
    What can you suggest in order to come bak to the previous perfomance?
    Where do I hava to investigate?
    Please advise.
    Best regards.

    Same result:
    Here is the output of RMAN:
    Recovery Manager: Release 9.2.0.4.0 - Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    RMAN>
    connected to target database: ORAPROD1 (DBID=1115130655)
    RMAN>
    connected to recovery catalog database
    RMAN>
    RMAN> configure device type disk parallelism 4;
    new RMAN configuration parameters:
    CONFIGURE DEVICE TYPE DISK PARALLELISM 4;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN> **end-of-file**
    RMAN>
    Recovery Manager complete.
    Recovery Manager: Release 9.2.0.4.0 - Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    RMAN>
    connected to target database: ORAPROD1 (DBID=1115130655)
    RMAN>
    connected to recovery catalog database
    RMAN>
    RMAN> run { 
    2> allocate channel Canale1 type disk format 'U:\orabck\oraprod1\backup_%T_%s_%p.BAK';
    3> backup
    4> ( database include current controlfile );
    5>
    6> backup ( archivelog all delete input );
    7>
    8> }
    allocated channel: Canale1
    channel Canale1: sid=100 devtype=DISK
    Starting backup at AUG 18 2004 16:38:32
    channel Canale1: starting full datafile backupset
    channel Canale1: specifying datafile(s) in backupset
    including current controlfile in backupset
    input datafile fno=00012 name=T:\ORADATA\ORAPROD1\GECOTI2K_GEN.ORA
    input datafile fno=00010 name=T:\ORADATA\ORAPROD1\GECOTI2K_TAS.ORA
    input datafile fno=00008 name=T:\ORADATA\ORAPROD1\GECOTI2K_CAB.ORA
    input datafile fno=00001 name=T:\ORADATA\ORAPROD1\SYSTEM01.DBF
    input datafile fno=00011 name=T:\ORADATA\ORAPROD1\GECOTI2K_IDX_GEN.ORA
    input datafile fno=00014 name=T:\ORADATA\ORAPROD1\GECOTI2K_IDX_TAS.ORA
    input datafile fno=00015 name=T:\ORADATA\ORAPROD1\GECOTI2K_IDX_CAB.ORA
    input datafile fno=00013 name=T:\ORADATA\ORAPROD1\GECOTI2K_IDX_MUL.ORA
    input datafile fno=00002 name=T:\ORADATA\ORAPROD1\UNDOTBS01.DBF
    input datafile fno=00009 name=T:\ORADATA\ORAPROD1\GECOTI2K_MUL.ORA
    input datafile fno=00016 name=T:\ORADATA\ORAPROD1\GECOTI2K_CONTA.ORA
    input datafile fno=00017 name=T:\ORADATA\ORAPROD1\GECOTI2K_IDX_CONTA.ORA
    input datafile fno=00007 name=T:\ORADATA\ORAPROD1\XDB01.DBF
    input datafile fno=00004 name=T:\ORADATA\ORAPROD1\INDX01.DBF
    input datafile fno=00006 name=T:\ORADATA\ORAPROD1\USERS01.DBF
    input datafile fno=00003 name=T:\ORADATA\ORAPROD1\DRSYS01.DBF
    input datafile fno=00005 name=T:\ORADATA\ORAPROD1\TOOLS01.DBF
    input datafile fno=00018 name=T:\ORADATA\ORAPROD1\IAB_TS.ORA
    channel Canale1: starting piece 1 at AUG 18 2004 16:38:33
    channel Canale1: finished piece 1 at AUG 18 2004 17:06:58
    piece handle=U:\ORABCK\ORAPROD1\BACKUP_20040818_377_1.BAK comment=NONE
    channel Canale1: backup set complete, elapsed time: 00:28:25
    Finished backup at AUG 18 2004 17:06:58
    Starting backup at AUG 18 2004 17:06:58
    current log archived
    channel Canale1: starting archive log backupset
    channel Canale1: specifying archive log(s) in backup set
    input archive log thread=1 sequence=324 recid=412 stamp=534532023
    channel Canale1: starting piece 1 at AUG 18 2004 17:07:04
    channel Canale1: finished piece 1 at AUG 18 2004 17:07:07
    piece handle=U:\ORABCK\ORAPROD1\BACKUP_20040818_378_1.BAK comment=NONE
    channel Canale1: backup set complete, elapsed time: 00:00:04
    channel Canale1: deleting archive log(s)
    archive log filename=U:\ORARCHIVELOG\ORAPROD1\ORAPROD1_00324 recid=412 stamp=534532023
    Finished backup at AUG 18 2004 17:07:07
    Starting Control File Autobackup at AUG 18 2004 17:07:07
    piece handle=U:\ORABCK\BACKUPCTRLFILE\C-1115130655-20040818-00 comment=NONE
    Finished Control File Autobackup at AUG 18 2004 17:07:10
    released channel: Canale1
    RMAN> allocate channel for maintenance device type disk;
    allocated channel: ORA_MAINT_DISK_1
    channel ORA_MAINT_DISK_1: sid=100 devtype=DISK
    RMAN> delete obsolete device type disk;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 4
    Deleting the following obsolete backups and copies:
    Type Key Completion Time Filename/Handle
    Backup Set 5557 AUG 15 2004 19:57:51
    Backup Piece 5558 AUG 15 2004 19:57:51 U:\ORABCK\ORAPROD1\BACKUP_20040815_366_1.BAK
    Backup Set 5582 AUG 15 2004 19:58:03
    Backup Piece 5583 AUG 15 2004 19:58:03 U:\ORABCK\ORAPROD1\BACKUP_20040815_367_1.BAK
    Backup Set 5657 AUG 16 2004 19:58:21
    Backup Piece 5658 AUG 16 2004 19:58:21 U:\ORABCK\BACKUPCTRLFILE\C-1115130655-20040816-01
    deleted backup piece
    backup piece handle=U:\ORABCK\ORAPROD1\BACKUP_20040815_366_1.BAK recid=359 stamp=534281405
    deleted backup piece
    backup piece handle=U:\ORABCK\ORAPROD1\BACKUP_20040815_367_1.BAK recid=360 stamp=534283082
    deleted backup piece
    backup piece handle=U:\ORABCK\BACKUPCTRLFILE\C-1115130655-20040816-01 recid=366 stamp=534369501
    Deleted 3 objects
    RMAN>
    RMAN> **end-of-file**
    RMAN>
    Recovery Manager complete.
    Any other idea?
    Thank you very much for your time.

  • 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;

  • How can i run a executable right after a rman job has run?

    How can i run a executable right after a rman job has run?
    I have a rman job that execute every night. The backup is local.
    I want to have a duplicate of the backup on another machine.
    I want the executable to sync the directory to execute right after the rman backup.
    How can i do this using the job scheduler?
    Normaly, i would configure rman to run the backup on both location. But im having trouble with rman regarding this:ORA-600 [2103] on RMAN Backup to NFS mounted file system

    Hi,
    If the rman job is in fact a Scheduler jobs (appears in the dba_scheduler_jobs view) then you can create a second event-based job that runs after the rman job (and set the raise_events attribute for the rman job).
    Instructions are here
    Create Event based job
    Hope this helps,
    Ravi.

  • Using &variables in a SQL Script scheduled job within OEM

    Hi...I've been searching through the forum looking for any examples of setting up a job within OEM, using the SQL Script job type, where I can basically use a WHERE clause that says 'where column_name = &variable_name' and somehow provide that at run time, as if I were in a SQL*Plus session and using a PROMPT and ACCEPT command. I thought there might be a way to emulate that situation by placing the value I'd like to qualify on within some placeholder in the Parameter section of the job. We have a few users who have limited access to OEM and need to run queries on GRANTS and ROLES for various users etc. I realize there are other ways to do this, however I'm wondering if OEM has a capability like this. Any info is appreciated! Tks!

    Looks like you're missing the schema name and you'll want to use QUOTENAME to add delimiters to the objects
    e.g. 
    DECLARE @DATABASE AS VARCHAR(50)
    DECLARE @SchemaName as SYSNAME;
    DECLARE @TABLE AS VARCHAR(50)
    DECLARE @QUERY AS VARCHAR(MAX)
    SELECT @DATABASE = '602'
    SELECT @SchemaName = 'dbo' --change as appropriate
    SELECT @TABLE = 'Items'
    SET @QUERY = 'SELECT TOP 10 * FROM ' + QUOTENAME(@DATABASE)+'.' + QUOTENAME(@SchemaName) + '.'+QUOTENAME(@TABLE)
    print @query
    EXEC( @QUERY)

  • Fail to register the jobs with OEM

    I have done following steps in developing a data warehouse project but im still in problum to load data from source to target:
    Create a source object with thier tables
    create a target object a dimension
    create a mapping
    create to operator one for source table and other for dimension
    linked colum by column
    validate this mapping
    genrate this mapping
    deployed this mapping
    but i am facing problum while i am goining to register the TCL with OEM. I am unable to register this and following error occures
    Faild to register the jobs with OEM:OEM registration Faild: OEM client not installed in Oracle_Home.
    java.lang.NoClassDefFoundError.
    Oracle/sysman/enSDK/client/omsClient/BadAttributeException
    Exception in thread "main"
    Plz help me to solve this problum.
    Plz give me exact solution.
    Plz give me steps from start to end of a data warehouse project.Steps involves in design ,validate and genrate and loading phase plz give me list of these steps.

    This combination is not certified. Please upgrade OWB to the latest available version (9.0.3.35) that is certified on the 9.2.0.1 database.
    Regards:
    Igor

  • Problem in running job from OEM

    I have registered JOB with OEM using TCL script from warehouse builder. I login to OEM and it shows me one job in JOB library. Now i submit this job. It keeps on showing status submitting on the Active jobs tab. It does not do anything
    Thanks in advance.

    Hi Garcia,
    Thanks a lot for this help. Acutally "select count(1) from dual" was returning 3 initally so i have used delete statement twice and now its returning only one value. Though problem is solved but still i couldn't understand the cause of this.
    Thanks a lot again.
    Regards,
    Ashish.

  • Authentication Error when I execute JOBS in OEM registered by OWB !!

    Hi !
    As I saw in the last question JOBS with
    authentication error it's a commum problem ....
    So follow I will detail what's happening with me:
    I4m using the OWB and I did a map to extract data from two tables
    on my source database and populate a destination dimension table, in my destination database.
    I deploy this map, it4s sucesfull;
    I run the map from OWB and it populates the destination dimension table perfectly;
    I saved the TCL file and it4s OK;
    I choose "Register in OEM" option and it register sucesfull;
    but ... when I open the OEM and run the job from OEM, it fails !
    It give this error:
    VNI-2015 : Authentication error
    Even when I try do it with "sysman" user
    Could you help me ?
    Thanks,
    Renato

    Hi,
    Please check whether you have carried out these steps. Because I had the same problem and I resolved it.
    1. I reckon you would have installed OWB and OEM.
    2. In OEM if you are using the default SYSMAN user for running jobs, you should create the user SYSMAN in the OWB schema and assign the role SYSDBA, DBA AND OEM_MONITOR.
    3. If you created a new user in OEM to run the jobs, you should create the user in OWB schema and assign the roles SYSDBA, DBA & OEM_MONITOR.
    4. Then under your Windows NT/2000, create the OEM user and assign the user the rights "Logon as Batch Job to Run" previlege.
    5. Configur OEM preferred credintials for NODE, DATABASE with proper values. The NODE user/password must be the one you have created under step 4.
    6. Configur OWB with the OEM user. This can be done under Projects/Preferences, selecting OEM tab. The user/password must be thesame as under step 4.
    If you do these things, not necessarily in the order mentioned, you should be able to run the jobs.
    Best of luck.

  • Which are the required roles/privs for viewing all scheduler jobs in OEM?

    Platform: Oracle 11.1.0.6 Enterprise Edition (64) Windows 2008 R2 Server
    - I've created a new Admin user in "OEM>Setup>Adminstrators>Create"
    - I checked the user in "OEM>Server>Users":
    CREATE USER "SA_ADMIN"
    PROFILE "DEFAULT"
    INDENTIFIED BY "saadminsa"
    DEFAULT TABLESPACE "SYSAUX"
    TEMPORARY TABLESPACE "TEMP"
    ACCOUNT UNLOCK;
    GRANT SELECT ANY DICTIONARY TO "SA_ADMIN";
    GRANT "MGMT_USER" TO "SA_ADMIN"
    - "SA_ADMIN" was granted only the permissions above.
    - I can log in OEM as "SA_ADMIN"
    - I can see OEM backup jobs and the history
    - But I cannot see any "scheduler" jobs in "OEM>Server>Jobs"
    - I get a lists of the jobs in "OEM>Scheduler Central" but I cannot display any more information of "scheduler jobs"
    - I logged off from OEM
    - I granted SCHEDULER_ADMIN role to "SA_ADMIN"
    GRANT SCHEDULER_ADMIN TO "SA_ADMIN";
    - I logged back in OEM as "SA_ADMIN
    - I can now see some scheduler jobs, but not all of the jobs, I still cannot see any of the new jobs I created logged in OEM as SYS.
    Which are the required roles/privs for viewing all scheduler jobs in OEM?

    if you grant "SYSDBA" to the new Admin user then you can see the "scheduler" jobs.
    GRANT SYSDBA TO "SA_ADMIN";
    I wanted to grant "read" access in OEM for the new user.
    This behaviour is strange.
    Without the "SYSDBA" role the new user can see the OEM backup jobs that were create in as SYS, but it cannot see the "scheduler" jobs.

  • Required roles/privs for viewing all scheduler jobs in OEM 10g

    Hello,
    I would like to know wchich role/priv schould have user to view all scheduler jobs
    in OEM console 10g. My user can see only few jobs in Scheduler jobs part of OEM 10g. User sys see all scheduler jobs.
    Thank you for reply

    Hi,
    If this is a highly privileged user you can consider the CREATE ANY JOB privilege. But this privilege allows a user to run code as any other user so it should only be granted very carefully.
    A user can also view any job he is granted ALTER privileges on directly.
    Hope this helps,
    Ravi.

  • Unable to launch jobs in OEM under Windows XP

    I have not found a way to successfully launch a job in OEM 2.2 (Oracle 8i) under Windows XP. All jobs fail with a VNI-2015 authentication error. According to the Oracle documentation, this is because the preferred credentials have not been correctly set up. In fact, I have set up both the database and the node preferred credentials, specifying my Windows username and password for the latter, but it still doesn't work. The Oracle documentation states that the user has to be granted the "login as batch" privilege - but I can see nowhere in Windows XP where this can be done. In any case, I would have thought that, as administrator, I have all the necessary privileges (including "login as batch").
    Can anyone help ?

    Hi, had similar problem on Windows 2000. Under Admin tools I selected Local Security Policy, Local Policies, User Rights Assignment and then added NT user to Logon as Batch. However, not sure whether these options are available under XP?

  • Moving Jobs from OEM 9.2 to 10.2

    We have a ton of jobs in OEM 9.2 (set up suing the old Java-based GUI).
    We would like to install OEM 10g R2 Grid Control, but I can't find any documentation about moving these jobs from 9.2 to 10.2.
    Does anybody know if this is even possible?

    Oracle should have some migration tool for jobs from 9.2 to 10g since they changed the tables completely. Let say we have migrated the jobs to 10g this time manually.They may comeup with different tables design again in next version 11i.So we need to keep on creating new jobs on new version since they desupport the old version ..we have no other option..

Maybe you are looking for