SWITCHOVER_STATUS value are different for Oracle 11gR1 and 11gR2

Hi All,
I would like to know why is there a difference in the SQL output when run on a 11gR1 and 11gR2 Primary database in a DataGuard configuration.
On a 11gR1 Primary database
Open an SQL Session on the Primary database and run the SQL statement
SQL> select switchover_status from v$database;
To Standby
Now open a second SQL Session
Run the above SQL statement
SQL> select switchover_status from v$database;
Sessions Active
Now, when I do the same on a 11gR2 Primary database here is the result
On a 11gR2 Primary database
Open an SQL Session on the Primary database and run the SQL statement
SQL> select switchover_status from v$database;
To Standby
Now open a second SQL Session
Run the above SQL statement
SQL> select switchover_status from v$database;
To Standby
Is this a bug in 11gR2 ? Is there a patch/fix available ?
Oracle 11gR2 version 11.2.0.1.0
TIA,
Sudhir

Hello Loic,
The result on the Standby Database is "Not Allowed". This is because there is no alternative Standby Available.
I have some scripts which does the switchover based on the Database status. As per Oracle 11gR2 DataGuard Admin docs.
Cut pasted for Oracle DataGuard Admin docs.
Step 1 Verify that the primary database can be switched to the standby role.
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
TO STANDBY
1 row selected
Note: The WITH SESSION SHUTDOWN clause can be omitted from
the switchover statement if the query performed in the previous step
returned a value of TO STANDBY.
When I use SQL statement "ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY;" and if there are Active SQL sessions then I get the error
ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY *
ORA-01093: ALTER DATABASE CLOSE only permitted with no sessions connected
Thanks,
Sudhir

