Time Based Corrective Action-11g Grid Control

I need a corrective action that is based on time. There are some databases that we take cold backup (we cannot convert to hot backup for reasons beyond our control). So the backup script
shuts down the database
mounts the database
backup the database
opens the database.
For some reason, if the backup fails the database is left in mount state. I was trying to get a corrective action that will kick off at the MOUNTED state and open the database, only if the time is after 8 AM in the morning. I do not want the corrective action kicking off when RMAN is running at night for backup.
I was trying out the PL/SQL code
DECLARE
local_date DATE;
BEGIN
SELECT SYSDATE INTO local_date FROM dual;
IF local_date > trunc(sysdate)+9/24 THEN
EXECUTE IMMEDIATE 'alter database open';
END IF;
END;
This script runs once reports as successful. It may or may not open the database depending on the time. Depending on the time it will leave the database in OPEN or MOUNTED state. It does not run again.
I needed it to run as follows:
The backup fails at 6 AM in the morning,
The script should keep checking the time and open the database only when it is 9 AM.
Is there a way to do that, or am I going about in in a wrong way.
Thanks in advance for your help,
Radhak

Got it to work by correcting the code

Similar Messages

  • Disk 1 of Enterprise Manager 11g Grid Control not downloading correctly

    Hello, I'm downloading Enterprise Manager 11g Grid Control.
    The first disk, of three, does not download correctly:
    GridControl_11.1.0.1.0_Linux_1of3.zip
    On the web page, its size is listed to be around 1.3 GB.
    However, when downloading, it thinks its actual file size is only around 643 MB.
    So only that much gets downloaded.
    But after downloading, this .zip file cannot be opened, it does not appear to a valid .zip file.
    Please investigate and fix this.
    Thanks
    Eugene

    Please check from edelivery.oracle.com . You need to unzip all the zips under one dir.

  • 11g Grid Control - Host Configuration Collection Problems

    Hi Guys,
    I just installed Oracle 11g Grid Control and it has been running for 2 weeks until I recently tried to walk through the parts of it.
    My intention was to clear off all the error messages, critical warnings, alerts, and policy warnings.
    When I arrived at the development summary box, on the home tab, I can see that there is 1 collection problem.
    When I clicked it, I saw that apparently the problem is with the host where I installed the grid control.
    Problem type: Warning during collection of Oracle Software
    message: Unknown WLS Home Location or WLS Version in Middleware Home /u01/app/oracle/product/middleware
    I tried clicking on the "Refresh Host" button, but it didn't solve the problem at all.
    I have also tried to take a look at the targets.xml however it seems the configuration in there are already pointing to the correct path to the weblogic home.
    Please let me know if anyone has a suggestion for this.
    Searching from google doesn't really return anything closely matched to this.
    Thanks,
    Adhika

    What is the intent/timeline for fixing this bug? On MOS, it appears to have a status of "Status 33 - Suspended, Req'd Info not Avail". We are encountering this bug also and I would glady provide information from our systems in order for the issue to be resolved.
    Thanks.
    PostScript: FWIW, Google yielded a blog referencing this error and Doc ID 1433113.1. I am unable to access that document (as was the blogger). Because of this, and another major caveat (our machines with this collection error do not have WLS installed on them), I'm thinking this probably needs to be an SR rather than a forum discussion.
    Edited by: JeriF on Feb 4, 2013 12:00 PM

  • OEM 11g grid control - Question

    Dear DBA's,
    I'm using 11g grid control, RDBMS - 11.2.0.2 on RHEL 5.0
    My current setup : I have 4 node RAC database running on (node1, node2, node3, node4). My RMAN backup job in EM runs from node1.
    Preferred setup : I need to modify this job or create a new one (whichever is feasible) so that my backup job runs from (node3 or node4) instead of node1.
    Can you kindly suggest How can I modify the setup to meet my requirement?
    Thanks

    I made these changes in the RMAN script (In OEM JOB Parameters) and still see backup running from node1.
    I have recreated jobs (Changed ownership of these jobs from SYMAN to a different ID, which was also part of my task) and during Job creation, while adding targets (I chose target type as Database instance of node4 instead of Cluster database) This fulfilled my request. Thanks again for your reply.

  • Oracle 11g grid control software for Oracle Enterprise Linux 5.0 version

    Hi,
    Just curious to know when Oracle 11g grid control software for Oracle Enterprise Linux 5.0 version will be released. If already released, can you post the link?
    Regards,
    Manohar

    aadragna wrote:
    What is the best installlation document to follow for the latest EM Grid control ?The latest Grid Control is available for download at http://download.oracle.com (Scroll down to "Enterprise Management"). There is a README beside the download link. THAT README PROVIDES INSTALL INSTRUCTIONS.
    In a nutshell, you install the lowest version (10.2.0.1 or 10.2.0.2, which ever is lower for your Grid Control platform), and then apply the 10.2.0.5 patch according to the readme. That should not normally take more than a day.
    >
    Also, can GRID discover PeopleSoft and Siebel application software ?
    That can be found using the self-help portal: http://otn.oracle.com -> Products : Enterprise Management (left edge menu). In the 'Product Focus' area, you will notice 'Application Management' which will lead you to the appropriate data sheets and supporting information.

  • 11g Grid Control with Dataguard

    Hi ,
    I need to configure a 11g Grid Control with Dataguard for the repository, are there any documents that i can follow for configuring the dataguard
    for the Grid Control 11g, I am interested as how i would be setting up the tns entry in the OMS , since i had to do the failover / switchover etc of OEM Grid Control application across the standby .
    Kind regards
    Krish

    Hi,
    Please follow the document provided below:
    How to Configure the OMS Connect String when Repository is in a Dataguard setup (Doc ID 1328768.1)
    Let me know, if you are looking for the same document.
    Best Regards,
    Venkat

  • Download problem with EM 11g Grid Control Release 1 (11.1.0.1.0)

    Hi all,
    I have problem with Enterprise Manager 11g Grid Control Release 1 (11.1.0.1.0) for Linux x86-64 (64-bit) downloaded archives.
    Actually with GridControl_11.1.0.1.0_Linux_x86-64_2of3.zip (1,589,671,704 bytes) (cksum - 535544209)
    I successfully downloaded all archives but cksum for this file (...2of3...) is invalid.
    Even it is invalid I tried to install. Installation starts ok, but it breaks after few moments.
    Regards

    Here is cksum from file that I downloaded 3966614633 and on download page is 535544209.
    It's obvious that something is wrong!
    Oracle personal should fix this issue.
    Anyhow, there is another way... Download from different location. See this thread:
    Re: Invalid Software Download from OTN for Grid Control 11g on Linux x86_64
    Regards

  • Weblogic license required for 11g Grid Control?

    Weblogic is a pre-requisite for installing 11g Grid Control.
    if you do not have weblogic already, and your only requirement for it is to use for Grid Control, is a license for Weblogic required?
    I have raised an SR on this - and have been told a license is required.
    I'm staggered by this - the packs in Grid have always been licensable, but the very basic functionality has always been free - including the use of an 'infrastructure' database to house the repository.
    I'm interested to hear other peoples' experiences and whether this is a 'known' fact.

    I've already asked Oracle sales staff about it, but I don't want to mislead you.
    Could you remind them their restricted-use license?
    Grid Control includes a restricted-use license for the Oracle Database and Oracle Application Server components required to deploy Grid Control. Refer to Section 1.3.3,
    "Restricted-Use Licensing," for details on the restricted-use licenses
    This is the URL of the document: http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14860.pdf
    I would be happy to hear from their answer.
    Regards
    Gokhan

  • How to add new host to 11g grid control

    I have install silently oem agent 11g in a solaris system. The installation was successful and agent is up and running.
    But the thing is I can't add this client and its database in my OEM Grid Control interface. When I try to add the target it shows the bellow error
    Information
    You cannot add a host target from Enterprise Manager Grid Control.
    To add a host target, install the Oracle Management Agent on the host computer you want to manage. When the Management Agent begins communicating with the Oracle Management Service, the Management Agent target and the Host target will appear in the list of targets.
    My Question is how i can the target's agent can communicate with OMS agent? and How this target can be incorporated?

    Hi,
    the host and agent targets should show up right after installation of the agent, if securing was successful. I assume the error happened somewhere there.
    Can you please paste the output of following command:
    $ORACLE_HOME/bin/emctl status agent
    where ORACLE_HOME is set to your newly installed agent?
    Also, please check if you see any errors in $ORACLE_HOME/sysman/log/emagent.log and emagent.trc about communication between the agent and your OMS.
    Best regards,
    Robert

  • OEM 11g Grid Control installation for 10g R2 database

    Hi ,
    I am new with oracle enterprise manager grid control ,
    I have 3 questions ,
    1. My customer is using windows server 2008 with oracle 10g R2 database , can I install OEM 11g R2 to monitor all the 10g databases ?
    2. I found only 32 bit installers for windows , where as they are using 64 bit OS , is it fine to install 32 bit OEM in a 64 bit OS ?
    3. Do they require any separate license for OEM 11g , they have license for oracle 10g database ?
    I will really appreciate if someone can help me with these details , thank you.

    1. My customer is using windows server 2008 with oracle 10g R2 database , can I install OEM 11g R2 to monitor all the 10g databases ?
    Yes
    2. I found only 32 bit installers for windows , where as they are using 64 bit OS , is it fine to install 32 bit OEM in a 64 bit OS ?
    Yes
    3. Do they require any separate license for OEM 11g , they have license for oracle 10g database ?
    You don't need any license to use OEM 11g, however you do need licenses to use Management Packs
    Checkout:
    Oracle® Enterprise Manager Licensing Information
    11g Release 1 (11.1)
    http://download.oracle.com/docs/cd/E11857_01/license.111/e11987/toc.htm
    Regards
    Rob
    http://oemgc.wordpress.com

  • Controlling Corrective Actions from Cloud Control 12c

    Hi Experts
    we have setup corrective actions on some process that runs on our host
    is there a way we can control the corrective action when in case or maintenance...
    Example: if the host is down for maintenence prupose how can we stop corrective actions script to kick off and stop sending notification from the cloud control 12c.
    Thanks
    Edited by: TechAdmin on Nov 12, 2012 9:32 AM

    Blackouts can be used to disable collections during maintenance cycles.
    http://docs.oracle.com/cd/E24628_01/doc.121/e24473/emctl.htm#BABHFDII

  • Oracle 11g Grid Control failure at database credentials

    Hi ,
    I have the environment like Windows 2008 64bit machine. I have installed oracle database in one machine and in second machine , installed weblogic server then trying to install Grid control but
    I'm facing the issue when i give the database credentials , its throwing message like check that listener is up and running or not.
    I have checked everything is working.
    Error is : There was a problem connecting to the database on the host and port specified. Check to make sure the host is up or that the database listener is running on that host
    i have verified in the forums . but nothing worked for me. Could any one please help me out

    If you have not tested a sqlplus connection to the database as user sys from the host where you want to install Grid Control, then try it.
    Ex:
    sqlplus sys/<PASSWORD>@"(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<HOSTNAME>)(PORT=<PORT#>)))(CONNECT_DATA=(SID=<SID>)))" as sysdba
    where:
    <PASSWORD>: the password of user sys as entered in the UI
    <HOSTNAME>: the host name as entered in the UI
    <PORT#>: the port number as entered in the UI
    <SID>: the SID as entered in the UI
    - Loc

  • 11g Grid Control in a cluster?

    Hi All,
    I am trying to find some official doc on how to setup an MAA architecture for 11g GC.
    I have already done the following:
    - installed 11.2.0.1 RAC database
    - installed wls 10.3.2 on both nodes
    - installed OMS on one node
    - added the second OMS instance on the second node
    Now, in WLS console I can see that there are 3 servers created (1 Admin + 2 OMS servers).
    However, there is no cluster setup in WLS.
    I am also planning to use a load balancer before the OMS instances.
    Are there some notes on how to set this up? All I could find was stuff about 10g which is still based on iAS so that's not any use.
    Also, where can I find notes about how to setup load-balancer for an 11g OMS clustered?
    Regards,
    Pawel.

    Thanks !
    However, I have a problem on deciding how to create the shared filesystem for the loader... In your example there is the following statement:
    ■The second thing to consider is shared storage, for both the XML file loading, and the software library (used for patching and provisioning). So make sure you can add a good shared storage solution to the OMS machines when needed to handle the shared files
    What is the best way to do that?
    - OCFS2
    - GFS
    - NFS (I don't like this solution as it is not HA - if primary server goes down - so does the shared folder in all attached nodes)
    - ASMCF (installing a whole Grid Infrastructure with ASM sounds way too much overhead to accomplish a simple task of sharing a directory between to nodes)
    Currently we have FC interfaces installed on both machines and attached to a disk storage matrix. In other words we have the same device /dev/raw1 visible from both OMS nodes.
    Which approach is best keeping in mind we want High Availability maintaned?

  • 11G Grid control - Target is temporarily in status pending state.

    Hi,
    I'm using 11G OMS, where at a point of time I can see many unknown targets with message "Target is temporarily in status pending state."
    There are different databases running on different hosts are showing the same error.
    Thanks
    KSG

    KSG,
    Can you try below commands on agent to get status & upload/reload , last upload time & target being monitored
    Also have check in /etc/hosts of agent host should be in below format
    <IP> hostname.domainname hostname
    Check ping telnet for connectivity between agent & OMS
    HTTP Console Port : 7789
    HTTPS Console Port : 7800
    HTTP Upload Port : 4890
    HTTPS Upload Port : 4900
    Agent Port : 3872
    Repository Port : 1521
    Enterprise Manager Central Console Port = 4889
    Enterprise Manager Central Console Secure Port = 1159
    emctl status agent
    emctl upload
    emctl reload
    emctl config agent listtargets Thanks,
    Ajay More
    http://www.moreajays.com

  • Need to run Shell script based report from EM Grid Control

    Hi DBAs,
    I have a monitoring script for host which I want to run from OEM and send me the email report every day. I have configured soem reports for SQLs but not sure how can I get it working using OEM. Looking for your help. I am using Grid Contro Version 10.2.0.4.
    Regards
    -Samar-

    OK.. I was under the impression that u have a script ready :)
    Now u different way's to implement.
    1.If it's an application which has a login page url,u can monitor URL from OEM with HTTP ping
    2.U can have a job where it will check for process using ps -ef and set that job will fail if it doesn't get N no.of processes somthing like that.

Maybe you are looking for

  • How do I find out the size of a file, trying to make a DVD and told the fil

    Made a slide show project with music and trying to write to dvd. Computer tells me the file is to large and to use a dual sided disk. I cut may slides out but no luck. How do you find out the file size?

  • Infamous SocketException: Broken Pipe

    Hello, As with many of the other users on this forum I have been plagued by the Broken Pipe SocketException, very rarely, which seems to essentially block on the java.net.SocketOutputStream.socketWrite0(Native Method) for quite a long time (presumabl

  • Flexfield indexing, is that smart?

    We are using many customizations with flexfields. Unfortunately, many queries are based on those fields and according no index is present, full table scans are happening all the time (many of the tables has 2-8 mil. of records). Because these tables

  • SUS :- Employee for vendor

    Hello Folks, We are implementing SRM SUS (5.0) (EBP SUS scenaio).  We are able to successfully replicate vendor to SUS. We can se ethe vendor org in SUS. My concern is - 1. How can we create employee for vendor (business partner) in SUS. 2.  When we

  • SP for Validating BOM & Production Order item wise

    Dear Experts,                     Here I am validating the Production order  items  with BOM for the same items, any addition or deletion in production order should not be allowed. Hence the production order should consist of same items what it has i