Non RAC to RAC using RMAN
Hi All Oracle Guru's!
I have an environment right now which consists of non rac and rac databases.
What I want to do now is duplicate my non rac database going to the rac instance using RMAN duplicate. The rac instance is freshly configured.
How can this be done? Is there any other options? Im using 10gr2.
Please guide me.
Thanks in advance!
cmadiam82 wrote:
Hi All Oracle Guru's!
I have an environment right now which consists of non rac and rac databases.
What I want to do now is duplicate my non rac database going to the rac instance using RMAN duplicate. The rac instance is freshly configured.
How can this be done? Is there any other options? Im using 10gr2.
Please guide me.
Thanks in advance!Do an RMAN restore on node 1 for example. that should work.
Similar Messages
-
Creating Standby for RAC ASM database using RMAN
We are having a Primary Site of 3-Node RAC ASM and we takes daily RMAN backup with the following script
run
allocate channel c1 device type disk format 'g:\rmanbackup\%U';
backup database;
backup archivelog from time 'trunc(sysdate-1)' until time 'sysdate';
We have configured 3-Node RAC Cluster in Standby site. We have copied the rman backup folder to one of the Nodes in the Standby site.
Request your help to restore the RMAN backup. The backup size is around 200GB. We do not know how to use DUPLICATE DUPICATE option in RMAN as if it is restoring from the Primary Location, then transferring 200GB over the network will not be possible.
We need a solution to restore it directly from the Backup folder available in the DR Server. We are not using catalog.
OS : Windows IA 64-bit
RDBMS : Oracle 10.2.0.4
Storage : ASM
DB Nodes at Primary Site, Node1, Node2, Node3
DB instances at primary site : ORCL1, ORCL2, ORCL3
DB Nodes at Standby Site, Node101, Node102, Node103
DB instances at Standby site : ORCL1, ORCL2, ORCL3
DB Name : ORCL on both the sites.When you create the standby, you can use catalogued backups, stored somewhere local to your standby servers.
For that, they need to be copied to the standby server, or taken from production there, and after restoring the standby controlfile on the standby server, use rman to catalogue the backups to be used. Then, you can use DUPLICATE... and it will be reading your local backup files.
The directory g:\rmanbackup of your rman script is local to standby servers ?
The docs for this have a lot of details: http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rcmbackp.htm
Regards. -
Rebuild RAC phsical standby with RMAN
Hi all,
Can anyone give any advice as to rebuilding an ACTIVATED RAC physical standby using RMAN? We have been able to revert the db with flashback but I need to know the rebuild method.
Is there any extra steps with the OCR?
I am guessing the steps might be:
1. Use DBCA to delete the newly activated standby.
(The DBCA will clean up the OCR components)
2. Use RMAN to duplicate a physical standby database.
3. Register the instances and services with the OCR.
Can any comment on this and suggest a decent task list from oracle as to the method.
Thanks in advance,
jd
Edited by: jonnyd on 30-May-2010 13:42...anyone...?
-
Using RMAN to create single instance standby from 2 node rac
Any advice on the RMAN command to take a non catalog full rman backup from a two node 11gr2 rac node and use it to create the STANDBY single instance.
The RAC two node instance is in ASM (Linux)
The Physical Standby is Normal File System (Linux)
The command that I get from Metalink suggests:
rman target sys/passwd@primary catalog RMAN/RMAN@RMAN auxiliary sys/passwd
RMAN> run {
allocate auxiliary channel C1 device type disk;
duplicate target database for standby;
When I took the rman backup I did not use catalog. Please suggest how to accomplish the same task without catalog. ThanksListener.ora
SID_LIST_STANDBY_LSNR =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = KEMETRAC.respecti.com)
(SID_NAME = STANDBY)
(ORACLE_HOME = /u02/standby/11.2.0.3/STANDBY)
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u02/standby/11.2.0.3/STANDBY)
(PROGRAM = extproc)
ADR_BASE_STANDBY = /u02/standby/11.2.0.3
TRACE_LEVEL_STANDBY = OFF
STANDBY_LSNR =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = standby.respecti.com)(PORT = 2012))
LOGGING_STANDBY = OFF
...... Tnsnames.ora
STANDBY.RESPECTI.COM,STANDBY =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = standby.respecti.com)(PORT = 2012))
(CONNECT_DATA =
(SERVICE_NAME = STANDBY.respecti.com)
KEMETRAC1.respecti.com, KEMETRAC1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip.respecti.com)(PORT = 2012))
(CONNECT_DATA =
(SERVICE_NAME = kemetrac1.respecti.com)
KEMETRAC2.respecti.com, KEMETRAC2 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip.respecti.com)(PORT = 2012))
(CONNECT_DATA =
(SERVICE_NAME = kemetrac2.respecti.com)
# TAF 2 Node RAC
KEMETRAC.respecti.com, KEMETRAC =
(DESCRIPTION =
(ADDRESS_LIST =
(FAILOVER = ON)
(LOAD_BALANCE = ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip.respecti.com)(PORT = 2012))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip.respecti.com)(PORT = 2012))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = kemetrac.respecti.com)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
(RETRIES = 180)
(DELAY = 5)
The Standby has been started up with nomount.
standby> rman target sys/[email protected] auxiliary sys/pw
Recovery Manager: Release 11.2.0.3.0 - Production on Wed Jan 18 18:16:46 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: KEMETRAC (DBID=1448030790)
connected to auxiliary database: KEMETRAC (not mounted)
RMAN>
RMAN> run {
2> duplicate target database for standby from active database dorecover nofilenamecheck;}
Starting Duplicate Db at 18-JAN-12
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 01/18/2012 18:23:06
RMAN-05501: aborting duplication of target database
RMAN-06217: not connected to auxiliary database with a net service name
RMAN> -
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. -
Non-Rac to Rac conversion using rconfig
hi all,
how to check whether Non-Rac to Rac conversion using rconfig has been completed sucessfully?
thanks.
Edited by: varun4dba on Nov 10, 2010 1:02 PMselect parallel
from V$instance;
-- run it on your any RAC instance. if YES then you have converted to RAC
http://oracleinstance.blogspot.com/2009/12/convert-single-instance-to-rac-instance.html
Check the above link also.
Regards
Asif Kabir -
Failed RMAN Duplicate from NON-RAC to RAC-ASM
Hi All!
Is it possible to resume a failed RMAN Duplicate? Database is 10gR2.
Please advice...
Regards,
cmadiamOnce you fix the disk group name you can run the duplicatie, it should work fine.
Please refer the link
http://www.oracleracexpert.com/2009/10/migrate-database-to-asm-using-rman.html
Hope this helps,
Regards
http://www.oracleracexpert.com
Duplicate RAC DB using RMAN
http://www.oracleracexpert.com/2009/12/duplicate-rac-database-using-rman.html -
Cloning non-RAC to RAC ?
Hi,
Is it true that Oracle does not support cloning of single node instance EBS R12.1 (Non-RAC) to RAC?
Is there other supported way to do it? both using rapid clone or manual?
Thanks a lot
MsKHi,
How about the patches needed? Make sure you have the latest Rapid Clone and AutoConfig patches applied on the source instance.
Our source db is 11.1.0.7, and the target db is also 11.1.0.7 ....but there are patches mentioned in 802875.1
Do I need to follow this Note?If you are already on 11.1.0.7, then you do not need to apply those patches.
Regards,
Hussein -
Hi,
I need to convert a Non-rac to RAC. Can somebody help me with note or doc for doing this ?
Thx1. Set the init parameter cluster_database=false (or remove it since false is the default). You'll have to set it in the parameter file since it is not dynamic.
2. Shutdown all instances. Start the one that you want to survive.
3. Cleanup as necessary: remove extra UNDO, REDO files
4. If you want to remove clusterware, that's another whole question. There's a ML article on how to remove clusterware.
5. If your database uses ASM, you'll need to do #1 for the ASM instances as well.
That's high-level, but I haven't seen a complete paper/procedure for this published anywhere yet. -
RAC to RAC CLONE FROM RMAN Cold Backup
Hi All,
I need your kind assistance in Cloning my Oracle RAC 11.2.0.2 Environment to remote host. Following is Disk layout
DGVOT (ASM Disk group holding OCR and Voting Disk)
DGDATA (ASM Disk Group Holding Data FIles)
DGFRA (ASM Disk Group Holding Fast Recovery FIles)
Remote Host is on different location so cannot use RMAN duplicate with auxiliary channel.
Have luxury of downtime so I want to take RMAN Consistent( Cold Backup)
SAME Disk layout is available to remote hosts.
11.2.0.2 CLusterware (GI) Plus the oracle binaries are already installed.
Can any body tell me the steps to
1) How to take cold backup to disk so that I can tar and copy to remote host
2) clone the database on remote host
3) How i will add the database listener and other resources of this databasee to clusterware.
actually this is my first RAC clone so i am not much aware of detail steps.
I have gone though many metalink notes but no one is matching with my requirements. your expert advice will help me a lot
Regards,Hi
1) How to take cold backup to disk so that I can tar and copy to remote host.
Use Rman for cold backupIn mount stage execute
RMAN>backup database plus archivelog format '<disk_path>/dbp%U';
RMAN> backup current controlfile format '<disk_path>/ctl%U';
Copy thse backup sets to remote host
2) clone the database on remote host
Create Similar ASM Disk groups as on source
create pfile/spifile, startup instance in nomount mode
catalog backup set
RMAN> catalog start with '<backup_set location>';
Restore controlfile
RMAN>restore controlfile;
RMAN> restore database;
RMAN> recover database;
On successfull recovery
RMAN>sql 'alter database open';
3) How i will add the database listener and other resources of this databasee to clusterware.
User srvctl to add resources
Usage: srvctl <command> <object> [<options>]
commands: enable|disable|start|stop|relocate|status|add|remove|modify|getenv|setenv|unsetenv|config|convert|upgrade
objects: database|instance|service|nodeapps|vip|network|asm|diskgroup|listener|srvpool|server|scan|scan_listener|oc4j|home|filesystem|gns|cvu
For detailed help on each command and object and its options use:
srvctl <command> -h or
srvctl <command> <object> -h
Thanks,
Ajay More -
Oracle E-Business Suite non-rac to rac
Hi,
I've r12.0.6/10.2.0.3/RHEL5.3/file system NON-RAC and want to go r12.0.6/11gr2V2/RHEL5.4/ASM and RAC enviornment.
Planning to move as follows:
-Upgrade RHEL 5.4
-Upgrade to 11gr2V2
-COnvert to ASM
-Configure to RAC.
Please advice if any idea which has less risk.
Please let me know metalink note convert single instance to RAC doc /File System to ASM or any good note.
Any advice is welcome.
ThanksPlease see this thread for similar discussion.
Cloning non-RAC to RAC ?
Cloning non-RAC to RAC ?
Thanks,
Hussein -
Problems w/ race conditions when using attachmovie
Hello,
I'm having a strange problem w/ race conditions when using attachmovie.
I have a class linked to a movie clip that I'm attaching to the stage. The class is
fired off when the movie clip is attached but also other classes are getting loaded at the same time
while the movie clips is attached. Even though the other classes are called after the
movieclip is attached, they are getting loaded faster and therefor the class linked to the attached movie clip
cannot access their functions.
I'm looking for a listener that will fire off an event ONLY when the attached movieclip is fully loaded but I can't
seem to find any examples of associating a listener to a attachmovie method.
Any ideas?
Thanks,
Clem Cflash is single threaded so nothing happens simultaneously. what do you mean by, "other classes are getting loaded at the same timewhile the movie clips is attached"
-
Steps to Convert R12 Non-Rac to RAC database with ASM
dear All,
We have following environment.
R12.0.6 with a non RAC 11.2.0.2 database on on AIX (64bit). Datafiles are stored local filesystem. We want to do the following.
Migrate the database file to ASM
convert database Non RAC to RAC
we have gone through many oracle support documents but were unable to decide which path we should adopt. Any body who has done similar activity; please share only highly level steps. No step by step Instructions are needed. e.g. Install Grid Infrastructure (for single instance or the one which comes with cluster home???????), Move datafiles to ASM etc etc
Please make sure the steps are for 11gR2 and EBS R12.
Best Regards,we have gone through many oracle support documents but were unable to decide which path we should adopt. Any body who has done similar activity; please share only highly level steps. No step by step Instructions are needed. e.g. Install Grid Infrastructure (for single instance or the one which comes with cluster home???????), Move datafiles to ASM etc etc
Please make sure the steps are for 11gR2 and EBS R12. The steps in [ID 823587.1] which is referenced above should be sufficient (from your post, I understand that you have covered the steps in this doc) -- What exactly you have issues with?
Thanks,
Hussein -
RAC with 10G using shared directories
We want to test Oracle 10G with Real Applications Cluster, but we do not have a SAN yet, can we use a disk from a normal server, share this disk and create a map network drive in the two servers that i want to install in the RAC? and use them like a shared disk??
This is the article about what I was refering:
Setting Up Linux with FireWire-Based Shared Storage for Oracle9i RAC
By Wim Coekaerts
If youre all fired up about FireWire and you want to set up a two-node cluster for development and testing purposes for your Oracle RAC (Real Application Clusters) database on Linux, heres an installation and configuration QuickStart guide to help you get started. But first, a caveat: Neither Oracle nor any other vendor currently supports the patch; it is intended for testing and demonstration only.
The QuickStart instructions step you through the installation of the Oracle database and the use of our patched kernel for configuring Linux for FireWire as well as the installation and configuration of Oracle Cluster File System (OCFS) on a FireWire shared-storage device. Oracle RAC uses shared storage in conjunction with a multinode extension of a database to allow scalability and provide failover security.
The hardware typically used for shared storage (a fibre-channel system) is expensive (see my column on clustering with FireWire on Oracle Technology Network (OTN) for some background on shared-storage solutions and the new kernel patch). However, once youve installed and set up the kernel patch, you will be on your way to setting up a Linux cluster suitable for your development team to use for demo testing and QAa solution that costs considerably less than the traditional ones.
The patch is available to the Linux and open source community under the GNU General Public License (GPL). You can download it from the Linux Open Source Projects page, available from the Community Code section of OTN. See the Toolbox sidebar for more information.
Figure 1: Two-node Linux cluster using FireWire shared drive
By following this guide, youll install the patched kernel on each machine that will comprise a node of the cluster. Youll basically build a two-node test configuration composed of two machines connected over a 10Base-T network, with each machine linked via FireWire to the drive used for shared storage, as shown in see Figure 1.
If you havent used FireWire on either machine before, be sure to install and configure the FireWire interconnect in each machine and test it with a FireWire drive or other device before you get started, to ensure that the baseline system is working. The FireWire interconnects we tested are based on Texas Instruments (TI, one of the coauthors of the IEEE specification on which FireWire is based) chipsets, and we used a 120GB Western Digital External FireWire (IEEE 1394) hard drive.
Table 1 lists the minimum hardware requirements per node for a two-node cluster and some of the additional requirements for clusters of more than two nodes. You can use a standard laptop equipped with a PCMCIA FireWire card for any of the nodes in the cluster. Weve successfully tested a laptop-based cluster following the same installation process described in this article.
As shown in Table 1, for more than two nodes, you must add a four- or five-port FireWire hub to the configuration, to support connections from the additional machines to the drive. Just plug each Linux box into a port in the hub, and plug the FireWire drive into the hub as well. Without a hub, the configuration wont have enough power for the total cable length on the bus.
The instructions in this article are for a two-node cluster configuration. To create a cluster of more than two nodes, configure each additional node (node 3, node 4) by repeating these steps for each of the additional nodes and also be sure to do the following:
Modify the command syntax or script files to account for the proper node number, machine name, and other details specific to the node.
Create an extra set of log files and undo tablespaces on the shared storage for each additional node.
Its not yet possible to use our patched FireWire drivers to build a cluster of more than four nodes.
Step 1: Download Everything You Need
Before you get started, spend some time downloading all the software youll need from OTN. If youre not an OTN member, youll have to join first, but its free.
Keep in mind that these Linux kernel FireWire driver patches are true open source projects. You can download the source code and customize it for your own implementations as long as you adhere to the GPL agreement.
See "Toolbox" for a list of the software you should download and have available before you get started.
Step 2. Install Linux
Once youve downloaded or purchased the Red Hat Linux Advanced Server 2.1 distribution (or another distribution that youve already gotten to work with Oracle9i Database, Release 2), you can install Linux on the local hard drive of each node (this takes about 25 minutes per node). Well keep the configuration basic, but you should configure one of the network cards on each machine for a private LAN (this provides the interconnect between nodes in the cluster); for example:
hostname: node1
ip address: 192.168.1.50
hostname: node2
ip address: 192.168.1.51
Because this is a private LAN, you dont need "real" IP addresses. Just make sure that if you do hook up either of these machines to a live network, the IP addresses dont conflict with those of other machines. Also, be sure you download all the software you need for these machines before configuring the private network if you havent also configured or dont have a second network interface card (NIC) in the machines.
Step 3. Install Oracle9i Database
If you havent done so already, you must download the Oracle software set for Oracle9i Database Release 2 (9.2.0.1.0) for Linux, or if youre an OTN TechTracks
For each machine that will comprise a node in the cluster, you must do the following:
Create a mount point, /oracle/home, for the Oracle software files on the local hard disk of each machine.
Create a new user, oracle (in either the dba or the oracle group), in /home/oracle on each machine.
Start the Oracle Universal Installer from the CD or the mount point on the local hard disk to which youve copied the installation files; that is, enter runInstaller. The Oracle Universal Installer menu displays.
From the menu, choose Cluster Manager as the first product to install, and install it with only its own node name as public and private nodes for now. Cluster Manager is just a few megabytes, so installation should take only a minute or two.
When the installation is complete, exit from the Oracle Universal Installer and restart it (using the runInstaller script). Choose the database installation option, and do a full software-only installation (dont create a database).
Step 4. Configure FireWire (IEEE 1394)
If you havent done so already, download the patched Linux kernel file (fw-test-kernel-2.4.20-image.tar.gz) from OTNs Community Code area.
Assuming that fw-test-kernel-2.4.19-image.tar.gz is available at the root mount point on each node, now do the following:
Log on to each machine as the root user and execute these commands to uncompress and unpack the files that comprise the modules:
cd /
tar zxvf /fw-test-kernel-2.4.19-image.tar.gz
modify /etc/grub.conf
If youre using the lilo bootloader utility instead of grub, replace grub.conf in the last statement above with /etc/lilo.conf.
To the bottom of /etc/grub.conf or /etc/lilo.conf, add the name of the new kernel:
title FireWire Kernel (2.4.19)
root (hd0,0)
kernel /vmlinuz-2.4.19 ro root=/dev/hda3
Now reboot the system by using this kernel on both nodes. To simplify the startup process so that you dont have to modify the boot-up commands each time, you should also add the following statements to /etc/modules.conf on each node:
options sbp2 sbp2_exclusive_login=0
post-install sbp2 insmod sd_mod
post-remove sbp2 rmmod sd_mod
During every system boot, load the FireWire drivers on each node; for example:
modprobe ohci1394
modprobe sbp2
If you use dmesg (display messages from the kernel ring buffer), you should see a log message similar to the following:
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 35239680 512-byte hdwr sectors (18043 MB)
sda: sda1 sda2 sda3
This particular message indicates that the Linux kernel has recognized an 18GB disk with three partitions.
The first time you use the FireWire drive, run fdisk from one of the nodes and partition the disk as you like. (If both nodes have the modules loaded while youre running fdisk on one node, you should reboot the other system or unload and reload all the FireWire and SCSI modules to make sure the new partition table is loaded.)
Step 5. Configure OCFS
We strongly recommend that you use OCFS in conjunction with the patched kernel so that you dont have to partition your disks manually. If you havent done so already, download the precompiled modules (fw-kernel-ocfs.tar.gz) from OTNs Community Code area. (See the "Toolbox" sidebar for more information.)
Untar the file on each node, and use ocfsformat on one node to format the file system on the shared disk, as in the following example:
ocfsformat -f -l /dev/sda1 -c 128 -v ocfsvol
-m /ocfs -n node1 -u 1011 -p 755 -g 1011
where 1011 is the UID and GID of the Oracle account and 755 is the directory permission. The partition that well use is /dev/sda1, and -c 128 means that well use a 128KB cluster size; the cluster size can be 4, 8, 16, 32, 128, 256, 512, or 1,024KB.
As the root user, create an /ocfs mountpoint directory on each node.
To configure and load the kernel module on each node, create a configuration file /etc/ocfs.conf. For example:
ipcdlm:
ip_address = 192.168.1.50
ip_port = 9999
subnet_mask = 255.255.252.0
type = udp
hostname = node1 (on node2, put node2s hostname here)
active = yes
Be sure that each node has the correct values with respect to IP addresses, subnet masks, and node names. Assuming that youre using the example configuration, node 1 uses the IP address 192.168.1.50 ; while on node 2, put 192.168.1.51
Use the insmod command to load the OCFS driver on each node. The basic syntax is as follows:
insmod ocfs.o name=<nodename>
For example:
insmod /root/ocfs.o name=node1
Each time the system boots, the module must be loaded on each node that comprises the cluster.
To mount the OCFS partition, enter the following on each node:
mount -t ocfs /dev/sda1 /ocfs
You now have a shared file system, owned by user oracle, mounted on each node. The shared file system will be used for all data, log, and control files. The modules have also been loaded, and the Oracle database software has been installed.
Youre now ready for the final stepsconfiguring the Cluster Manager software and creating a database. To streamline this process, you can create a small script (env.sh) in the Oracle home to set up the environment, as follows:
export ORACLE_HOME=/home/Oracle/9i
export ORACLE_SID=node1
export LD_LIBRARY_PATH=/home/Oracle/9i/lib
export PATH=$ORACLE_HOME/bin:$PATH
You can do the same for the second nodejust change the second line above to export ORACLE_SID=node2.
Execute (source) this file (env.sh) when you log in or from .login scripts as root or oracle.
Step 6. Configure Cluster Manager
Cluster Manager maintains the status of the nodes and the Oracle instances across the cluster and runs on each node of the cluster.
As user root or oracle, go to $ORACLE_HOME/oracm/admin on each node and create or change the cmcfg.ora and the ocmargs.ora files according to Listing 1.
Be sure that the HostName in the cmcfg.ora file is correct for the machine that is, node 1 has a file that contains node1, and node 2 has a file that contains node2.
Before starting the database, make sure the Cluster Manager software is running. For conveniences sake, add Cluster Manager to the rc script. As user root on each node, set up the Oracle environment variables (source env.sh):
cd $ORACLE_HOME/oracm/bin
./ocmstart.sh
The file ocmstart.sh is an Oracle-provided sample startup script that starts both the Watchdog daemon and Cluster Manager.
Step 7. Configure Oracle init.ora, and Create a Database
Listing 2 contains an example init.ora in $ORACLE_HOME/dbs. You can use it on each node to create initnode1.ora and initnode2.ora, respectively, by making the appropriate adjustmentsthat is, change node1 to node2 throughout the listing.
You must now create the directories for the log files on node 1, as follows:
cd $ORACLE_HOME
mkdir admin ; cd admin ; mkdir node1 ; cd node1 ;
mkdir udump ; mkdir bdump ; mkdir cdump
Again, do the same for node 2, replacing node1 in the syntax example with node2.
Make a link for the Oracle password file on each node (these files may not yet exist):
cd $ORACLE_HOME/dbs
ln -sf /ocfs/orapw orapw
Now that you have the setup, the next step is to create a database. To simplify this process, use the shell script (create.sh) in Listing 3. Be sure to run the script from node 1 only, and be sure to run it only once. Run this script as user oracle, and if all has goes well, you will have created the database, added a second undo tablespace, and added and enabled a second log thread.
You can start the database from either node in the cluster, as follows:
sqlplus / as sysdba
startup
Finally, you can configure the Oracle listener, $ORACLE_HOME/network/admin/listener.ora, as you normally would on both nodes and start that as well.
You should now be all set up!
Wim Coekaerts ( [email protected]) is principal member of technical staff, Corporate Architecture, Development. His team works on continuing enhancements to the Linux kernel and publishes source code under the GPL in OTNs Community Code section. For more information about Oracle and Linux, visit the OTN Linux Center or the Linux Forum.
Toolbox
Dont tackle this as your first "getting to know Linux and Oracle project." This article is brief and doesnt provide detailed, blow-by-blow instructions for beginners. You should be comfortable with the UNIX operating system and with Oracle database installation in a UNIX environment. Youll need all the software and hardware items in this list:
Oracle9i Database Release 2 (9.2.0.1.0) for Linux (Intel). Download the Enterprise Edition, which is required for Oracle RAC.
Linux distribution. We recommend Red Hat Linux Advanced Server 2.1, but you can download Red Hat 8.0 free from Red Hat. (However, please note that Red Hat doesnt support the downloaded version.)
Linux kernel patch for FireWire driver support, available under the Firewire Patches section. (Note that were updating these constantly, so the precise name may have changed.)
OCFS for Linux. OCFS is not strictly required, but we recommend that you use it because it simplifies installation and configuration of the storage for the cluster. The file you need is fw-kernel-ocfs.tar.gz.
Two Intel-based PCs
Two NICs in each machine (although were only concerned in these instructions with configuring the private LAN that provides the heartbeat communication between the nodes in the cluster)
Two FireWire interconnect cards
One large FireWire drive for shared storage
To supplement this QuickStart, you should also take a look at the supporting documentation, especially these materials:
Release Notes for Oracle9i for Linux (Intel)
Oracle9i Real Application Clusters Setup and Configuration
Oracle Cluster Management Software for Linux (Appendix F in the Oracle9i Administrators Reference Release 2 (9.2.0.1.0) for UNIX Systems)
Table 1: Hardware inventory and worksheet for FireWire-based cluster
Requirements Your configuration details:
Per node minimum Node 1 Node 2
Minimum CPU 500 MHz (Celeron, AMD, Pentium)
Minimum RAM 256 MB
Local hard drive free space 3 GB
FireWire card 1 (TI chipset)
Network interface card 2 (1 for node interconnect; 1 for public network)
Per cluster minimum Your configuration details:
FireWire hard drive 1 300-GB
4-port FireWire hub Required for 3-node cluster
5-port FireWire hub Required for 4-node cluster
http://otn.oracle.com/oramag/webcolumns/2003/techarticles/coekaertsfirewiresetup.html
Joel Pérez
http://otn.oracle.com/experts -
Implementing RAC database backup through RMAN and grid control.
Hi...
plz... can any one give me good document (metalink documents id or else) to implement RAC database backup through RMAN. and also grid document...user8943492 wrote:
Hi...
plz... can any one give me good document (metalink documents id or else) to implement RAC database backup through RMAN. and also grid document...Read below links
http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/backup.htm#i443637
http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/rmanops.htm#i474611
http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/toc.htm
Maybe you are looking for
-
Total XML structure into single table field
Hello All, I want to send total XML structure(including Tags and Data) into single field in a Table. Ex: <MaterialDetails> <MaterialNumber>00111</MaterialNumber> <MaterialQuantity>200</MaterialQuantity> </MaterialDetails> Plz
-
Help with listFiles()
I'm trying to read all the filenames of a specific web directory for an online photogallery. The reading is done using a custom jsp tag, which creates a js variable with a list of all the picture names. My code works fine when reading from my own PC.
-
HT202157 Does 5.1.2 fix the wifi problem for ATV3
Does the 5.1.2 update correct the wifi problems introduced by the previous update?. My ATV3 had stopped seeing my wifi and only worked on ethernet.
-
Navigating one JSPDynpage to other.... plz help
Hi All, Can anybody tell me how to navigate from JSPDynpage to other JSPDynpage using hyperlinks in the same Portal Component project. I hv only static content in the page - No actions/events, only hyperlink. Can throw some light how it is possible.
-
hello, I want to print PO.....when i get print priview in me23n then i get all windows.....but when i get print out from me9f that time one window is getting masked.....Please guide me....... Can we take print out from me23n