Steps to rename RAC E-biz instance name.
Hi,
I have a RAC ORacle Apps R12 database on 2 nodes namele .36 server and .37 server.
I have changed this database name using metalink doc id Changing DBNAME and DBID of RAC Database Using NID [ID 464922.1]
where i have only changed the database name and not DBID
But after following above ID only DB name ot changed and not the instance name.Now i also want to change the instance name.
So,what steps should be followed to do it.
and after changing instance name,do we need to run autoconfig on database and application..
Please help as this is urgent.
Regards,
Clover support.
Hi;
Please see:
How to Rename Database/Change DB_NAME or ORACLE_SID/Instance Name [ID 15390.1]
Also see:
Rename RAC-Instances in 11.2.0.2
Regard
Helios
Similar Messages
-
Rename RAC-Instances in 11.2.0.2
Hi,
I have two Nodes RAC-Systems Version 11.2.0.2 on Linux Redhat 5.4 X86-64.
+ Node names stb, dwh
+ Database name : RAC
+ Instance-Name 1 : RAC1 on stb
+ Instance-Name 2 : RAC2 on dwh
After executing the following steps:
+ Delete Instance RAC2 with dbca on dwh
+ Convert Instance RAC1 to Instance RACONE_1 (RAC one node)
+ Relocate Instance RACONE_1 to dwh
+ Convert Instance RACONE_1 (RAC one node) to RACONE ( normal RAC )
+ Add Instance RACONE2 to stb
Since yesterday after shutdowning the corresponding instance I have tried unsuccessfully to rename the instance RACONE2 resp. RACONE to the previous names RAC1 & RAC2 with srvctl modify on the node with the running instance.
Can any expert help me?
Thanks
hqt200475
Note: http://download.oracle.com/docs/cd/E11882_01/rac.112/e16795/srvctladmin.htm#i1009714 shows:
srvctl modify instance -d db_unique_name -i instance_name
{-n node_name | -z}
Notes:
* You cannot use this command to rename or relocate a running instance.
* This command is only available with Oracle Clusterware and Oracle RAC.Hi,
+ srvctl stop instance -d -i RACONE2
+ srvctl modify instance -d RAC -i RAC1 -n stb
Here I have the problem:
I don't know how to change the name RACONE2 to RAC1 and RACONE to RAC2.
Do you know the answer?Never tried to change the name of the instance in RAC 11.2.
But in earlier versions I always perform the following steps to update OCR after changing INSTANCE_NAME in Database (SPFILE).
We needs to invoke SRVCTL to remove and again add the database information to OCR.
e.g
*****before the rename*****
srvctl stop database -d
srvctl remove instance -d -i
srvctl remove instance -d -i
(repeat above command for each instance as needed)
*****and after the rename*****
srvctl add instance -d -i -n
(repeat above command for each instance as needed)Regards,
Levi Pereira
Edited by: Levi Pereira on Jan 30, 2011 10:36 PM -
How to change DB & Instance name on RAC
Hi Experts,
Can anyone tell me how can i change my database name along with the two instances running on the RAC server?
Any ideas......
Regards,
MBYou can rename database by creating control file as well , like we use to do in single instance database.
1) Shutdown node 2
2) Run following command on node 1
alter database backup control file to trace ;
3) shutdown database on node 1
4) copy trace file created in step 2 to file crctl.sql (say) . Edit crctl.sql and set database name what u want to set.
5) edit init<sid>.ora and change database name
6) startup nomount and run crctl.sql
7) Startup database in both node
8) Change tnsnames.ora and listener.ora ( if needed)
9) config srvctl
srvctl remove database -d <old_database_name>
srvctl add database -d <new_db_name> -o $ORACLE_HOME
srvctl add instance -d <new_db_name> -i <instance name on node 1> -n Node1
srvctl add instance -d <new_db_name> -i <instance name on node 2> -n Node2
Virag -
RAC instance name - Can i choose my OWN?
Can i choose RAC instance name rather than defined by DBCA?
for example, i want to name my instance as <DBNAME>_1yes you can
Cheers -
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 -
Identical database & instance names in Oracle 11g R2 RAC
Hi ,
We are migrating our EBS 11i (11.5.10 CU 2) and oracle 11gr2 (11.2.0.3) database (database only) which is currently on Solaris to Linux. Currently the database is NON-RAC and as a part of the migration we are converting it in to a 5 Node RAC. A lot of third party interfaces connected to this environment are using hard coded database name. Unfortunately due to the project time lines it's impossible to change those applications within the migration timeline. In order to ensure that they don't break we are thinking of keeping one instance name same as database name so those applications can continue to function without any change to their code. We are aware that this would compromise on fail over capabilities for those applications but we are ok with that.
This what we have in mind: Create 5 PROD instance named as PROD, PROD1,PROD2, PROD3 & PROD4. PROD being the name of the database also. I would like to know:
1) Is this configuration allowed i.e., is it ok to have one instance with the same name as database?
2) We will be creating a 5 node Data gaurd environment for this so what will be the impact of such a naming on it?
3) Since it's an EBS environment will there be any issues with application configuration? Our application architecture will be as below:
6 application nodes - Two for concurrent managers, two for forms & web & two external nodes
The two CM app nodes will be tied to two database instances using Services
Remaining app nodes will connect to the remaining 3 instances once again using services.
We will be configuring services using "vip" instead of scan names.
4) What will be the impact if the node having the instance name same as database name goes down?
5) Any other areas to worry about with such a configuration say like cluster services, 3rd partyinterfaces/applications?
Please let me know if you have any idea of such a configuration.
regards
pramodBrian, rchem & Martin thanks for your responses. Appreciate it much. I was thinking about the service alternative but unfortunately I understand from my customer that their applications have hard coded database (used as a instance name) name. All they are saying is that their applications are using instance name instead of database name without providing much details on how it's being used. I just know that there 180 applications... Oracle & non Oracle based in which the instance name is hard coded, but haven't got answers to my questions on how it's hard coded i.e., is it being pulled from the database using a hard coded query like "select instance_name from v$instance" or is it a part of some variable in the script/application etc., and what it's being used for (later) within the application. Answers to those question will help in deciding what should be the right strategy but since I am short of time I thought of this and wanted to know if anybody has implemented or come across a similar architecture.
I am creating services and using them in my EBS application ifile thereby avoiding SID but agree with you on the node failure part as I haven't tested this new set up yet.
Martin,
You are right, they are using the database name as a SID in their application hence the above need. My cluster version is 11.2.0.4.0 (both Active & Software versions). The source database on solaris is 11.2.0.3 Non RAC, it's going to be upgraded to 11.2.0.4 before conversion/migration hence I have installed & created a 11.2.04 RAC environment as a part of POC/Load testing.
Regards
pramod -
Is it possible to rename MSSQL Instance Name
Hi everyone,
I have two sql instances installed in two node failover cluster mode, i want to rename one of my sql instance, is it possible to change instance name ,
if possible please suggest the way how i can rename the instance name.Hello,
Please read the following article.
https://msdn.microsoft.com/en-us/library/ms178083.aspx
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
Is it possible to change the name of an Middle-Tier Instance and/or the Infrastructure Instance after installation of 10gAS 904?
BobYou have changed hostname(servername) you can follow below:
you have to rename SQL server hostname:
sp_dropserver <old_name\instancename>;
GO
sp_addserver <new_name\instancename>, local;
GO
Restart the SQL Server services.
http://www.mssqltips.com/sqlservertip/2525/steps-to-change-the-server-name-for-a-sql-server-machine/
You cant change installed instance name of SQL, so SQL instance will be CON.
Understand you may have CON as database but your instance name is also CON. Thats why you are seeing MSSQL$CON.
CON was select as instance name when performing SQL installation.
There is no command to rename an instance. You will need to install a new instance with name REX side by side, move the databases by whichever method you'd like (backup & restore would be fine) and drop the previous instance or have 2 instance running. -
RMAN backup restore from RAC to single instance ASM
Hi,
We are using oracle 11gR2 on AIX 6.1,
We need to restore RMAN backup from RAC to single instance ASM,
Im new to RAC & ASM, What will be the changes
What will be steps involved into it.
ThanksHello,
Refer this MOS doc *HowTo Restore RMAN Disk backups of RAC Database to Single Instance On Another Node [ID 415579.1]*
On the Single Instance ASM, you need to specify the diskgroup name for the parameters "control_files, db_create_file_dest"
Handle: user10745179
Email: [email protected]
Status Level: Newbie (5)
Registered: Feb 24, 2009
Total Posts: 168
Total Questions: 74 (52 unresolved)
Name Devesh
Location Mumbai If you feel that your questions have been answered, then please consider closing the threads by providing appropriate points. Please keep the forum clean !!
Regards,
Shivananda -
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The
server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26- Error:Locating Server\instance Specified)
How Can i solve this?1. Make sure SQL Server Service is running
2. If a named instance, make sure SQL Server browser service is running
3. Make sure SQL Server is configured to allow remote connections
4. Examine the SQL Server error log for messages confirming that SQL is listening on the expected network interfaces and ports
5. Test server connectivity with PING from the client machine
6. Test port connectivity using TELNET or PowerShell to the server and port (from step 4) from the client machine. For example
a. TELNET <server-name> 1433
b. PowerShell: 1433 | % { echo ((new-object Net.Sockets.TcpClient).Connect("YourServerName",$_)) "server listening on TCP port $_" }
7. Check firewall settings if step 5 or 6 connectivity test fails
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
What is the maximum number of characters in an Oracle 10G Instance Name
All,
Can I know what is the maximum number of characters in an oracle 10g instance name under AIX? Is it 7 characters or 8 characters?
regards
SanthoshOne should really make the difference between db_name and instance_name: if instance_name default value is db_name it can be different
(even on a non RAC database).
For example with Oracle 10.2.0.4 you can create a database named DB78 with instance_name=DB12345678:
$ uname -a
Linux lx01.localdomain 2.6.18-92.el5 #1 SMP Fri May 23 22:17:30 EDT 2008 i686 i686 i386 GNU/Linux
$ ps -fu oracle | grep smon
oracle 6353 1 0 20:30 ? 00:00:01 ora_smon_DB12345678
oracle 6412 5596 0 20:37 pts/1 00:00:00 grep smon
$ export ORACLE_SID=DB12345678
$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 8 20:34:26 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
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
SQL> show parameter name
NAME TYPE VALUE
db_file_name_convert string
db_name string DB78
db_unique_name string DB78
global_names boolean FALSE
instance_name string DB12345678
lock_name_space string
log_file_name_convert string
service_names string DB78I would not recommend this practice: but it's interesting to know to avoid confusing between db_name and instance_name. -
How does RAC determine which instance number to run on which node
Good afternoon
I am trying to script a process and I need to identify how RAC decides which node runs which instance. Is it the first one of the pair added to the cluster that runs node 1 or is there some other piece of information that I need to work this out
This is on Redhat Linux with 10.2.0.3 for CRS, ASM and databases
Cheers
PeterBefore "you" start an instance you set env variable ORACLE_SID. This identifies an instance. When you go into sqlplus and issue STARTUP, Oracle starts the instance named by the sid. Thus the instance running on the server is controlled by you. This changes as noted below.
If you were using a non-Oracle tool to start instances, such as Veritas, then you would see it start the instance you coded into the tool. It would not randomly pick an instance. It looks in the Veritas config file and sees that you always want instance 1 on this node and instance 2 on that node.
That said, you can make Oracle more random or "grid" like. 10g RAC done Oracle's way likes to bounce around between primary and secondary nodes. To see which instances are running on a node you can "ps -ef | grep pmon". Alternatively, use sqlplus to look in the database: view gv$instance gives you each instance name paired with the name of the host it is currently running on. There is one line of output per instance currently running.
-Mark -
How to rename a EJB's jndi name?
Using Sun Appserver, having deployed all EJBs, I want to rename a EJB's jndi name, for instance,
to rename object "java:comp/env/ejb/User" to "java:comp/env/ejb/User1". By using InitialContext.rename(oldName,newName), a NamingException is thrown and its message is "java:comp namespace cannot be modified ". How to solve it?It is not possible.
Prohibited by the EJB spec. -
Data Guard - Keeping same SID/Instance Name across both sites
Hello,
We are working on a project to move the databases from legacy to new servers. The migration plan is to use Data Guard option for our migration strategy. We would like to know followings.
1) Is it possible to build stand by databases with same instance name of legacy primary instances? If so, how it could be?
2) If not, we can build stand by database with different instance name (DB_UNIQUE_NAME). Do the switch over and cut off the replication with legacy primary database. Once done, What other alternative do we have to change the instance name same like legacy database instances?
The ultimate goal is to retain same DB name and instance name in new server with minimum downtime.
Database - 11.2.0.3.0
Database Type - Oracle restart and RAC
O.S. - RHEL 6.3
The requirement is have same DB name and instance name across sites.
Primary site - X node
Primary DB - EODSS
Primary DB instances - EODSS1, EODSS1
Standby Site - Y node
StandBy DB - EODS
StandBy instances - EODSS1, EODSS1
Thanks,
Pankaj
Edited by: user12025125 on Feb 22, 2013 12:33 PMHello;
1) Is it possible to build stand by databases with same instance name of legacy primary instances? If so, how it could be?
Yes. Not sure I understand the second part of the question. I like to think of a standby database and a primary database as the same database in different modes. RMAN treats them as the same. They have the same DBID.
2) If not, we can build stand by database with different instance name (DB_UNIQUE_NAME). Do the switch over and cut off the replication with legacy primary database. Once done, What other alternative do we have to change the instance name same like legacy database instances?
It should not matter what the database name is. Almost everything connects using an Alias. I find it easier to use a slightly different name for the Standby because then I know which site I'm working on. What I did was put an S in front of the name on the standby side to keep them apart in my mind. A tnsnames entry can handle the rest. So yes you can do that, but it might be harder to keep track that way.
ernie =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = primary.server)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = standby.server)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ernie)
)Best Regards
mseberg -
Changing Instance Name - spfile
Hello guys,
i've got a little question about changing instance names and values.
For example i got the following spfile (only example values):
*.db_name=DB1
DA1.shared_pool=9000000
DA2.shared_pool=8000000
and so on...
So the db_name DB1 is valid for all instance identifiers.
But how can i specify manually with which instance name the oracle db server should start? (for exampe DA1 and DA2)
The standard spfile name can also not be used, because of oracle searches normally for $ORACLE_HOME/dbs/spfileSID.ora file?
And which value is preferred, if i have a value for all instances (*.shared_pool) and a value for the specfied instance (DA1.shared_pool)... which parameter is valid if both are specified in the spfile?
Thanks and regards
Stefanhi,
Every Instance having there own spfile<sid>.ora.hmm that sounds very strange to me. Because of the option with the identifier in front of the parameter (*= for every instance, DA1 = only for instance with name DA1).
I read about the advantage only having one spfile for more instances (for exampe RAC).
So maybe there is a possibility, to start an instance with the specified name (in my example DA1 or DA2).
I don't want to change the DB name... only the instance name so that i can easily start the same db with different parameters (=different instance name)..
Thanks
Stefan
Maybe you are looking for
-
How do I find the typedef for a control?
I have several VI's (350+) which make use of a number of typedef and strict typedef controls. I want to automatically generate some documentation but I would like to insert the name of the typedef as the data type but I cannot see how to make the lin
-
GL account in ds 0FI_AA_11
Hello Can somebody tell me how GL account is linked with ds 0FI_AA_11? I need to add GL account to this ds but dont know how to derive it. I know that thee is GL line item ds but these two ds have differant granularity.
-
Cannot connect to configuration database - share point services 3.0
Hello, Im running a SharePoint Service 3.0. Databases are on a SQL 2005 server. Yesterday I wanted to change the user identity for the IIS application pools. I also added the new user to access the databases. After the change I got the message that I
-
Hello! There are some questions about ASR & licences: 1. If i want to use ASR1000 as aggregator of pppoe connections without using isg features, do i have to buy BB right-to-use licences and per-subscriber ones? 2. Do i have to buy FW licence for usi
-
I've true everything but nothing is working, when I scroll the notes down, it just closes and then I'm back at the homescreen , can anyone help me solve this problem? I've even restarted all settings and this still happenes to me =|