The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
wtmp file lo-lp-kl AIX 4 06-02-2008 10:32 AM
resetting IFS variable vijaykrc Shell Programming and Scripting 2 03-27-2008 07:36 AM
truncate wtmp rocker40 UNIX for Dummies Questions & Answers 1 11-04-2004 02:57 PM
wtmp dsharples UNIX for Dummies Questions & Answers 2 11-17-2003 05:06 AM
Need Wtmp Reader pgold1 UNIX for Dummies Questions & Answers 1 12-13-2000 12:23 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 02-21-2001
Registered User
 

Join Date: Feb 2001
Location: Columbus, OH
Posts: 6
Question

When I type last oracle I get dates from Nov 28, 2000 all the way back to the beginning of time it seems. The 11-28-2000 entry states that Oracle is still logged in, but if you type a who, it shows only 1 entry - the currently logged in user (Me as oracle), but I logged in only minutes ago - and the system date shows correct. Why does it not log current users any more? Please advise as soon as possible.
Forum Sponsor
  #2  
Old 02-22-2001
Registered User
 

Join Date: Dec 2000
Location: Greater Dallas area
Posts: 405
To reste the data (on Solaris);
cat /dev/null > /var/adm/wtmp
cat /dev/null > /var/adm/wtmpx
cat /dev/null > /var/adm/utmp
cat /dev/null > /var/adm/utmpx

Note that last, who, w etc. will not return the correct data until a reboot so if possible it is adviseable to do this right before a reboot.
  #3  
Old 02-22-2001
Registered User
 

Join Date: Feb 2001
Location: Columbus, OH
Posts: 6
Reboot?

Is the only way to get correct data (i.e. dates beyond 11-28-2000) is via a reboot? What would cause this issue to begin with?
  #4  
Old 02-22-2001
Registered User
 

Join Date: Dec 2000
Location: Greater Dallas area
Posts: 405
You can probably go edit the files listed above and just restart utmpd. I have never tried this though. Whats specific OS are you running?
  #5  
Old 02-22-2001
Registered User
 

Join Date: Feb 2001
Location: Columbus, OH
Posts: 6
Alpha box
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0