Changing system date in Paravirtualized  Oracle VM

Hi ,
I need 3 guest on 1 oracle VM server. Each of them has own different system date. For example while first one is working on 2041 , second one works on 2001 and last one works on 2014.
I have set "xen.independent_wallclock = 1" in "/etc/sysctl.cfg" in each Guest and I am able to change system date as independently from host system. Until here , everything is ok.
But when I restart the Guest system , the system date is resetting to host system's system date .
Please could you give your ideas how to solve this problem .
Rgds.
Leo-

Hi, for paravirtualized guests do like this:
As user root
vi /etc/sysctl.confsearch "independent_wallclock" and set it "=0" (NOT "=1")
Save and exit
Set the correct Time Zone creating an appropriate symbolic link, for example:
ln -sf ../usr/share/zoneinfo/Europe/Rome /etc/localtimeThen:
vi /etc/sysconfig/clockSet it as you like, but following this schema:
ZONE="Europe/Rome"
UTC=false
ARC=false("ZONE" refers to the Time Zone, "UTC=false" indicates that LOCAL TIME will be used)
Finally, deactivate the ntpd service on your VM guest, as with the above settings system time will be bound to the Hardware Clock on Dom0, therefore we don't need ntpd:
chkconfig --del ntpd
service ntpd stopTry a reboot and check all is ok.
All this, I repeat, is true for Paravirtualized guests only. Fully Virtualized guests do need ntpd service for system tyme sync.
HTH

