How to extract data from virtual cube..?

Gurus,
How can i read data from an virtual infocube thru an ABAP code..Is there any FM that i can use..
Kindly Help me in this...
Really URGENT..
Thanks
Sam

Subray,
Thanks for the reply..I have created a wrapper for this FM in the same way te DEMO program shows but still doesn't wrk.
No data is returned in the Table.
I also tried using the FM RSDRI_INFOPROV_READ_RFC and it does some processing but does nt return the results..
I am attaching my code...Can u please help me with that...
TYPES:
  BEGIN OF gt_s_data,
  cs_version(3) TYPE c,
  cs_chart(2) TYPE c,
  bcs_llob(4) TYPE c,
  bcs_lcus(3) TYPE c,
  bcs_ldch(2) TYPE c,
  bcs_lprg(5) TYPE c,
  curkey_lc TYPE /BI0/OICURKEY_LC,
  curkey_tc TYPE /BI0/OICURKEY_TC,
  bcs_lmay TYPE /BIC/OIBCS_LMAY,
  figlxref3 TYPE /BIC/OIFIGLXREF3,
  unit TYPE /BI0/OIUNIT,
  CS_TRN_LC TYPE /BI0/OICURKEY_GC,
  CS_TRN_TC TYPE /BI0/OICURKEY_GC,
  CS_TRN_QTY TYPE /BI0/OIUNIT,
  END OF gt_s_data.
  DATA:
  l_msg_text TYPE string,
  g_s_sfc    TYPE rsdri_s_sfc,
  g_th_sfc   TYPE rsdri_th_sfc,
  g_s_sfk         TYPE rsdri_s_sfk,
  g_th_sfk        TYPE rsdri_th_sfk,
  g_s_range       TYPE rsdri_s_range,
  g_t_range       TYPE rsdri_t_range.
  DATA:
  g_s_data        TYPE gt_s_data,
  g_t_data        TYPE STANDARD TABLE OF gt_s_data,
  g_t_rfcdata     TYPE rsdri_t_rfcdata,
  g_t_sfc         TYPE rsdri_t_sfc,
  g_t_sfk         TYPE rsdri_t_sfk,
  g_t_field       TYPE rsdp0_t_field.
  DATA:
  g_first_call   TYPE rs_bool.
  g_first_call  = rs_c_true.
