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

Similar Messages

  • Scheduling an Export Job Using Grid Control

    Hi,
    I got a requirement to schedule export jobs in Oracle Grid Control 10.2.0.5 (Windows). Is this possible and have any one done this? If so please share the steps. The idea is to get alerts if the job fails.
    Thanks.
    GB

    Here is the easy steps (There might be slight differences as I am posting it based on 11g screen)
    1. On grid control console, click on the relevant database
    2. click on 'Data Movement' tab
    3. Click on 'Export to Export Files'
    4. chose the Export type (Database / Schema / Tables/ Tablespace)
    5. Provide Host credentials (OS username and Password) and click on 'Continue'. You will get a new screen called 'Export: Options'
    6. Click the checkbox called 'Generate Log File' and select the Directory object where you wants to create the dump files. (You need to create a directory object in database, if you don't have one)
    7. Chose the contents option as you required, and click '*Next*'. You will get a new page called 'Export: Files'
    8. Select the directory object from the drop-down box and provide a name format for file name, and click 'Next'
    9. Here you provide the Job name and description, and chose repeat options (daily, weekly etc), and click 'Next'
    10. You will get a summary screen called 'Export: Schedule'. review your job details and click on 'Submit'.
    This is the solution, and it works well.

  • Rename Job in Grid Control 12c

    I have a backup job that I created and I would like to rename the job name to make it more identifiable. Is there a way to make this change in em12c or by making the change in a particular table? Or is this something that can't be done and I basically have to kill the job and recreate it?
    thanks,
    ~Edward

    Edward,
    While i am glad this worked out for you, I do not recommend modifying tables directly. A job could have references in other parts of our schema and could cause failures elsewhere. We have an ER to allow rename of jobs and this should be addressed in a future release.
    Currently, the easiest option is to do a create like on the job.
    Edited by: afulay on Feb 7, 2013 10:06 AM

  • 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

  • Problem with Oracle 10g Enterprise Manager DB control scheduled backup

    Hi
    DB is - Oracle Database 10g Enterprise edition-10.2.0.1.0
    OS is - Windows Server 2003, Enterprise edition, Service Pack - 2
    I have scheduled daily backup from DB control, some backup didn't completed.
    Status of backup was - "Suspended on Agent Unreachable"
    While try scheduling new backup job from DB control, it is giving error.
    Error - Connection to host as user <user_name> failed: IOException in sending Request :: Connection refused: connect
    Anyone has any clue regarding this? please help.

    Hi,
    Have a read of this thread which talks about the same issue and its solution.
    Oracle 10g EM DB console Host Preferred Credentials for Windows
    And if you are finding issues in the entering the Host credentials itself, you may need to log on as batch job. Follow thiese steps,
    +1. Go to control panel/administrative tools+
    a. click on "local security policy"
    b. click on "local policies"
    c. click on "user rights assignments"
    d. double click on "log on as a batch job"
    e. click on "add" and add the user that was entered in the "normal username" or "privileged username" section of the EM Console.
    +2. Go to the Preferences link in the EM GUI+
    a. click on Preferred Credentials (link on the left menu)
    b. under "Target Type: Host" click on "set credentials"
    c. enter the OS user who has logon as a batch job privilege into the "normal username" and "normal password" fields
    +3. Test the connection+
    a. while in the Set Credentials window, click on "Test"
    From http://www.orafaq.com/forum/t/89472/0/
    HTH
    Aman....

  • Linux OEM Grid Control 10.2.0.1.0 installation issue

    Just a heads up to anyone installing Linux OEM Grid Control 10.2.0.1.0
    If you are doing a full install, the "product specific prerequisite checks" page will show an error on the following packages even if you have them installed.
    compat-libstdc++-296-2.96-132.7.2 (failed)
    libstdc++devel-3.4.3-22.1 (failed)
    openmotif-21-2.1.30-11 (failed)
    Note that the installation works fine if you ignore the "missing" prerequisites. I believe the check itself is flawed. The openmotif check should be openmotif21-**** (extra hyphen incorrect in check - the old install was openmotif, now openmotif21), the libstdc++ needs a hypen added before the devel, and the compat-libstdc++ has yet another issue.
    This is something the developers at oracle will have to fix.
    Steve

    Yes, you must download and install the 10.2.0.1 version and then patch it up to the 10.2.0.4 version.
    http://www.oracle.com/technology/obe/obe10gem/install/index.html
    The above link shows you the install routine when using a new database, the steps for the existing database are only slightly different, all you need are the connection details for that existing database and you should be ok.
    As for taking full backups of the Grid Control repository, I know many choose not to, space is always a big concern, but this depends on how critical your repository is to you. If you need it for the auditors, well then I'd suggest acquiring some more hard disks to up your space.

  • GRID Control and management  hostname

    With a HA deployment you have to set :
    emd.properties:#AgentListenOnAllNICs=FALSE
    This is ok for me but the servers have 3 differents IP adresses (3 differents hostname), one is foucuss for management tasks and this is not the name registered by the Agent.
    Do you know if it is possible to run host scripts (external jobs) with Grid Control and to specify the hostname where these jobs have to run by default the jobs will run on the hostname registered by the Agent.

    Hello,
    There is currently no support for CEP in Grid Control.
    andy

  • Grid Control architecture.

    Can I have 64 bits primary and 32 bits standby logical server controlled by 32 bits Grid Control.
    Primary server (64 bits) + Standby server (logical) 32 bits + Grid Control (32 bits)

    Oliver,
    Thanks for the comments. The article is based on practical experience. If one was to recommend a pool of 2 management servers for a large corporate with 1000 servers, what that would mean is that if 1 server was brought down for any maintenance reason (for eg. applying an EM patch), all the EM work load would be on the remaining management server. So it is better to have 3 management servers instead of 2 when the EM system is servicing so many targets. Otherwise, the DBAs would be a tad angry since only 1 remaining managment server would not be able to service them properly during the time of the maintainance fix on the first management server.
    The article ends with these words: "You can easily manage hundreds or even *thousands* of targets with such an architecture. The large corporate which had deployed this project scaled easily up to managing 600 to 700 targets with a pool of just three management servers, and the future plan is to manage *2,000 or more* targets which is quite achievable." The 2000 or more is based on the same architecture of 3 managment servers.
    So as per the best practice document, 2 management servers would be fine for 1000 servers, although I would still advise 3 servers in practice.
    For your case of 200 servers, it depends on the level of monitoring you are planning to do, and the type of database managment activities that
    will be done by the DBAs. For eg, if the Dbas are planning on creating standby databases now and then through Grid Control, running backups daily
    via Grid Control, cloning databases in Grid Control, patching databases in Grid Control and so on, I would definitely advise a pool of 2 servers
    in your case. 2 is always better than 1.
    Regards,
    Porus.
    Edited by: Porushh on Feb 21, 2009 12:51 AM

  • OEM Grid control 10.2.0.1 installation using existing database 10.2.0.3

    Hi,
    I am planning to install oem grid control 10.2.0.1 using existing database 10.2.0.3 for storing repository on HP_UX 64 bit PARISC.
    Can it be possible, If not whats the reason and what issues it may arise.
    If it possibel can anyone explain me the correct steps and is it compulsory to take full backup(we cant take ful backup bcoz space issues)

    Yes, you must download and install the 10.2.0.1 version and then patch it up to the 10.2.0.4 version.
    http://www.oracle.com/technology/obe/obe10gem/install/index.html
    The above link shows you the install routine when using a new database, the steps for the existing database are only slightly different, all you need are the connection details for that existing database and you should be ok.
    As for taking full backups of the Grid Control repository, I know many choose not to, space is always a big concern, but this depends on how critical your repository is to you. If you need it for the auditors, well then I'd suggest acquiring some more hard disks to up your space.

  • Grid Control Architecture for Very Large Sites: New Article published

    A new article on Grid Control was published recently:
    Grid Control Architecture for Very Large Sites
    http://www.oracle.com/technology/pub/articles/havewala-gridcontrol.html

    Oliver,
    Thanks for the comments. The article is based on practical experience. If one was to recommend a pool of 2 management servers for a large corporate with 1000 servers, what that would mean is that if 1 server was brought down for any maintenance reason (for eg. applying an EM patch), all the EM work load would be on the remaining management server. So it is better to have 3 management servers instead of 2 when the EM system is servicing so many targets. Otherwise, the DBAs would be a tad angry since only 1 remaining managment server would not be able to service them properly during the time of the maintainance fix on the first management server.
    The article ends with these words: "You can easily manage hundreds or even *thousands* of targets with such an architecture. The large corporate which had deployed this project scaled easily up to managing 600 to 700 targets with a pool of just three management servers, and the future plan is to manage *2,000 or more* targets which is quite achievable." The 2000 or more is based on the same architecture of 3 managment servers.
    So as per the best practice document, 2 management servers would be fine for 1000 servers, although I would still advise 3 servers in practice.
    For your case of 200 servers, it depends on the level of monitoring you are planning to do, and the type of database managment activities that
    will be done by the DBAs. For eg, if the Dbas are planning on creating standby databases now and then through Grid Control, running backups daily
    via Grid Control, cloning databases in Grid Control, patching databases in Grid Control and so on, I would definitely advise a pool of 2 servers
    in your case. 2 is always better than 1.
    Regards,
    Porus.
    Edited by: Porushh on Feb 21, 2009 12:51 AM

  • "Found Partially Deleted Backup - Trying Again to Delete"

    Has anyone encountered a message like this in system.log? If so, any suggestions as to how to find and delete the problem "partially deleted backup?"
    /System/Library/CoreServices/backupd[443]: Starting post-backup thinning
    com.apple.backupd[443]: Found partially deleted backup - trying again to delete: 2007-12-01-211848
    Time Machine has been stuck displaying the barber pole of doom for two hours, with the accompanying message "Finishing backup..." It appears that TM is choking on a backup that was for some reason only partially deleted earlier (probably when I forced a shut down after a couple of hours of similar nonsense with TM). FWIW, my TM disk is an internal 1 TB SATA drive with over half the space still free.
    Cheers!

    Hi Barry:
    Thanks for the suggestion. I hadn't realized that I could navigate the Time Machine disk that way.
    I deleted the offending folder, and then emptied the Trash. Interestingly, this caused the same "churning" sound from my hard drive that I was getting when Time Machine was stalled. The Trash was taking a long time to empty, and it occurred to me that the problem might be related to Compost, a utility that I installed to keep my Trash at a manageable size. So I stopped Compost, my Trash then emptied out quickly, and I assumed that all would be well.
    Well, not quite. I restarted TM, it ran a quick little backup, and then according to system.log it began the post-backup thinning. TM promptly stalled with the barber pole of doom, and the hard drive churning sound resumed. I'm getting the following message repeating endlessly in system.log:
    Dec 3 17:02:42 macpro kernel[0]: HFS resolvelink: can't find iNode3324704
    Dec 3 17:03:06 macpro kernel[0]: disk3s2: 0xe0030005 (UNDEFINED).
    Dec 3 17:03:06 macpro kernel[0]:
    The message appears every 20 seconds or so, and after a few of the same messages the iNode number changes. I've Googled the error message, but didn't find anything that would shed light on what it means. I'm going to leave TM running for a few hours to see if it eventually works its way through these errors. If not, then I'll probably just erase the **** drive and start again with a fresh backup.
    Cheers!

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

  • Data Guard Summary problem using Grid Control.

    I setup data guard using Grid Control and after completion, the console of the standby database shows: "Unable to determine Data Guard information." under the Data Guard Summary section. The primary database is not showing the standby. I'm using Red Hat Linux Server 5.7 (64bit) and Oracle 10.2.0.5. This is a standalone (no RAC or ASM involved). When I run show configuration, the following comes up:
    DGMGRL> SHOW CONFIGURATION;
    Configuration
    Name: PRODDB_ghph@ora01
    Enabled: YES
    Protection Mode: MaxPerformance
    Fast-Start Failover: DISABLED
    Databases:
    ghph - Primary database
    gsbh - Physical standby database (disabled)
    Current status for "PRODDB_ghph@ora01":
    SUCCESS
    I tried searching online and metalink but nothing. Any help in solving this problem would be appreciated. TIA
    Edited by: Gensis2001 on Jan 8, 2013 3:08 PM

    Gensis2001 wrote:
    Does this make any sense?
    SYS@gsbh> SELECT * FROM V$ARCHIVE_GAP;
    no rows selected
    SYS@gsbh> select process, status, sequence# from v$managed_standby;
    PROCESS STATUS SEQUENCE#
    ARCH CLOSING 60353
    ARCH CLOSING 60352
    RFS IDLE 60354
    MR(fg) WAIT_FOR_GAP 58673
    4 rows selected.Currently standby is waiting for the sequence *58673* but the later on archives of series 60353... are already archived.
    Can you confirm that only archive sequence * 58673* is missing or any more? If you have less number of archives are missing then see how the parameters you configured. like FAL_SERVER, LOG_ARCHIVE_CONFIG, LOG_ARCHIVE_DEST_n so on.
    Check below command and see any errors with remote destinations
    select severity,error_code,to_char(timestamp,'DD-MON-YYYY HH24:MI:SS') "timestamp" , message from v$dataguard_status where dest_id=2;Source: http://www.oracle-ckpt.com/dataguard_troubleshoot_snapper/
    If the archives are missing so many and you do not have backup, then certainly you have to choose incremental roll forward to synchronize the primary database, then only you can see the configuration status of Broker as valid. You can refer this article to perform incremental roll forward http://www.oracle-ckpt.com/rman-incremental-backups-to-roll-forward-a-physical-standby-database-2/

  • SQL script with host command job in Enterprise Manger Grid Control

    I use Enterprise Manger Grid Control 10.2.0.5 and need to create SQL script job on database instance target on unix/linux platform.
    I have problem with os command inside sqlplus script.
    For example for the simple command: SQL> host ls
    I get the message in output log: SQL> SQL> SQL> SQL> SQL> SQL> /bin/bash: ls: command not found
    Can anyone help me?
    Thank you.

    Hi,
    Make sure you have granted all necessary rights (log on as a batch job etc.) to the user used in the prefered credentials.
    Cheers,
    Kenneth

  • Cleanup job to remove archive logs automatically through OEM Grid control

    Hi All,
    I am working on 11gR2 3node RAC database. we have enabled archivelog mode for the databases and don't have any backup processes (like rman) and not using ASM.
    Please let me know how to cleanup the old archivelogs automatically through oem Grid control.
    I have some idea how to do it in standalone database, but not sure how it works in RAC environment through OEM. Please let me know.
    Thanks in advance.

    Hari wrote:
    Thanks for your reply and The requirement is, put the DB in archive log mode and cleanup the old archive logs which is more than 5days. We are doing this because of space issue and don't have backup for these files and the DB must be in archive log mode.
    I have few question here.
    1. Is it must to take the backup of the archive log files and before delete them?No, but if you aren't backing up, why create the archivelogs in the first place?
    2. If i delete them without backup, what is the negative impact?If you aren't backing up the database in the first place (as you stated in an earlier post) then it really doesn't matter what you do with the archivelogs as they are worthless anyway.
    3. What is the recommended process to do it?My recommendation is you first start using rman to backup the database
    4. I need to setup this process through OEM grid control.
    Please let me know.
    Thanks,
    HariIt all begs the question which has already been asked and you avoided answering . . . if you are not taking backups, why bother archiving? The archive logs have ZERO VALUE outside of a consistent backup strategy. So how is it you have a 'requirement' to run in archivelog mode but no requirement for backups?
    Edited by: EdStevens on Dec 2, 2011 9:30 PM

Maybe you are looking for

  • Mfp 175

    My LaserJet 100 colorMFP M175nw is dropping off the network rather more often than I should have to put up with for a quality product. I can query the router and the printer is shown as being connected The IP adress in the config report is identical

  • Component to allow the user to build a list from another list's items

    Hello everybody, I'm looking for a widget that allows the user to create a list by choosing from items from another list. Something like the tool to customize the button bar in MS Office or MS Explorer. You can see an example of what I'm talking abou

  • Can we cancel a Service Order

    Hi, Can one please help me on following points: 1. After cancellation of TECO on service order what happens to the costs? 2.What all areas will get effected after TECO of a Service order? 3.Is it possible to cancel/delete a Service Order? 4.If so wha

  • Satellite C850-1KN - Windows 8.1 Freeze

    Hi, I have tried the search function but cannot find the help I require. My Satellite C850-1KN (windows 8.1) has been freezing a lot recently but I am still able to use the mouse pointer, CTRL + ALT + DEL has no effect and the computer won't do anyth

  • Workflow issue

    Hi Experts, We have recently done an upgrade from 4.6c to ECC 6.0. One of the Order change workflow is triggered & mail is sent to the person who has executed it. But the agents which are assigned to it dont receive the mail. If we check in SWI1 -> W