Real time query

What are some function that I can use to get real time data from the mysql database?
I wanted to made a program that will receive a update whenever the database gets updated.

okay, there is some delay.
But I just needed the program to show the new item that was added to the database on the program.
I'm writing a program that had multiple user that if one user add an item to the database, other users will be able to see without doing anything.
I know the query can get the data from the database, but how can I continuously getting new database to my program?

Similar Messages

  • How to disable REAL TIME QUERY in DG 11gr2 ?

    Hi,
    With 11gr2, by default, on STARTUP, the standby database is open
    -> in READ ONLY mode
    -> with Intended State: APPLY-ON
    so the ACTIVE DATAGUARD option is in use ....
    is there a way to deactivate REAL TIME QUERY permanently,
    so whether on STARTUP or STARTUP MOUNT, the standby stay only mounted with Intended State: APPLY-ON
    The only way i found is to do the following :
    SQL> startup
    DGMGRL> edit database 'PHNXENT' set state='APPLY-OFF';
    then
    SQL> startup mount
    DGMGRL> edit database 'PHNXENT' set state='APPLY-ON';
    but this can leads to mistake ....
    Thanks

    it is for standalone database (not RAC)
    yes, users can start the database with mount option, but they have to keep in mind that they do not have to issue a "STARTUP",
    so it is a production rule that oracle doesn't handle.
    Second, it will give a little more complexity in startup scripts (first mount, identify the role, and then open if it is a primary.
    In 10gr2 just startup in all cases ....
    that's why i'd like to know if there is a possibility to permanently disable REAL TIME APPLY ...

  • Active Dataguard switchover puts new standby in real time query

    Hi Gurus,
    If using Active Dataguard ,after swicthover/failover using dg broker and observer does sthe new standby will be put in real time query mode(ADG) or manually have to open the db in read only mode.
    Please let me know.
    Thanks

    Yes it does:
    [uhesse]$ dgmgrl sys/oracle@prima
    DGMGRL for Linux: Version 11.2.0.1.0 - Production
    Copyright (c) 2000, 2009, Oracle. All rights reserved.
    Welcome to DGMGRL, type "help" for information.
    Connected.
    DGMGRL> show configuration
    Configuration - myconf
      Protection Mode: MaxAvailability
      Databases:
        prima - Primary database
        logst - Logical standby database
        physt - Physical standby database
    Fast-Start Failover: DISABLED
    Configuration Status:
    SUCCESS
    DGMGRL> show database physt
    Database - physt
      Role:            PHYSICAL STANDBY
      Intended State:  APPLY-ON
      Transport Lag:   0 seconds
      Apply Lag:       0 seconds
      Real Time Query: ON
      Instance(s):
        physt
    Database Status:
    SUCCESS
    DGMGRL> switchover to physt;
    Performing switchover NOW, please wait...
    New primary database "physt" is opening...
    Operation requires shutdown of instance "prima" on database "prima"
    Shutting down instance "prima"...
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Operation requires startup of instance "prima" on database "prima"
    Starting instance "prima"...
    ORACLE instance started.
    Database mounted.
    Database opened.
    Switchover succeeded, new primary is "physt"
    DGMGRL> show configuration
    Configuration - myconf
      Protection Mode: MaxAvailability
      Databases:
        physt - Primary database
        prima - Physical standby database
        logst - Logical standby database
    Fast-Start Failover: DISABLED
    Configuration Status:
    SUCCESS
    DGMGRL> show database prima
    Database - prima
      Role:            PHYSICAL STANDBY
      Intended State:  APPLY-ON
      Transport Lag:   0 seconds
      Apply Lag:       0 seconds
      Real Time Query: ON
      Instance(s):
        prima
    Database Status:
    SUCCESSKind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • Syntax error in programme on a real time query

    Hi all
    I have created a programme which sits on a real time cube which then sits on an aggregation level and the query that sit on it now comes up with the following error.  I removed a key figure which i did not need and it has been removed in all areas but when i run the report it is still picking up.
      Syntax error in program "GPD637MUU0BR3GW81HQGROKQ8DB ".
    at happened?
      Error in the ABAP Application Program
      The current ABAP program "CL_RSR_REPORT_CHECK===========CP" had to be
       terminated because it has
      come across a statement that unfortunately cannot be executed.
      The following syntax error occurred in program "GPD637MUU0BR3GW81HQGROKQ8DB "
       in include "GPD637MUU0BR3GW81HQGROKQ8DB " in
      line 206:
      "The type "/BIC/OIZ2E_NETUN" is unknown."
    What is the table/ programme that i can remove GPD637MUU0BR3GW81HQGROKQ8DB so that it will regenerate with the new changes.   Any help will be appreciated
    Thanks

    Programs starting with GP are Generated Programs.
    Could you maybe specify your example a bit clearer:
    I have created a programme which sits on a real time cube which then sits on an aggregation level and the query that sit on it now comes up with the following error. I removed a key figure which i did not need and it has been removed in all areas but when i run the report it is still picking up.
    When you talk about a program on a real time cube, what do you mean? Do you mean a query?
    You can try to resave and afterwards regenerate the query in RSRT.

  • Real-time query build up

    Say there are 10 fields that are a combination of combo boxes and text fields that represent different columns from multiple tables in the database. Based on the what the user chooses say either 1 , 1+2, 1+3+4 etc would mean different queries with a huge if statement.Plus I want to add only those statements that are filled in the GUI(& hence not null).
    How do I do it?
    A sample would be highly appreciated!

    I haven't actually done this kind of thing before, but here's a suggestion off the top of my head. Why not sub-class the different components you are using and add methods like getSelectSql(), getWhereSql(), etc... Basically, you could call these methods on each component and the component would be responsible for returning the approprite SQL snippets (or nothing if it isn't part of the users query) which you would have to logically put together.
    Just an off the wall thougth; I'm sure there are better ways of doing it.
    Jamie

  • How Real Time Apply works while physical standby is open in Read Only mode

    Hi,
    With Active data guard option, we can open physical standby DB in read only mode, while redo log are being applied. (Real Time Query)
    Standby Redo log (SRL) enables Real Time Apply (with "USING CURRENT LOGFILE" clause in recover database command on standby DB)
    I am interested to know, how Real Time Query works ?
    What is the mechanism with allows us to open physical standby DB in read only mode while redo logs are being applied continuously ?
    Regards,
    Sujit

    Dear user7419391,
    That is a new feature in Oracle Database 11g. MRP can use the real time apply in 10g but the concept here is different.
    Taken from the following document;
    http://www.ascent.co.za/documents/oracle/Oracle%20databse%2011g%20Active-Data-Guard%20datasheet.pdf
    *Unique Advantages of Oracle Active Data Guard*
    +Active Data Guard is an evolution of Data Guard technology, providing unique+
    +performance advantages while leveraging all other enhancements included in Oracle+
    +Data Guard 11g. For example, any Data Guard 11g physical standby database can+
    +be easily converted to a Snapshot Standby. A Snapshot Standby is open read-write+
    +and is ideally suited as a test system, able to process transactions independent of the+
    +primary database. A Snapshot Standby maintains protection by continuing to receive+
    +data from the production database, archiving it for later use. When tests are+
    +complete, a single command discards changes made while open read-write and+
    +quickly resynchronizes the standby database with the primary.+
    The other link in the previous post is excellent and you really have to read it to understand the active data guard aspects.
    Regards.
    Ogan

  • Enabling the Active Dataguard and Real Time Apply

    11.2.0.2 on AIX
    I gather that , to enable Active Dataguard, you need to execute
    STARTUP ; ----not startup mount
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;The above commands will enable both Active Dataguard (Real Time QUERY) and Real Time Apply. Right?
    To enable just 'Real Time Apply' , I need to
    startup mount
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;Am I right ?
    Question on 'WITH SESSION SHUTDOWN' clause
    While googling I've come across the following variant with an additonal 'WITH SESSION SHUTDOWN' clause
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE WITH SESSION SHUTDOWN;What difference does this clause bring ?
    Is this claused used to enable Active Dataguard feature or 'Real Time Apply' or both ?

    I gather that , to enable Active Dataguard, you need to execute
    STARTUP ; ----not startup mount
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;
    The above commands will enable both Active Dataguard (Real Time QUERY) and Real Time Apply. Right? Yes, It will be in both recovery / realtime + Read only mode, Also you can use
    To enable just 'Real Time Apply' , I need to
    startup mount
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;Am I right ?Yes. It will be in just recovery/real time mode.
    Question on 'WITH SESSION SHUTDOWN' clause
    While googling I've come across the following variant with an additonal 'WITH SESSION SHUTDOWN' clause
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE WITH SESSION SHUTDOWN;What difference does this clause bring ?
    Is this claused used to enable Active Dataguard feature or 'Real Time Apply' or both ?It has multiple options based on startup type
    For this example check link of Julian Dyke.
    http://juliandyke.wordpress.com/2010/10/14/oracle-11gr2-active-data-guard/

  • How to copy data from a Input query to real time Infocube

    Hi All, I need some help on IP related stuff. The details are as below:
    I am using two real time infocubes and one Multiprovider on them.
    First Infocube u2018PRODUCTu2019  with the following Objects:
    Product Group ,Product,Region ,Fiscal Year , Fiscal Year Varient ,0currency
    Gross Sales
    Second Infocube u2018C_PRODUCT u2018 with the following Objects:
    Product Group ,Product,Region ,Fiscal Year , Fiscal Year Varient ,0currency
    Gross Sales and Forecast Sales
    ( u2018Forecast Salesu2019 in the extra object in the second Infocube. Remaining objects are same in the both the cubes)
    First Infocube  u2018Productu2019 has data but the second cube does not have any data.
    I have created a Multiprovider ZMulti and in that I have included these two cubes. On this Multi Provider, I have created a Aggrigation Level(The details of the aggregation level is provided in the next page).
    On this Aggrigation level  I have built a Input Query by which I run the report.
    (In the Rows area, I have taken Product Group, Product, Region and Fical year.
    In the Key Figure section, I have taken Gross Sales and Forecast Sales( which is part of the second Infocube C_Product). These two Key Figures are made Input as Input ready. And the Query is Input ready query. In the Filter, I have taken Fiscal Year Variant. )
    Data available in the first cube and no data currently in the second cube. Now executed the report and report displayed information from the first cube.
    EX:
    Product     Product     Region          Year     Gross Sales     Forecast Sales
    Group
    PG01           Beer           North           2008            10000           u2026u2026u2026
    PG01           Beer          South          2008          20000           u2026u2026u2026
    PG01          Beer          East          2008          15000           u2026u2026u2026
    The second column is empty and there is no data for the Forecast sales Key Figure in the column.
    Things look OK till the above.
    Now based on the Gross Sales, I am entering  forecast Sales values and I need to save the entire record to the second cube.
    For this in the report, I have given the Forecast sales values in the second column and right clicked the mouse and form the menu which I got, selected the u2018SAVEu2019 Option to save the data. For some time, I can see u2018Processingu2019 message and later values at u2018Forecast Salesu2019 are disappearing.
    Data is not saving to the cube second cube.
    ====================================================
    Am I missing any thing?
    In the Query, Do I need to provide InfoProvider and restrict it to specific value?
    In the query, Do I need to include, 0currency object?
    Could you please guide me on this?
    =============================================
    Details of the Aggrigation level.
                I have created an Aggrigation Level ZAL_Prod  on MultiProvider.
                Selected all the objects and activated.
                In the Filter, I have taken 0Fiscal Year Variant  and saved it.

    Restrict Forecast sales to the Plan cube in the Query.
    that should fix it.

  • Unable to create an universe on a query based on a real time cube

    Hello,
    I'm trying to create a universe on a BEx query. This query is based on a multiprovider which consists of one standard cube and one real time cube. I'm unable to see this query in the designer. I do see an empty folder with the name of the multi provider.
    I can create an universe directly on this multiprovider.
    Are there any specific setting for real time cube or is it a compatibility issue? Can an universe be created on a real time cube?
    Regards,
    Sameer

    Hi Sameer,
    Let me know if this SAP note helps: 1291966 - "Output Cache Directory" & "Enable Real Time Cache" options in Central Management Console

  • Need your help !!! -- Authorization error for Real-Time Bex query

    Dear experts:
    I have a Bex query built on a multiprovider, this multiprovider is consist of one standard cube and one real-time cube(virtual provider). When I run this query, I can retrive the data and no error occured, but when others execute this query, they will get the error message below:
    Operation Generate a Request could not be carried out for DTP DTP_D7JVT8DGBQWPWL13VIUITNODG
    You do not have authorization for the data transfer process
    Errors occurred during parallel processing of query 2, RC: 3
    Error while reading data; navigation is possible
    Row: 54 Inc: WRITE_MESSAGES Prog: CL_RSDR_AT_QUERY
    I used tcode rsecadmin to track the authorization, when I execute as user XXX, I can get the same error above, but when I go to "Display Log", no error showed there.
    Did anybody meet the same error before? How to resolve that?
    Any post would be appreciated and thank you all in advance!
    Tim

    I think there is some missing authorization,here
    the user has no access to execute the DTP.
    You can analyse it in rsecadmin or also see
    which object you are getting in su53.
    Thanks,
    Saveen

  • Impact of real time cube on query performance and OLAP cache

    Hi:
    We have actual and plan cubes both setup as real time cubes (only plan cube is being planned against, not actual cube) and both cubes are compressed once a day.
    We are planning on implementing BIA accelerator and have questions related to query performance optimization:
    1/ Is there are any query performance benefits in changing the actual cube to be a basic cube (using program SAP_CONVERT_NORMAL_TRANS) if the F table is fully compressed
    2/ Can OLAP cache be leveraged for the queries run against the real time cubes e.g. actual cubes
    3/ What is the impact on BIA of having the actual cube as real time (whetehr or not there is data being loaded/planned during the day in that cube)
    Thank you in advance,
    Catherine

    1) Is there are any query performance benefits in changing the actual cube to be a basic cube (using program SAP_CONVERT_NORMAL_TRANS) if the F table is fully compressed
    From the performance point of view, tha actual cubes i.e std cubes are relatively better.
    2) Yes OLAP cache can be leveraged for bringing up the plan query but all the calculations are done in the planning buffer.
    3) Not sure.

  • How to write data from query into Real time cube?

    Hi All,
    Can anyone explain me step by step how to write data into a real time cube from front end queries.
    Thanks in advance

    Hi
    You can do this using Integrated Planning
    You need to create a aggregation level on the Real Time infocube and can create Planning function/sequence, Variables if needed.
    Then you can create query on this aggregation level and you can make the keyfigures Input ready in property pane and you can change the data and save it into cube.
    Please find below help link which clearly explains step by step about Integrated Planning like creating input ready queries etc.,
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/0c033316cd2bc4e10000000a114cbd/frameset.htm
    Regards
    Ravi

  • What is the sql query for the real time reports Resource Stats?

    Does anyone know what the query is that the real time report tool uses for the Resource Stats page?  Trying to develop a custom report that displays similar information that is updated regularly.

    Hi,
    009 wrote:
    Hi Frank,
    Just wanted your opinion on the above given SQLI'm not sure I understand it.
    I added some more formatting to help me read it:
    SELECT      A
    ,     CASE WHEN LAG(A,1) OVER (ORDER BY A) IS NULL
              OR A=LAG(A,1) OVER (ORDER BY A)
              THEN LAG(B,1) OVER (ORDER BY A)
         END B_LAG
    ,     B
    FROM     (
         SELECT A, B
         FROM
              SELECT '1'A,'Apple' B FROM DUAL UNION ALL
              SELECT '1'A,'cat'B FROM DUAL UNION ALL
              SELECT '2'A,'bat'B FROM DUAL UNION ALL
              SELECT '3'A,'rat'B FROM DUAL UNION ALL
              SELECT '2'A,'yellow'B FROM DUAL UNION ALL
              SELECT '1'A,'pin'B FROM DUAL
         CONNECT BY PRIOR A=B
         ORDER BY A
    );What is the purpose of the CONNECT BY in what you have so far?
    Is the idea that you will add another CONNECT BY query, using
    CONNECT BY  b_lag  = PRIOR b?
    Do you think that will be better than using ROW_NUMBER?
    Will it work if (a, b) is not unique?

  • SQL Query for real time resource stats

    Does anyone know what the query would be to duplicate the real time resource stats page in version 8 or above of UCCX?  I need to build a custom web page that displays the same information.  I've got all the connectivity to the database just fine and can query it and display information.  Just can't figure out what the SQL would be that would extract that information.

     Michael,
    you can try :
    SELECT x.resourceName, t.eventType, x.datetime FROM (SELECT t1.resourceID, t1.resourceName, MAX(t2.eventDateTime) AS datetime FROM Resource AS t1 INNER JOIN AgentStateDetail AS t2 ON t2.agentID = t1.resourceID GROUP BY t1.resourceID, t1.resourceName ) AS x INNER JOIN AgentStateDetail AS t ON t.agentID = x.resourceID AND t.eventDateTime = x.datetime ORDER BY x.resourceName
    You will need to translate the eventType into the "readable" status like Talking or Not Ready with an IF or Case statement.
    Regards,
    Jeroen

  • MYSQL Query Real Time

    Hi. I'm new to java so hang in there with me. What I need to be able to do is have a Java app that queries a very small amount of mysql data every 1 or 2 seconds. I need that data refreshed real time. I have created the project in Netbeans and it queries the mysql data correctly. How do I get it to update every second or two? thank you for your help!
    Ryan
    Edited by: crusherdestroyer on Jan 11, 2010 3:44 PM

    Use a Timer/TimerTask?

