Query for seeing the amount of archive switchs per day

Hi
I want a query for seeing the amount of archive switchs per day.
Example:
date & amount
17/01/2009 40
18/01/2009 33
19/01/2009 45
Thanks

Hi friend Jamsher
I tested in a RAC database and the result is null....
SQL> SELECT ROUND(AVG(1440 * (b.first_time - a.first_time)), 0) "Log switch
2 time - minutes"
3 FROM v$loghist a, v$log b
4 WHERE b.sequence# = a.sequence# + 1
5 AND a.sequence# = (SELECT MAX(sequence#) FROM v$loghist)
6 ORDER BY a.sequence#;
Log switch
time - minutes
SQL>
Thanks

Similar Messages

  • Query level formula is not working for all the amounts

    Hi Friends,
    In my production system I found new thing that in my query level I done some calculation (as per my requirement I done amount devide by 100 to get correct values)
    It is working for all the amounts except 1or 2 amounts, im uploading same source file for  all the amountsu2026 why it is happening like this u2026and is there any availability to change those 1 or 2 values at data base tables level  or at any pleace (I hope in SAP it is may not possible)u2026can any body tell me why it is happening like this. u2026 because of  this issue only my report is pending to sign off u2026.please  can any body find  the solution ASAP.
    Regards,
    VENKAT

    Are they non decimal currencies?
    If yes, create RKF1 on amount field excluding the currencies for which you are not getting currect values then in CKF or formula as RKF1 / 100.   Similarrly create another RKF2 on amount only including the currencies which are excluded in RKF1, create a CKF or formula as RKF2/10000. Then created another formula wich adding CKF1 and CKF2.

  • I need a query that selects the amount of records for each day in a table.

    I need a query that selects the amount of records for each
    day in a table.
    Eg the result would be:
    date 1 14
    date 2 3
    etc
    Any ideas?

    sorted:
    SELECT count([commentID]),convert(varchar, dateAdded, 112)
    FROM COMMENTSgroup by convert(varchar, dateAdded,
    112)

  • How do i see the amount of people who listen to my podcast?

    How do i see the amount of people who listen to my podcast?

    I use Feedburner at http://www.feedburner.com to create all the podcast enclosures for my RSS feeds. In addition to that, they keep track of the circulation which I believe amounts to an approximate number of subscribers that listen to the podcast.
    You can even have a little chicklet that you can put on your webpage so you can keep track of your stats without having to login to your feedburner account. You can see a sample of this chicklet on my son's video podcast page at: http://niotv.blogspot.com
    I hear that libsyn.com also keeps detailed stats of how many listeners are listening to your podcast if libsyn is your podcast host.
    15 Powerbook G4 Titanium   Mac OS X (10.4.5)  

  • How I can see the amount of sticky entries exist on CSM

    Hi everyone,
    I would like to know how I can see the amount of sticky entries exist on CSM.
    I understand I can not see the amount of sticky entries by executing one "show"
    command on Cat6k/CSM.
    So I have to calculate several output of "show ip slb sticky" to see it.
    However, I would like to get it by simple way.
    So I tried the following test by using SNMP (SNMP-GET point to several instance
    of "slbStats", of 1.3.6.1.4.1.9.9.161.1.1.1.1)
    Client ----- CSM ----- Server
    1: Reboot CSM to clear/initialize sticky table
    2: Client send ping to Server to confirm that the result of counter of "slbStats"
    remains zero (0).
    In this case, I understand CSM should not create an entry on sticky table because
    the packet pass through CSM is not either TCP or UDP.
    3: Then I tried to SNMP-GET to CSM point to several instance of "slbStats"
    The result of this SNMP-GET is as follows:
    Before sending ping
    slbStatsCreatedConnections.2 : 0
    slbStatsCreatedHCConnections.2 : 0
    slbStatsEstablishedConnections.2 : 0
    slbStatsEstablishedHCConnections.2 : 0
    slbStatsDestroyedConnections.2 : 0
    slbStatsDestroyedHCCConnections.2 : 0
    After sending ping
    slbStatsCreatedConnections.2 : 4
    slbStatsCreatedHCConnections.2 : 4
    slbStatsEstablishedConnections.2 : 1
    slbStatsEstablishedHCConnections.2 : 1
    slbStatsDestroyedConnections.2 : 3
    slbStatsDestroyedHCCConnections.2 : 3
    I wonder why all of above MIB objects are increased despite of the packets pass
    through CSM are ICMP.
    So I can not determine whether I should use this method (using SNMP) or not to
    see correct value of the amount of sticky entries
    And I would like to know alternative method to see it by SNMP or other simple way.
    Your information would be greatly appreciated

    Hi Gilles,
    Thank you very much for your pointing and suggestion and I am sorry for my delay response.
    I understand there are two kind of CLI on CSM depend on using CSM mode or RP mode.
    - show command begins with "show ip slb" when using CSM mode (ip slb mode csm)
    - show command begins with "show mode csm x" when using RP mode (ip slb mode rp)
    And "show mod csm x sticky config" command can be done on RP mode only.
    So I tried to "show ip slb sticky config" command on CSM mode, but I could not find
    "config" argument as follows,
    ct65svf1#sh ip slb sticky ?
    client sticky associated with a specific client IP address
    groups list configured sticky groups
    | Output modifiers
    ct65svf1#sh ip slb sticky
    So I think, on CSM mode, I can not calculate the amount of sticky entry by executing one
    show command.
    Is my understanding correct ?
    Best regards,

  • T-code/Report for seeing the existing entire GL master data

    Dear Experts,
    Is there any t-code/Report for seeing the existing entire GL master data at chart of accounts level and company code level.
    example :
    GL a/c no    company_code   account_group   shrt_text    long_text     tax_category      open_item_management   etc
    172500           1000                  Balance sheet   tds pay      tds payable    *                                 X
    Thanks in Advance
    Regards,
    T.Kartheek
    Moderator: Please, search before posting

    Dear expert
        you can use f.10 or f.08
    2.  GL Account Balances (Totals & Balances )             S_ALR_87012301
    3.  GL Line Items                                                            S_ALR_87012282
    4.Display of Changed Documents                                  S_ALR_87012293
    5. Chart of Accounts                                                       S_AL:R_87012326
    6.. GL Account List                                                      S_AL:R_87012328
    7.. Display Changes to GL Accounts                             S_ALR_87012308
    Regards
      Ajeesh.s
    Edited b

  • Query for selecting the 4 highest marks of the student

    query for selecting the 4 highest marks of the student

    Guys dont start an argument,
    tey this one; please
    Hi,
    Try this
    Top 4
    Select ename,
    sale
    From dept d,
    emp e1
    Where d.deptno = e1.deptno
    And &p > (Select Count(e2.sal)
    From emp e2
    Where e2.sal > e1.sal
    And e2.deptno = e1.deptno
    Order By 1,2
    Bottom 4
    Select ename,
    sale
    From dept d,
    emp e1
    Where d.deptno = e1.deptno
    And &p > (Select Count(e2.sal)
    From emp e2
    Where e2.sal < e1.sal
    And e2.deptno = e1.deptno
    Order By 1, 2
    &P you use any value say 3,4,5,6
    This is top N analysis
    Regards
    Umesh

  • What is the transaction code for see the Web Services available in SAP

    Hi
    I came to know that SAP has provided its own webservices... I need some information on that... If any one has documentation on that can u please send it to me... My ID is <b>[email protected]</b>.
    What is the trasaction code for see the web services available in SAP.... Can any one help.. Please its  urgent
    Best Regards
    Ravi Shankar B
    Message was edited by:
            RaviShankar B

    Hi,
    you can find Web Services (Enterprise Services) in the Enterprise Services Workplace (ES Workplace). The ES Workplace allows you to explore, test, and use enterprise services to make enterprise SOA tangible. Here, you will find all of the currently productized enterprise services by SAP.
    Best Regards,
    Boris Mueller
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/developerareas/esa/esapreview">ES Workplace at SDN</a>
    <a href="http://esapreview.sap.com:82/socoview(bD1kZSZjPTgwMCZkPW1pbg==)/flddisplay.asp">ES Workplace</a>

  • Transaction Code for seeing the files in the  Application Server

    Hello All,
      Can anybody please give me the transaction code for seeing the files in the Application Server
    Thanks in Advance,
    Regards,
    LIJO.

    hi
    good
    try with tcode AL11.
    thanks
    mrutyun^

  • Query for deleting the minimum updated record.

    Hello Everybody,
    I have table USER_RECENT_PROJECTS which has SIX columns USER_NAME,PROJECT_ID,CREATED_BY,CREATED_ON,UPDATED_BY
    and UPDATED_ON.The purpose of having this table to get 5 recent PROJECTS
    on which user has worked on.
    I have trigger called RECENT_PRJ_TRIGG which IS FIRED when the data is inserted or updated on PROJECT table.After this trigger calls procedure PROC_USER_RECENT_PRJ and that procedure puts the data in this table.
    It is inserting the data upto 5 records when the six records comes it deleting the record which is least UPDATED_ON from the table USER_RECENT_PROJECTS but the problem is it is deleting
    the record from other user that i don't want.I want to delete the the record which is
    least UPDATED_ON from particular user.
    Please help me on this issue.
    Here is the trigger
    CREATE TRIGGER RECENT_PRJ_TRIGG
    AFTER INSERT OR UPDATE ON PROJECT
    FOR EACH ROW
    DECLARE
    NUMBER_OF_PROJECTS NUMBER:=0;
    EXISTING_PROJECT_ID NUMBER:=0;
    BEGIN
    SELECT COUNT(*) INTO NUMBER_OF_PROJECTS FROM USER_RECENT_PROJECTS WHERE USER_NAME=:NEW.UPDATED_BY;
    SELECT PROJECT_ID INTO EXISTING_PROJECT_ID FROM USER_RECENT_PROJECTS WHERE PROJECT_ID=:NEW.PROJECT_ID AND USER_NAME=:NEW.UPDATED_BY;
    NVLX.PROC_USER_RECENT_PRJ(NUMBER_OF_PROJECTS,:NEW.PROJECT_ID,EXISTING_PROJECT_ID,:NEW.UPDATED_BY,:NEW.CREATED_BY,:NEW.CREATED_ON);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NVLX.PROC_USER_RECENT_PRJ(NUMBER_OF_PROJECTS,:NEW.PROJECT_ID,0,:NEW.UPDATED_BY,:NEW.CREATED_BY,:NEW.CREATED_ON);
    END;
    And this is the procedure which is inserting the data
    CREATE OR REPLACE PROCEDURE PROC_USER_RECENT_PRJ (
                   NUMBER_OF_PROJECTS IN NUMBER,
                   NEW_PROJECT_ID IN PROJECT.PROJECT_ID%TYPE,
                   EXISTING_PROJECT_ID IN USER_RECENT_PROJECTS.PROJECT_ID%TYPE,
                   USER_NAME IN CONTENT_USER.USER_NAME%TYPE,
                        CREATED_BY IN PROJECT.CREATED_BY%TYPE,
                        CREATED_ON IN PROJECT.CREATED_ON%TYPE)
              IS
                                  MAX_RECENT_PROJECTS NUMBER := 5;
              BEGIN
                        IF NUMBER_OF_PROJECTS<=MAX_RECENT_PROJECTS AND EXISTING_PROJECT_ID=NEW_PROJECT_ID THEN
                             UPDATE USER_RECENT_PROJECTS SET USER_RECENT_PROJECTS.UPDATED_ON=SYSDATE,USER_RECENT_PROJECTS.UPDATED_BY=USER_NAME WHERE PROJECT_ID=EXISTING_PROJECT_ID
                             AND USER_RECENT_PROJECTS.USER_NAME=USER_NAME;
                        ELSE IF NUMBER_OF_PROJECTS<MAX_RECENT_PROJECTS AND EXISTING_PROJECT_ID!= NEW_PROJECT_ID THEN
                        INSERT INTO USER_RECENT_PROJECTS VALUES (USER_NAME,NEW_PROJECT_ID,CREATED_BY,CREATED_ON,USER_NAME,SYSDATE);
                        ELSE IF NUMBER_OF_PROJECTS=MAX_RECENT_PROJECTS AND EXISTING_PROJECT_ID!= NEW_PROJECT_ID THEN
                        DELETE FROM USER_RECENT_PROJECTS WHERE USER_RECENT_PROJECTS.PROJECT_ID IN(
                                       SELECT PROJECT_ID FROM USER_RECENT_PROJECTS
                                                 WHERE UPDATED_ON=(SELECT MIN(UPDATED_ON) FROM USER_RECENT_PROJECTS
                                  WHERE USER_RECENT_PROJECTS.USER_NAME=USER_NAME));
                   INSERT INTO USER_RECENT_PROJECTS VALUES (USER_NAME,NEW_PROJECT_ID,CREATED_BY,CREATED_ON,USER_NAME,SYSDATE);
                        END IF;
                        END IF;
                        END IF;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NVLX.PROC_USER_RECENT_PRJ(NUMBER_OF_PROJECTS,NEW_PROJECT_ID,0,USER_NAME,CREATED_BY,CREATED_ON);
    END PROC_USER_RECENT_PRJ;
    Please help me on this issue.
    Thanks in advance.....

    Thanks for your suggestion....
    I am using the trigger for populating the data in USER_RECENT_PROJECTS.This
    trigger is fired when data is INSERTED or UPDATED in PROJECT table.And that trigger will call the procedure PROC_USER_RECENT_PRJ.This is used
    to put data in USER_RECENT_PROJECTS table.I am getting the problem in procedure the problem is upto five records it is inserting the record when i go for insert sixth record it should delete least UPDATED_ON and insert new record.But it is deleting the record from other user that i don't want.I want to delete the record from the paarticular user.I am using this query for deleting the record..
                   DELETE FROM USER_RECENT_PROJECTS WHERE USER_RECENT_PROJECTS.PROJECT_ID=(
         SELECT PROJECT_ID FROM USER_RECENT_PROJECTS
                        WHERE UPDATED_ON=(SELECT MIN(UPDATED_ON) FROM USER_RECENT_PROJECTS WHERE USER_RECENT_PROJECTS.USER_NAME=USER_NAME)
                             AND USER_RECENT_PROJECTS.USER_NAME=USER_NAME
                   ) AND USER_RECENT_PROJECTS.USER_NAME=USER_NAME;
    when i fire this query individually it is deleting the proper record,but when i use it
    inside procedure it is creating the problem it is deleting the record from other user.
    Please suggest me other query for deletion.
    Thanks in advance.......

  • Can you limit the amount of data accessed per user on an AirPort Extreme?

    Can you limit the amount of data accessed per user on an AirPort Extreme?

    Your question was whether the AirPort Extreme is able to establish data limits per user.
    If you add another router that has this type of capability or install software on another router, then you will be able to establish data limits for each user. The AirPort Extreme will have no control over this.

  • Since yesterday I'm unable to send emails alleging I have exceeded the maximum number of emails per day, but I had only sent out 24 and NO bulk emailing -  (much less than 1000 as per the website) and I'm STILL not able to send emails.Any advice?

    Since yesterday I'm unable to send emails on any of my Apple devices. The revert is that I have exceeded the maximum number of emails per day, but I had only sent out 24 with no bulk emailing -  (much less than 1000 recipients as per the website) and I'm STILL not able to send emails. Any advice on how to solve this?

    I have asked a moderator to provide assistance, they will post an invite on this thread.
    Once you get a reply, if you click on their name, you will see a screen like this. Click on the link as shown below.
    Please do not send them a personal message, as they may not be on duty for a long time, and your message will not be tracked properly.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Row 1 Error - Please set the Full Time Equivalent Hours Per Day implementat

    Hi all
    While defining the Enable Workplan Structure in oracle projects i am getting the below error
    Row 1 Error - Please set the Full Time Equivalent Hours Per Day implementation option before enabling the Workplan Structure.
    Plesase can you share and doc or guide where can i set this implementation option
    Thanks in advance

    Hi
    Navigate to Projects> Setup > System > Implementation Options
    There is a tab named - Staffing
    On that form you should enter the Full Time Equivalent Hours - Per Day and Per Week.
    Dina

  • Looking for un-zip/rar software that lets me see the contents of archive and extract single files

    I work with lots of rar and zip archives, and often times i need to view the contents with out extraction, and/or just extract a single file out of a larger archive.  Some archives can be upper of 5gb, extracting the entire archive for 1 10meg file gets tedious.
    I've tried unrarX and the unarchiaver both just instantly start extraction and don't allow me to see the contents of the file.
    WinRar on PC is what i'm trying to emulate, with no success so far.
    Any suggestions?

    http://macitbetter.com/
    http://www.eigenlogik.com/entropy/
    Can't find any free ones that will allow peeking.

  • Query to see the Status of all jobs including steps

    Hi,
    I have 5 jobs in my sql server and each job has 5 steps.
    I need a query which returns the job status, along with steps status in a single query.
    i want the result of last execution only

    you can use msdb catalog views like sysjobs,sysjobsteps etc for that
    see
    http://www.mssqltips.com/sqlservertip/2561/querying-sql-server-agent-job-information/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for

  • Multiprovider data problem

    Hi All, I have a multiprovider which is based on two cubes.There are some characterstics which are simliar in cubes like sales doc,item,ship_to,sold_to.The scenario is as follows:- The key figure on which I am reporting is from Cube2 and there is mix

  • Lost all itunes music on my iPhone 5 with itunes 11

    My iPhone 5 won't sync with iTunes 11 through iCloud.  I have tried to sync to the cloud about 25 times.  I have reset my iPhone, I have deleted my account and then logged on again, I have done everything I can think of to get it to sync but the iClo

  • Investment Management Configuration Materials

    Hi All, Could you pls provide me the related documentation for the entire process flow as well as the Configuration Document for the Investment Management for my mail ID :[email protected] Thanks in advance, Edu

  • Emoticons appearing in my iphoto

    Hi All We have been having an issue with hundreds of emoticons appearing in our iphoto. They have been appearing for years and we usually delete them. Recently we have downloaded a roll from a Sony camera and the whole role has come out as different

  • Is there a bug with JTree??

    I can't seem to get to the bottom of a problem I'm having. I have a JTree object, for which I'm using a DefaultTreeModel. I always use TreeModel.insertNodeInto(...), and TreeModel.removeNodeFromParent(...) when inserting and deleting nodes. But somet