Instance naming in RAC environment
DB version : 11.1.0.7
OS : AIX 6.1
It has been few months since i've installed a RAC DB.
After the GRID/CRS installation, while DB creation, when you specify the DB name in DBCA , say orcl, DBCA will automatically create instances orcl1 and orcl2,...
But in my new company, i've come across RAC environments where the Instance names of the DB is not like
DB Name: ORCL
instance 1: orcl1
instance 2: orcl2Rather it is like
-- From Node1
SQL> select name from v$database;
NAME
MKESCU
SQL> select instance_name from v$instance;
INSTANCE_NAME
mkes1uHow did they manage to do this?
Why would anyone want instances for a RAC DB :MKESCU to be named as
mkes1u
mkes2uIs it for any security purpose?
Isn't
mkescu1
mkescu2straightforward and easy to understand?
Similar Messages
-
Add Dialog instance in Oracle RAC Environment
Hi Gurus,
Do we have to isntall Dialog Instance from sapinst if you want to add a dialog instance in the Cluster Environment?
I want to add two dialog instance to run on node-2 and node-4 using SAPCTL.Yes, you should run sapinst to install DI.
-
Instance naming in rac 11gr2 question
I am installing 11.2.0.3 grid and database on AIX 61 platform. IN the past when building rac databases I have always picked a logical database name and then just let the instance name be derived from the database name...e.g. database_name= racdb instance_names= racdb1,racdb2.
This has worked perfectly in the past but now the manager I am working for would like the following...
database_name= orprod00 instance_names= ormockn1,ormockn2.
Is this possible when using dbca to create the rac database and instances? Also, is it a good idea to have the instance names different from the database name.
Thanks for any suggestions.Is this possible when using dbca to create the rac database and instances? I don't know if the instance name is set when using dbca as I have always used the manual method but the database name is set at that time and I think instance name is as well using your naming convention. The instance name can always be changed afterwards. You set this when you export the ORACLE_SID and start the database. The instance name can be anything you want and does not need to relate to your database.
Also, is it a good idea to have the instance names different from the database name.Your naming convention is typically what is used as there is no confusion. All my database and instance names follow the same convention. ie [database_name][instance_number]
Why does your manager want different database and instance names. The database name of prod makes it pretty obvious it's a prod database, but instance name of "mock" doesn't make it obvious it's a prod database. In fact I would have assumed it's a mock database and not prod with that name.
Personally I think it's confusing having desperate instance and database names. -
Help while creating ASM instance on rac environment on Linux
Help while creating ASM instance on rac environment on Oracle enterprise Linux 4 x84_64 Update 5 (10g2).
a) Installed ASMLib 2.0 Packages
b) Configured and Loaded the ASMLib 2.0 Packages
c) Created ASM Disks for Oracle
d) I can see, three volumes already defined for ASM file system.
By running following command (on both node), I get following that means disk are detected.
/etc/init.d/oracleasm listdisks
VOL1
VOL2
VOL3
But Disk members not displayed for creating disk groups. I even tried to "Change Disk Discovery Path" button and put "ORCL:VOL*" but still no luck.
Someone told me use, use ADD DISKS button but this button is disabled for me.
Can anyone, please help me if I missing something.*****SOLVED******
Thanks for reply..
I set the Change Disk Discovery Path" to /dev/oracleasm/disk/* instead of "ORCL:VOL* and this worked for me. -
Several instances distributed in a 10g rac environment
Hi all.
We have a RAC environment with two instances. We use ASM and have two disk groups mounted. One for data and one for flashback.
We want to expand the environment by adding a new database.
Do we need to create additonal disk groups to exclusively mount these for each of the databases. Or can we use the same diskgroup for all four instances, i.e. both databases.
Rgds
Kjell OveU should try login as root and then type:
find / -name nameoffileyouaresearchingfor
This command will show You location of those files. -
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. -
How to restore a single instance database to RAC (10g) using RMAN ?
Hi all,
I have a single instance database configured using file system in a unique server, so now I need to restore this database using RMAN to a new RAC environment with two nodes and ASM also.
Does anyone can help with this documentation or a link about any information about this restore using rman ?
I tryied found on metalink but threres isn´t this specific case. Only how to convert single instance to 10g RAC, but without how to use with rman information.
System: Windows 2003
Oracle 10g R2
Thanks.
Wander(Brazil)Wander(Brazil) wrote:
Hi all,
I have a single instance database configured using file system in a unique server, so now I need to restore this database using RMAN to a new RAC environment with two nodes and ASM also.
In essense you are really doing nothing more than restoring a backup on a new host. If you want a blow by blow detail of how to accomplish it take at http://www.oracledistilled.com/oracle-database/restore-database-to-another-host-using-rman
In order to write the files to the ASM Disk groups you will use the SET NEWNAME FOR DATAFILE in your restore script. You will also need to create the ORACLE_BASE/admin/<DBSID> structure on all of node. Once you get the database completely restore you will need to edit the SPFILE to include the proper value for the CLUSTER* parameters and each the node specific parameters. Sorry that it is kind of higher level than what you are probably looking for but the link above and what I put here should get you were want to go. -
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 -
Genclntst fail in oracle10g RAC environment
After installation of oracle 10gR2 RAC on two-node solaris10 environment ,we need to run $ORACLE_HOME/bin/genclntst to generate the Client Static Library(libclntst10.a) but it failed .We copy another successfully generated libclntst10.a file from a non-RAC oracle10g environment running on solaris10.
and it seems to work correctly. is it really OK ?,is there any difference between the libclntst10.a file in a RAC environment and in a non-RAC environment ?
thanks a lot.
----------------------------the error message--------------------------------------------------------
(file /opt/lib/cobol/lib/libcobrts.so value=LOCL);
ld: warning: global symbol `' has non-global binding:
(file /opt/lib/cobol/lib/libcobrts.so value=LOCL);
ld: warning: global symbol `' has non-global binding:
(file /opt/lib/cobol/lib/libcobrts.so value=LOCL);
ld: warning: global symbol `' has non-global binding:
(file /opt/lib/cobol/lib/libcobrts.so value=LOCL);
ld: warning: global symbol `' has non-global binding:
(file /opt/lib/cobol/lib/libcobrts.so value=LOCL);
ld: warning: global symbol `' has non-global binding:
(file /opt/lib/cobol/lib/libcobcrtn.so value=LOCL);
ld: warning: global symbol `' has non-global binding:
(file /opt/lib/cobol/lib/libcobmisc.so value=LOCL);
ld: warning: global symbol `' has non-global binding:
(file /opt/lib/cobol/lib/libcobscreen.so.2 value=LOCL);
Undefined first referenced
symbol in file
lms_fblang /oracle/oracle/product/10.2.0.1/lib32/libclntst10.a(lmsai.o)
lms_pmlang /oracle/oracle/product/10.2.0.1/lib32/libclntst10.a(lmsai.o)
ld: fatal: Symbol referencing errors. No output written to olcp
*** Error code 1
make: Fatal error: Command failed for target `olcp'Hi,
In 11g you can use the instance_id job attribute to do this.
In 10g you can do this using services.
- create a service for each instance
- create a job class pointing to each service
- grant execute on the job classes to all job owners that need to use them
- when creating a job point to the job class for the service for the instance it should run on
Oracle recommends using services instead of instances since services are more flexible and can provide high-availability and fail-over in case one instance goes down.
Hope this helps,
Ravi. -
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 -
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 -
Which file decide instance name in RAC 10g ?
Which file decide instance name in RAC 10g ?
How does RAC know which instance should start from which machine?
Thanks.The spfile is NOT the correct answer, actually.
1. The instance name for any Oracle instance, whether in a RAC or not, is derived from the value for the ORACLE_SID parameter which is in force at the time the startup command is issued. If you were to:
export ORACLE_SID=SALES
sqlplus / as sysdba
startup...you would just have created an instance called SALES.
2. The spfile (or init.ora if you're not using an spfile) contains a parameter called INSTANCE_NAME. That defaults to whatever ORACLE_SID is set to as an environment variable when the instance is started, hence point 1 above. But you can force an instance to acquire a non-SID name by deliberately setting it to something different. That's unusual to do, though, except in a RAC context where you want to subvert the default load balancing mechanism.
2b. The spfile (or init.ora) also contains a parameter called DB_NAME -but that is the name of the database, not the name of the instance, and is therefore irrelevant for the purposes of working out how instances get their names,
3. Neither of the above answers has got anything to do with RAC knowing what instance runs on which machine. That is the job of the Oracle Cluster Registry file (OCR), for which you have to provide about 100MB of space on a shared hard drive during the RAC installation itself.
You populate that file by running DBCA to create your RAC instances (and DBCA then automatically updates the OCR to record the fact that it created instance X1 on Node A and X2 on Node B, and therefore that's what will happen in the future unless you change things).
Or you can update the OCR yourself by using the SRVCTL utility. You'd do something like: srvctl add instance -d DB1 -i X3 -n C (add an instance called X3 to run on Node C as part of database DB1).
A little more details about the OCR is available in Section 13 of this article, for example: http://www.dizwell.com/prod/node/26?page=0%2C5
Maybe you are looking for
-
How do I properly emulate the old statusbar and some other features?
I can see the "statusbar issue" have been discussed a lot, but couldn't find a satisfying answer. I haven't used Internet Explorer for several years in benefit to Firefox. I hope I can keep it that way while I am also able to stay up to date at the s
-
How to install SCEP and sccm agent in D or E drive
SCEP is eating more CPU on C drive, so i want to to move re install SCEP and sccm agent on other driver D or E. How is it possible to move?
-
Conversion of alternate unit of measurement
Hi, System will not allow to enter conversions of unit of measurements in decimal points. But is there any configuration or method, we can force system to accept conversions of unit of measurements in decimal points only? (For example 2.5kg = 1pc, ba
-
Anyone know if/when Apple will remove the holiday music from my front page. I'd love to see some suggestions - but since I bought about 30 holiday tracks half my suggestions are holiday related. Holiday is also appearing as one my preferred catageori
-
Since few weeks, some websites are suddently unavailable. We are getting a 404 - The web page requested cannot be displayed. Basically, the only way to fix this is when I restart the DNS client/server on the server. The server is up to date but I did