db_domain [message #194345] |
Thu, 21 September 2006 10:31 |
gkrishn
Messages: 506 Registered: December 2005 Location: Putty a dark screen
|
Senior Member |
|
|
select name , value from v$parameter where name = 'db_domain';
Will give value for parameter db_name ,in runtime.
I understand 'db_domain' is a parameter we specify in PFILE.But while executing above query,where it is querying?Whrs v$parameter located?
|
|
|
|
Re: db_domain [message #194448 is a reply to message #194345] |
Fri, 22 September 2006 05:08 |
gkrishn
Messages: 506 Registered: December 2005 Location: Putty a dark screen
|
Senior Member |
|
|
Stil some doubts....
Whrs V$ datas are coming from? from pfile or control file ?
|
|
|
|
Re: db_domain [message #194510 is a reply to message #194345] |
Fri, 22 September 2006 08:02 |
gkrishn
Messages: 506 Registered: December 2005 Location: Putty a dark screen
|
Senior Member |
|
|
now my doubt is there are some parameters that are not in v$parameter like....
MAXLOGFILES 32 MAXLOGMEMBERS 2
MAXDATAFILES 32
MAXINSTANCES 16
MAXLOGHISTORY 1600
Hw can i get current values of this from SQL>
|
|
|
|
Re: db_domain [message #194527 is a reply to message #194345] |
Fri, 22 September 2006 09:08 |
gkrishn
Messages: 506 Registered: December 2005 Location: Putty a dark screen
|
Senior Member |
|
|
Oh,you mean to say there is no other V$views or DDs to get this info ?
|
|
|
|
Re: db_domain [message #194538 is a reply to message #194527] |
Fri, 22 September 2006 09:58 |
|
ebrian
Messages: 2794 Registered: April 2006
|
Senior Member |
|
|
In addition to Mahesh's method (which is probably the preferred way since the data dictionary can change from release to release), you can also try the following:
SQL> select decode(type,'REDO LOG','MAXLOGFILES',
2 'DATAFILE','MAXDATAFILES',
3 'REDO THREAD','MAXINSTANCES',
4 'LOG HISTORY','MAXLOGHISTORY') "Parameter", records_total
5 from v$controlfile_record_section
6 where type in ('REDO LOG','DATAFILE','REDO THREAD','LOG HISTORY')
7 union
8 select 'MAXLOGMEMBERS', dimlm
9 from sys.v_$kccdi;
Parameter RECORDS_TOTAL
------------- -------------
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGFILES 5
MAXLOGHISTORY 226
MAXLOGMEMBERS 3
|
|
|
|