Computing.Net > Forums > Solaris > change of date in solaris

change of date in solaris

Reply to Message Icon

Original Message
Name: sivag
Date: August 5, 2005 at 05:09:10 Pacific
Subject: change of date in solaris
OS: solaris9
CPU/Ram: netra440
Comment:

Hi,

I have a need to change the system time and date for testing purposes (at times days/months backward). Would there be any issues with the system cron jobs if this is done over and over again in solaris9 ??
Appreciate the feedback.

siva


Report Offensive Message For Removal


Response Number 1
Name: vns_2k
Date: August 5, 2005 at 07:11:13 Pacific
Subject: change of date in solaris
Reply: (edit)

Just follow the steps :

1) As a root execute the following command.
#zic /usr/share/lib/zoneinfo/asia
2)Edit /etc/TIMEZONE file and set the TZ variable to "Asia/Calcutta".
3. As root, execute the following:
#TZ=Asia/Calcutta
#export TZ

-Madan Vemula

test


Report Offensive Follow Up For Removal

Response Number 2
Name: Sherwani
Date: September 6, 2005 at 07:23:52 Pacific
Subject: change of date in solaris
Reply: (edit)

Hi Sivag,
In term of base Unix operation this exercise will not impact much.
But yes regarding the cron jobs its really a critical depending upon the kind of work which u r performing with the help of cron jobs.
I will suggest u that if u are not aware what activities are performed by the cron jobs do not change system time.
Their is an instance which i know. that the projects are feeding the data into the databse from the dump file and its happened that they changed the date and the cron job is again activated. Because they didnt put any checks before and after data pumping complete database is in mesh because of duplicate entries. Thsi is an just one simple example.
Unix doesnt have any thing to do with reverting the dates. It will perform all the activities as usual condidering that what ever the time is feeded in the system is true.

Mukesh Kesharwani
http://www.keekar.com


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: change of date in solaris

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software