AWR snapshot not generatedand how to compare statistics with a baseline

01. AWR snapshot not being generated even after setting looks fine
02. compare a captured set of statistics with a baseline.
i m not much clear on this, please help as i have this requirement at hand.
Thanks a lot in advance.

01.
SQL> show parameter statis
NAME TYPE VALUE
statistics_level string TYPICAL
I explicitly run and did cntl^C as it looks running endless... (waited almost 2-3 hours).
SQL> exec dbms_workload_repository.create_snapshot;
^CBEGIN dbms_workload_repository.create_snapshot; END;
ERROR at line 1:
ORA-01013: user requested cancel of current operation
looks like job_name is enabled.
GATHER_STATS_JOB TRUE WEEKNIGHT_WINDOW
freq=daily;byday=MON,TUE,WED,THU,FRI;byhour=22;byminute=0; bysecond=0
GATHER_STATS_JOB TRUE WEEKEND_WINDOW
freq=daily;byday=SAT;byhour=0;byminute=0;bysecond=0
anything else can be checked, i dont have access to OEM..must be done at SQL prompt.
02. thanks for info. i understand.. how do we compare set of snapshots with baseline(which is actually pair/range of snapshot kept for further comparison)
no access to OEM. must be done at SQL prompt.
please help in both. thanks ...