Maybe you are looking for

  • Fatal Internal Error: "image.cpp", line 13192 when trying to insert a cursor to graph

    NOTE:  This IS a duplicate post from the Breakpoint.  Text slightly changed.  The post in Breakpoint can be deleted.  All comments should be placed in this thread. I resolved the "Fatal Internal Error: "image.cpp", line 13192 when trying to insert a

  • Changing what happens when the I close the lid?

    I recently switched from Windows to a 13" MacBook Pro. I really like my MacBook, however, I was wondering if there was a way to set what the computer does when I close the lid (i.e. instead of going to sleep is there a way to tell it to just stay on

  • Page not found in ABAP Workbench

    Hi, I have installed ABAP Development Workbench included in "ABAP Objects" book.  When I do SAP logon and bring up ABAP Development Workbench,  I do not see the Object lists in the object navigator and instead "Page not found" error shows up.  Can an

  • Why placed object frame moves without content

    I've been using ID CC for a few months (previously used ID 5) and have been having a problem moving a placed image. I'm sure I'm missing some knowledge of something that changed with the upgrade path, but can't figure out what. It used to be that I'd

  • Two buttons in Adobe Form

    Hello, I am using Netweaver 2004s SP10. Does any body know how to incorporate two buttons in a Adobe Interactive Form. I want to insert approve button and reject button with different actions for each button. Moreover, How can we remove the toolbar b