Applying oracle patchset in oracle-dataguard environment

Hello There,
I wish to apply oracle patchset in oracle dataguard environment.
can you please let me know the steps that has to be taken on Primary & standby database?
is there any specific document for this?
DB - oracle 10.2.0.4
OS - Linxu x86_64
Best Regards
Sachin Bhatt

Hi Sachinn,
To patch primary site, you can find the detailed infirmation in readme.html, in the patch zip file. Additionally, at the standby site, In order to apply the patch;
1) stop the log shipment
2) stop the oracle related services
3) patch the Oracle
4) Startup migrate
5) execute the SQL scripts
6) start the log shipment
Check the link below;
http://dbaforums.org/oracle/index.php?showtopic=17398
Best regards,
Orkun Gedik

Similar Messages

  • Oracle patching on Dataguard Environment

    Hi,
    I have to do oracle patching on my customer system having Dataguard environment.
    Can someone please guide me, if i have to run installer on both primary and standby server or not ?
    Is someone has done it in past, please share your experience.
    Thanks,
    Kanchan

    In Readme they have just mentioned to refer oracle note 278641.1. When i checked that note, it says
    1. In the primary disable log shipping to the standby site.
    2. Shutdown the standby site and apply interim patchsets to the RDBMS binaries as per the README. This includes Patchset/Patchset Update (PSU)/Critical Patch Update (CPU). You will not be able to and do not need to run the scripts (catpatch.sql etc) against the standby rdbms itself.
    3. Shutdown the primary site, apply the Patchset/PSU/CPU patch to the RDBMS binaries and patch the RDBMS itself using the instructions in the README (run catpatch/catbundle/catcpu etc).
    4. Start the primary site, re-enable log shipping to the standby.
    5. At the standby site restart redo apply/managed recovery and the RDBMS changes implemented in the Primary Site through catpatch/catbundle/catcpu will also be applied to the standby.
    Information about Bundle patch is clear. But Applying patchset is not clear.
    Do we need to run catupgrd.sql script on standby after patchset installtion ? or that will also be shipped through logs ?
    and if below command is right for disabling the Log shipping from primary ?
    SQL> alter system set log_archive_dest_state_2=defer scope=both sid='*'

  • Advice on applying Oracle patchset

    Hi all,
    I have to apply the 11.1.0.7 patchset to a test environment. This environment is an Oracle 11G (11.1.0.6) single instance environment running on HP-UX Itanium V11.31. The database uses ASM managed storage. As per recommendations I have set up and configured ASM in a separate 'home' from the database. My questions about applying the patchset are as follows :-
    1. Should I stop everything (i.e OEM, Listener , DB and ASM) before attempting to apply the patchset, even though ASM runs out of a separate home.
    2. Do I need to apply the patchset to the ASM home as well as the DB Home? The patchset notes aren't very clear on this.
    Any advice would be greatly appreciated.
    Thanks,
    Shaun.

    1. Should I stop everything (i.e OEM, Listener , DB and ASM) before attempting to apply the patchset, even though ASM runs out of a separate home.
    You have to stop anything on ORACLE_HOME path, that you will apply patch.
    if you apply on ASM Home anyway, you must stop database + listener .. before.2. Do I need to apply the patchset to the ASM home as well as the DB Home? The patchset notes aren't very clear on this.
    When You need to patch on ASM ORACLE_HOME, that you have to stop database, instance, ASM
    Patch ASM and then DB ...

  • Problem in Installing Release 9.2.0.8 Bundle patchset in Oracle 9.2.0.8.

    Hi,
    Kindly provide me with the Instructions for Installing Release 9.2.0.8 Bundle patchset in Oracle 9.2.0.8.
    I have succesfully done the prepatch Installation Steps.
    But,to apply the bundle patch,i have followed the instructions as given in the Readme.html.
    But i couldn't run the OPatch by entering the following command:
    cd 5845928
    opatch apply
    I am getting the error code : 150.
    ple help me out to proceed further,with the Release 9.2.0.8 Bundle patchset installation.
    With Regards,
    VS Anand.

    Hi Laura,
    Iam getting the following error message while applying the patch.
    C:\oracle\ora92\OPatch\5845928>Opatch apply
    Can't locate Command.pm in @INC (@INC contains: C:\oracle\ora92\OPatch\5845928/p
    erl_modules C:\oracle\ora92\Apache\perl\lib\5.00503 C:\oracle\ora92\Apache\perl
    \5.00503\lib/MSWin32-x86 C:\oracle\ora92\Apache\perl\5.00503\lib C:\oracle\ora92
    \Apache\perl\site\5.00503\lib/MSWin32-x86 C:\oracle\ora92\Apache\perl\site\5.005
    03\lib .) at C:\oracle\ora92\OPatch\5845928\opatch.pl line 91.
    BEGIN failed--compilation aborted at C:\oracle\ora92\OPatch\5845928\opatch.pl li
    ne 91.
    OPatch returns with error code = 2
    With Regards
    V.S.Anand

  • Creating Standby database with Oracle 10gR2 SE (no dataguard). Procedure

    Hello,
    I have problems in creating a standby database without Dataguard (Oracle Standard Edition)
    -Oracle 10gR2 SE (No DataGuard !!!!)
    - SUSE Enterprise 10.
    Both primary and standby databases are running in Virtual machines (lab).
    I will describe the exact steps I followed :
    1.---------------------------------------------------
    Both primary and standby databases have exactly the same file / folder structure
    2.---------------------------------------------------
    I enabled archive log mode with a new destination : /opt/oracle/oradata/orcl/archive_logs.
    Also : SQL> alter database force logging;
    3.---------------------------------------------------
    I shut down the primary database (shutdown immediate)
    4.---------------------------------------------------
    I created a standby controlfile on the primary database:
    SQL> startup mount
    SQL> alter database create standby controlfile as '/tmp/standby.ctl'
    SQL> shutdown immediate
    5.---------------------------------------------------
    I did a cold backup from the primary db to the standby db
    (I copied all the db files, control files, redo log)
    6.---------------------------------------------------
    I copied from the primary db to the standby db the standby control file
    (from primary /tmp/standby.ctl)
    7.---------------------------------------------------
    I copied from the primary db to the standby db the standby control file
    (from primary /tmp/standby.ctl)
    8.---------------------------------------------------
    I created on the standby database a pfile from the spfile :
    SQL> create pfile from spfile;
    9.---------------------------------------------------
    I edited the pfile and changed the controlfile location (with the standby controlfile created in step 4)
    >>>>> *.control_files='/opt/oracle/oradata/orcl/standby.ctl'
    10.--------------------------------------------------
    I started the standby db
    SQL> startup mount pfile='/opt/oracle/product/10.2/db_1/dbs/initorcl.ora'
    SQL> alter database recover managed standby database disconnect from session;
    SQL> quit
    11.--------------------------------------------------
    I made some changes on the primary db on user scott
    SQL> update table set .......
    12.--------------------------------------------------
    I switched logfile on the primary db
    SQL> alter system switch logfile;
    13.--------------------------------------------------
    I manually copied the new archivelog to the standby db
    And then nothing !!!
    The db changes are not applied.
    Please help me fix the procedure !!!
    Thanks

    Hi
    Ref to your Oracle SE Standby issue, we were in similar situation couple of years ago to build an Automated Standby for our disaster recovery on Oracle SE. We finally got a solution provider Anbul Technologies , they have a one of their solutions based on Oracle SE which provided fully automated Standby in Oracle SE.
    We are successfully running that solution in our prod env for many years. You can visit their site www.anbultechnologies.co.uk or contact them for further details. They are Uk based but provides support and services all over Europe.
    Cheers

  • Oracle Patchset 10.2.0.5.0 impact on password enabled roles

    Oracle Patchset 10.2.0.5.0 (as well as 11.1.0.7 according to Oracle Support note 745407.1) will affect your password enabled roles security if you grant password enabled role to a user as a DEFAULT role (this users - like firecall ids - don't have to provide password to have this role active after logon). It turns out this is the only impact contrary to Oracle Support (Metalink) note 745407.1 stating that roles granted to other roles are affected as well. After I read the note I've worked with my DBA to assess possible damage to the application I support. Below are the results that I hope might help other people to assess and fix their situation as well (Please don't do the "fix" recommended by note 745407.1 which is to "remove password protection from the role" as this will trash your application security) :
    BEFORE THE PATCH:
    SQL*Plus: Release 10.1.0.4.2 - Production on Mon Sep 20 14:45:13 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, Data Mining and Real Application Testing options
    SQL# -- Create Ordinary Oracle Role
    SQL# create role ORACLE_ROLE;
    Role created.
    SQL#
    SQL# -- Create Password Authenticated Role
    SQL# create role PASSW_AUTH_ROLE identified by xxxxxxx;
    Role created.
    SQL#
    SQL# -- Create Another Ordinary Role to be granted to ORACLE_ROLE
    SQL# create role ROLE_TO_OTHER_ROLE;
    Role created.
    SQL#
    SQL# GRANT ROLE_TO_OTHER_ROLE TO ORACLE_ROLE;
    Grant succeeded.
    SQL#
    SQL# -- Create Secure Application Role
    SQL# create role SECURE_APP_ROLE identified using sec_roles;
    Role created.
    SQL# -- sec_roles procedure
    SQL# CREATE OR REPLACE procedure sec_roles AUTHID CURRENT_USER
    2 AS
    3
    4 BEGIN
    5 DBMS_SESSION.SET_ROLE('secure_app_role');
    6 END;
    7 /
    Procedure created.
    SQL#
    SQL# grant execute on SEC_ROLES to public;
    Grant succeeded.
    SQL#
    SQL# SQL# -- Create User Account
    SQL# CREATE USER app_user IDENTIFIED BY "xxxxxxx"
    2 DEFAULT TABLESPACE "USERS01"
    3 TEMPORARY TABLESPACE "TEMP01";
    User created.
    SQL# GRANT CONNECT, ORACLE_ROLE, PASSW_AUTH_ROLE, SECURE_APP_ROLE to app_user;
    Grant succeeded.
    SQL# ALTER USER app_user DEFAULT ROLE ALL;
    User altered.
    connect app_user@XXXXXX
    Enter password: *********
    Connected.
    select * from session_roles;
    ROLE
    CONNECT
    ORACLE_ROLE
    ROLE_TO_OTHER_ROLE
    PASSW_AUTH_ROLE
    Note here that SECURE_APP_ROLE does not appear in the list of active session roles, which is in accordance with Oracle Support (Metalink) note 745407.1 saying that this is the case starting with versions 11.1.0.7 and 10.2.0.4 for Secure Application Roles.
    AFTER THE PATCH APPLIED:
    connect app_user@XXXXXX
    Enter password: *********
    Connected.
    select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE 10.2.0.5.0 Production
    TNS for Solaris: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
    SQL# show user
    USER is "APP_USER"
    SQL#
    SQL# select * from session_roles;
    ROLE
    CONNECT
    ORACLE_ROLE
    ROLE_TO_OTHER_ROLE
    As expected password enabled role PASSW_AUTH_ROLE disappeared from the list of the roles enabled by default. Contrary to the expectations ROLE_TO_OTHER_ROLE that is granted to ORACLE_ROLE but not directly to the user is still active. As it turns out that is not the last surprise.
    In order to test other possible combinations of roles granted to other roles I've created two other roles:
    create role role_to_other_role_2;
    Role created.
    SQL# create role PASSW_AUTH_ROLE_2 identified by xxxxxxxx;
    Role created.
    SQL# grant passw_auth_role_2 to oracle_role
    Grant succeeded.
    SQL# grant PASSW_AUTH_ROLE_2 to PASSW_AUTH_ROLE
    Grant succeeded.
    SQL# grant role_to_other_role_2 to passw_auth_role;
    Grant succeeded.
    Surprisingly after logon password enabled role PASSW_AUTH_ROLE_2, granted through non-password enabled role ORACLE_ROLE, is active without need to provide password to set PASSW_AUTH_ROLE_2 role, which kind of defeats the purpose of Oracle security change in the first place.
    connect app_user@XXXXXX
    Enter password: *********
    Connected.
    select * from session_roles;
    ROLE
    CONNECT
    ORACLE_ROLE
    ROLE_TO_OTHER_ROLE
    PASSW_AUTH_ROLE_2
    Also if we set other password enabled role PASSW_AUTH_ROLE all roles granted to that role become active roles:
    set role passw_auth_role identified by xxxxxxxx;
    Role set.
    select * from session_roles;
    ROLE
    PASSW_AUTH_ROLE
    PASSW_AUTH_ROLE_2
    ROLE_TO_OTHER_ROLE_2
    As we can see this Oracle attempt to solidify role based security leaves some holes, and documentation is confusing and misleading. I expect that there will be more interventions coming in the future and we will need to verify with Oracle if they intend to do changes with role based security in the future that might have much greater impact on applications security models, and potentially cause unwanted downtime.
    Finaly the query to figure out if you are potentially affected is:
    select B.grantee, A.role, B.default_role
    from dba_roles A, dba_role_privs B
    where A.password_required = 'YES'
    and A.role = B.granted_role
    and B.default_role = 'YES';

    I think, we are also facing this problem. Please let me know if any one has got any kind of FIX for this ?
    we have just migrated from 10.2.0.4.0 to 10.2.0.5.0. All of a sudden set of code stopped working.
    Query runs before setting up ROLE and similer query gives error after setting up the ROLE. If we don’t set the ROLE, both queries work fine.
    ======= Code =====
    SELECT granted_role
    FROM DBA_ROLE_PRIVS
    WHERE grantee = '501280629'
    AND granted_role IN ('PICAMG','PICAUS', 'PICAVW', 'PICAOP', 'PICADB')
    AND ROWNUM = 1 ----> this query works before setting up ROLE
    SET ROLE PICADB IDENTIFIED BY XXXXX ----> setting up ROLE
    SELECT granted_role
    FROM DBA_ROLE_PRIVS
    WHERE GRANTEE = '501280629'
    AND granted_role IN ('PICAMG','PICAUS', 'PICAVW', 'PICAOP', 'PICADB') ----> this query does work after setting up ROLE
    Thanks
    Suraj

  • Oracle Patchset query

    We need to upgrade to Oracle patchset 10.2.0.4 from 10.2.0.2 on 32-bit Windows.
    On service market place I found the following files for this :
    10204_Patch20_WIN32.zip    Size 91436  KB
    10204_Patch22_WIN32.zip    Size  91849  KB
    BIN  Patchset_10204_Win32aa.bin    Size   358400  KB
    BIN  Patchset_10204_Win32ab.bin      Size 358400  KB
    BIN  Patchset_10204_Win32ac.bin     Size  293572  KB
    Could you tell me, if I need the .bin files as well as the .zip files
    Note - 1137346 says that only .zip files are needed.
    Could you please clarify this doubt?
    And Note - 839187 says - To apply the patch set, follow the instructions in the patch set README file.
    But there is not readme file on service market place.
    Thanks.
    Edited by: Gautam Poddar on Aug 27, 2009 10:39 AM
    Edited by: Gautam Poddar on Aug 27, 2009 10:41 AM

    So, I downloaded the 2 .zip files.
    But the README file says -
    1 Ensure that your Oracle Database installation is the same release for which you are applying this patch. In other words, only apply the Release 10.2.0.4 Bundle patch to an Oracle Database Release 10.2.0.4
    Now, we are at 10.2.0.2.
    So to bring us to patch level 10.2.0.4, we are supposed to apply the above 2 .zip files, right?
    But the README says you can apply these patches only if you are already at 10.2.0.4
    Could you please clarify this?
    Thanks.

  • Patchset on Oracle RAC

    Hi.
    We have a 10.2 RAC installation (2 nodes).
    Each node has 2 Oracle Homes (db and crs).
    Do I need to apply the patchset twice (1 time for each home)?
    Thanks in advance.

    So you are not doing rolling patches. That is what he was getting at. You are shutting everything down.
    Patch CRS and then the DB.
    You will have to also issue the crsctl stop crs as root and after it is patched issue crsctl start crs on both nodes.

  • Upgrade Oracle 10g RAC - Oracle 11g RAC on Linux Environment

    We are planning to Upgrade our databases to Oracle 10g RAC - Oracle 11g RAC which is Linux Environment. Kindly suggest me the best option for migration. Our production database size is 80GB.
    - Frest installation of oracle 11g using export/iimport dumps
    - Migration
    - Upgrade process
    Any information regarding this will be appreciated.

    Pl identify exact versions of "10g" and "11g", along with the exact OS versions.
    Pl see the upgrade doc - http://docs.oracle.com/cd/E11882_01/server.112/e23633/toc.htm
    HTH
    Srini

  • Applying interim patches to Oracle 10.2.0.2

    Hi,
    After the CRM upgrade to CRM 2007 on oracle 10.2.0.2 on soalris 10, I need to apply interim patches to oracle 10.2.0.2.
    As I am new to it, please any one send me the step by step procedure to do so. I have already taken a backup.
    Regards
    M Kumar

    Hi,
    You should read the notes, all is explained on them.
    First you MUST download all the patches from SAP note 871096
    Then you also read the note, where is explained how to install the patches:
    Patch installation with OPatch                                                                               
    To install Oracle patches for Oracle Release 10.2.0.2 or 10.2.0.4, use  
    the Opatch version of patch 4898608 only. This is available on SAP      
    Service Marketplace.                                                                               
    The use of the OPatch version of patch 6880880 (particularly in         
    connection with MOPatch) is currently not released.                     
    In this case, see OPatch Note 839182.                                                                               
    Patch installation with MOPatch                                                                               
    You must apply a relatively large number of patches for Oracle Release  
    10.2.0.2. Information about the patch installation using MOPatch, see   
    Note 1027012.                                                           
    Of course, this little excerpt of the note point to other notes that you should read to get more details.

  • Looking For Patchsets for Oracle 11.2 g for Windows 2003 64 bit

    hi,
    I suppose I should not be running Oracle on Windows :) i have heard that more than once.
    I'm browsing My Oracle Support (support.oracle.com) searching for the correct patchsets for Oracle 11.2 g database Enterprise on Windows Server 2003 64 bit.
    All I seem to find is for 11.1
    I'm browsing under the 'Patches and Updates' tab in My Oracle Support. Can anyone point me to the downloads for Windows 64 bit and 11.2 please?
    Thank you.
    John

    Do you by chance mean the 11.2.0.1 release? I don't believe any patchsets for 11.2 have been released yet?
    [http://www.oracle.com/technology/software/products/database/oracle11g/112010_win32soft.html  ]
    Hope this helps!
    Eric

  • Latest patchset for oracle 10g

    can any one provide me link to download latest patchset for Oracle 10g server

    Post Operating System (OS) name & version for DB server system.
    Post results of
    SELECT * from v$version

  • Applying security patch to Oracle 10G on Linux

    Hello,
    I'm new to Oracle DBA world, need to apply security patch to Oracle 10G on Linux server, any tips and notes would be appreciated.
    thanks
    Sam

    Manish,
    1. I have to upgrade the database version from 10.2.0.2 to 10.2.0.4 on Linux, Is there any proper documentation which will help me out?Please refer to the following document.
    Note: 454750.1 - Oracle Apps Release 12 with Oracle Database 10.2.0 interoperability notes
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=454750.1
    2. What are the types of oracle database patches? what is the proper procedure to apply those kind of patches to Oracle 10g on Linux?
    Most of the patches in this upgrade are database patches (which should be applied using opatch). The main upgrade patch (Patch 6810189 - 10.2.0.4 patch set) should be applied using Oracle Universal Installer (runInstaller).
    Always follow the steps in the patch README file before applying any patch.
    Regards,
    Hussein

  • How to move Oracle Forms to an Intranet Environment

    This will outline the processes as we understand them to get an
    Oracle Form, created with Developer 2000 to process in a Web
    environment.
    1. Create the Oracle Form , this has been done on a NT machine.
    2. Create Oracle Web environment on the Unix server, this has
    been done.
    3. Process the Oracle Form, created on the NT machine through
    the Forms Server, on the Unix Machine, to create the HTML
    format forms.
    Question: What steps are need to get the Form to run as HTML?
    4. Access the Oracle Forms in the Web environment, this should
    be fairly easy, when number 3 above had been completed.
    null

    Hi,
    Can you please explain more regarding to move setup from DEV to PROD instance.The steps are documented in the iSetup manual, so have you gone through the documentation?
    Also we would install PROD with multi tier nodes, and HA cluster. So in that case what would be the change to move the setups from DEV to PROD, as DEV is single node TEST APPS 12 installation.iSetup is helpful in moving the functional setup between the two instances. If you want to create an identical copy of your DEV instance to PROD instance (provided that both instances contain no data), then you can use "Rapid Clone" -- See (Note: 799735.1 - Rapid Clone Documentation Resources, Release 11i and 12).
    Regards,
    Hussein

  • Who will install ORACLE software on linux production environment?

    Hi Friends,
    there is a doubt for me on ORACLE software installation. i.e. who will install ORACLE software on linux production environment. either system admin or else ORACLE DBA.
    If DBA means, whether system admin will share the oracle root password.,
    If SYS admin means how DBA parameters during installation.
    Regards
    Sakthivel G

    NEW2DBA wrote:
    Hi Friends,
    there is a doubt for me on ORACLE software installation. i.e. who will install ORACLE software on linux production environment. either system admin or else ORACLE DBA.
    If DBA means, whether system admin will share the oracle root password.,
    If SYS admin means how DBA parameters during installation.I have a doubt - about needing any parameters during a software-only install.
    Since every version of Oracle available now (except 11.2) needs patches, a new installation should not create the database right away. Therefore, a software-only install is the most reasonable thing to do. And if no DB configuration parameters are required at s/w-only time, then it makes somewhat sense for the SysAdmin to do the install.
    Therefore, it makes sense to me that the two groups (DBA and SA) might want to work ... together. (ROFLMAO)

Maybe you are looking for

  • Itunes plays songs but without any sound

    Hey folks, I am having a problem with sound. I am running a Windows 64-bit Vista on a HP desktop. I contacted Apple and they suggested uninstalling and reinstalling Itunes and it didn't work. All the songs and videos will play in my Itunes but there

  • Payment Program and Spot Exchange Rate Type

    Hi Everyone, When performing wire transfers in foreign currency, my company wants to be able to have the payment program, F110, be able to convert the payment to the vendor based on the bank's spot rate at that moment in time.  I found that we can us

  • Sony Bravia KLV-32CX320 subtitles not playing. help please

    Hi, i have another tv - model KLV-22BX350 which runs subtitles fine. I put the movie (any format) and subtitles (.srt) file in same folder. My 2nd tv BX model runs it perfectly but i don't know why the CX model doesn't.I press the green button of rem

  • Initial installation in AD environment

    Hello, I would like to implement OS X Server in my Windows 2003 AD environment, specifically use the wiki and iChat server. I notice in the documentation you have 3 implementation options Standard Workgroup Advanced My vision is to only use the Wiki

  • 10.5.4 upgrade failure - can't repair permissions: "no valid packages"

    I just ran the 10.5.4 combo updater to upgrade from 10.5.3 but now I can't boot into the main boot drive (get the circle with line through it instead of login screen). Fortunately I have Panther on another drive and was able to boot into it via the L