Home » RDBMS Server » Server Administration » Version_time in v$database (oracle10g / Windows)
Version_time in v$database [message #512694] Tue, 21 June 2011 09:22 Go to next message
Karlia
Messages: 40
Registered: May 2011
Location: Algiers
Member
Hello every body,

Plz, can some onE tell me what does mean VERSION_TIME column in V$DATABASE;
i know that there is an other column which is called CREATED which indicates when the database has been created and i think it will never change,
but, what about VERSION_TIME ? when does it change ?

THANKS.
Re: Version_time in v$database [message #512734 is a reply to message #512694] Tue, 21 June 2011 21:24 Go to previous messageGo to next message
ramoradba
Messages: 2456
Registered: January 2009
Location: AndhraPradesh,Hyderabad,I...
Senior Member
http://www.orafaq.com/forum/?t=msg&th=26707/0/
V$DATABASE displays information about the database from the control file.
And it it from "x$kccdi.divts"[kernel cache, controlfilemanagement database information}

Quote:
Each time a backup controlfile is mounted, the version_time is updated.


Re: Version_time in v$database [message #512844 is a reply to message #512734] Wed, 22 June 2011 08:33 Go to previous messageGo to next message
Karlia
Messages: 40
Registered: May 2011
Location: Algiers
Member
thank you ramoradba
Re: Version_time in v$database [message #512994 is a reply to message #512844] Thu, 23 June 2011 03:24 Go to previous messageGo to next message
Karlia
Messages: 40
Registered: May 2011
Location: Algiers
Member
So, can we deduce that if CREATED VALUE and VERSION_TIME VALUE are equals means that CONTROLFILE has never been restored i.e : it has always been the same one used by the database ?
Re: Version_time in v$database [message #513069 is a reply to message #512994] Thu, 23 June 2011 08:06 Go to previous messageGo to next message
ramoradba
Messages: 2456
Registered: January 2009
Location: AndhraPradesh,Hyderabad,I...
Senior Member
Try it yourself.

Sriram
Re: Version_time in v$database [message #513276 is a reply to message #513069] Sat, 25 June 2011 11:59 Go to previous messageGo to next message
Karlia
Messages: 40
Registered: May 2011
Location: Algiers
Member
Look ramo

I tried what you said, but it didn't

I made a backup of all database with autoback controfile on,

run
{
shutdown immediate;
startup mount;
backup database;
}


some time later and after serveral manipulations of dropping objects for example, I issued :

CMD (Windows)
set nls_date_format='dd-mm-yy hh24:mi:ss'

RMAN

run
{
shutdown immediate;
startup mount;
set until time '25-06-11 11:11:11';
retore database;
recover database;
alter dabase open resetlogs;
}



the database is safley restored and recovered but
CREATED and VERSION_TIME are always the same , I mean VERSION_TIME doesn't change in spite of restoring with
autoback controlfile on

SQL> alter session set nls_date_format ='dd-mm-yy hh24:mi:ss';
Session modifiée.

SQL> select name, created, version_time
  2  from v$database;


NAME      CREATED           VERSION_TIME
--------- ----------------- -----------------
ORCL      19-03-11 23:04:54 19-03-11 23:04:54

What's wrong ? plz.
Re: Version_time in v$database [message #513281 is a reply to message #513276] Sat, 25 June 2011 13:58 Go to previous message
Michel Cadot
Messages: 68648
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Unless you deleted the current control file there is no reason you still not stay with it.

Regards
Michel
Previous Topic: ORA-00600: internal error code, arguments: [qerixGetKey:optdesc]
Next Topic: Pfile very small(2 Merged)
Goto Forum:
  


Current Time: Thu May 02 06:42:16 CDT 2024