Similar Messages

  • In service purchase order, value are different in status tab and when doing service enrty sheet

    please check the value 170360    4080  both are different  why?

    Hi tekhnath,
    Well according to the screen that you posted, the status of a PO can be seen under the status tab in the header of the PO, the value that you see in the service entry sheet is the price of the ordered value, like wise if my net price is 200 and the quantity i am booking is 2 then the value field in the service entry sheet would show 4000. The pending quantity can be seen in the report me2n against the PO number.
    here in your figures 170360 is the remaining order value and 4080 is the value for which you have booked the service entry sheet for.
    Regards,
    Sagnik

  • To find sqlnet version in 11gR1 and 11gR2?

    Hi,
    How can I find out the versions of sqlnet of Oracle 11gR1 and 11gR2?
    When I googled, I got some tips like using following scripts; select * from v$version;
    But, this is not exactly what I am looking for...
    I would like to find out what version of sqlnet is used...
    Thanks in advance,
    - SH

    Another way is - $ORACLE_HOME/bin/lsnrctl version.
    You get an output like this ->
    TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    Unix Domain Socket IPC NT Protocol Adaptor for Linux: Version 11.2.0.1.0 - Production
    Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
    TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production,,
    The command completed successfully

  • Are there different php functions for Oracle 8 and 9?

    Hi!
    Are there different php functions for Oracle 8 and 9?
    Thanks for your answer!

    You can use the oci8* functions for Oracle 8, 9 and 10.
    It is the most recent PHP interface to Oracle, and uses Oracle's most recent
    API.
    The name oci8 comes from the version number of Oracle - version 8 - when
    Oracle introduced a new C API. It succeeded the original OCI and got the
    common name OCI8. The original OCI now has the common name of OCI7.
    -- CJ

  • The GR value and GR cancellation value are different.

    Dear All,
    Could you please help me with ths?
    We have posted a GR and then cancel it but the values are different. Price control for material is S and there were:
    -No change to PO price
    -No material movements between 2 document postings
    -No invoices posted between time of GR posting and cancellation
    Thanks
    D.

    Hi D_777777,
    Can u explain me what is logic behiind Batch material PPValong with account assgnment
    So that I can think on it
    Regards
    Gitesh

  • BEx:Hierarchies in DIM and FAC are different for Cost Element

    Hi Experts,
    Whenever we execute a report we are getting a warning message as "Hierarchies in DIM and FAC are different for Cost Element", but in report level we are not maintaining hierarchy properties for Cost Element.
    We have executed Master Data tests in RSRV also and still the problem.
    Is any other to do to get rid of this warning message?
    Thanks in Advance.
    Regards,
    RAO.

    Hi all,
    I face the issue like this but with transaction KOAP - Plan settlement
    But, the problem is that, I do not active reconciliation ledger, so I do not maintain any thing relate to reconciation ledger or adjustment posting? I can do transaction "actual settlement"  without error
    So, How this error come to me?
    And how I can fix it?
    Thanks all!

  • Whats are the connectors downloadable names for Oracle ERP and HRMS?

    Hi,
    I tried to download connector for Oracle ERP and HRMS. But there is not connectors for the same. Am looking at wrong place?
    Can someone give me downloadable links for Oracle ERP and HRMS!!
    Thanks,
    murli

    Oracle is rearranging the download page again.
    Go here: http://www.oracle.com/technology/software/products/ias/htdocs/connectors.html
    for connectors.
    Best regards
    -Martin

  • Values are different  from R/3---A.H.P R SOMEBODY PLZ HELP

    Hi gurus,
    i have a weekly stock cube in Inventory
    when i check the stock value for a material its correct but the material has different sizes like a, b, c, but the sock values of the material in different sizes are not matching at all with R/3 but the overall stock value is matching
    what could be the reason ????
    In weekly stock cube will it also consider daily recipts and issues and give us the exact report even the week is not completed for example
    we have already completed 22 weeks and r running in 23 week so if want a status of a material will it show only the status as of 22nd week r else it will take into considerataion into the 23 issues and receipts.
    becoz i am using the stock cube which is only having time char as 0calweek and r/3 is giving stock details as of now.
    regards
    neelu
    Message was edited by: Neel Kamal

    Hi DMK,
    We are using the SAP standard cube AFMM_C02--> stock on weekly basis.
    so even the update rules are standard and we have not done anything to get the size values has we have standard object called grid value when we try to view information in drill down by sizes then we are not getting the right info for the grid values
    and we are having deltas every day.....then even if we have entered into the 22nd week it should show us the actual quantity right
    and i have found this code in my update rules....its a standard one and its almost the same for other 3 keyfigures
    IF ( COMM_STRUCTURE-PROCESSKEY = '100'   "Other Issues
       OR COMM_STRUCTURE-PROCESSKEY = '101'   "Returns / Vendor
       OR COMM_STRUCTURE-PROCESSKEY = '104'   "Material Transfer
       OR COMM_STRUCTURE-PROCESSKEY = '105'   "Stock Adjustment InvD -
       OR COMM_STRUCTURE-PROCESSKEY = '106'   "Stock Adjustment Other -
       OR COMM_STRUCTURE-PROCESSKEY = '110' ) "Issues from Stock Transfers
      AND COMM_STRUCTURE-BWAPPLNM EQ 'MM'
    Only movements which are relevant for stock control
      AND COMM_STRUCTURE-STOCKRELEV = '1'
      AND COMM_STRUCTURE-CPQUABU <> 0.
    result value of the routine
       RESULT = COMM_STRUCTURE-CPQUABU.
    if the returncode is not equal zero, the result will not be updated
       RETURNCODE = 0.
    ELSE.
    if the returncode is not equal zero, the result will not be updated
       RETURNCODE = 4.
    ENDIF.
    if abort is not equal zero, the update process will be canceled
    ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    PLZ MAKE ME UNDERSTAND WHAT DOES THIS CODE MEANS I HAVE NO KNOWLEDGE IN ABAP.
    THANKS
    thanks and regards
    neelu
    Message was edited by: Neel Kamal

  • Issue with .profile for oracle 9i and 10g

    Here I have six oracle 9i databases on one box. I am going to upgrade five of them to oracle 10g and want to keep one database RCAT in oracle 9i for one or two week.
    So, when I do upgrade I have to setup oracle home for 10g and also profile for oracle user for 10g (correct me if I m wrong). But now I want one database RCAT on oracle 9i. How can I take care of this.
    I mean how I will handle profile and all other thing for oracle 9i and 10g at the same time.
    Thanks,
    Vishal

    Install 10g under the same OS user as 9i, of course on a different Oracle Home. Then you configure your .profile consequently. Just as an example, this is my .bash_profile with 10g and 11g with the same oracle OS user :
    [oracle@linux5 ~]$ cat .bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
            . ~/.bashrc
    fi
    export EDITOR=vi
    export ORACLE_BASE=/home/oracle/base
    umask 022
    o10()
    {       export ORACLE_SID=db102
            export ORACLE_HOME=$ORACLE_BASE/OraHome10
            export LD_LIBRARY_PATH=$ORACLE_HOME/lib
            export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
            export TNS_ADMIN=$ORACLE_BASE/OraHome11/network/admin
            export PS1='[\u@\h_10 \W]\$ '
    o11()
    {       export ORACLE_SID=db11
            export ORACLE_HOME=$ORACLE_BASE/OraHome11
            export LD_LIBRARY_PATH=$ORACLE_HOME/lib
            export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
            export PS1='[\u@\h_11 \W]\$ '
    s()
    {       sqlplus / as sysdba
    asm()
    {       export ORACLE_SID=+ASM
    db10()
    {       export ORACLE_SID=db102
    db11()
    {       export ORACLE_SID=db11
    asm10()
    {       export ORACLE_SID=asm10
    [oracle@linux5 ~]$

  • Balance Display are different for the same GL account in FS10N & FAGLB03

    Hi,
    It was noted that the GL account Balance Display are different for the same GL account in FS10N & FAGLB03.
    Please advice what would have cause the matter.
    Thank you,
    Regards,

    Hi Vani,
    Think you are using version 6.0.
    I had observed that TCode FAGLB03, displayes balances for particular Ledger (0L) leading by default.
    While in FS10N there is no option for selecting ledger.
    Try FAGLB03 with all ledgers one by one.
    Add the total and then try to matc wiht FS10N.
    Assign points of Good.
    thanks

  • Hi, I would like to install my Creative Suite 5.5 Design Standard - I got the serial number and disk, but you are asking for another product and serial number that I dont have? What should I do?

    Hi, I would like to install my Creative Suite 5.5 Design Standard - I got the serial number and disk, but you are asking for another product and serial number that I dont have? What should I do?

    The serial number that you might have is an upgrade version & it will be asking for a previous qualifying version serial number.
    The issue can be different too, please contact Adobe Support for resolution: http://adobe.ly/yxj0t6
    Regards
    Rajshree

  • Is there any impact analysis tool for Oracle Forms and Reports

    Hi All
    We are curretly looking at tools available to do impact analysis in Oracle Forms and Reports. This is for the maintainance of a large Oracle application developed using forms and reports 10g. We use Oracle Designer but only to maintain the db structure and not for forms and reports generation. Our intension is to find out the impact of db model changes, stored procedure changes in Oracle Forms and Reports. Please suggest any tools that are currently used for this purpose.
    I remember manually maintaining the CRUD matrix for Oracle Forms and Reports for maintainance purpose. CRUD matrix will have the list of all the tables which are affected by the module. But this is a manual activity and hence the responsibility is with the dev team to keep the document updated. Please suggest if there is any alternative to this way which can be more effecient and less error prone...
    I also wonder how these are done in Oracle ERP? how the apps team in oracle is maintaining the forms and reports?
    Thnaks in Advance
    Mahesh Mathew

    Quest (the makers of TOAD) have a tool called SQL Impact which gathers data from forms, reports, triggers, packages etc.
    FormsMate is a simple, cheap alternative for comparing or searching in forms.
    http://www.jockvale.ca/products.html
    Alternatively, you can export forms to xml (with iff2xml90.bat) and reports to jsp (with rwconverter) and simply grep those and your sql scripts. There are grep tools for windows if you need.

  • What temperatures are acceptable for the CPU and Graphics card?

    I have Intel Xeon X5400 series CPUs and a Nvidia graphics card.  
    It is interesting to monitor the temperatures but only if you know what temps matter...
    What temperatures are acceptable for the CPU and Graphics card? 
    I was not sure if this is the document of choice for the CPU or not. I was not sure I was decifering it correctly either. 
    http://download.intel.com/design/xeon/datashts/318589.pdf
    Any one know what we should be watching for as far as what is too hot? 
    I have a ThinkStation D10.
    Did not see this in the user manual but could have missed it. 

    I found my specs:
    Intel(R) Xeon(R) CPU           E5405  @ 2.00GHz
    You are correct. An E series. 
    I was so focused on the upgrade to the X5420 that I forgot what the system came with. 
    So what should I set my sensor high value to on my sensor program that shows up on the panel (taskbar)?
    For the E5405 or the X5420? 
    SIDE NOTE: where can I get 2 E5420s or better cheap? 
    Not ready to give up my filters just yet. I live in a dust factory! 
    My girl friend sews really nice bags but creates sewing dust and fuzz. 
    And well there are natural fibers everywhere...
    So other than the the X5492 (150watts),  the X5482, X5472,  X5470, X5460, X5450 are all 120 watts.
    Like the bulk of the X series...
    The E5405, E5410, E5450, E5440, E5420, E5430, E5470, E5462, E5472 are all 80 watts.
    The L series seems to all be 50 Watts.  
     For many the other Processors see this:
    http://www.intel.com/products/processor/xeon5000/specifications.htm?iid=products_xeon5000+tab_specs
    Message Edited by VitalBodies on 12-06-2008 08:46 PM
    Message Edited by VitalBodies on 12-06-2008 09:03 PM

  • For oracle database and websphere on LINUX

    Hi
    All,
    I have installled Oracle database 10.2.0.3 on AIX server and Application will be hosted on websphere on LINUX.
    Now I don't know what are the things require to connect with oracle database from websphere application on LINUX.. for example .. connection string , driver etc..
    any help will be appreciated.
    Thanks,
    Vishal

    Already answered at the dup post --> Re: For Oracle Database and WEbsphere
    ~ Madrid
    http://hrivera99.blogspot.com

  • Using MISSING FIELD VALUES ARE NULL for external table

    I want to place a null for values missing in the sub_account field. Here is my external table:
    CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_log_dir
    AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\log';
    CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_bad_dir
    AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\bad';
    create table ext_INCOMING_ORDERS_table (
    Account varchar(5),
    Sub_Account varchar(1),
    Override_Code varchar(1),
    Nomenclature varchar(28),
    chg_nbr varchar(3),
    quantity integer,
    U_I varchar(5),
    zipcode varchar(5),
    type_reject varchar(2)
    organization external
    type oracle_loader
    default directory user_dir
    access parameters
    records delimited by newline
    missing field values are null
    badfile INCOMING_ORDERS_bad_dir:'INCOMING_ORDERS%a_%p.bad'
    logfile INCOMING_ORDERS_log_dir:'INCOMING_ORDERS%a_%p.log'
    fields
    Account(1:5) char(5),
    Sub_Account(7:7) char(1),
    Override_Code(10:10) char(1),
    Nomenclature(11:38) char(28),
    chg_nbr(40:42) char(3),
    quantity(44:48) integer external,
    U_I(50:54) char(5),
    zipcode(56:60) char(5),
    type_reject(61:62) char(2)
    location('PTCLICK.MANUAL.NOMEN.TXT','PTCLICK.ORDERS.TXT', 'EUR_RES.TXT', 'MQ.TXT', 'BPRO.TXT')
    reject limit unlimited;
    How can I place the MISSING FIELD VALUES ARE NULL for missing values for the sub_account?

    made the change I received this error:
    SQL> select * from ext_INCOMING_ORDERS_table;
    select * from ext_INCOMING_ORDERS_table
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-00554: error encountered while parsing access parameters
    KUP-01005: syntax error: found "no": expecting one of: "comma, date_format,
    defaultif, enclosed, ltrim, lrtrim, ldrtrim, notrim, nullif, optionally, ),
    rtrim, terminated"
    KUP-01007: at line 7 column 26
    CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_log_dir
    AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\log';
    CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_bad_dir
    AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\bad';
    create table ext_INCOMING_ORDERS_table (
    Account varchar(5),
    Sub_Account varchar(1),
    Override_Code varchar(1),
    Nomenclature varchar(28),
    chg_nbr varchar(3),
    quantity integer,
    U_I varchar(5),
    zipcode varchar(5),
    type_reject varchar(2)
    organization external
    type oracle_loader
    default directory user_dir
    access parameters
    records delimited by newline
    badfile INCOMING_ORDERS_bad_dir:'INCOMING_ORDERS%a_%p.bad'
    logfile INCOMING_ORDERS_log_dir:'INCOMING_ORDERS%a_%p.log'
    fields
    Account(1:5) char(5),
    Sub_Account(7:7) char(1) NO PRESERVE BLANKS,
    Override_Code(10:10) char(1),
    Nomenclature(11:38) char(28),
    chg_nbr(40:42) char(3),
    quantity(44:48) integer external,
    U_I(50:54) char(5),
    zipcode(56:60) char(5),
    type_reject(61:62) char(2)
    location('PTCLICK.MANUAL.NOMEN.TXT','PTCLICK.ORDERS.TXT', 'EUR_RES.TXT', 'MQ.TXT', 'BPRO.TXT')
    reject limit unlimited;

Maybe you are looking for