Steps to do switchover / switchback in RAC environment
Hi folks,
I m having setup with 2 node RAC primary and 2 node RAC Dataguard on 10.2.0.4.0. Dataguard setup is working fine. Dataguard is setup with Standby Redo log group with managed recovery. There is no problem with transferring archives & applying on standby.
Now I want to do Switchover/Switchback between Primary and Standby for RAC. I am familiar with Single instance Switchover and Switchback but never did RAC environment Switchover/Switchback. Can anybody please elaborate steps or suggest any link for me??
regards,
manish
Hi Guys,
Today I performed RAC Switchover / Switchback for 2 Node Primary with 2 Node Standby on OEL. I expected some issues, but it was totally smooth. Giving you steps for the same, so it will be useful to you. Even this would be my first contribution to Oracle Forums.
DB Name DB Unique Name Host Name Instance Name
live live linux1 live1
live live linux2 live2
live livestdby linux3 livestdby1
live livestdby linux4 livestdby2
Verify that each database is properly configured for the role it is about to assume and the standby database is in mounted state.
(Verify all Dataguard parameters on each node for Primary & Standby)
Like,
Log_archive_dest_1
Log_archive_dest_2
Log_archive_dest_state_1
Log_archive_dest_state_2
Fal_client
Fal_server
Local_listener
Remote_listener
Standby_archive_Dest
Standby_archive_management
service_names
db_unique_name
instance_name
db_file_name_convert
log_file_name_convert
Verify that both Primary RAC & Dataguard RAC are functioning properly and both are in Sync
On Primary,
Select thread#,max(sequence#) from v$archived_log group by thread#;
On Standby,
Select thread#,max(sequence#) from v$log_history group by thread#;
Before performing a switchover from a RAC primary shut down all but one primary instance (they can be restarted after the switchover has completed).
./srvctl stop instance –d live –i live1
Before performing a switchover or a failover to a RAC standby shut down all but one standby instance (they can be restarted after the role transition has completed).
./srvctl stop instance –d live –i livestdby1
On the primary database initiate the switchover:
alter database commit to switchover to physical standby with session shutdown;
Shutdown former Primary database & Startup in Mount State.
Shut immediate;
Startup mount;
select name,db_unique_name, log_mode,open_mode,controlfile_type,switchover_status,database_role from v$database;
Make log_Archive_Dest_state_2 to DEFER
alter system set log_archive_dest_state_2='DEFER' sid='*';
On the (old) standby database,
select name,log_mode,open_mode,controlfile_type,switchover_status,database_role from v$database;
On the (old) standby database switch to new primary role:
alter database commit to switchover to primary;
shut immediate;
startup;
On new Primary database,
select name,log_mode,open_mode,controlfile_type,switchover_status,database_role from v$database;
Make log_Archive_Dest_state_2 to ENABLE
alter system set log_archive_dest_state_2='ENABLE' sid='*';
Add tempfiles in New Primary database.
Do some archivelog switches on new primary database & verify that archives are getting transferred to Standby database.
On new primary,
select error from v$archive_Dest_status;
select max(sequence#) from v$archived_log;
On new Standby, Start Redo Apply
alter database recover managed standby database using current logfile disconnect;
Select max(sequence#) from v$log_history; (should be matching with Primary)
Now Start RAC databases services (both Primary – in open & Standby – in mount)
On new Primary Server.
./srvctl start instance –d live –i livestdby2
Verify using ./crs_stat –t
Check that database is opened in R/W mode.
On new Standby Server.
./srvctl start instance –d live –i live2 –o mount
Now add TAF services on new Primary (former Standby) Server.
By Command Prompt,
./srvctl add service -d live -s srvc_livestdby -r livestdby1,livestdby2 -P BASIC
OR
By GUI,
dbca -> Oracle Read Application Cluster database -> Service Management -> select database -> add services, details (Preferred / Available), TAF Policy (Basic / Preconnect) - > Finish
Start the services,
./srvctl start service -d live
Verify the same,
./crs_stat -t
Perform TAF testing, to make sure Load Balancing & Failover.
regards,
manish
Email: [email protected]
Edited by: Manish Nashikkar on Aug 31, 2010 7:41 AM
Edited by: Manish Nashikkar on Aug 31, 2010 7:42 AM
Similar Messages
-
Gurus,
what are the advantages, if any, of running ASM in a non-RAC environment?
Thanks.Any raid (that actually provides multiple disks in a
LVM) will nullify the performance gains of raw that
are associated with disk head contention.
Any disk subsystem with front-end RAM cache will
nullify the rest of the performance gains of raw
disk.
Any 'RAID-5 is good' argument under a database
assumes large and efficient cache.Unfortunately, we can't just discount RAID-5, since it is far too cost-efficient an option these days, with 10, 20, 30+ TB databases. Plus, the storage vendors actually make it efficient enough that it performs almost as well as RAID 1+0.
Multiple disks on the storage subsystem and RAM caches (for reads and writes) are still important and valuable performance enhancements. Remember that your storage subsystem is much more efficient at this than your database or server (since it's designed to do it!). True, it doesn't have knowledge of the database files, their content, and their usage, but you do, and can therefore intelligently configure the subsystem and place the data files.
ASM does nothing more intelligent than stripe the data across all of the available disks. The best part about it is the ability to dynamically grow the groups. The problem with it is that it thwarts the read-ahead cache of the storage subsystem. And, while Oracle will intelligently 'read-ahead', it can't optimize where the heads are on the disk, or take into consideration the 10 other servers accessing the same storage subsystem.
The problem with ASM doing the striping is that, for large databases, you will typically have hundreds of disks underneath the covers. If you gave the OS and then Oracle that many devices, what do you think would happen? It would step all over itself and seriously impair your ability to access the devices in parallel. Whereas, if you group 4 or 8 devices together, the storage subsystem will access them together in parallel for the OS.
So, don't discount your storage box... But yeah, use RAID 1+0 rather than RAID-5 (4,3) when possible! -
Concurrent Managers in a Non-PCP RAC environment
Hi Gurus,
If one of the RAC instance which is running most of the managers fails in RAC (Non-PCP) environment, what happens to the managers and requests?
How to ensure failover in this case?
Is it possible to start all the managers and requests on other RAC instance node without manual intervention?
Thanks in advance.
~Santoshuser8828742 wrote:
Hi Gurus,
If one of the RAC instance which is running most of the managers fails in RAC (Non-PCP) environment, what happens to the managers and requests?
How to ensure failover in this case?
Is it possible to start all the managers and requests on other RAC instance node without manual intervention?
Thanks in advance.
~SantoshPlease see these docs.
Failover is Not Working in E-Business RAC Environment. [ID 386685.1]
Can Automatic Failover Occur With Forms On a Multi-node Oracle RAC Database for E-Business Suite? [ID 1500213.1]
Using Oracle 11g Release 2 Real Application Clusters with Oracle E-Business Suite Release 12 [ID 823587.1] -- 3.9.2 Set Up PCP
How to Activate Parallel Concurrent Processing - Background Facts and Setup Steps [ID 602899.1]
Concurrent Manager Do Not Fail Over When One Rac Instance Goes Down. [ID 1335036.1]
Thanks,
Hussein -
Create database on RAC environment - DBCA hangs on clone database creation
Hi, friends!
I have two vm´s (vmware 2) with OEL 5 installed.
I´ve installed OGI and database software sucessfully. So, my crs stack is working fine in both two nodes.
However, when i use DBCA to create a database in this RAC environment, it hangs when it gets on "clone database creation", about 52% of the progress bar.
My DBCA logs don´t point any error out. It just hangs on..
I wait about 4 hours and it doesn´t move on.
I searched and found many cases like that, including here in OTN. But it seems nobody could find a resolution to this issue.
Is there any bug about OEL 5 and database 11gR2??
More details:
I apllied the patch "p8670579_112010_LINUX" on both OGI installation (before root.sh) and databae software install (also before root.sh).
Everything worked fine.
Sorry for the grammar errors.you can trace dbca, and you can found witch step is occurs problem.
can you paste here last 15-20 sentence of dbca trace file?
Mahir -
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. -
Hi,
i've a job chain defined in a RAC environment.
I need that all the steps of my chain are performed on the same instance.
How can i do this?
Now stepA run on the instance 1 and stepB run on the instance 2.
Thanks.Again, If it is a file system write issue, use ACFS (11.2.0.x) to create a shared file system that all nodes can see. What are you using to delete/create these files? A shell script?
1) create an ACFS file system of sufficient size to handle your data
2) mkdir /some/acfs/location
3) using sqlplus create a database directory " create directory foo as '/some/acfs/location' "
4) put the file in this location
5) use UTL_FILE to delete AND create the file (see fremove() - http://docs.oracle.com/cd/E11882_01/appdev.112/e10577/u_file.htm) -
Apex installation in RAC environment
Hi All,
I am trying for upgrading Apex in a RAC environment which is having 2 nodes "sed1p1" and "sed1p2". Is there any specific steps i need to follow.
Doi need to shutdown one node while installing Apex in other node. Any specific steps need to be followed for installation in such cases.
thanks,
NavHello,
Instead of -
PlsqlDatabaseConnectString <..information removed...> TNSFormatshould that not be -
PlsqlDatabaseConnectString <..information removed...> TNSNamesFormatNote the change to the last word from 'TNSFormat' to 'TNSNamesFormat'.
John.
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! -
ASM Installation on Oracle 11g Clusterware (RAC) environment
Hi All,
I am trying to setup Oracle 11g Standared Edition RAC+ASM on RedHat Linux 5.0 VM ware box. As part of this RAC setup successfully completed. For this i have used raw devices and mounted using NFS.
In many of forumns i have read that ASM installtion on a cluster envioronmnet is different than non cluster environment.
I dont know how to start ASM installtion on RAC environment. Please share any documents if you have?
Thanks,
Rakeshwill the steps need to be done on two nodes of cluster or it is sufficient on first node.
"raw device" for OCR, VOTE, SPFILE_FOR ASM and ASM DISKGROUPs
before do "raw devices" you have to fdisk(make partitions) on share storages
node1:
# fdisk /dev/sdf
# ls /dev/sdf*
node2:
# ls /dev/sdf*
don't find...,so just fdisk -> l and -> w
fdisk how? http://linux.about.com/od/commands/l/blcmdl8_fdisk.htm
Example: /etc/sysconfig/rawdevices do it every nodes
#Oracle OCR File +~280M+
/dev/raw/raw1 /dev/sdf1
#Oracle Voting File +~280M+
/dev/raw/raw2 /dev/sdf2
#Oracle ASM spfile ~50M+
/dev/raw/raw3 /dev/sdf3
#Oracle ASM DISK Group1
/dev/raw/raw4 /dev/sdg1
#Oracle ASM DISK Group2
/dev/raw/raw5 /dev/sdh1
And oracle user.. can read /dev/raw/raw* You should find on every nodes
http://oraclepitstop.wordpress.com/2008/02/15/raw-devices-on-rhel-5-or-oel-5/
ls -la /dev/raw/raw*
crw-rw---- 1 root oinstall 162, 1 Jan 13 12:53 /dev/raw/raw1
crw-rw---- 1 oracle oinstall 162, 2 Jan 13 12:53 /dev/raw/raw2
crw-rw---- 1 oracle oinstall 162, 3 Jan 13 12:53 /dev/raw/raw3
crw-rw---- 1 oracle oinstall 163, 1 Jan 13 12:53 /dev/raw/raw4
crw-rw---- 1 oracle oinstall 164, 1 Jan 13 12:53 /dev/raw/raw5
do it on node1 but you have to pass phrase on every nodes Before
http://www.puddingonline.com/~dave/publications/SSH-with-Keys-HOWTO/document/html/SSH-with-Keys-HOWTO-5.html
example:
node01:
$ ssh node01 hostname
node01
$ ssh node02 hostname
node02
- Install + Setup Clusterware:
OCR = /dev/raw/raw1
VOTE = /dev/raw/raw2
- Install Oracle Database for ASM Home
spfile for ASM = /dev/raw/raw3
- after ASM started... create disk groups from /dev/raw/raw4 and /dev/raw/raw5
- Install Oracle Database for RDBMS Home
- Create Database to use ASM diskgroups
http://www.oracle-base.com/articles/11g/OracleDB11gR1RACInstallationOnRHEL5UsingVMwareESXAndNFS.php
Did you followed the same procedure to set up Oracle 11g RAC+ASM on RHEL 5.0.I'd done(test 11gRAC) it on RHEL 4 + 11g + ASM(on raw device)
on production, I use ASMlib... + ASM + 10g
you can read on metalink to help idea
465001.1
357492.1
605828.1
564580.1
on http://startoracle.com/2007/09/30/so-you-want-to-play-with-oracle-11gs-rac-heres-how/
Oracle 11g’s RAC.. I think.. that can help you ;)
Good Luck
Edited by: Surachart Opun (HunterX) on Jun 26, 2009 11:22 AM
Example from IBM... Deploying Oracle RAC 11g R1 on RHEL 5 or SLES 10 with Oracle ASM on the IBM DS3400, DS4200, DS4700, and DS4800 Storage Subsystems
http://www-03.ibm.com/support/techdocs/atsmastr.nsf/WebIndex/WP101323
Edited by: Surachart Opun (HunterX) on Jun 26, 2009 11:27 AM -
Cloning a RAC environment using ASM to a single node.
Hi partners,
I would like to know if, there is any procedure to clone a RAC environment with Ebusiness Suite using ASM, OMF and raw devices to a single node database?
I know, it can reached using Rapid Clone, but I would like to know, what are the needed steps to clone the database which is using ASM and raw devices, I am thinking to recrate manually the controlfiles.
Also, I think that I will need to clone firstable the ASM instance, and then try to clone the database.
I have looking at Metalink, but I haven't found any Note about that.
Any advice or help will be really appreciated.
Thanks in advance.
Kind regards,
Francisco Mtz.RAC,Grid,ASM etc doubts/quiries can be answered in the relevent Oracle forums.
Please redirect your post in the following forums.
http://forums.oracle.com/forums/category.jspa?categoryID=140
Regards,
Sabdar Syed. -
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
Sudhirhi,
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
SRV2Hemant 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 -
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,
SanjeevThanks 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. -
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 335544320I'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? -
DBMS_SCHEDULER behavior in a RAC environment
What is the behavior of DBMS_SCHEDULER in a RAC environment (say 2 nodes, N1 and N2):
Is the behavior of a DBMS_SCHEDULER job created using a connection to the RAC service name be the same as if the job were created using a connection to N1 iusing the SID of N1?
If multiple jobs are created at N1 using the SID in the connection, will the RAC environment manage these in parallel across N1 and N2?
Thanks.Hi,
Is the behavior of a DBMS_SCHEDULER job created using
a connection to the RAC service name be the same as
if the job were created using a connection to N1
iusing the SID of N1?Yes there is no difference.
If multiple jobs are created at N1 using the SID in
the connection, will the RAC environment manage these
in parallel across N1 and N2?Yes. However, jobs have a slight preference to run on the instance they ran on previously (for performance reasons due to caching). So if both nodes are lightly loaded then a job will stick to running on the node it ran on the first time. However if that node gets loaded the Scheduler will start running the job on the other node (i.e. simple load-balancing) .
Thanks,
Ravi. -
IS IT SUPPORTED TO CENTRALLY MOUNT THE ORACLE_HOME IN A NON-RAC ENVIRONMENT
SR 7250090.993 : (http://qmon.oraclecorp.com/qmon3/quickpicks.pl?t=t&q=7250090.993)
Technical Summary:
Customer is planing to install Oracle 10.2.0.4 and 11.1.0.x software on a Red Hat5 with NetApp storage.
Customer came across the following :
For single instance installations (as opposed to RAC installations), you must create a separate Oracle home directory for each installation. Run the software in this Oracle home directory only from the system that you used to install it. For Oracle Real Application Clusters (RAC) installations, you can use a single Oracle home directory mounted from each node in the cluster. You must mount this Oracle home directory on each node so that it has the same directory path on all nodes.
mentioned in the 10gR2 documentation link :
http://download.oracle.com/docs/cd/B19306_01/install.102/b15667/app_nas.htm#BCFIDEJA
Requirements/Expectations:
As the above statements, that customer came across is not present in 9i documentation, customer wants to understand if it is actually supported to centrally mount the 10g/11g ORACLE_HOME to many servers that are not RAC enabled.
Also, I would like to understand if the statements in documentation indicate that it is not generally recommended centrally mount the 10g/11g ORACLE_HOME or does it mean that it is not supported to centrally mount the ORACLE_HOME in a non RAC environment?
Please advice.The binaries (executables) in an Oracle home are "linked" (link edited?) to the OS libraries on each server where the software is installed.
Unless the OS is IDENTICAL on each of the IDENTICAL(HW) servers -- that would share the Oracle home--, you could be in trouble.
The only supported configuration (I know of) where the Oracle binaries are shared between servers is 9i RAC. On 10g RAC the binaries are installed on each server.
Other wise I'd say it's NOT recommended, besides you don't save anything (execpt a cooupl of Gigs disk space).
:p
Maybe you are looking for
-
hello all, i need to take the following data ekko(ebeln),ekpo(ebelp),ekko(ernam),ekkn(ps_psp_pnr),vbap(posnr),bseg(kostl). how to join the tables. actually for my report the input is PO No. and the output needs to be Status of PO,Item number,Status o
-
How to retreive data from a field that contains a "|" symbol
Hi, Hopefully my title won't confuse anyone . Well I am trying to create a group which would display an employee name(s). In my case, the value comes from a field which can contain multiple values separated by a "|" symbol. See picture below. I am pr
-
Any known problems with the 1.2.3 update??
My iPod is behaving just fine thank you so I'm always a bit leery to install any updates since I really got burned the absolute FIRST time that I tried to install an update less than a week after acquiring my video iPod. I've been told by others here
-
Copy constructor and temporary objects in C++
I'd need some clarification on how constructor works when the argument is a temporary object. I defined a dummy MyVect class with operator+ and copy constructor: class MyVect { public: MyVect() { cout << "Constructor" << endl; MyVect(const MyVect &v
-
Canon XF 100HD or Canon EOS 7D ?
Good friends I had a JVC HDY U100 Camcorder and I used it to shoot some music videos , to make long story short, I sold it, I was not very happy with the quality of it, I used several ways and settings to shoot 5 mins songs , but I ended up not very