Question on pfile in RAC environment

DB version:10GR2,11GR2
OS Version: Solaris, AIX, Linux
Lets say i have a 2 node RAC environment.
DB name is : jerry
I have a datagroup called DATA7
Node1's pfile would only contain a single like as shown below
$ cat initjerry1.ora
SPFILE='+DATA7/jerry/spfilejerry.ora'Likewise, for Node2
$ cat initjerry2.ora
SPFILE='+DATA7/jerry/spfilejerry.ora'Am i right?

yes, this works. But I don't think this pfile is even needed because afair srvctl will know to use the spfile on ASM. I remember that I had some trouble with one install a while ago because there was also an spfile on each server. This would not get touched by automatic startup and shutdown but when I started the instance manually with sqlplus (and without arguments) this spfile would be used and it caused a lot of confusion for me.
Bjoern

Similar Messages

  • Configuring our RAC environment Questions

    The environment consists of Sun Solaris 10, Veritas, and 10g RAC:
    Questions:
    I need to know the settings and configuration of the entire software stack that will be the foundation of the oracle RAC environment....Network configurations, settings and requirements for any networks including the rac network between servers
    How to set up the solaris 10k structures: what goes into the global zones, the containers, the resource groups, RBAC roles, SMF configuration, schedulers?
    Can we use zfs, and if so, what configuration, and what settings?
    In addition, these questions I need answers to:
    What I am looking for is:
    -- special hardware configuration issues, in particular the server rac interconnect. Do we need a hub, switch or crossover cables configured how.
    -- Operating System versions and configuration. If it is Solaris 10, then there are more specific requirements: how to handle smf, containers, kernel settings, IPMP, NTP, RBAC, SSH, etc.
    -- Disk layout on SAN, including a design for growth several years out: what are the file systems with the most contention, most use, command tag depth issues etc. (can send my questionnaire)
    -- Configuration settings\ best practices for Foundation suite for RAC and Volume manager
    -- How to test and Tune the Foundation suite settings for thru-put optimization. I can provide stats from the server and the san, but how do we coordinate that with the database.
    -- How to test RAC failover -- what items will be monitored for failover that need to be considered from the server perspective.
    -- How to test data guard failures and failover -- does system administration have to be prepared to help out at all?
    -- How to configure Netbackup --- backups

    Answering all these questions accurately and correctly for you implementation might be a bit much for a forum posting.
    First I'd recommend accessing the Oracle documentation on otn.oracle.com. This should get you the basics about what is supported for the environment your looking to set up, and go a long way to answering your detailed questions.
    Then I'd break this down into smaller sets of specific questions and try and get the RAC axters on the RAC forum to help out.
    See: Community Discussion Forums » Grid Computing » Real Application Clusters
    Finally Oracle Support via Metalink should be able to fill in any gaps int he documentation.
    Good luck on your project,
    Tony

  • Questions on sqlnet.ora, listener.ora files in RAC environment.

    Experts,
    I've some confusion with below files in RAC environment.
    sqlnet.ora
    listener.ora
    These files are available in two locations: <GRID_HOME> & <DB_HOME>.
    My questions:
    1. Why do we have two versions of files ?
    2. When I query lsnrctl status from BOTH the homes, it says it is using listener.ora from <GRID_HOME> as shown below.
    Listener Parameter File D:\app\11.2.0\grid\network\admin\listener.ora
    3. What is the use of files which are in <DB_Home>
    4. If you make some changes to listener using "Netmgr" tool, we expect it will update listener.ora in <GRID_HOME>. Interestingly, it is changing the contents of listener.ora in <DB_HOME> .
    Can anyone please clarify it ?
    Thanks in advance.

    859875 wrote:
    1. Why do we have two versions of files ? In the past, the CRS s/w did not include ASM (ASM did not provide support for cluster voting and registration disks). Thus the networking components such as SQL*Net and the Listener were not part of the CRS installation.
    With Grid Infrastructure, ASM supports cluster voting and registration disks and is recommended to be used for that (as oppose to the old style of raw disks or using an external cluster-based cooked file system like <i>ocfs</i>). And with ASM comes the SQL*Net networking layer and s/w (such as the Listener). As ASM ships with Grid Infrastructure, it now also includes the same networking layer as what the RDBMS installation will. Thus both <GRID_HOME> and <DB_HOME> will contain the same networking components.
    However, only a single Listener is for example needed. And that can only run from a single base location. So for operational use, only one version will be actively in use.

  • How to create DIR/File on a raw device in RAC environment.

    Hi all,
    I use a shell script to create DIR and File on a raw device also it creates schema and tablespaces.
    I am facing problem in creating DIR and Files on raw device.
    One more thing, can multiple tablespaces be created on a raw device.
    Thanks & regards,
    Sanjeev

    Thanks for the response. Please help me further.
    About the Script - It asks for the path for creating DIR and uses shell command to create DIR. Later same path and DIR name is used to create Oracle DIR. Now in place of absolute path raw device name is passed. The same script is also used for creating tablespaces and schema.
    There is second script that is .sql script that creates external table in the newly created schema. All this has been working fine on single instance Oracle server. we have tested many times but fails in RAC environment when we use raw device.
    Question is - If I use filesystem will the external table's flat files and Directories be accessible to all the instances.
    I have one application written in java that would be clustered and running on these oracle servers. This application would be accessing those external tables and their flat files. Will there be a problem accessing these flat files accross the instances.
    Regards,
    Sanjeev.

  • Manually Setting up a Standby Database for RAC Environment

    Hi,
    I am a Junior DBA so apologies if this sounds like a silly question.
    We have production 11g Extended RAC environment setup. Management have asked for a separate single instance database be setup as a standby DB on a separate 'cold' server in case we lose complete connection to both sides of the RAC. I read up on Oracle Data Guard and presented this as a solution, but they seem adamant about manually going in and copying out the latest backup and archive logs over to the standby database.
    Can this be done? I mean, can ASM managed backup files and archive logs from one database be simply copied out of the backup directory and imported into a completely separate database as easy as that?
    We are using ASM to manage to data files on the RAC. My understanding is that we cant manually access the files on an OS level when using ASM, but maybe I am wrong. Any help or opinions on this would be greatly appreciated.
    Rgs,
    Rob

    Hi,
    Can this be done? I mean, can ASM managed backup files and archive logs from one database be simply copied out of the backup directory and imported into a completely separate >database as easy as that?Yes, but depends on DB version.
    what is the DB version.
    from 11g you have cp command so there is a possibility to copy generated archive logs to standby location, so that you can apply..
    In 10g there is no such option. you need to create a standby database. with automatic shipping
    Thanks

  • Oracle Streams on a Rac Environment

    Hi
    I have some questions with respect to Setting up Streams on a rac Environment.Would appreciate a quick response as I need the answers by tommorrow.Any help would be greatly appreciated.Here are the questions
    1> Do we have to create capture process for each active instance on only 1 capture process will do?
    2> If yes then do they need to have a seperate queue for each one?
    3> How will the apply process access multiple capture process and the propogation take place?
    4> can only 2 tables in the source be replicated instead of the entire database?
    5> In case if we use a push job if both the primary and secondary go down how can we move to the third instance and use it?
    6> If the instance goes down do we have to restart the capture process once again?
    7>What is the best suited for rac - ASM/RAW FILES with respect to Streams?
    Regards
    Shweta

    Streams in 9iR2 RAC environment mines only from archive logs not online redo logs. This restriction is lifted in 10g RAC. If you choose to go thru the downstream capture route in 10g then you can only mine from archive logs in 10gR1.
    Having said the above here are my answers:
    1> Do we have to create capture process for each active instance or only 1 capture process will do?
    You can run multiple capture processes each on difference instance in RAC. Unless you have a requirement to do so, a single capture process would suffice. The in-memory queue should also be on the same instance as the capture process is running from.
    2> If yes then do they need to have a seperate queue for each one?
    YES
    3> How will the apply process access multiple capture process and the propogation take place?
    Propagation is from a source queue to the destination queue. If the destination is a single instance database, then you can direct propagations for all of your capture(s) into a single apply queue. If the destination is also RAC then you can run multiple apply processes on each node and apply changes for specific set of tables. Maintenance would be something to think about here along with what happens when one node goes down.
    4> can only 2 tables in the source be replicated instead of the entire database?
    YES. Streams is flexible to let you decide what level you want to replicate.
    5> In case if we use a push job if both the primary and secondary go down how can we move to the third instance and use it?
    In theory propagation is a push job. There are certain things you need to configure correctly. If done, then you can move the entire streams configuration to any of the surviving node(s).
    6> If the instance goes down do we have to restart the capture process once again?
    In 9iR2 you have to restart the streams processes. In 10g the streams processes automatically migrate and restart at the new "owning" instance. In both versions, Queue ownership is transferred automatically to the surviving instance.
    7> What is the best suited for rac - ASM/RAW FILES with respect to Streams?
    Streams is independent of the storage system you use. I cannot think of any correlation here.

  • AWR on a RAC Environment

    Hello Knowledgeable Guys of Oracle Forums...
    Finally, our management has bought a license for AWR (after years of using the system!!!) because the database performance has been degrading for quite a while....goodbye to statspack!
    I have a question on AWR collection on RAC..
    We have a 5 Node RAC Cluster working on Oracle 10g R2 on Linux 5.1...
    I would like to know:
    1. How to collect AWR snapshots in a RAC environment? Do I need to collect AWR per node (per instance)?
    2. Is there a way to collect AWR for the entire RAC cluster (Node 1 to Node 5)?
    3. What is the proper way (best way) to collect AWR reports in our 5-node RAC?
    4. How does AWR work on RAC?
    Any sample blogsites...or sample actual AWR collection that you use in your system...
    Thank you

    Hi
    1. How to collect AWR snapshots in a RAC environment? Do I need to collect AWR per node (per instance)?
    A: No. You should collect it at DATABASE level
    2. Is there a way to collect AWR for the entire RAC cluster (Node 1 to Node 5)?
    A: Yes. You can simple generate an html or text report for your RAC environment (eg: AWR report)
    3. What is the proper way (best way) to collect AWR reports in our 5-node RAC?
    A: You can use the snapshots to compare periods, or reports
    4. How does AWR work on RAC?
    A: AWR snapshots are collect at database level, and you can use this snapshot to generate your AWR reports.
    You can also take snapshot in a given moment and use them to reports.
    Exeamples:
    TO CHANGE AWR SNAPSHOTS INTERVAL
    * retention /interval in seconds
    Exec dbms_workload_repository.modify_snapshot_settings (retention=>43200, interval=> 60);
    TO TAKE A SNAPSHOT MANUALLY
    execute dbms_workload_repository.create_snapshot;
    TO GENERATE AWR REPORTS
    @?/rdbms/admin/awrrpt.sql
    Victor

  • Is a gateway mandatory for RAC environment?

    Question:
    Is a gateway mandatory for RAC installation, general on RAC environment?
    *..when yes, why?*
    Many thanks
    I make this test with my only one RAC node
    1. Run with gateway:
    [oracle@linux1 ~]$ crs_stat -t
    Name           Type           Target    State     Host       
    ora....SM1.asm application    ONLINE    ONLINE    linux1     
    ora....X1.lsnr application    ONLINE    ONLINE    linux1     
    ora.linux1.gsd application    ONLINE    ONLINE    linux1     
    ora.linux1.ons application    ONLINE    ONLINE    linux1     
    ora.linux1.vip application    ONLINE    ONLINE    linux1     
    ora.orcl.db    application    ONLINE    ONLINE    linux1     
    ora....l1.inst application    ONLINE    ONLINE    linux1     
    ora....test.cs application    ONLINE    ONLINE    linux1     
    ora....cl1.srv application    ONLINE    ONLINE    linux1
    [oracle@linux1 ~]$ srvctl status database -d orcl
    Instance orcl1 is running on node linux1All thing seem correct!
    2. run without gateway (blank setting):
    [oracle@linux1 ~]$ crs_stat -t
    Name           Type           Target    State     Host       
    ora....SM1.asm application    ONLINE    OFFLINE              
    ora....X1.lsnr application    ONLINE    OFFLINE              
    ora.linux1.gsd application    ONLINE    ONLINE    linux1     
    ora.linux1.ons application    ONLINE    ONLINE    linux1     
    ora.linux1.vip application    ONLINE    OFFLINE              
    ora.orcl.db    application    ONLINE    OFFLINE              
    ora....l1.inst application    ONLINE    OFFLINE              
    ora....test.cs application    ONLINE    OFFLINE              
    ora....cl1.srv application    ONLINE    OFFLINE              
    [oracle@linux1 ~]$ srvctl status database -d orcl
    Instance orcl1 is not running on node linux1Something is false!

    By default, the server's default gateway is used as a ping target during the Oracle RAC 10g VIP status check action.
    Upon a ping failure, Oracle will decide that the current interface where the VIP is running has failed, and will initiate
    an interface / internode VIP failover.
    In above case, we used just one node for CRS installation, so the VIP coudn't failover to other nodes and thus reported additional error like :
    CRS-1006: No more members to consider
    CRS-0215: Could not start resource 'ora.dbtest2.vip'.
    Try ->
    A parameter FAIL_WHEN_DEFAULTGW_NOT_FOUND in the file
    $ORA_CRS_HOME/bin/racvip to address this problem.
    The following steps will fix the VIP starting problem for above mentioned scenario.
    1- stop nodeapps
    2- As root,
    vi the script $ORA_CRS_HOME/bin/racgvip and change the value of
    variable FAIL_WHEN_DEFAULTGW_NOT_FOUND=0 .
    3- start nodeapps and you should see the resources ONLINE
    You may proceed with netca and dbca to create a RAC database after this.

  • RAC environment setup for OEM Grid Control

    Hi All,
    One of my customer is setting up RAC environment for OEM Grid Control, he has following questions.
    1) Can I use the DirectNFS client on each RAC node to mount SAN storage created with an OCFS2 filesystem?
    2) Can I use the DirectNSF client to mount the shared filesystem loader directory?
    3) Should I be using DirectNFS for the shared filesystem loader at all? Or should I just use a normal Linux NFS mount?
    4) Is OCFS2 preferred over NFS for the shared filesystem loader?
    Any information is highly appriciated.
    Thank you,
    Bhavin

    Please check the below doc
    http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10gR2_EnterpriseManagerBestPractices.pdf

  • Patching method for ASM RAC environment

    We are planning to apply new PSU, RAC bundle and CRS PSU for our pre-production environment. In oreder to reduce risk as well as downtime, we need a better approach for patching. Could you please clarify bellow concerns ?
    1) Do we sync the ASM Oracle Home as per the RDBMS Oracle Home? - as per best practice we could see we supposed to sync up both oracle homes, but there are some one-off patches which meaned only for ASM home, thats why at present our ASM and RDBMS homes are not in sync. Could you please put some light on advantages and disadvantages of doing this.
    2) We are planning to apply 11.1.0.7.1 PSU for RDBMS and 11.1.0.7.2 PSU for CRS. In this case do you suggest to apply RDBMS component of CRS PSU ?
    3) For reducing downtime, we are planning to patch one oracle rdbms / ASM home and making a gold copy to clone all other nodes ? Is it a recommended method ? What is the risk involved in this ?
    Thanks
    Rupesh
    http://orachat.com/

    1. The advantage patching both ASM and RDBMS homes is if ASM home is corrupted or some issues then you can start the ASM instance from RDBMS home will out any issues(bugs).
    2.Yes, always it is recommended
    3.Why you want a gold copy? Please note that if you have EM setup then configuration files are different between nodes. The best approach is applying patch local, so that you can reduce the downtime.
    $ opatch apply -local
    Hope this helps,
    Regards,
    http://www.oracleracexpert.com
    Migrate Database to ASM using RMAN
    http://www.oracleracexpert.com/2009/10/migrate-database-to-asm-using-rman.html
    Change spfile from pfile in RAC
    http://www.oracleracexpert.com/2009/09/create-spfile-from-pfile.html

  • Need advice regarding physical standby databases in rac environment on orac

    need advice regarding physical standby databases in rac environment on oracle 10G r2
    I like to have have a Primary ( 10 node RAC cluster ) shipping to a physical standby ( 3 node RAC cluster ) shipping using LGWR .
    So I have a lot of questions
    1) What will be the performance overhead on the Primay if we are using LGWR SYNC option .
    2) Does the overhead depends on the physical distance between primary & physical
    3)Do you recommend a seperate private network for shipping logs between primary and standby.
    4) I know that DGMGRL supports RAC only from 10g. So are there any know issues are bugs using DGMGRL is RAC environments.
    Thanks in advance
    -Satish

    Generally you should have same CPU architecture and same operating system but it's not mandatory to have the exactly the same CPU model, the same number of CPU, the same RAM size etc.
    Actually starting with 11.1 you don't need to have the same hardware setup: it 's even possible to have primary and standby database on different platforms: http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/standby.htm#i72053.

  • Any major differences of exadata database, listener, processes than regular RAC environment?

    I would like to ask for any input regarding any major differences of exadata database, listener, processes than regular RAC environment.
    I know now the exadata not only have SCAN listener, but a lot other listeners. can expert here provide more details?
    Thanks

    We will use zfs to do backups, is that possible for the initiband listener to communicate with ZFS?  where I can find documents for zfs?
    The SDP (Infiniband) Listener is for client connections connecting to the database on Exadata over the SDP protocol on the Infiniband network. You should use the Infiniband network to connect the ZFS to Exadata and mount the ZFS shares to the Exadata compute nodes using DNFS; but this doesn't use the SDP listener because there is no database connection originating from the ZFS you are just backing up your databases to it. See the "Oracle ZFS Storage: FAQ: Exadata RMAN Backup with The Oracle ZFS Storage Appliance (Doc ID 1354980.1)" MOS note for good information and references regarding backing up from Exadata to ZFS.
    Plus how do I know we have exalogic?  I dont think we have one, but is there a way to check to be sure?
    Exalogic is another of Oracle's engineered systems. It contains integrated compute, network and storage - similar to Exadata - but is used for running application environments, specifically for fusion middleware (e.g. Weblogic) applications, instead of databases. It uses a ZFS storage appliance for the storage, as opposed to the storage cells on Exadata, and for virtualized environments uses the Exalogic Elastic Cloud software. You would know if you have one.
    So basically after oracle engineer installed onecommand and created sample database, as oracle dba, we can dbca to create a database just like regular RAC environment?  There is nothing specific on exadata perspective?
    Yes... Oracle on Exadata is still the same RDBMS - same Oracle Enterprise edition with the RAC option. The Exadata difference comes with the hardware integration and the storage cell software... the database software is the same.
    Another question is do I have to configure exadata specific parameters in order for all those features of smart scan, storage index, comrpession, etc work?
    Some Exadata features are mostly "black box" and work without any configuration others may take some configuration or tuning to take advantage of. For example, storage indexes are created dynamically on the storage cells... there is not much you can do to control them. For smart scans you need full table/index scans with direct path reads. So you need to tune for direct path reads. HCC requires setting up your tables/partitions to compress at one of the HCC compression levels and using direct path loads.

  • 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

  • Instnce name in non-RAC environment

    Hi!
    In non-RAC environment V$INSTANCE.INSTANCE_NAME does not actually displays the name of the instance,that was set in INSTANCE_NAME parameter.
    It always displays DB_NAME instead.
    Is it any way to get instance_name that has service user connected to in this environment?
    LSNRCTL for 32-bit Windows: Version 10.2.0.4.0 - Production on 28-JAN-2010 09:16:25
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=vegas)(PORT=1524)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.4.0 - Production
    Start Date 28-JAN-2010 09:15:36
    Uptime 0 days 0 hr. 0 min. 48 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File D:\oracle\db\product\10.2.0\network\admin\listener.ora
    Listener Log File D:\oracle\db\product\10.2.0\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=vegas)(PORT=1524)))
    Services Summary...
    Service "EMCOR" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    Service "EMCOR_XPT" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "RESXDB" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    Service "SRV1" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    Service "SRV2" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    The command completed successfully
    And SQLPLUS said
    C:\Documents and Settings\oradba>sqlplus
    SQL*Plus: Release 10.2.0.4.0 - Production on Thu Jan 28 09:44:59 2010
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Enter user-name: emcos@emcor_srv2
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    09:45:04 EMCOS@emcor_srv2 >select name from v$database;
    NAME
    EMCOR
    Elapsed: 00:00:00.00
    09:45:07 EMCOS@emcor_srv2 >select instance_name from v$instance;
    INSTANCE_NAME
    emcor
    Elapsed: 00:00:00.01
    09:45:21 EMCOS@emcor_srv2 >select service_name from v$session where sid=(select unique sid from v$mystat);
    SERVICE_NAME
    SRV2

    Hemant K Chitale wrote:
    The documentation on INSTANCE_NAME in the 10gR2 Reference says :
    "In a single-instance database system, the instance name is usually the same as the database name."
    (this after
    "In a Real Application Clusters environment, multiple instances can be associated with a single database service. Clients can override Oracle's connection load balancing by specifying a particular instance by which to connect to the database. INSTANCE_NAME specifies the unique name of this instance.")
    This would imply that setting INSTANCE_NAME in non-RAC is ignored. The usage of the word "usually" is weak.
    Hemant K ChitaleBut what do says lsnrctl - it says that it is not weak
    11:33:28 SYS@EMCOR_SRV1 >show parameter instance_name
    NAME TYPE VALUE
    instance_name                        string      INST0
    11:33:36 SYS@EMCOR_SRV1 >host lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.4.0 - Production on 28-JAN-2010 11:33:50
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=vegas)(PORT=1524)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.4.0 - Production
    Start Date 28-JAN-2010 09:15:36
    Uptime 0 days 2 hr. 18 min. 14 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File D:\oracle\db\product\10.2.0\network\admin\listener.ora
    Listener Log File D:\oracle\db\product\10.2.0\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=vegas)(PORT=1524)))
    Services Summary...
    Service "EMCOR" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    Service "EMCOR_XPT" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "RESXDB" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    Service "SRV1" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    Service "SRV2" has 1 instance(s).
    Instance "INST0", status READY, has 1 handler(s) for this service...
    The command completed successfully
    11:33:50 SYS@EMCOR_SRV1 >select sys_context('USERENV','INSTANCE_NAME') from dual;
    SYS_CONTEXT('USERENV','INSTANCE_NAME')
    emcor
    Elapsed: 00:00:00.00
    11:34:42 SYS@EMCOR_SRV1 >select service_name from v$session where sid=sys_context('USERENV','SID');
    SERVICE_NAME
    SRV1
    Best regards, Sergey

  • 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?