Similar Messages

  • Migrating System.Data.OracleClient to Oracle.DataAccess.Client - XSD error

    Hi, I'm a newbie using Oracle ODP.NET provider for .NET.
    We have a web application that uses XSD to connect to Oracle using the provider System.Data.OracleClient.
    We want to migrate from System.Data.OracleClient to Oracle.DataAccess.Client.
    Installing and referencing the Oracle.DataAccess.dll all works fine.
    Then I changed all the references from System.Data.OracleClient to Oracle.DataAccess.Client and removed the System.Data.OracleClient.dll assembly from the web.config file.
    All compiles well, until I run the application, looks like the problem is the parameter use in the XSD file... the error I get is:
    Server Error in '/src' Application.
    Value does not fall within the expected range.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.ArgumentException: Value does not fall within the expected range.
    Source Error:
    Line 8864: global::Oracle.DataAccess.Client.OracleParameter param = new global::Oracle.DataAccess.Client.OracleParameter();
    Line 8865: param.ParameterName = "Original_TIPOCOMISIONID";
    Line 8866: param.DbType = global::System.Data.DbType.VarNumeric;
    Line 8867: param.IsNullable = true;
    Line 8868: param.SourceColumn = "TIPOCOMISIONID";
    Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\src\4a9afcc3\460b5b6b\App_Code.eljteq62.7.cs Line: 8866
    Stack Trace:
    [ArgumentException: Value does not fall within the expected range.]
    Oracle.DataAccess.Client.OracleParameter.set_DbType(DbType value) +134
    dsProductosTableAdapters.SIPC_TIPOCOMISIONTableAdapter.InitAdapter() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\src\4a9afcc3\460b5b6b\App_Code.eljteq62.7.cs:8866
    dsProductosTableAdapters.SIPC_TIPOCOMISIONTableAdapter.get_Adapter() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\src\4a9afcc3\460b5b6b\App_Code.eljteq62.7.cs:8797
    dsProductosTableAdapters.SIPC_TIPOCOMISIONTableAdapter.GetData() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\src\4a9afcc3\460b5b6b\App_Code.eljteq62.7.cs:8993
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
    System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
    System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +71
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +350
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
    System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +488
    System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1247
    System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +95
    System.Web.UI.WebControls.ListControl.PerformSelect() +34
    System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
    System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
    System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22
    System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e) +18
    System.Web.UI.Control.PreRenderRecursiveInternal() +80
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3614
    I'd like some help on how to make the XSD compile with the new provider, Oracle.DataAccess.Client.
    Many thanks in advance for any help!
    Pieter

    MS OracleClient binds parameters by name. ODP.NET binds by position. If you want to change ODP.NET's default parameter binding behavior, set:
    OracleCommand.BindByName = true;
    Do this for every OracleCommand that binds parameters.

  • Changing system date in a HVM DomN

    Hi ,
    the changed sytem date in a HVM DomN does not stay persistent after restarting virtual machine.
    same problem is also exist in PVM DomN in a different mannger which I had already opened a different thred for it.
    1. Create a HVM DomN
    2. login into HVM DomN
    3. set wallclock
    xen.independent_wallclock = 1
    4. restart HVM DomN
    5. login into HVM DomN
    6. set system date to 07/07/2030
    *[root@bcvlnx12 ~]# date -s '07/07/2030'*
    Sun Jul  7 00:00:00 CEST 2030
    *[root@bcvlnx12 ~]# date*
    Sun Jul  7 00:00:03 CEST 2030
    *[root@bcvlnx12 ~]#*
    7. check if ntpd disabled
    *[root@bcvlnx12 ~]# chkconfig --list ntpd*
    ntpd            0:off   1:off   2:off   3:off   4:off   5:off   6:off
    8. restart DomN as root
    *[root@bcvlnx12 ~]# shutdown -r -t 0 now*
    Broadcast message from root (pts/1) (Sun Jul  7 00:05:20 2030):
    The system is going down for reboot NOW!
    9. login again as root after restart
    Last login: Wed Apr 21 11:10:01 2010 from pcmuc014.bc.int
    *[root@bcvlnx12 ~]# date*
    Mon Jul  8 02:06:33 CEST 2030
    *[root@bcvlnx12 ~]#*
    10. system date is persist
    11. Login into Oracle VM manager web interface and power off Dom N
    12. Login into Oracle VM manager web interface and power ON Dom N
    13. login into DomN
    Last login: Mon Jul  8 02:06:29 2030 from pcmuc014.bc.int
    *[root@bcvlnx12 ~]# date*
    Wed Apr 21 11:30:04 CEST 2010
    so , system date which has been ser by root user in step 6 is lost and become same as with Dom0
    Any idea ? any fix ?
    Rgds.
    Leo Frühling.

    Hi, for paravirtualized guests do like this:
    As user root
    vi /etc/sysctl.confsearch "independent_wallclock" and set it "=0" (NOT "=1")
    Save and exit
    Set the correct Time Zone creating an appropriate symbolic link, for example:
    ln -sf ../usr/share/zoneinfo/Europe/Rome /etc/localtimeThen:
    vi /etc/sysconfig/clockSet it as you like, but following this schema:
    ZONE="Europe/Rome"
    UTC=false
    ARC=false("ZONE" refers to the Time Zone, "UTC=false" indicates that LOCAL TIME will be used)
    Finally, deactivate the ntpd service on your VM guest, as with the above settings system time will be bound to the Hardware Clock on Dom0, therefore we don't need ntpd:
    chkconfig --del ntpd
    service ntpd stopTry a reboot and check all is ok.
    All this, I repeat, is true for Paravirtualized guests only. Fully Virtualized guests do need ntpd service for system tyme sync.
    HTH

  • Change system date??

    Hi,
    I just wonder if we can refresh the B1 after we change the system date in the OS without restarting the B1 application itself.. because restarting the B1 take quite a time for my laptop...
    Actually there was once i tried to lock screen the application, when i logged in back, the date was refreshed, but i can't do that anymore and i don't know why that day i could.
    Thanks,
    Martin

    Martin,
    The SAP client at the time of login takes the system date and I don't think there is any way to refresh without loging out and loging back in
    Suda

  • Can we change system date from sql prompt

    hi everyone
    can someone tell if we can change the system date from the sql
    prompt??
    Tariq.

    I don't think that the date/time last modified is accessible.  You could use the SummaryInfo of the report to maintain this information yourself.  This is part of the RAS SDK.  There is a comments section available that you could use for this.

  • Consequences of changing system date

    for some reason i need to change the system date on production server (sms server with a database)
    only the year should decrease by two (minus 2 years)
    before changing the date i want to get some advice from the community
    what problems could happen after that, what steps should i follow before doing that, etc
    the things that i've already taken care of are CRON and AT jobs
    i think there could be problems with file access/modification dates and anything that relies on them
    can it be solved by just updating access/modification dates of all files accordingly?
    please give advice
    thanks in advance

    robmaloy wrote:
    i'd wonder what happens if your server sends 2 year old SMS to the SMSC and receives SMS dating 2 years in the future :>
    consider buying a new license
    that kind of problems wont happen since new outgoing messages are selected using different/additional criteria
    moreover it's not only about this particular case
    it's a real problem, i would be interested to get some (new) advices even i decide to buy new license

  • Changing system date

    Hi,
    I have a 11.2 database + oracle EBS on a linux machine with a wrong date time. What will happen to database and ebs if I change the time an hour back from actual?

    Please read following discussion for special cases Re: Impact on changing DATE

  • Unable to change system date format

    Dear All,
    We are working with ESO 5.1.08.
    Whenever a mail is sent out to suppliers, it contains US date format. We want to change it to UK date format i.e. from MM-DD-YY HH:MM am/pm  to DD-Mon-YY HH:MM am/pm.
    Any pointers would be highl helpful.
    Regards,
    Tripti

    Hi Tripti,
    Check these properties by login as "System" ,  setup -> System Properties ->  system.default.timezone and  system.master_timezone are set to UK .
    let me know if it helps.
    Thanks
    Sai

  • Change System Date [Mac] using Applescript or Javascript?

    Hi All,
    Can anyone suggest me how can i change my Mac date using Apple or Java Script.
    Is it possible or not? If possible then please suggest.
    Shonky

    Thanks to all.
    Problem solved now .
    Here is code.
    set oldDate to do shell script "date '+%m:%d:%y'" as string
    do shell script "systemsetup setdate 03:03:10"
    --Do some stuff
    do shell script ("systemsetup setdate " & oldDate)
    Shonky

  • Oracle 9i Client and System.Data.OracleClient Problems

    I have an application server that has an ASP.NET webpage that queries an Oracle database on another machine through ODP.NET.
    The app server's machine's OS is Microsoft Windows XP SP2 with IIS and .NET 2.0 Framework installed and configured correctly.
    The following Oracle software is installed (from OUI inventory listing)
    Oracle Services For Microsoft Transaction Server 9.2.0.7.0
    Oracle ODBC Driver 9.2.0.7.0
    Oracle Provider for OLE DB 9.2.0.7.0
    Oracle Objects for OLE 9.2.0.7.0
    Oracle Data Provider for .NET 9.2.0.7.0
    Oracle 9i Client 9.2.0.1.0
    Sun JDK 1.3.1.0.1a
    When the ASP.NET page attempts to connect to the Oracle instance on the remote machine via the Data provider I get the following message...
    System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Exception: System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    <<snipped>>
    I know the connectivity between the client on the app server (SQL*Plus: Release 9.2.0.1.0)
    and the remote database (Oracle Database 10g Enterprise Edition Release 10.2.0.3.0)
    is working since sqlplus sessions connect and the NET Manager tests through Local Service Naming succceed.
    I've tried the "ORACLE_HOME permission changes" solution for Autenticated users as articulated here ....
    http://jasondotnet.spaces.live.com/blog/cns!BD40DBF53845E64F!122.entry
    but the error persists.
    In the list of oracle installed products above, I installed the first 5 (ODP.NET) before the last 2 (Oracle 9i client). Would this matter ? At first I thought perhaps the ODP.NET component didn't "know" about the client since it was installed before there was one on that app server.
    Feeback much appreciated.

    Well I figured it out. I guess...
    1) Uninstalled all Oracle Software Products
    2) Rebooted the machine.
    3) Manually removed C:\oracle\ora92\.
    4) Installed and configured the following
    * Oracle 9i Client 9.2.0.1.0
    5) Installed and configured the following
    * Oracle Services for Microsoft Transaction Server 9.2.0.7.0
    * Oracle ODBC Driver 9.2.0.7.0
    * Oracle Provider for OLE DB 9.2.0.7.0
    * Oracle Objects for OLE 9.2.0.7.0
    * Oracle Data Provider for .NET 9.2.0.7.0
    6) Gave the following accounts Full Control over the ORACLE_HOME directory
    * ASP.NET Machine Account
    * Internet Guest Account
    * Launch IIAS Process Account
    6) iisreset
    Conclusion....
    The order in which Oracle components are installed does matter.

  • System data change....

    Hi all,
    when I log in my XI server says "License expiration data:01-11-2008(in 9 days)
    I know that I have to change the system date, but I need to know procedure
    to be followed before changing system date.
    Pl. help me out.
    Regards,
    Pankaj.

    Hello Pankaj,
    This means that you need to apply for license and not change system date.Please apply for license.
    Of course changing system date will make this problem not re occur but then such system will not be supported by SAP.
    Regards.
    Ruchit.

  • Who change format date?

    hi,
    who i can change format date in servidor ORACLE for all client?
    Thank´s

    The default format can be set by changing the NLS_DATE_FORMAT initialization parameter and restarting the database, alter system set nls_date_format = "YYYYMMDD" scope=spfile; and the database has to be shutdown and restarted to enforce the change. It might be alter database instead of alter system, I usually try the wrong one first.
    But the setting can be overridden in the client setup or changed in a user session, there's no way to enforce a particular format on the client environment.

  • Printing System Date on Report Title

    How can I print the system date on the title of report generated by SQL*Plus?
    I remember it is possible to include SQL.PNO in the statement TTITLE to print the page number. Is there any variable like SQL.PNO which represent system date?
    Previously I've include SYSDATE to the SELECT statement of the report. It is the column named TODAY, with option NOPRINT and NEW_VALUE TT_TODAY, where TT_TODAY is include in TTITLE statement. The problem is: if the SELECT statement returns nothing, TT_TODAY will be blank/Null.
    How can I work around with this problem?

    Dear all,
    My colleague told me the way to print System Date on title of SQL*Plus report as followed:
    COLUMN today NEW_VALUE tt_today NOPRINT FORMAT A1 TRUNC
    TTITLE CENTER tt_today RIGHT SQL.PNO
    SET FEEDBACK OFF
    SET TERMOUT OFF
    SELECT SYSDATE AS today FROM DUAL;
    SPOOL RPTFILE
    SELECT ....... << to generate report output >> .......
    SPOOL OFF
    SET TERMOUT ON
    SET FEEDBACK ON
    It works! The output file contains System Date on each page title.
    I don't understand why Oracle didn't implement variable similar to SQL.PNO to represent the System Date. If Oracle is able to create SQL.PNO which can increment on each page break, why not the System Date which remains the same on each page?

  • Configuring date format in Oracle 8.1.7

    I have just unloaded records from tables into an sql script file with insert statements. However, the date format for the records that I have unloaded is MM/DD/YYYY. When I try to run this sql script, oracle gives an error, saying it's not a valid month.
    Oracle date format is DD-MMM-YY. How can I change the date format in oracle, so that I could insert these records in?

    If your script does not have explicit TO_DATE conversions (which it should, by the way), like:
    insert into t values (to_date('11/21/2002', 'mm/dd/yyyy'));then you can set the default date format to match the format in your script. So, if your script looks like:
    insert into t values ('11/21/2002');then:
    alter session set nls_date_format = 'mm/dd/yyyy';prior to running the script.

  • Reset System Date Through Java

    How to change system date through java. I need some help for developing some software in java.

    as in there is a command :-
    #include <iostream.h>
    #include <dos.h>
    int main(void)
    { struct date reset;
    setdate(&reset);
    return 0;
    how can i convert it into java language and reset System date of windows, help me.

Maybe you are looking for