Question:
How can I see the controlfiles for my database? I do not know,
and I want to find the location of my control files. I want to
add a
controlfile, and I need to know which disks my controlfiles reside
upon.
Answer
: You can use this SQL*Plus commands to find the Oracle control file
locations:
SQL> show parameter control_files
or
SQL> database backup controlfile to trace
You can also use SQL*Plus scripts against the
v$parameter
and v$control_file.
For RAC, use the
gv$controlfile and
vg$parameter
views:
col value format a41
select
value
from
v$parameter
where
name = 'control_files';
select
name
from
v$controlfile;
select
rpad(substr(name,1,50),51,' ')
"control file name"
from
gv$controlfile;
|
|
Get the Complete
Oracle SQL Tuning Information
The landmark book
"Advanced Oracle
SQL Tuning The Definitive Reference" is
filled with valuable information on Oracle SQL Tuning.
This book includes scripts and tools to hypercharge Oracle 11g
performance and you can
buy it
for 30% off directly from the publisher.
|