05.11.2015 Views

Apress.Expert.Oracle.Database.Architecture.9i.and.10g.Programming.Techniques.and.Solutions.Sep.2005

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 3 ■ FILES 73<br />

*.cluster_database_instances=2<br />

*.cluster_database=TRUE<br />

*.cluster_interconnects='10.10.10.0'<br />

*.compatible='10.1.0.2.0'<br />

*.control_files='/ocfs/O10G/control01.ctl','/ocfs/O10G/control02.ctl'<br />

*.db_name='O10G'<br />

...<br />

*.processes=150<br />

*.undo_management='AUTO'<br />

O10G1.instance_number=1<br />

O10G2.instance_number=2<br />

O10G1.local_listener='LISTENER_O10G1'<br />

O10G2.local_listener='LISTENER_O10G2'<br />

O10G1.remote_listener='LISTENER_O10G2'<br />

O10G2.remote_listener='LISTENER_O10G1'<br />

O10G1.thread=1<br />

O10G2.thread=2<br />

O10G1.undo_tablespace='UNDOTBS1'<br />

O10G2.undo_tablespace='UNDOTBS2'<br />

That is, parameter settings that are common to all instances in the cluster would start<br />

with *.. Parameter settings that are specific to a single instance, such as the INSTANCE_NUMBER<br />

<strong>and</strong> the THREAD of redo to be used, are prefixed with the instance name (the <strong>Oracle</strong> SID). In the<br />

preceding example,<br />

• The PFILE would be for a two-node cluster with instances named O10G1 <strong>and</strong> O10G2.<br />

• The *.db_name = 'O10G' assignment indicates that all instances using this SPFILE will<br />

be mounting a database named O10G.<br />

• O10G1.undo_tablespace='UNDOTBS1' indicates that the instance named O10G1 will use<br />

that specific undo tablespace, <strong>and</strong> so on.<br />

Setting Values in SPFILEs<br />

Once our database is up <strong>and</strong> running on the SPFILE, the next question relates to how we set<br />

<strong>and</strong> change values contained therein. Remember, SPFILEs are binary files <strong>and</strong> we cannot just<br />

edit them using a text editor. The answer is to use the ALTER SYSTEM comm<strong>and</strong>, which has the<br />

following syntax (portions in are optional, <strong>and</strong> the presence of the pipe symbol indicates<br />

“one of the list”):<br />

Alter system set parameter=value <br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!