CLEAR g_s_sfc.
g_s_sfc-chanm    = '0CS_VERSION'.
g_s_sfc-chaalias = 'cs_version'.
g_s_sfc-orderby  = 0.
INSERT g_s_sfc INTO TABLE g_th_sfc.
CLEAR g_s_sfc.
g_s_sfc-chanm    = '0CS_CHART'.
g_s_sfc-chaalias = 'CS_CHART'.
g_s_sfc-orderby  = 0.
INSERT g_s_sfc INTO TABLE g_th_sfc.
CLEAR g_s_sfc.
g_s_sfc-chanm    = 'BCS_LLOB'.
g_s_sfc-chaalias = 'BCS_LLOB'.
g_s_sfc-orderby  = 0.
INSERT g_s_sfc INTO TABLE g_th_sfc.
CLEAR g_s_sfc.
g_s_sfc-chanm    = 'BCS_LCUS'.
g_s_sfc-chaalias = 'BCS_LCUS'.
g_s_sfc-orderby  = 0.
INSERT g_s_sfc INTO TABLE g_th_sfc.
CLEAR g_s_sfc.
g_s_sfc-chanm    = 'BCS_LDCH'.
g_s_sfc-chaalias = 'BCS_LDCH'.
g_s_sfc-orderby  = 0.
INSERT g_s_sfc INTO TABLE g_th_sfc.
CLEAR g_s_sfc.
g_s_sfc-chanm    = 'BCS_LPRG'.
g_s_sfc-chaalias = 'BCS_LPRG'.
g_s_sfc-orderby  = 0.
INSERT g_s_sfc INTO TABLE g_th_sfc.
CLEAR g_s_sfc.
g_s_sfc-chanm    = '0CURKEY_GC'.
g_s_sfc-chaalias = 'CURKEY_LC'.
g_s_sfc-orderby  = 0.
INSERT g_s_sfc INTO TABLE g_th_sfc.
CLEAR g_s_sfc.
g_s_sfc-chanm    = '0CURKEY_GC'.
g_s_sfc-chaalias = 'CURKEY_TC'.
g_s_sfc-orderby  = 0.
INSERT g_s_sfc INTO TABLE g_th_sfc.
CLEAR g_s_sfc.
g_s_sfc-chanm    = 'BCS_LMAY'.
g_s_sfc-chaalias = 'BCS_LMAY'.
g_s_sfc-orderby  = 0.
INSERT g_s_sfc INTO TABLE g_th_sfc.
CLEAR g_s_sfc.
g_s_sfc-chanm    = 'FIGLXREF3'.
g_s_sfc-chaalias = 'FIGLXREF3'.
g_s_sfc-orderby  = 0.
INSERT g_s_sfc INTO TABLE g_th_sfc.
CLEAR g_s_sfc.
g_s_sfc-chanm    = '0UNIT'.
g_s_sfc-chaalias = 'UNIT'.
g_s_sfc-orderby  = 0.
INSERT g_s_sfc INTO TABLE g_th_sfc.
***Fill up the key figures data.
CLEAR g_s_sfk.
g_s_sfk-kyfnm    = '0CS_TRN_GC'.
g_s_sfk-kyfalias = 'CS_TRN_LC'.
g_s_sfk-aggr     = 'SUM'.
INSERT g_s_sfk INTO TABLE g_th_sfk.
CLEAR g_s_sfk.
g_s_sfk-kyfnm    = '0CS_TRN_GC'.
g_s_sfk-kyfalias = 'CS_TRN_TC'.
g_s_sfk-aggr     = 'SUM'.
INSERT g_s_sfk INTO TABLE g_th_sfk.
CLEAR g_s_sfk.
g_s_sfk-kyfnm    = '0CS_TRN_QTY'.
g_s_sfk-kyfalias = 'CS_TRN_QTY'.
g_s_sfk-aggr     = 'SUM'.
INSERT g_s_sfk INTO TABLE g_th_sfk.
Fill up selection criteria.
CLEAR g_s_range.
g_s_range-chanm    = '0CS_VERSION'.
g_s_range-sign     = rs_c_range_sign-including.
g_s_range-compop   = rs_c_range_opt-equal.
g_s_range-low      = '100'.
APPEND g_s_range TO g_t_range.
CLEAR g_s_range.
g_s_range-chanm    = 'BCS_VERS'.
g_s_range-sign     = rs_c_range_sign-including.
g_s_range-compop   = rs_c_range_opt-equal.
g_s_range-low      = 'ACT'.
APPEND g_s_range TO g_t_range.
CLEAR g_s_range.
g_s_range-chanm    = '0CS_CHART'.
g_s_range-sign     = rs_c_range_sign-including.
g_s_range-compop   = rs_c_range_opt-equal.
g_s_range-low      = 'ZG'.
APPEND g_s_range TO g_t_range.
CLEAR g_s_range.
g_s_range-chanm    = '0CO_AREA'.
g_s_range-sign     = rs_c_range_sign-including.
g_s_range-compop   = rs_c_range_opt-equal.
g_s_range-low      = 'AZ01'.
APPEND g_s_range TO g_t_range.
CLEAR g_s_range.
g_s_range-chanm    = '0FISCVARNT'.
g_s_range-sign     = rs_c_range_sign-including.
g_s_range-compop   = rs_c_range_opt-equal.
g_s_range-low      = 'K2'.
APPEND g_s_range TO g_t_range.
CLEAR g_s_range.
g_s_range-chanm    = '0FISCYEAR'.
g_s_range-sign     = rs_c_range_sign-including.
g_s_range-compop   = rs_c_range_opt-equal.
g_s_range-low      = '2007'.
APPEND g_s_range TO g_t_range.
CLEAR g_s_range.
g_s_range-chanm    = '0FISCPER3'.
g_s_range-sign     = rs_c_range_sign-including.
g_s_range-compop   = rs_c_range_opt-equal.
g_s_range-low      = '003'.
APPEND g_s_range TO g_t_range.
CLEAR g_s_range.
g_s_range-chanm    = '0SEM_CGCOMP'.
g_s_range-sign     = rs_c_range_sign-including.
g_s_range-compop   = rs_c_range_opt-equal.
g_s_range-low      = 'US0075'.
APPEND g_s_range TO g_t_range.
g_t_sfc = g_th_sfc.
g_t_sfk = g_th_sfk.
CALL FUNCTION 'RSDRI_INFOPROV_READ_RFC'
  EXPORTING
    I_INFOPROV                   = 'BCS_C1V11'
  I_REFERENCE_DATE             = SY-DATUM
  I_SAVE_IN_TABLE              = ' '
  I_TABLENAME                  =
  I_SAVE_IN_FILE               = ' '
  I_FILENAME                   =
  I_AUTHORITY_CHECK            = RSDRC_C_AUTHCHK-READ
  I_CURRENCY_CONVERSION        = 'X'
  I_S_RFCMODE                  =
  I_MAXROWS                    = 0
  I_USE_DB_AGGREGATION         = RS_C_TRUE
  I_USE_AGGREGATES             = RS_C_TRUE
  I_ROLLUP_ONLY                = RS_C_TRUE
  I_READ_ODS_DELTA             = RS_C_FALSE
  I_RESULTTYPE                 = ' '
  I_DEBUG                      = RS_C_FALSE
