How locking take place in oracle rac environment?

how locking take place in oracle rac environment?
Suppose from one session, user is updating and from other session same rows are being selected then how this locking take place in Oracle RAC?

user11936985 wrote:
how locking take place in oracle rac environment?
Suppose from one session, user is updating and from other session same rows are being selected then how this locking take place in Oracle RAC?In the case of one session updating and the other selecting, there is no locking issue, regardless of whether it's single instance or RAC.
The update will take appropriate table (TM) and row-level (TX) locks, but the select will not take any locks (unless it's a select for update), so, there should be no problem.
Oracle will use read consistency to guarantee that the selected results are self-consistent and consistent with the point in time of the start of the query.
Hope that helps,
-Mark

Similar Messages

  • How to create a wallet in oracle RAC environment

    How to create a wallet in oracle RAC environment.
    While running following command "alter system set encryption key identified by "thalesdata4";
    I am getting error message "cannot auto create wallet" or "failed to open wallet.
    Please suggest correct way to create a wallet in RAC environment.
    Thanks
    Sudhir

    hi,
    please refer for detailed explanation
    Master Note for SSL Configuration in Fusion Middleware 11g [ID 1218695.1]
    regards

  • Calculating total memory in oracle RAC environment

    I have to calculate total memry in RAC environment.
    For shared and buffer pool I execute show sga.
    For UGA and PGA I execute statement that have two different values.
    This is my two different methot for calculating total memory in oracle RAC environment.
    Why I have very different value in this 2 statements on pga values?
    first stat
    with vs as
    select 'PGA: ' pid
    ,iid
    ,session_pga_memory + session_uga_memory bytes
    from (select inst_id iid
    ,(select ss.value
    from gv$sesstat ss
    where ss.sid = s.sid
    and ss.inst_id = s.inst_id
    and ss.statistic# = 20) session_pga_memory
    ,(select ss.value
    from gv$sesstat ss
    where ss.sid = s.sid
    and ss.inst_id = s.inst_id
    and ss.statistic# = 15) session_uga_memory
    from gv$session s)
    union all
    select 'SGA: ' || name pid
    ,s.inst_id iid
    ,value bytes
    from gv$sga s
    select distinct iid, pid, sum(bytes) over (partition by iid, pid) bytes from vs
    IID PID BYTES
    1 PGA: 196764792 <=====
    1 SGA: Database Buffers 318767104
    1 SGA: Fixed Size 733688
    1 SGA: Redo Buffers 811008
    1 SGA: Variable Size 335544320
    2 PGA: 77159560 <=====
    2 SGA: Database Buffers 318767104
    2 SGA: Fixed Size 733688
    2 SGA: Redo Buffers 811008
    2 SGA: Variable Size 335544320
    second stat
    with vs as
    select 'PGA: ' pid
    ,p.inst_id iid
    ,p.pga_alloc_mem bytes
    from gv$session s
    ,gv$sesstat pcur
    ,gv$process p
    where pcur.statistic# in ( 20 -- = session pga memory
    ,15 -- = session uga memory
    and s.paddr = p.addr
    and pcur.sid = s.sid
    and pcur.INST_ID = s.INST_ID
    and pcur.INST_ID = p.INST_ID
    union all
    select 'SGA: ' || name pid
    ,s.inst_id iid
    ,value bytes
    from gv$sga s
    select distinct iid, pid, sum(bytes) over (partition by iid, pid) bytes from vs
    IID PID BYTES
    1 PGA: 342558636 <=====
    1 SGA: Database Buffers 318767104
    1 SGA: Fixed Size 733688
    1 SGA: Redo Buffers 811008
    1 SGA: Variable Size 335544320
    2 PGA: 186091416 <=====
    2 SGA: Database Buffers 318767104
    2 SGA: Fixed Size 733688
    2 SGA: Redo Buffers 811008
    2 SGA: Variable Size 335544320

    I'm sorry but it is not clear to me.
    - From v$session (1th stmt) I have
    nearly 196MB of PGA mem on instance 1
    and
    nearly 77MB of PGA mem on instance 2
    - From v$process (2th stmt) I have
    nearly 342MB of PGA mem on instance 1
    and
    nearly 186MB of PGA mem on instance 2
    then...
    342+186 - 196+77 = nearly 255MB of memory allocated by oracle processes but free?
    if I want calculate the total thing of the amount of the allocated memory from Oracle...It is more correct 2th statement that query v$process...it is true?

  • What exactly is a Livecache and how different is it from Oracle RAC?

    What exactly is Livecache and how different is it from Oracle RAC since livecache is used for high availability? and should Livecahe be used only with MAXDB?

    As per my knowledge this both are completly different concepts and have different use.
    SAP Livecache is used in SAP SCM/APO to increase speed of processing by using main memeory
    Whereas Oracle RAC is used for HA and scalability.

  • In Oracle RAC environment which is OLTP database? load balancing advantage.

    In Oracle RAC environment which is a OLTP database? List the options for load balancing along with their advantages.

    You can use a software load balancer.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Software+AND+Load+AND+Balancer&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Installing and Configuring Web Cache 10g and Oracle E-Business Suite 12 [ID 380486.1]
    Thanks,
    Hussein

  • Transaction Recovery within an Oracle RAC environment

    Good evening everyone.
    I need some help with Oracle 11gR1 RAC transaction-level recovery issues. Here's the scenario.
    We have a three(3) node RAC Cluster running Oracle 11g R1. The Web UI portion of the application connects through WLS 9.2.3 with connection pooling set. We also have a command-line/SQL*Developer component that uses a TNSNAMES file that allows for both failover and load balancing. Within either the UI or the command line portion of the application, a user can run a process by which invokes one or more PL/SQL Packages to be invoked. The exact location of the physical to the database is dependent on which server is chosen from either the connection pooling or the TNSNAMES.ORA Load Balancing option.
    In the normal world, the process executes and all is good. The status of the execution of this process is updated by the Packages once completed. The problem we are encountering is when an Oracle Instance fails. Here's where I need some help. For Application-level (Transaction Level) recovery, the database instances are first recovered by the database background proccesses and then Users must determine which processes were in flight and either re-execute them (if restart processing is part of the process) or remove any changes and restart from scratch. Given that the database instance does not record which processes are "in flight" it is the responsibility of the application to perform its own recovery processing. Is this still true?
    If an instance fails, are "in flight" transactions/connections moved to other instances in the Grid/RAC environment? I don't think this is possible but I don't remember if this was accomplished through a combination of Application and Database Server features that provide feedback between each other. How is the underlying application notified of the change if such an issue occurs? I remember something similar to this in older versions of Oracle but I cannot remember what it was callled.
    Any help or guidance would be great as our client is being extremely difficult in pressing this issue.
    Thanks in advance
    Stephen Karniotis
    Project Architect - Compuware
    [email protected]
    (248) 408-2918

    You have not indicated whether you are using TAF or FCF ... that would be the first place to start.
    My recommendation would be to let Oracle roll back the database changes and have the application resubmit the most recent work.
    If the application knows what it did since the last "COMMIT" then you should be fine with the possible exception of variables stored
    in packages. Depending on packages retaining values is an issue best solved with PRAGMA SERIALLY_REUSABLE ... in other words
    not using the retention feature.

  • How similar is HACMP to Oracle RAC?

    Gurus:
    Have you compared HACMP with Oracle RAC? If so, could you share the difference and the similarity?
    Thanks!

    Hi Linda,
    seems to be a likewise question as
    How similar is HACMP to MSCS?
    In fact, you use them together:
    Note 527843 - Oracle RAC support in the SAP environment
    Markus

  • Can u please tell me how implementation takes place in sap

    can u please give detailed description about implementation of sap fi/co
    i mean how it will takes place.
    discurssions with the client
    how do u prepare business blue print

    Hi,
    Refer to this weblink regarding SAP Implementation
    http://en.wikipedia.org/wiki/SAP_Implementation
    Please let me know if you need more information.
    Assign points if useful.
    Regards
    Sridhar M

  • How fragment a table in Oracle RAC

    Hello to all
    I have to use a DB cluster in a project, I'm using Oracle RAC for this but i have a question, is it posible to fragment tables in Oracle RAC? If this is possible, how can I do it?
    Thanks all for your help.

    If by "fragment" you mean doing what is typically referred to as "sharding" and storing different subsets of the table on different nodes, no, you can't.
    Unlike how many databases do clustering with a "shared nothing" architecture, a RAC cluster involves multiple instances (software processes running on each node) to access a single database (set of data files) on a shared storage system. Sharding a table in this context doesn't make sense-- every instance is going to have access to the entire table. Sharding makes sense in other approaches to clustering where the storage system is not shared across multiple nodes.
    If you are trying to ensure that different nodes don't conflict with each other when requesting particular blocks, or at least to minimize that contention, you can potentially create different services that run on different nodes and have different users connect to those services. So, for example, if you create a different service for different geographic regions, configured those services to run on particular nodes, configured users in those geographic regions to connect to the service appropriate for their region and the data in a table is naturally separated by region, you would end up with each node preferentially caching blocks that have data associated with their particular region and you would have relatively few cache fusion requests where one node asks for a cached block from a different node.
    If you are trying to improve query performance, you can use partitioning instead of sharding the data (you can do this without using RAC as well). This allows Oracle to store different subsets of the data for a table in different physical segments so your queries can hit individual partitions rather than the entire table to retrieve the data they're after.
    Justin

  • Disable Intel CPU Hyper threading in Oracle RAC environment

    Dear Expert,
    Does disable CPU hyper threading will have direct impact or maybe unexpected behavior to Oracle RAC database?
    Actually the background of this question is we have many received packet queuing on the network layer waiting to be processed. Investigation leads to the processor utilization which shows that many processor are still in idle state or not used when the other processors are busy processing incoming request.
    I have visited some oracle note like
    CPU Count Consideration for Oracle Parameter Setting When Using Hyper-Threading Technology (Doc ID 289870.1)
    Oracle and Hyper-Threading (Doc ID 205089.1)
    Using PROCESSOR_GROUP_NAME to bind a database instance to CPUs or NUMA nodes (Doc ID 1585184.1)
    These document already give useful information but i wonder if there is any possibilities risk or another consideration of disabling cpu hyper threading.
    Please let me know if any other information required.
    Thanks.
    Best Regards,
    Jolly

    As far as I know it is set as cpu architecture and mobile chips don't have the option. Not 100% as I've never needed to do it.
    Better bet would be to check Intel ark and forums with them I expect.

  • A sample server specification for Oracle RAC environment

    Hi,
        Our project has decided to change the single instance database to a RAC environment. Can any one provide a sample server specification to be analysed based on our project.
    For example minimum processor/RAM....
    Thanks

    This is the simplest installation you can get, but if you want to do a fast response file based installation, there it is.

  • Oracle RAC environment

    Hi,
    I have 4 virtual machines based on XEN. Each of them have Centos 5 OS, 1GB RAM, 10GB disk space. I download all necessary staff for install Oracle RAC, but I wondering what infrastructure I should implement? I want install RAC for test functionality like Cache Fusion, TAF and do some AWR statistic.
    What do you think, which choice will be the best:
    * raw devices or OCFS2?
    * use one xen machine for storage data or partition disk on each machine and use ASM?
    * other..
    If you have own experience please help me choose best configuration.
    Best,
    tutus

    Hi,
    i don't have experience with Xen in oracle RAC but i do use Vmware Fusion on my MAC machine.
    ** raw devices or OCFS2?*
    -- for manageability use OCFS2. raw device is difficult to manage unless you want to try it.
    ** use one xen machine for storage data or partition disk on each machine and use ASM?*
    -- 1. yes you can create a new Xen machine for your storage try considering using Openfiler
    -- 2. remember that the disk should be shared on both Linux machine and you cannot just create disk partition on each box.
    if you just want to test RAC, why not use vmware its very easy to configure even sharing the disk between nodes.
    regards,
    baidba

  • Multiple trace files whenever export of data takes place in Oracle 10.1.0

    I have imported data from Oracle 7.3 into Oracle 10g Rel. 10.1.0. Now whenever i take normal Export, it creates multiple trace files. It gives error in following format
    DBMS_DM_MODEL_EXP:schema_info_exp:DM models not found in schema <schema name>
    Kindly help
    Thanx.

    check "dmsys" user account if is lock and unlock. account
    sql>alter user dmsys account unlock;
    thanx

  • Cannot get external procedural call in Oracle RAC Environment

    Cannot get external procedure call to work in our test RAC env.
    We are able to get it to work in our DEV env which is a single instance
    LISTENER.ORA:
    NODE1:
    # listener.ora Network Configuration File: /opt/oracle/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER_SBLBGT01 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = sblbgt01-vip1)(PORT = 1521)(IP = FIRST))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.41.1.21)(PORT = 1521)(IP = FIRST))
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /opt/oracle/app/oracle/product/10.2.0/db_1)
    (PROGRAM = extproc)
    (ENVS="EXTPROC_DLLS=ANY")
    NODE2:
    # listener.ora.sblbgt02 Network Configuration File: /opt/oracle/app/oracle/product/10.2.0/db_1/network/admin/listener.ora.sblbgt02
    # Generated by Oracle configuration tools.
    LISTENER_SBLBGT02 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = sblbgt02-vip2)(PORT = 1521)(IP = FIRST))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.41.1.22)(PORT = 1521)(IP = FIRST))
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /opt/oracle/app/oracle/product/10.2.0/db_1)
    (PROGRAM = extproc)
    (ENVS="EXTPROC_DLLS=ANY")
    2) ### If you are receiving errors, please list exact error messages and text: ###
    (cont 1.)
    tnsnames.ora (on both nodes):
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = extproc))
    (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO)))
    [opt/oracle/app/oracle/product/10.2.0/db_1/network/admin]> tnsping EXTPROC_CONNECTION_DATA
    TNS Ping Utility for Solaris: Version 10.2.0.3.0 - Production on 11-APR-2011 10:52:49
    Copyright (c) 1997, 2006, Oracle. All rights reserved.
    Used parameter files:
    /opt/oracle/app/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = extproc)) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO)))
    OK (0 msec)
    Calling External Procedure:
    SQL> execute ttran.shell('ls');
    BEGIN ttran.shell('ls'); END;
    ERROR at line 1:
    ORA-28575: unable to open RPC connection to external procedure agent
    ORA-06512: at "TTRAN.SHELL", line 1
    ORA-06512: at line 1

    Any Reply Please...
    would appreciate your help...

  • How Transcoding Takes Place

    Hi
    Can anyone please explain how the transcoding process is taking place in JMF. Does JMF processes the media as streams or sequence of images?..
    Pls refer any related docs
    Thanks in Advance

    Hi
    Can anyone please explain how the transcoding process is taking place in JMF. Does JMF processes the media as streams or sequence of images?..
    Pls refer any related docs
    Thanks in Advance

Maybe you are looking for