Monday, November 19, 2007

Manually Convert Single Instance to RAC on Unix

« Creating a DTP enabled RAC ServiceHOWTO: Manually Convert Single Instance to RAC on Unix
Now, I know what you are going to say and yes I know there is a new utility in 10g called rconfig that will do all this for you but just in case you want to do it the old fashioned way I thought I’d include the steps to do it. So, here we go…

1. Convert the oracle home on each Node

(Note 211177.1 on Metalink)

a. Login as the Oracle software owner and make sure any databases running out of this oracle home are down

b. cd $ORACLE_HOME/rdbms/lib

c. make -f rac_on

If this step did not fail with fatal errors then proceed to step 4.

d. make -f ioracle

2. Each instance require its own redo thread. So add a new logfile thread for each additional instance.

alter database add logfile thread 2 group 4 ('/oradata1/ORA2/ORA2_t2g4_m1.rdo', '/oradata1/ORA2/ORA2_t2g4_m2.rdo') size 50m, group 5 ('/oradata1/ORA2/ORA2_t2g5_m1.rdo', '/oradata1/ORA2/ORA2_t2g5_m2.rdo') size 50m, group 6 ('/oradata1/ORA2/ORA2_t2g6_m1.rdo', '/oradata1/ORA2/ORA2_t2g6_m2.rdo') size 50m / ALTER DATABASE ENABLE PUBLIC THREAD 2 /3. Each instance requires its own undo tablespace. So add an undo tablespace for each additional instance

create undo tablespace undo02 datafile '/oradata1/ORA2/ORA2_undo02_01.dbf' size 4001m /4. Create the cluster views needed for RAC

SQL> @?/rdbms/admin/catclust5. If you are using an spfile, create an init.ora from it.

SQL> create pfile='/tmp/initORA.ora' from spfile
/6. Edit the init.ora to include the cluster parameters

ORA2.remote_listener='LISTENER_ORA1'7. Shutdown and startup using the edited init.ora

SQL> connect / as sysdba
SQL> shutdown immediate
SQL> startup pfile='/tmp/initORA.ora'8. If the db starts up ok using this init.ora, create your spfile in a shared location

SQL> create spfile='/sharedlocation/spfileORA.ora' from pfile='/tmp/initORA.ora';9. On each node create a link in $ORACLE_HOME/dbs to the shared spfile, ie

ln -s /sharedlocation/spfileORA.ora spfileORA1.ora10. Add the database and instances to the cluster registry

srvctl add database -d ORA -o $ORACLE_HOME
srvctl add instance -d ORA -i ORA1 -n oraserv1
srvctl add instance -d ORA -i ORA2 -n oraserv211. Start the db through server control

srvctl start database -d ORANB If you still have one instance up from step 7 you will get an error but this is nothing to worry about, as the node that is down should still start.

12. Create services as needed.

This can be done through the dbca under Service management or manually as follows:

srvctl add service -d ORA -s ORA_TAF -r ORA1, ORA2Your single instance database is now RAC enabled. I have only recently done this so I know these steps work.


Anonymous said...

Can anyone recommend the top Patch Management program for a small IT service company like mine? Does anyone use or How do they compare to these guys I found recently: [url=] N-able N-central it automation
[/url] ? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!

Anonymous said...

Easily I assent to but I think the collection should acquire more info then it has.

Anonymous said...

I will not agree on it. I regard as warm-hearted post. Especially the designation attracted me to review the whole story.

Anonymous said...

Who knows where can I download desktop virtual girls from here - [url=]VirtuagirlHD[/url] for free?? Is it possible? I've heard it is.

gay teen boys sex stories said...

Two days before I was due to leave I cast my mind back to that fatefulday so long ago. Gingers face turned red she practically leaped for the doorway.
group sex stories
stories beastiality
adult stories xxx
lesbian sister erotic sex stories
babysitter fuck stories
Two days before I was due to leave I cast my mind back to that fatefulday so long ago. Gingers face turned red she practically leaped for the doorway.

Anonymous said...

A great you might improve your e-mail marketing strategy is to produce reward concentrated duplicate. Make certain your email messages convey to your potential customers what to do from their store and exactly how they are going to take advantage of your goods or services. When it might appear obvious, it goes very far in growing the strength of your e-mail. [url=]Illnerev5ss[/url]

Xia Zhang said...