Maybe you are looking for

  • 'Plant' field now requires input - why is that?

    Hello all, Here is my issue: when inputing Vendor Invoice (transaction FB60), the system now requires an entry in the 'Plant' field. I am using a regular P&L account which is also a regular cost element the context is that some changes are brought in

  • How to use SAX parser in J2ME

    Please help me how to use SAX parser in J2ME. Is there any function to find the value of a particular element from a XML file? I am able to get Element name, Values, Attributes. But control is not in my hand, DefaultHanldler automatically invokes Cha

  • Javascript Call from AS3 Playbar

    Platform: Captivate 7 Source: AS3 (hopefully obvious!) Output: Flash v10 I'm making a one-off version of one of the default playbars.  I am trying to make the Exit button call a JavaScript function using the following code: var btnTipsId = 8; functio

  • Output of form so result is pdf and not xml

    I am new to Adobe Lifecycle Designer ES and have created a simple form, which will be submitted by email. When the form is emailed, the resulting output is an XML file. I need the resulting file to be a pdf, with all fields showing. I have searched a

  • Error in db13, db02...

    Hi experts, I do a heterogeneous copy, now i have windows + oracle. I go to the transactions db12, db13, db02 and appear a dump: http://img261.imageshack.us/img261/8718/dump.jpg  (image) Any idea? Thanks in advance, Regards,