IMPORTING
  E_END_OF_DATA                =
  E_AGGREGATE                  =
  E_RFCDATA_UC                 =
  E_SPLIT_OCCURRED             =
  TABLES
    I_T_SFC                      = g_t_sfc
    I_T_SFK                      = g_t_sfk
   I_T_RANGE                     = g_t_range
  I_T_TABLESEL                 =
  I_T_RTIME                    =
  I_T_REQUID                   =
   E_T_RFCDATA                   = g_t_rfcdata
  E_T_RFCDATAV                 =
   E_T_FIELD                     = g_t_field
EXCEPTIONS
  ILLEGAL_INPUT                = 1
  ILLEGAL_INPUT_SFC            = 2
  ILLEGAL_INPUT_SFK            = 3
  ILLEGAL_INPUT_RANGE          = 4
  ILLEGAL_INPUT_TABLESEL       = 5
  NO_AUTHORIZATION             = 6
  GENERATION_ERROR             = 7
  ILLEGAL_DOWNLOAD             = 8
  ILLEGAL_TABLENAME            = 9
  ILLEGAL_RESULTTYPE           = 10
  X_MESSAGE                    = 11
  DATA_OVERFLOW                = 12
  OTHERS                       = 13
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'RSDRI_DATA_UNWRAP'
  EXPORTING
    i_t_rfcdata = g_t_rfcdata
  CHANGING
    c_t_data    = g_t_data.