Similar Messages

  • TS3212 Having problems downloading. OS is LINEX and I'm not sure how to load itunes with it.

    Having problems downloading. OS is LINEX and I'm not sure how to load itunes with it.

    Agreed. No native linux support. The only ways you could run iTunes with a primary linux system would be to a) dual boot, b) virtualize Windows with VirtualBox, VMware, etc., or c) attempt to run iTunes in Wine (which doesn't usually work very well). Dual boot would give you the benefit of complete support and usage of hardware and software, but virtualizing is a bit more convenient, since you would not have to reboot your linux host.

  • How to compare varchar with number

    i am doing one report for that am passing receipt number(from , to) as parameters
    if i compare for that table i am getting output.
    select receipt_num from rcv_shipment_headers rsh
    where to_number(rsh.receipt_num) between nvl(:P_RECEIPT_FROM,rsh.receipt_num) and nvl(:P_RECEIPT_TO,rsh.receipt_num)
    but when i am using in below query it is getting error "Invalid Number"
    select rsh.receipt_num
    , sum(rs.quantity)
    , rs.unit_of_measure
    , rct.transaction_date "Date of Entry"
    , pov.vendor_name
    , msi.segment1 "Item Code"
    , msi.description "Item Description"
    from rcv_transactions rct
    , rcv_shipment_headers rsh
    , rcv_shipment_lines rsl
    , po_vendors pov
    , mtl_system_items_b msi
    , rcv_supply rs
    where rsh.shipment_header_id=rct.shipment_header_id
    and rsh.shipment_header_id=rsl.shipment_header_id
    and rsl.shipment_line_id=rct.shipment_line_id
    and rsh.vendor_id=pov.vendor_id
    and rsl.item_id=msi.inventory_item_id
    and msi.organization_id=106
    and rsl.shipment_line_id=rct.shipment_line_id
    and rct.transaction_id=rs.rcv_transaction_id
    and to_number(rsh.receipt_num) between nvl(:P_RECEIPT_FROM,rsh.receipt_num) and nvl(:P_RECEIPT_TO,rsh.receipt_num)
    and rct.organization_id=nvl(:P_ORG_ID,rct.organization_id)
    and rsh.vendor_id=nvl(:P_Vendor_Name,rsh.vendor_id)
    and rct.inspection_status_code='NOT INSPECTED'
    group by rsh.receipt_num
    , rs.unit_of_measure
    , rct.transaction_date
    , pov.vendor_name
    , msi.segment1
    , msi.description
    plese help to solve
    Thanks & Regards
    Adina

    The problem lies here:
    and rsh.vendor_id=nvl(:P_Vendor_Name,rsh.vendor_id)How can you compare vendor_name with vendor_id????????????
    SQL> select * from po_vendors where vendor_id = NVL(&p_vendor_name,vendor_id);
    Enter value for p_vendor_name: 'AAAA'
    old   1: select * from po_vendors where vendor_id = NVL(&p_vendor_name,vendor_id)
    new   1: select * from po_vendors where vendor_id = NVL('AAAA',vendor_id)
    select * from po_vendors where vendor_id = NVL('AAAA',vendor_id)
    ERROR at line 1:
    ORA-01722: invalid number
    SQL> Message was edited by:
    user605919

  • How to Compare date with Current system date in XSLT mapping.

    Hello Experts
    In a XSLT mapping program, I hava a filed, ZZOB which is giving some date.
    which I need to compare with the current date.
    Condition-
    ZZOB is greater than current date or ZZOBLIG = NULL
    Then go further statements.
    how can i campare with the current date?
    Please help.
    Thanks
    Balaprasad

    This example may help:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:param name="currentDate"/>
        <xsl:variable name="firstDate" select="concat(substring($currentDate, 1,4),substring($currentDate, 6,2),substring($currentDate, 9,2))"/>
        <xsl:template match="/">
            <xsl:apply-templates select="//item"/>
        </xsl:template>
        <xsl:template match="item">
            <xsl:variable name="secondDate" select="concat(substring(submissionDeadline, 1,4),substring(submissionDeadline, 6,2),substring(submissionDeadline, 9,2))"/>
            <xsl:choose>
            <xsl:when test="$firstDate &gt; $secondDate">
                <xsl:call-template name="late"/>
                </xsl:when>
                <xsl:when test="$firstDate &lt; $secondDate">
                    <xsl:call-template name="ontime"/>
                </xsl:when>
                <xsl:when test="$firstDate = $secondDate">
                    <xsl:call-template name="same"/>
                </xsl:when>
                <xsl:otherwise>Monkeys<br /></xsl:otherwise>
            </xsl:choose>
        </xsl:template>
        <xsl:template name="ontime">
            This is on time
        </xsl:template>
        <xsl:template name="late">
            This is late
        </xsl:template>
        <xsl:template name="same">
            This is on time
        </xsl:template>
    </xsl:stylesheet>

  • HOw to compare column with column using JCheckBox

    i have declare 4 JCheckBox which is a,b,c,d
    How to compare this value with the one in the database?

    Hi
    Say myCheckbox is the checkbox I want to test.
    The example below uses its state to query the database:
    String value;
    Statement stmt;
    ResultSet rset;
    value = myCheckbox.isSelected() ? "Y" : "N";
    stmt = conn.createStatement();
    rset = stmt.executeQuery("select column2 from table where column2 = "+value);
    In this case, the database colum is character, with the possibles values of Y or N.
    hth
    Luis Cabral

  • Still not sure how to share files with my friend's Windows PC?

    I went through all the help pages concerning this, but it doesn't seem to help any. On our house internet connection, both our computers use the same IP address. I tried connecting directly to his computer using ethernet cable, but his computer never showed up. Our workgroup name should be the same, his is WORKGROUP but I'm not sure how to officially make mine that. I went to Network in System Preferences and clicked on Advanced... then went to the WINS tab and it has workgroup in the workgroup box, does this mean my computer is using that workgroup name? I'm at a loss and would like to share files with my friend's computer.

    Desidarius wrote:
    I went through all the help pages concerning this, but it doesn't seem to help any. On our house internet connection, both our computers use the same IP address.
    Do you have a router?
    If not then sharing files will not be easy.
    I tried connecting directly to his computer using ethernet cable, but his computer never showed up. Our workgroup name should be the same, his is WORKGROUP but I'm not sure how to officially make mine that. I went to Network in System Preferences and clicked on Advanced... then went to the WINS tab and it has workgroup in the workgroup box, does this mean my computer is using that workgroup name? I'm at a loss and would like to share files with my friend's computer.
    The add the Mac to the WORKGROUP
    Applications > Utilities > Directory Access
    Select SMB/CIFS
    Click Configure
    Change Workgroup to match the Windows Workgroup.

  • How to compare date with char

    hi
    i am having date from and date to feilds in my overtime element.i want to do the validation on these dates the the dates do not overlap or duplicated.the input value date from and date to are stored in database as varchar2 in the format yyyy/mm/dd 00:00:00. Now if i am trying to compare entered date with these dates i am getting literal does not match format string or date picture ends before....Can any body tell me what to do.
    Regards

    user10502390 wrote:
    hi
    i am having date from and date to feilds in my overtime element.i want to do the validation on these dates the the dates do not overlap or duplicated.the input value date from and date to are stored in database as varchar2 in the format yyyy/mm/dd 00:00:00. Now if i am trying to compare entered date with these dates i am getting literal does not match format string or date picture ends before....Can any body tell me what to do.
    RegardsPoint a) VERY BAD IDEA storing dates as VARCHAR2 on the database. It will only lead to corrupt data in the future.
    Point b) When comparing dates, you should compare them as DATE datatype as the database knows how to do comparisons against DATES. If you try and compare them as VARCHAR2 then you will most likely end up with incorrect comparisons.
    If you must have varchar2 storing of your dates/times (there's absolutely no reason to though)... you want...
    TO_DATE(:entered_date,'YYYY/MM/DD HH24:MI:SS') BETWEEN TO_DATE(DATEFROM,'YYYY/MM/DD HH24:MI:SS') AND TO_DATE(DATETO,'YYYY/MM/DD HH24:MI:SS')
    e.g.
    TO_DATE('20080815 13:23:33','YYYY/MM/DD HH24:MI:SS') BETWEEN TO_DATE(DATEFROM,'YYYY/MM/DD HH24:MI:SS') AND TO_DATE(DATETO,'YYYY/MM/DD HH24:MI:SS')

  • How to compare character with \ ?

    Hi,
    How can I compare a character with backslash ?
    when I do 
    if  (c == '\')
    then it gives error invalid character constant
    I cant even declare string with this value like
    String str = "\";
    this gives error string literal is not properly closed by double qoute
    thanks in advance
    B

    Hi,
    You can use the below
    String str = "\\";
    char c = '\\';
    * are considered as \ at runtime.
    Regards,
    Sruti

  • I have an iPhone 4 which is synced with a non apple laptop and wish to sync it with my new iMac.  I have backed the phone up with the laptop and am not sure how to sync it with the iMac without loosing any contacts, emails or photos from my phone.

    I have an iphone 4 which is currently synced with a non apple laptop and I wish to sync it with my new imac.  I have just backed the phone up on my laptop but am not sure what I need to do now.  I do not want to loose any contacts, emails or photos from my phone when I change sync computers.  Can anyone assist with a step by step guide as to how to achieve this oucome?  Thanks in advance.

    Have you read this?
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/HT4527
    The Apple web site has lots of other guidance, for example if you are migrating from Windows to Mac, read this.
    Switch 101: Migrate your Windows files or system to your Mac
    http://support.apple.com/kb/HT2518

  • How to compare date with thr current date

    Hi,
    I have an inout string which is in date format(dd/mm/yyyy hh:mm:ss) .
    what i need to do is comparing this date string with the current date. if my input string is less than current date , then display error message..
    how to do this?
    regards

    Excellent suggestions from all of you people!
    finally i got the solution
    code is:
    import java.util.*;
    import java.text.*;
    public class TestDate {
      public static void main(String args[]){
        TestDate a = new TestDate();
      TestDate() {
        String DATE_FORMAT = "dd/MM/yyyy hh:mm:ss";
         Date today = new Date();
         Date myDate=null;
        java.text.SimpleDateFormat sdf =
             new java.text.SimpleDateFormat(DATE_FORMAT);
         try{
         myDate = sdf.parse("01/06/2006 00:00:00");
         }catch(Exception e) {System.out.println(e);}
        Calendar c1 = Calendar.getInstance();
        Calendar c2 = Calendar.getInstance();
        c1.setTime(today);
        c2.setTime(myDate1);
        System.out.print(sdf.format(today));
        System.out.print(sdf.format(c1.getTime()));
        if (c1.before(c2)) {
           System.out.print(" is before ");
        if (c1.after(c2)) {
           System.out.print(" is after ");    
        if (c1.equals(c2)) {
           System.out.print(" same as ");    
    System.out.print(sdf.format(c2.getTime()));
      }

  • How to compare date with null value

    Hi
    I have a date filed and i assigned that input box with context attribute of type Date.
    Here my problem is
    when the end user not entered any thing (null ) the i have give some defaul date.
    so first in the action method i have to check the date with null
    if it is null i have to give default date.
    so please let me know how to over come this.
    thanks
    Mukesh

    Hi
    You can get your date in your action method like
    Date newDate=new Date();
    Date myDate= wdThis
                              .wdGetYourComponentNameController()
                                      .wdGetContext()
                                           .currentYourNodeNameElement()
                                                           .getYourDateName();
    if ( myDate== null) {
             wdContext.currentContextElement().setYourDateName(newDate);
    else{...........//continue your other validations or calling other methods}
    Regards
    Abhijith YS
    Message was edited by:
            Abhijith YS

  • Not sure how to configure Weblogic with log4j.xml

    I tried something VERY similar to this. I wasn't sure where to put this code below. I figured in a Servlet environment, it should probably go in a Listener. I found an existing class inside of Spring that does exactly that: org.springframework.web.util.Log4jConfigListener
    I put my log4j configuration file into an entry in the classpath and configured web.xml as follows:
    <!-- Spring log4j parameters -->
            <context-param>
                <param-name>log4jConfigLocation</param-name>
                <param-value>classpath:gov/pa/dep/formu/resources/log4j.properties</param-value>
            </context-param>
            <context-param>
                <param-name>log4jRefreshInterval</param-name>
                <param-value>30000</param-value>
            </context-param>
            <!-- Spring Log4j config listener -->
         <listener>
              <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
         </listener>The server admin placed the actual log4j.properties file into an AppFileOverrides folder instead of under WEB-INF\classes. I don't know if this caused the problem or not. Since I also was using the DailyRollingFileAppender and running into problems LOSING my log entries each day because he file didn't get renamed, I followed Metalink BUG# 8459807, and used the datedFileAppender available at http://minaret.biz/tips/datedFileAppender.html.
    When the application started, the server log showed that log4j was being configured but none of my logging statements were going into the logs. It wasn't until the server admin placed a copy of log4j.properties (a different log4j.properties with a rolling file appender) that the log statements started going into the file that was configured based on web.xml.
    Surely, things can't be this difficult with log4j, and commons logging under WebLogic.
    All I want is APPLICATION LEVEL LOGS that are specific to the day.
    Can someone else elaborate on how they got this working?
    thanks a bunch,
    Eric

    Hi,
    The configuration wizard (config.sh) lets you create a WebLogic Domain, however and depending on others "Oracle Middleware" products installed on the same "Oracle Home" (directory where weblogic has been installed) the configuration wizard allows you create the new weblogic domain to support the others middleware products such as WebCenter.
    When I say support It means that Configuration Wizard allows you to create the weblogic resources like JDBC connections, JMS services, and deploys all applications that integrates another product such as WebCenter.
    I suggest create your domain with support for WebCenter and then from Admin Console create the JDBC resource to connect to other database such as JD Edwards database.
    I hope this help.

  • Not sure how to produce alerts with KPI's

    Hi experts,
    I'm trying to reflect RUEI alerts to EM Incident Manager but failed.
    Now I have:
    enabled RUEI reporter to access EM database
    defined KPI (or used default KPI's)
    defined alert schedule
    I think maybe it's because the KPI or the alert schedule is not properly defined.
    So I'd like to ask if there is a sample or what to show how to define KPI and link alerts to KPI.

    Refer the following docs to setup notification and monitor KPI's/SLA reporting from RUEI.
    Configuration Assistant: Enterprise Manager 12c Cloud Control Incident Management Rules and Notifications Methods (Search Helper) (Doc ID 1541634.2)
    Monitoring KPI and SLA Alert Reporting:
    http://docs.oracle.com/cd/E24628_01/install.121/e24215/bussapps_apm.htm#CHDGCCIH
    HTH
    Mani

  • TS4009 in my email account, the mobile me account appears with a circle to the left indicating it is not active- How can I deal with this

    my icloud account or mobile me account is inactive
    how can I resume receiving email messages to my me.com account?
    all mail is being returned or rejected

    Sign out in System Preferences>iCloud and sign back in again.

  • I just purchased the Microsoft Surface pro3. I need to download another instance of the software I'm not sure how to do that with a second install

    Is it possible to download two instances of the creative cloud software? Specifically Dreamweaver and Photoshop? I need them on my surface Pro3. Also will I be able to use them when I'm not on the network?

    yes and yes.
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

Maybe you are looking for