Similar Messages

  • How to extract data from info cube into an internal table using ABAP code

    HI
    Can Anyone plz suggest me
    How to extract data from info cube into an internal table using ABAP code like BAPI's or function modules.
    Thankx in advance
    regds
    AJAY

    HI Dinesh,
    Thankq for ur reply
    but i ahve already tried to use the function module.
    When I try to Use the function module RSDRI_INFOPOV_READ
    I get an information message "ERROR GENERATION TEST FRAME".
    can U plz tell me what could be the problem
    Bye
    AJAY

  • How to extract data from BW cube

    Hello friends,
    Kindly advice me how to extract data from BW cube.
    My requirement is to write an ABAP program to retrive the data from the BW cube.
    Kindly provide me any sample code for my requirement.
    Thanks in advance.
    S.Jaffer Ali

    Hi Jaffer,
    If you want to load the data from the BW cube into any other Cube/ODS in the same of another BW system you can use the export datasource.
    If you want to load the data from the BW cube into any other system then you can use any of these options:
    1. Infospoke - Open hub service and is widely used.
    2. APD
    3. RFC enabled fn modules.
    Bye
    Dinesh

  • How extract data from bw cube to MS SQL server.

    Hi all,
           This is Sateesh.In my requirement, i need to extract date from  BW Cube and to be moved to MS SQL server.can any one give  the slution .Pls give me the process how to move from bw to sql server.

    HI Kumar,
                       Try with Open Hub.........
    Check these.....
    http://help.sap.com/saphelp_nw04/helpdata/en/66/76473c3502e640e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c5/03853c01c89d7ce10000000a11405a/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/59/90070982d5524b931ae16d613ac04a/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/c2463c6796e61ce10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/43f92595-0501-0010-5eb5-bb772d41ffa4
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e830a690-0201-0010-ac86-9689620a8bc9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f12a03d-0401-0010-d9a7-a55552cbe9da
    http://help.sap.com/saphelp_nw04/helpdata/en/66/76473c3502e640e10000000a114084/frameset.htm
    /people/happy.tony/blog/2006/09/18/hyperion-essbase-data-extraction-transformation-and-loading
    /people/marc.bernard/blog/2005/07/11/reorganization-of-sap-business-intelligence-forums
    Using OpenHub Unix to export to SQL Server
    Infospoke
    HOW TO RETRACT DATA FROM BPS 7.1 TO SRM 5.0
    Regards,
    Vijay.

  • Best way to extract data from archived cube

    Hello Experts,
    Can anyone tell me best way to extract data from archived cube.
    Basically I am trying to pull all the data from archived cube and then load it into another brand new infoprovider which is in different box.
    Also I need to extract all the master data for all infoobjects.
    I have two options in my mind:
    1) Use open hub destination
    or
    2) Infoprovider>display data>select the fields and download the data.
    Is it really possible to extract data using option (2) if records are too high and then load it into another infoprovider in new system.
    Please suggest me the pros and cons for the two options.
    Thanks for your time in advance.

    Hello Reddy,
    Thanks a lot for your quick reply.
    Actually in my case I am trying to extract archived infocube data and then load it into new infoprovider which is in different system. If I have connectivity I can simply export data source from archived infocube and then reload into new infoprovider.
    But there is no connectivity between those two systems (where archived cube is and new infoprovider) and so I am left with the two options I mentioned.
    1) Use Open Hub
    or
    2) Extract data manually from infoprovider into excel.
    Can anyone let me know which of the two options is the best and also I doubt on how to use excel in extracting data as excel have limit of no.of records 65536
    Thanks
    Edited by: saptrain on Mar 12, 2010 6:13 AM

  • How to extract data from SAP in FDM 11121

    I came across some documents from version 11113, says there is a SAP adapter, however ,when I check 11121 there's no such adapter, does anyone know how to extract data from SAP in FDM 11121?

    I download a package from Bristlecone, but I dont see any xml files in it, just a bunch of dll and I didn't find any instructions on how to set up/configure in FDM, it just explained how to register in SAP app server and client.
    Hyperion 11113 has readme on sap adapter(Hyperion Readme Template), but I cannot find the same readme file in 11121, all I can find is ERP Integration Adapter document. any idears where I can find at least a readme document?

  • How to extract data from web URL

    I was doing one project which need to extract data from web pages and then analyze these data. the question is how to extract data from there, using html parser? need help, thanks a lot

    I was doing one project which need to extract data
    from web pages and then analyze these data. the
    question is how to extract data from there, using
    html parser? need help, thanks a lotTry this:
    http://java.sun.com/docs/books/tutorial/networking/urls/readingURL.html
    Or, like you said yourself, use an HTML parser:
    http://java-source.net/open-source/html-parsers

  • How to extract data from Chart History?

    Dear all, I have read a lot of posts, but still don't understand how to extract data from Chart history.
    Suppose you acquired 1024 points of data every time, then use "build array" to build an array, then send to intensity chart to show, then save the history into a .txt file,  but how to extact data from the file?
    How Labview store the data in the 2D history buffer?
    Anybody has any examples?

    The simplest would be to save the 2D array as a spreadsheet file, the read it back the same way.
    Maybe the attached simple example can give you some ideas (LabVIEW 7.1). Just run it. At any time, press "write to file". At any later time, you can read the save data into the second history chart.
    If you are worried about performance, it might be better to use binary files, but it will be a little more complicated. See how far you get.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    IntensityChartHistorySave.vi ‏79 KB

  • How to extract data from planning book

    nu t apo. need help regarding how to extract data from planning book givn the planning book name , view name & some key figures.
    Total Demand (Key Figure DMDTO):
    o     Forecast
    o     Sales Order
    o     Distribution Demand (Planned)
    o     Distribution Demand (Confirmed)
    o     Distribution Demand (TLB-Confirmed)
    o     Dependent Demand
    Total Receipts (Key Figure RECTO):
    o     Distribution Receipt (Planned)
    o     Distribution Receipt (Confirmed)
    o     Distribution Receipt (TLB-Confirmed)
    o     In-Transit
    o     Production (Planned)
    o     Production (Confirmed)
    o     Manufacture of Co-Products
    Stock on Hand (Key Figure STOCK):
    o     Stock on Hand (Excluding Blocked stock)
    o     Stock on Hand (Including Blocked stock)
    In-Transit Inventory (Cross-company stock transfers)
    Work-in-progress (Planned orders / Process orders with start date in one period and finish date in another period)
    Production (Planned), Production (Confirmed) and Distribution Receipt elements need to be converted based on Goods Receipt date for projected inventory calculation.

    Hello Debadrita,
    Function Module BAPI_PBSRVAPS_GETDETAIL2 or BAPI_PBSRVAPS_GETDETAIL can help you.
    For BAPI BAPI_PBSRVAPS_GETDETAIL, the parameters are:
    1) PLANNINGBOOK - the name of your planning book
    2) DATA_VIEW - name of your data view
    3) KEY_FIGURE_SELECTION - list of key figures you want to read
    4)  SELECTION - selection parameters which describe the attributes of the data you want to read (e.g. the category or brand). This is basically a list of characteristics and characteristic values.
    BAPI_PBSRVAPS_GETDETAIL2 is very similar to BAPI_PBSRVAPS_GETDETAI but is only available from SCM 4.1 onwards.
    For the complete list of parameters, you can go to transaction SE37, enter the function module names above and check out the documentation.
    Please post again if you have questions.
    Hope this helps.

  • How to extract data from ODS to non-SAP system

    Hi,
    Can anybody tell me, step by step, how to extract data from ODS to a non-SAP system?
    Is it possible to do it without programming effort? And is there volume limits for this kind of extraction?
    The non-SAP system is an unix system.
    Thanks in advance
    Ella

    Ella,
    You can look at it from the concept of a BADI / Infospoke
    Extract the data from the ODS to a Flat file / RDBMS using an infospoke. I am not sure as to how the infospoke loads data into the RDBMS ( did it very long ago ) but then you can push it into an RDBMS and I am sure it will be system neutral.
    Hope this helps...
    Arun
    Assign points if it helps

  • How to extract data from custom made Idoc that is not sent

    Hi experts,
    Could you please advise if there is a way how to extract data from custom made idoc (it collects a lot of data from different SAP tables)? Please note that this idoc is not sent as target system is not fully maintained.
    As by now, we would like to verify - what data is extracted now.
    Any help, would be appreciated!

    Hi,
    The fields that are given for each segment have their length given in EDSAPPL table. How you have to map is explained in below example.
    Suppose for segment1, EDSAPPL has 3 fields so below are entries
    SEGMENT          FIELDNAME           LENGTH
    SEGMENT1         FIELD1                   4
    SEGMENT1         FIELD2                   2
    SEGMENT1         FIELD3                   2
    Data in EDID4 would be as follows
    IDOC           SEGMENT                          APPLICATION DATA
    12345         SEGMENT1                        XYZ R Y
    When you are extracting data from these tables into your internal table, mapping has to be as follows:
    FIELD1 = APPLICATIONDATA+0(4)        to read first 4 characters of this field, because the first 4 characters in this field would belong to FIELD1
    Similarly,
    FIELD2 = APPLICATIONDATA+4(2).
    FIELD3 = APPLICATIONDATA+6(2).  
    FIELD1 would have XYZ, FIELD2 = R, FIELD3 = Y
    This would remain true in all cases. So all you need to do is identify which fields you want to extract, and simply code as above to extract the data from this table.
    Hope this was helpful in explaining how to derive the data.

  • How to extract data from oracle database directly in to bi7.0 (net weaver)

    how to extract data from oracle database directly in to bi7.0 (net weaver)? is it something do with EDI? can anybody explain me in detail?
    Thanks
    York

    You can use UDConnect to get from Oracle database in to BW
    <b>Data Transfer with UD Connect -</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/78/ef1441a509064abee6ffd6f38278fd/content.htm
    <b>Prerequisites</b>
    You have installed the SAP WAS J2EE Engine with BI Java components.  You can find more information on this in the SAP BW installation guide on the SAP Service Marketplace at service.sap.com/instguides.
    Hope it Helps
    Chetan
    @CP..

  • JDBC-XI-FILE scenario. How to extract data from more than one table in JDBC

    Hi,
    I was asked a question like in JDBC-XI-FILE scenario........ How to extract data from more than one tables (i.e from JDBC system) ?? What is the logic to do the same ??
    I am not sure whether this is a valid question..........but any help in this regards is highly appreciated.
    Regards
    Kumar

    HI,
    Yes it can be possible ,please see the following links
    JDBC  Receiver with Oracle Stored Procedures
    configuring jdbc adapter with multiple tables
    RFC -> XI -> JDBC Scenario Updating Multiple Tables
    /people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
    JDBC Adapter multiple Selects
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=jdbc%20with%20multiple%20tables&cat=sdn_all
    Regards
    Chilla..

  • How to extract data from Essbase to Flat File using ODI

    Hi,
    Anyone know how to extract data from Essbase to Flat File using ODI?
    Thanks in advance.
    Regards,
    Sumardi

    Hi,
    Have you read through :-
    Oracle Data Integrator Adapter for Hyperion Essbase Getting Started - http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/odiess_getting_started.pdf
    Oracle Data Integrator Adapter for Hyperion Essbase User's Guide - http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/odiess_users.pdf
    If you have read them and are still have a problem at what stage are you having the issues?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to extract data from XML file with JavaScript

    HI All
    I am new to this group.
    Can anybody help me regarding XML.
    I want to know How to extract data from XML file with JavaScript.
    And also how to use API for XML
    regards
    Nagaraju

    This is a Java forum.
    JavaScript is something entirely different than Java, even though the names are similar.
    Try another website with forums about JavaScript.
    For example here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3

Maybe you are looking for

  • ITunes won't open but there's no error message...

    ...it just won't open. I just updated to iTunes 7 because of an issue I'm trying to correct with my iPod. I believe I've had this problem with iTunes 7 before, and the last time I ended up reverting to iTunes 6. When I manage to successfully install

  • Display Port - 50" Full HD Plasma, what adapter?

    Hey guys I have this 50" TV, and ofc I want to hook it up with the MB, but how to do it? There is two adapters: Mini DisplayPort to DVI Adapter. "....DVI adapter lets you connect an advanced digital monitor, such as the 20- or 23-inch Apple Cinema Di

  • Multiple Local Product Categories for One ECC Material Group

    Hello experts, I have a question regarding Product Categories. I am using an Extended Classic Scenario and so, I retrieve Material Groups from the backend. Nevertheless, in order to have a more accurate split than ECC Material Groups in SRM, I would

  • Am I "screwed"???

    My G5 took a turn for the worse and I had to rebuild my internal HD. All of my iLife had to be reloaded. Then I realized( after trying to reconnect to my iWeb settings) that I don't have a way to edit my iWeb! Am I screwed for sure? Can I utilize any

  • Archive apply to standby

    Hai all, I confihgured physical standby and it is working fine.. but before making a switch over, oracle recommends to run this query inorder to Make sure the standby database is current with redo application. On each database server, run this query