Session Time ZONE

Hi ALL,
Can you please suggest on this, how to do this:
If I run queries in my machine:
select sessiontimezone from dual
I get “+05:30”
And formula
select
to_number (substr(sessiontimezone,1,1) || '1') * (to_number(substr(sessiontimezone,2,2))+ to_number(substr(sessiontimezone,5,2)) /60) /24
from dual
Gives “0.229166666666667”
But when we are running same queries on Amit Rathore’s machine it is giving us
select sessiontimezone from dual
“Asia/Calcutta”
And error in formula
select
to_number (substr(sessiontimezone,1,1) || '1') * (to_number(substr(sessiontimezone,2,2))+ to_number(substr(sessiontimezone,5,2)) /60) /24
from dual
“Invalid Number”
Could you please suggest how we can change sessiontimezone to return hours and minutes (“+05:30”) in other machine?
Regards
Girish Sharma

Assuming you have 11g.
http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions162.htm#SQLRF06105
SESSIONTIMEZONE returns the time zone of the current session. The return type is a time zone offset (a character type in the format '[+|]TZH:TZM') or a time zone region name, depending on how the ?user specified the session time zone value in the most recent ALTER SESSION statement."
The default client session time zone is an offset even if the client operating system uses a named time zone. If you want the default session time zone to use a named time zone, then set the ORA_SDTZ variable in the client environment to an Oracle time zone region name. Refer to Oracle Database Globalization Support Guide for more information on this variable.Setting the Session Time Zone
http://download.oracle.com/docs/cd/E11882_01/server.112/e10729/ch4datetime.htm#NLSPG263
{code}% setenv ORA_SDTZ 'OS_TZ'
% setenv ORA_SDTZ 'DB_TZ'
% setenv ORA_SDTZ 'Europe/London'
% setenv ORA_SDTZ '-05:00'
ALTER SESSION SET TIME_ZONE=local;
ALTER SESSION SET TIME_ZONE=dbtimezone;
ALTER SESSION SET TIME_ZONE='Asia/Hong_Kong';
ALTER SESSION SET TIME_ZONE='+10:00';{code}

Similar Messages

  • What format of regionName will be supported when setting session time zone?

    hi,
    the following is from OracleConnection class
    public void setSessionTimeZone(java.lang.String regionName)
    throws java.sql.SQLException
    Set the session time zone.
    This method is used to set the session time zone. This method must be invoked before accessing any TIMESTAMP WITH LOCAL TIME ZONE data. Upon invocation of this method, the Jdbc driver sets the session timezone of the connection adnd saves the session timezone so that any TSLTZ data accessed via Jdbc are adjusted using the session timezone.
    Parameters:
    regionName - Oracle session time zone region name.
    Throws:
    java.sql.SQLException - if an error occurred.
    Since:
    9i
    getSessionTimeZone
    public java.lang.String getSessionTimeZone()
    Obtain Oracle session time zone region name.
    Returns:
    Oracle session time zone region name.
    Since:
    9i
    which regionName will be supported and in what format?
    Thanks a lot!

    Hello,
    You should be able to use the values in
    select * from v$timezone_namesor in
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28298/applocaledata.htm#i637736

  • Apex 4.1 bug? Application language derived from Session changes time zone

    I have created an application in Apex 4.1 and in the "Initialization PL/SQL Code" for the session (what used to be called the VPD section) I have the following code:
    begin
      execute immediate 'alter session set time_zone = ''+01:00''';
    end;This works as expected, UNLESS the "Application Language Derived From" (under "Edit Globalization Attributes") is set to "Session", in which case the session's time zone is also affected (and not just the language, as one would expect).
    This can be seen in the following simple example, which runs the above code to set the time zone, and has the language derived from "Session":
    http://apex.oracle.com/pls/apex/f?p=38595
    This shows
    sessiontimezone = -05:00Even though the session's time_zone has been explicitly set to +01:00 with the ALTER SESSION statement.
    Experimentation with the URL shows that if a p_lang parameter is passed, with a valid language identifier, for example:
    http://apex.oracle.com/pls/apex/f?p=38595&p_lang=de
    then the time zone is affected (showing -05:00 instead of +01:00).
    However, if an INVALID time zone identifier is passed:
    http://apex.oracle.com/pls/apex/f?p=38595&p_lang=xx
    then the session time zone is CORRECT according to the ALTER SESSION command:
    sessiontimezone = +01:00If I change the "Application Language Derived From" to something else than "Session" (for example, "Browser" or "Item Preference"), then the timezone is also correct (ie follows the ALTER SESSION command).
    Running the page in debug mode confirms that the time zone is being set after my VPD/initialization code has been run:
    0.01585     0.00146     ...Application session: 1671806996734123, user=nobody     4     
    0.01731     0.00144     ...Execute Statement: begin begin execute immediate 'alter session set time_zone = ''+01:00'''; end; end;     4     
    0.01875     0.00065     Session: Fetch session header information     4     
    0.01940     0.00073     SESSION Language (nobody): wwv_flow.g_browser_language=en maplang=en     4     
    0.02013     0.00059     alter session set nls_language="AMERICAN"     4     
    0.02071     0.00043     alter session set nls_territory="AMERICA"     4     
    0.02114     0.00094     NLS: CSV charset=WE8MSWIN1252     4     
    0.02208     0.00111     ...NLS: Set Decimal separator="."     4     
    0.02318     0.00062     ...NLS: Set NLS Group separator=","     4     
    0.02380     0.00063     ...NLS: Set g_nls_date_format="DD-MON-RR"     4     
    0.02443     0.00091     ...NLS: Set g_nls_timestamp_format="DD-MON-RR HH.MI.SSXFF AM"     4     
    0.02534     0.00066     ...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"     4     
    0.02600     0.00050     ...Setting session time_zone to -05:00     4     
    0.02650     0.00065     Setting NLS_DATE_FORMAT to application date format: dd.mm.yyyy     4     
    0.02715     0.00056     ...NLS: Set g_nls_date_format="dd.mm.yyyy"     4     
    0.02771     0.00055     ...NLS: Set g_nls_timestamp_format="DD-MON-RR HH.MI.SSXFF AM"     4     
    0.02827     0.00057     ...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"     4     
    0.02884     0.00230     NLS: Language=en     4     
    Conclusion: It seems to me that when the LANGUAGE is set to be derived from the "Session", this also, as a side effect, alters the session TIME ZONE, which must be a bug... ?
    - Morten
    http://ora-00001.blogspot.com
    Edited by: mobra on Sep 24, 2011 7:14 PM

    Hi Arie,
    When you are setting the language to derived from session you actually declare that you are working in a dynamic environment – per session – and not in a static one. Using the Initialization PL/SQL Code is very static as the same code is executed for every database session.I was using a fixed time zone value in the ALTER SESSION to demonstrate the bug/problem... in real life, the actual time zone is derived dynamically based on a user profile stored in the database.
    APEX 4.0 introduced the Automatic Time Zone under the Globalization tab. By default it’s set to No but setting it to Yes will allow you to use your local time zone (as derived from your browser) with whatever language derived setting you choose, including per session with the *&p_lang* parameter.The key point is that LANGUAGE has nothing to do with TIME ZONEs, and vice versa. People speak English (and Spanish, and French, and Chinese for that matter) all over the world. You cannot determine a user's time zone based on the chosen language.
    You're telling me to enable "Automatic Time Zone" to work around an unwanted side effect from changing the language setting. Sorry, but that just sounds like bad advice to me.
    If you want to use session derived language, however the local time zone settings are not good for you, you can still change them with a Before Header and After Submit PL/SQL processes and an appropriate alter session statement, on a per page base. The APEX engine will not ignore a page based session setting.Why should I have to do this for every page when the "VPD" Section (now called "Initialization PL/SQL Code") is made for this purpose?
    If you look at the help text in the Apex builder for that section, it actually says that:
    The code entered here need not pertain to VPD/FGAC and may not be related to security at all.
    Any code that needs to be executed at the earliest point in a page request can be placed here.
    For example, the following code sets the database session time zone for every page request:
    BEGIN
       EXECUTE IMMEDIATE 'alter session set time_zone = ''Australia/Sydney'' ';
    END;So I hope the demonstrated behavior is not intentional, but a bug, and I'm hoping Joel sees it the same way.
    - Morten
    http://ora-00001.blogspot.com

  • Browser Time Zone Setting

    We're using Apex 4.x and I need to capture the Browser Time Zone (TZ) into an application level item. Can anyone please suggest the approach.
    Initial thoughts are to capture the TZ using JavaScript and use it inside the Page 101 login procedure. But, I'd appreciate any tips on how this TZ can be passed into an application level item and stored for further usage within my application.
    Thanks,
    VS Kumar

    Jari - Thanks for your great tip. I was able to utilize this feature and assigned to apex application variable the timezone offset using GET_SESSION_TIMEZONE. I have a minor issue since I'm setting in the apex developer menu path - 'Shared Components ->Edit Globalization Attributes ->Automatic Time Zone=Yes'
    When I run the application there is a brief 5 seconds *'Set Time Zone'* message that pops and then I see the login. Do you know how this message can be not visible, but still be able to set the session time zone offset using the above setting (Meaning, the problem is fixed using the above setting, but the message that appears before the login screen appears 'Set Time Zone' is a bit inconvenient.
    Can you please advice if this message can be made NOT to display, but continue to use the 'Yes' for 'Automatic Time Zone' in the Globalization Attributes?
    Thanks,
    SK

  • Time Zone, Session timed out. Help?

    I am trying to download items but everytime I try it keeps saying that "Your Session has timed out". I heard that changing your time zone helps, but I don't know how to do that either. I am using iTunes 9, is that a problem?

    Servlets are initiated by a request from a client - not sure what you mean by "running a servlet in the background ".
    Timeouts such as the Sun site are usually detected by lack of a session object and the request is not logon. The key point is that a user request triggers the "Session expired" message. It is not sent asynchronously at the point of timeout. i.e. if timeout interval is 10 minutes, it is the first user request after the 10 minutes that triggers the "session expired".
    In your example code, you could detect a potential timeout when the session isNew() and forward to a logon page. Note that there is no simple way to tell the difference between a timeout and the user attempting to request a page out of sequence.
    If you're using Servlet spec 2.3, there are some useful session listeners that might help.

  • How to set time zone for a session in Client Only installation

    Environment:
    OS : Unix (HP-UX 11.0)
    Oracle DB : Ver 8.0.5
    Developer : Ver 1.6 ( Client only Installation)
    Developer also on Unix.
    RDBMS and Developer Installed on different
    home directories.
    Our development is Forms 4.5 on X windows.
    Runtime is forms character mode.
    Probelm Description:
    To run the application I am using TWO_TASK to connect to the database. In our application we have to take care of time zones. For that in previous versions(NO TWO_TASK used) I used TZ unix environment variable, to get time zone dependent time wherever sysdate is used.
    Now because I am using TWO_TASK, oracle is no more using users TZ settings.
    Question : Is there any way I can make oracle to use the TZ environment setting

    Thanks for replying Johnny!
    What you are referring to is adding a city. I need to know how to set the time zone in settings -> Date & Time -> Timezone. Unless & untill this is set properly the iPod will never show me the right time. Please help me with it.
    I will definately use your advice on the second query.
    Thanks once again!
    Windows XP Pro

  • Get Current Time in Eastern Time Zone

    Hi,
    I would like to fetch the current time but in ET timezone (and also i want to handle
    daylight thing automatically).
    So can anyone tell me on this .
    Requirement is to fetch value in ET timezone even your db resides in India or Canada or Germany.
    Regards,
    Sandeep

    You can use current_timestamp at time zone tz_offset('EST'):
    SQL> set linesize 132
    SQL> column ct format a45
    SQL> column ctz format a45
    SQL> ALTER SESSION SET TIME_ZONE = 'Europe/Berlin';
    Session altered.
    SQL> select current_timestamp ct, current_timestamp at time zone tz_offset('EST') ctz from dual;
    CT                                            CTZ
    11-JUL-08 10.20.53.002549 PM EUROPE/BERLIN    11-JUL-08 03.20.53.002549 PM -05:00
    SQL> ALTER SESSION SET TIME_ZONE = 'Canada/Mountain';
    Session altered.
    SQL> select current_timestamp ct, current_timestamp at time zone tz_offset('EST') ctz from dual;
    CT                                            CTZ
    11-JUL-08 02.21.02.344091 PM CANADA/MOUNTAIN  11-JUL-08 03.21.02.344091 PM -05:00
    SQL> SY.

  • Same user has different time zone setting in Analytics & BI Publisher

    Hi All,
    i am using OBIEE 11.1.1.3.0 now,
    1) when login to http://localhost:9704/analytics, the time zone setting is (GMT+08:00) Taipei,
    2) when login to http://localhost:9704/xmlpserver, the time zone setting is [GMT-11:00] Midway Island, Samoa,
    it is different, why? and i can't even modify the time zone setting in BI Publisher.
    Regards,
    Makson

    do you know how does the default time zone setting come from?It comes with the installation itself default. or it will be related to some database timezone that will be taken by BI.
    default time zone values can be changed with variables that have been newly introuduced system session variables like TIMEZONE in OBIEE 11g
    TIMEZONE --> Contains the time zone of the user, typically populated from the LDAP profile of the user.
    By,
    KK
    Edited by: KK on Oct 29, 2010 3:07 AM

  • Time zone problem in grid control

    hi
    my management server (10g) is on windows 2000 and windows is running on time zone GMT+5
    Iinstalled agent 10g on Red Hat Linux Advance Server 4 and during instalation it sucessfully detects the OMS running on windows. After installation, it doesnt start the agent.
    I tried manually starting agent butfailed and in log file i found the following error
    2006-03-22 07:05:21 Thread-16384 Starting Agent 10.2.0.1.0 from /opt/oracle/product/10.2.0/agent10g (00701)
    2006-03-22 07:05:27 Thread-16384 <Ping Manager> Invalid TIMEZONE for agent not compatible with OMS timezone, Agent will shutdown. Update agentTZRegion property in /opt/oracle/product/10.2.0/agent10g/sysman/config/emd.properties file (00900)
    2006-03-22 07:05:28 Thread-16384 [E-Mail IMAP Server] InstanceProperty (imap_host) is marked OPTIONAL but is being used (00506)
    2006-03-22 07:05:29 Thread-16384 [Database Instance] InstanceProperty (DBVersion) is marked OPTIONAL but is being used (00506)
    2006-03-22 07:05:31 Thread-16384 [E-Mail POP Server] InstanceProperty (pop_host) is marked OPTIONAL but is being used (00506)
    2006-03-22 07:05:31 Thread-16384 [Cluster Database] InstanceProperty (DBVersion) is marked OPTIONAL but is being used (00506)
    2006-03-22 07:05:32 Thread-16384 [Load Balancer Switch] InstanceProperty (snmpTimeout) is marked OPTIONAL but is being used (00506)
    2006-03-22 07:05:32 Thread-16384 [E-Mail SMTP Inbound Server] InstanceProperty (smtp_host) is marked OPTIONAL but is being used (00506)
    2006-03-22 07:05:32 Thread-16384 [E-Mail SMTP Outbound Server] InstanceProperty (smtp_host) is marked OPTIONAL but is being used (00506)
    2006-03-22 07:05:39 Thread-16384 No such metric sqlnetParams (00400)
    2006-03-22 07:05:39 Thread-16384 No such metric ha_flashrecovery (00400)
    2006-03-22 07:05:39 Thread-16384 No such metric ha_recovery (00400)
    2006-03-22 07:05:39 Thread-16384 No such metric ha_rac_intrconn (00400)
    2006-03-22 07:05:39 Thread-16384 No such metric db_options (00400)
    2006-03-22 07:05:39 Thread-16384 No such metric linuxProvision (00400)
    2006-03-22 07:05:39 Thread-16384 No such metric ProgramResourceUtilization (00400)
    2006-03-22 07:05:39 Thread-16384 No such metric LogFileMonitoring (00400)
    2006-03-22 07:05:39 Thread-16384 No such metric storage_reporting_data (00400)
    2006-03-22 07:05:39 Thread-16384 No such metric storage_reporting_keys (00400)
    2006-03-22 07:05:39 Thread-16384 No such metric storage_reporting_alias (00400)
    2006-03-22 07:05:39 Thread-16384 No such metric storage_reporting_issues (00400)
    2006-03-22 07:05:39 Thread-16384 EMAgent started successfully (00702)
    2006-03-22 07:05:39 Thread-16384 EMAgent abnormal terminating (00704)
    The time zone for agent and my linux system is Asia/Karachi with is GMT+5. can you give me a clue how to resolve this?
    Regards

    # perl executable directory
    perlBin=/opt/oracle/product/10.2.0/agent10g/perl/bin
    # script directory
    scriptsDir=/opt/oracle/product/10.2.0/agent10g/sysman/admin/scripts
    # emd Root directory(read-only location). Metrics should not create files
    # under this directory
    emdRoot=/opt/oracle/product/10.2.0/agent10g
    # agent Root directory(writeable).
    # Use this property to base any temporary file creation.
    agentStateDir=/opt/oracle/product/10.2.0/agent10g
    # Chronos root directory
    chronosRoot=/opt/oracle/product/10.2.0/agent10g/sysman/emd/chronos
    # OMS Upload URL
    # if there is no receiving OMS or if you wish to disable the UploadManager
    # please set this value to empty or comment out below line
    REPOSITORY_URL=http://lhrpc419:4889/em/upload/
    # Proxy settings used for fetchlets. not applicable for uploader.
    #proxyHost=www-proxy.us.oracle.com
    #proxyPort=80
    #dontProxyFor=.us.oracle.com
    # If it is necessary to go through an http proxy server to get to the
    # repository, uncomment the following two lines
    #REPOSITORY_PROXYHOST=
    #REPOSITORY_PROXYPORT=
    #REPOSITORY_PROXYREALM=%EM_REPOS_PROXYREALM%
    #REPOSITORY_PROXYUSER=%EM_REPOS_PROXYUSER%
    #REPOSITORY_PROXYPWD=%EM_REPOS_PROXYPWD%
    # This string is used by the agent to connect to remote targets
    # ***IMPORTANT*** Do not change the contents of this setting. Only the
    # install should modify this value.
    agentSeed=144455808
    # This string is used by the agent to determine which algorithm to use for encrypted data
    # The string value will be same as the release version
    agentVersion=10.2.0.0.0
    # How long, in minutes, collector will wait until next load.
    UploadInterval=15
    # If an upload fails, we want to backoff by UploadFailBackoff
    # percentage more each time for each successive upload failure
    # e.g. if we start the retry at 1 minute. If we fail in our next
    # upload attempt, we try again 1minute 12 seconds later etc.
    UploadFailBackoffPct= 20
    # Maximum amount of time, in seconds, upload will wait for response from
    # repository before timing out.
    # 0 means infinite.
    UploadTimeout=1800
    # Timeout for upload a file, HealthMonitor will abort the EMD process if
    # UploadManager does not finish uploading one file within this time
    # Unit is minite, the default value is 1 hour ( 15 Min)
    #UploadMaxTime=30
    # How big the file the collector will upload (in KB)
    # the actual file size could be slightly bigger.
    # This is only a guidance.
    UploadFileSize=2048
    # The maximum number of megabytes(MB) the upload manager will support in the
    # upload directory before temporarily disabling collections, logging and tracing
    UploadMaxBytesXML=50
    # The maximum number of files the upload manager will support in the
    # upload directory before temporarily disabling collections, logging and tracing
    UploadMaxNumberXML=5000
    # The maximum amount (%) of disk space that can be used on the EMD filesystem
    # before the following is disabled:
    # - Collection of data (upload manager)
    # - Logging and tracing
    UploadMaxDiskUsedPct=98
    # The amount (%) of disk space that can be used on the EMD filesystem
    # before the following is re-enabled after being disabled previously:
    # - Collection of data (upload manager)
    # - Logging and tracing
    UploadMaxDiskUsedPctFloor=95
    # Time out for the Agent to think that the access to the database could be
    # hung. The Agent would not allow more threads to go and hang with a database
    # if any one access to the database does not return within DbHangTimeout
    # seconds.
    # The more the timeout more the possibility of allowing more threads
    # to be hung in the EMD with a bad database.it is specified in seconds.
    #DbHangTimeout=200
    # The script to run if disk space usage exceeds parameters or if certain other
    # error conditions occur.
    #emdFailureScript=emdfail.command
    # The location of the file that contains the root certificate.
    emdRootCertLoc=/opt/oracle/product/10.2.0/agent10g/sysman/config/b64LocalCertificate.txt
    internetCertLoc=/opt/oracle/product/10.2.0/agent10g/sysman/config/b64InternetCertificate.txt
    # The download URL for the EMD Oracle Wallet and its local file location.
    # Note: Ensure that this URL references a valid port number at which the
    # console is available on http
    emdWalletSrcUrl=http://lhrpc419:4889/em/wallets/emd
    emdWalletDest=/opt/oracle/product/10.2.0/agent10g/sysman/config/server
    # The email address for out-of-band notifications
    emd_email_address=_NOT_AVAILABLE_
    emd_email_gateway=_NOT_AVAILABLE_
    # The return email address for out-of-band notifications
    emd_from_email_address=_NOT_AVAILABLE_
    # EMD main servlet URL
    EMD_URL=http://nisar.lhr.systemsltd.com:3872/emd/main/
    # Whether the EMD should listen on all NICs on the current host (the default)
    # or just the NIC associated with the hostname in EMD_URL
    AgentListenOnAllNICs=TRUE
    # This parameter indicates the thread model to use. uncomment one of the
    # following ThreadPoolModel line to indicate the model, agent need to use.
    # SMALL if number of targets is less than 11.
    # MEDIUM if number of targets is from 11 to 50.
    # LARGE if number of targets is greater than 50.
    # This parameter can be overriden by 'MaxThreads' which indicates the maximum
    # number of threads that CEMD can have running at any point of time. User can
    # mostly use the other parameter ThreadPoolModel to indicate what model for the
    # agent to use.
    # ThreadPoolModel = SMALL
    # ThreadPoolModel = MEDIUM
    # ThreadPoolModel = LARGE
    # This parameter indicates the stack size, threads have to be created with.
    # we can set it to 0 to use the OS default value.
    # In some version of solaris(such as 2.9 ) specify a stack size may cause Java Hotspot warning
    # when JVM is used.
    NormalThreadStackSize=0
    #Signals that users want to ignore.
    #It can be one or combination of SIGTERM, SIGINT
    # The signals can listed with ',' as delimiter.
    #IgnoreSignals=
    # This property is NO LONGER USED for host config collection (instead, hostConfigClasspath is used).
    # If noone else uses it, it can be removed.
    ouiLoc=/opt/oracle/product/10.2.0/agent10g/oui
    # Classpath for host config collection
    # VERY IMPORTANT NOTE: If you change the host config classpath entries in this section, you HAVE
    # to change the HOST_CONFIG_TEST_CLASSPATH entry in the utl/emdwqaenv file too.
    # NOTE: if the location of log4j-core.jar is changed
    # make sure that appropriate changes are also made
    # to the CLASSPATH variable in this file if necessary
    # PORTING NOTE: Check OUI-required jar files for OUI APIs to work. They could be different on your platform.
    # Also, our version of xmlparserv2.jar must be compatible with the one OUI expects (both OUI and ECM use XML parser).
    hostConfigClasspath=/opt/oracle/product/10.2.0/agent10g/oui/jlib/xmlparserv2.jar:/opt/oracle/product/10.2.0/agent10g/oui/jlib/OraInstaller.jar:/opt/oracle/product/10.2.0/agent10g/oui/jlib/srvm.jar:/opt/oracle/product/10.2.0/agent10g/oui/jlib/share.jar:/opt/oracle/product/10.2.0/agent10g/sysman/jlib/emcoreAgent.jar:/opt/oracle/product/10.2.0/agent10g/sysman/jlib/emagentRT.jar:/opt/oracle/product/10.2.0/agent10g/sysman/jlib/emagentSDK.jar:/opt/oracle/product/10.2.0/agent10g/sysman/jlib/log4j-core.jar
    # JAVA HOME required for JavaExt metric calls
    JAVA_HOME=/opt/oracle/product/10.2.0/agent10g/jdk/jre
    # CLASSPATH required for JavaExt metric calls
    CLASSPATH=/opt/oracle/product/10.2.0/agent10g/jdbc/lib/ojdbc14.jar:/opt/oracle/product/10.2.0/agent10g/lib/xmlparserv2.jar:/opt/oracle/product/10.2.0/agent10g/sysman/jlib/log4j-core.jar:/opt/oracle/product/10.2.0/agent10g/jlib/http_client.jar:/opt/oracle/product/10.2.0/agent10g/jlib/share.jar:/opt/oracle/product/10.2.0/agent10g/jlib/jssl-1_1.jar:/opt/oracle/product/10.2.0/agent10g/jlib/javax-ssl-1_1.jar:/opt/oracle/product/10.2.0/agent10g/jlib/ojmisc.jar:/opt/oracle/product/10.2.0/agent10g/jlib/repository.jar:/opt/oracle/product/10.2.0/agent10g/opmn/lib/optic.jar:/opt/oracle/product/10.2.0/agent10g/sysman/jlib/emagentRT.jar:/opt/oracle/product/10.2.0/agent10g/sysman/jlib/emagentSDK.jar:/opt/oracle/product/10.2.0/agent10g/lib/dmsEmd.jar:/opt/oracle/product/10.2.0/agent10g/sysman/jlib/emcoreAgent.jar
    # this is the java option
    #JAVA_OPTIONS=-Xmx128m
    #JAVA_OPTIONS=-Djava.awt.headless=true
    # These are the optional Java flags for the in-process Java
    # Native Interface (JNI)
    agentJavaDefines=-Doracle.dms.refresh.wait.time=1000 -DUrlTiming.UseJSSE=true -Dnetworkaddress.cache.ttl=1800 -Djava.awt.headless=true
    # When set to true, the emd.log and emd.trc file will be appended by a pid
    # For example:
    # emd_15789.log
    # emd_15789.trc
    # By default, it is not set for regression test purpose.
    # After installed, please uncomment this line because when EMD is restarted,
    # previous log information will be lost if not set to true.
    #LogFileWithPID=true
    # Default log file maximum size before rolling in Kilobytes
    LogFileMaxSize=4096
    # Maximum number of log file roll files to maintain before deletion
    LogFileMaxRolls=4
    # Default trace file maximum size before rolling in Kilobytes
    TrcFileMaxSize=4096
    # Maximum number of trace file roll files to maintain before deletion
    TrcFileMaxRolls=4
    # To enable the metric browser, uncomment the following line
    # This is a reloadable parameter
    #enableMetricBrowser=true
    # To disable Remote operations (non-reachable agent) uncomment the following
    # line:
    #disableRemoteOperations=true
    # How long (in secs) until a remote operation sumbitted via the dispatcher can
    # take before the agent in bounced by the watchdog. This timeout applied to only
    # those operation which ought to finish within a certain interval of time
    RemoteAPITimeout=300
    # add an additional admin path from which the agent will read additional
    # target metadata. The specified path should have the mandatory 4 directories
    # under it. 1. metadata 2. scripts 3. default_collection 4. discover
    #altAdminPath=<additional admin path>
    # The health monitor executes callbacks in a separate thread. if for some
    # reason the threads spawned from health monitor to execute callbacks are
    # hung, the agent could run out of resource and freeze.
    # so when the current thread count spawned from the Health monitor reaches
    # this limit, the agent is bounced. the default is set to 5.
    #MaxHealthMonitorThreads=5
    # SSL session cache flag
    #SSLSessionCache=TRUE
    # emagent perl tracing levels
    # supported levels: DEBUG, INFO, WARN, ERROR
    # default level is WARN
    EMAGENT_PERL_TRACE_LEVEL=WARN
    # other optional parameters for perl tracing
    # EMAGENT_PERL_TRACE_DIR default to $ORACLE_HOME/sysman/log
    #EMAGENT_PERL_TRACE_DIR=
    # EMAGENT_PERL_TRACE_FILESIZE default to 5M
    #EMAGENT_PERL_TRACE_FILESIZE=5
    # this section define the logging level for each component,
    # it is "reloadable", you can change the level at runtime to reset
    # the logging level, but if you remove the line, it will not be
    # changed.
    tracelevel.main=WARN
    tracelevel.emSDK.xml=WARN
    tracelevel.emSDK.utl=WARN
    tracelevel.Dispatcher=WARN
    tracelevel.ThreadPool=WARN
    tracelevel.pingManager=WARN
    tracelevel.collector=WARN
    tracelevel.http=WARN
    tracelevel.http.client=WARN
    tracelevel.browser=WARN
    tracelevel.ssl=WARN
    tracelevel.ssl.io=WARN
    tracelevel.blackouts=WARN
    tracelevel.upload=WARN
    tracelevel.command=WARN
    tracelevel.reload=WARN
    tracelevel.scheduler=WARN
    tracelevel.Authentication=WARN
    tracelevel.metadata=WARN
    tracelevel.targets=WARN
    tracelevel.TargetManager=DEBUG
    tracelevel.engine=WARN
    tracelevel.javaproc=WARN
    tracelevel.vpxoci=WARN
    tracelevel.javavm=WARN
    tracelevel.fetchlets=WARN
    tracelevel.fetchlets.os=WARN
    tracelevel.fetchlets.osline=WARN
    tracelevel.fetchlets.oslinetok=WARN
    tracelevel.fetchlets.snmp=WARN
    tracelevel.fetchlets.UDM=WARN
    tracelevel.fetchlets.PropsFromAssocTgt=WARN
    tracelevel.fetchlets.sql=WARN
    tracelevel.fetchlets.url=WARN
    tracelevel.fetchlets.urllines=WARN
    tracelevel.fetchlets.urllinetoken=WARN
    tracelevel.fetchlets.URLTiming=WARN
    tracelevel.fetchlets.OJMX=WARN
    tracelevel.fetchlets.propEcho=WARN
    tracelevel.fetchlets.readFromFile=WARN
    tracelevel.fetchlets.readMultFromFile=WARN
    tracelevel.fetchlets.throwable=WARN
    tracelevel.fetchlets.resourceGrab=WARN
    tracelevel.fetchlets.statusHang=WARN
    tracelevel.fetchlets.emSDK=WARN
    tracelevel.recvlets=WARN
    tracelevel.recvlets.snmp=WARN
    tracelevel.credproviders=WARN
    tracelevel.utl=WARN
    tracelevel.NLS=WARN
    tracelevel.util.dates=WARN
    tracelevel.util.emdprops=WARN
    tracelevel.util.files=WARN
    tracelevel.util.fileops=WARN
    tracelevel.resman.socket=WARN
    tracelevel.resman.process=WARN
    tracelevel.ResMonitor=WARN
    tracelevel.emtgtctl=WARN
    # The following three properties are for HTTP timeout
    # Timeout value for reading Http primary header, default is 30 seconds.
    httpTimeoutPrimaryHeader=30
    # Timeout value for reading http secondary headers, default is 30 seconds
    httpTimeoutSecondaryHeaders=30
    # Timeout value for reading http body, default is 60 seconds.
    httpTimeoutBody=60
    # Timeout used by ping manager
    #PingTimeout=30
    #Timeout for Dynamic property evaluation. This is provided in seconds.
    #The dynamicPropsComputeTimeout value applies to all target types unless if a
    #target type specific value is provided using the
    #dynamicPropsComputeTimeout_<targetType>= syntax
    #dynamicPropsComputeTimeout=30
    #Requested by RAC team in bug 4423072
    dynamicPropsComputeTimeout_rac_database=120
    #bug 4595094
    dynamicPropsComputeTimeout_oracle_database=120
    agentTZRegion=Asia/Karachi

  • Time Zone Conversion with out using function and with out alter

    Hi All,
    I am able to see 1Hr difference in my date fields of SQL output because in UI (User Interface)  date field was stored in BST format but DB time zone is in GMT format so can any one help me to find a solution for 1 hr difference, here i don't have Privileges to alter DB time zone and i couldn't use function as i have so many SQL's and  can't apply that function manually. SO is there any other option to change the DB time zone with out alter it and with out using function.
    Thank you Very Much.

    Hi,
    you need to set time zone in your session, let's do an example :
    alter session set nls_date_format='DD/MM/YYYY HH24:MI:SS';
    CREATE TABLE USERA.T
      SDATE       DATE                              DEFAULT sysdate,
      WITHOUT_TZ  TIMESTAMP(6)                      DEFAULT sysdate,
      WITH_TZ     TIMESTAMP(6) WITH TIME ZONE       DEFAULT sysdate,
      WITH_LZ     TIMESTAMP(6) WITH LOCAL TIME ZONE DEFAULT sysdate
    insert into USERA.T(sdate) values(sysdate);
      commit;
      select * from USERA.T;
    SQL> select * from system.t;
    SDATE
    WITHOUT_TZ
    WITH_TZ
    WITH_LZ
    26/09/2013 11:04:23
    2013-09-26-11.04.23.000000
    26/09/13 11:04:23,000000 +00:00
    2013-09-26-11.04.23.000000
    SQL> alter session set TIME_ZONE ='-7:0';
    Session altered.
    SQL> select * from system.t;
    SDATE
    WITHOUT_TZ
    WITH_TZ
    WITH_LZ
    26/09/2013 11:04:23
    2013-09-26-11.04.23.000000
    26/09/13 11:04:23,000000 +00:00
    2013-09-26-04.04.23.000000

  • How to report with different time zone dynamically based on user's account?

    Hello
    I am wondering is there a way to change the report's date & time data based on user's locale setting in OBIEE?
    Let's say the user log in to OBIEE with eastern time zone setting. The data that's in the database is storing a transaction of $400 at 1am Pacific time.
    So when this user run a query which does something like 'select date, transaction, amount from date, transaction, sales where this = that', it should display the $400 amount done at 4am eastern time instead of 1am pst.
    What I have done is to have data stores in date dimension to be UTC time, and I have also changed the data type of the date column to be 'local time zone'. DB is Oracle DB 11G now.
    Now this query works perfectly well in the DB as long as I run the following commend first:
    Alter session set time zone = 'whatever my time zone'
    and then
    Select date, transaction from tables..
    The date displayed will automatically be converted into different time zone..
    Since everything is working nicely from Oracle DB level, I need to know how to make it work when OBIEE sends the same query down to the DB..
    I know that, probably I will have to enter the above alter session commend in the connection pool, however, I can't hardcode the time zone value.
    I also don't want to store user's time zone in the user table because these users travels a lot. So even if his table setting is EST, but at a given day he can be traveling to pst time zone and view reports.
    Is there a way to dynamically set the time zone based on user's account locale setting?
    Let me know if you guys have implemented something similar or not
    Thanks

    garuda wrote:
    Hello Sarvan
    I have already done that part at the DB level and it is working perfectly with alter session commend before the query.
    My question is, how do I configure OBIEE so that before each user runs a report from BI, the alter session commend will be fired with each user's personal locale time zone setting passed through so that each user will be able to view data according to their different time zone?did you tried with Connection scripts(Execute On connect) in Connection pool.write ur Alter commend to Change Time Zone in this script box.

  • TimeStamp with time zone vs java Date

    In the developer's preview release notes, I read about the extended support on Oracle TimeStamp. We are currently planning to migrate current TIMESTAMP columns to TIMESTAMP WITH TIMEZONE to keep the user time zone with the typed date. Here is my question: Which time zone is persisted using a direct to field mapping between a java.util.Date and a TIMESTAMPTZ column? As the java.util.Date contains no time zone (in opposition to java.util.Calendar), does TopLink uses the JVM time zone? WHat is the best to data structure to keep date/time & time zone in our entities? Thanks, Yannick.

    I believe it would be the local timezone of the session. If you map a Date to the TIMESTAMP TZ then the SQL written out will not include a TZ value.
    Typically if you wish to map to a TIMESTAMPTZ field you would want to use an object in the model that can hold both the Timestamp and TZ values. This is most commonly a Calendar.
    Doug

  • Extract date from date time zone type

    I have an in coming date time zone from Java code in varchar format as
    2013-02-15T01:00:00-06:00I need to extract date and time from the above varchar to proceed further in my PL/SQL code. Im pretty not sure what the "T" in the date time zone mean. Please shed some light. I use Oracle 10gR2 version.

    michaelrozar17 wrote:
    I have an in coming date time zone from Java code in varchar format as
    2013-02-15T01:00:00-06:00I need to extract date and time from the above varchar to proceed further in my PL/SQL code. Im pretty not sure what the "T" in the date time zone mean. Please shed some light. I use Oracle 10gR2 version.A simple SUBSTR should be of help.
    select substr(v_variable, 1, instr(v_variable, 'T') - 1) from dual;       --> Replace v_variable with column name, if you are referring to table column and Dual with corresponding Table name.And yes, string between T and Hyphen ( - ) is the Time format and the string following Hyphen ( - ) is the difference of Time zone from UTC.
    See a small demo attached:
    alter session set nls_timestamp_tz_format = 'DD-Mon-YYYY"T"HH24:MI:SS.FF-TZH:TZM';
    select systimestamp, substr(systimestamp, 1, instr(systimestamp, 'T')-1 ) date_info from dual;
    SYSTIMESTAMP  DATE_INFO                                     
    25-Feb-2013T10:22:29.014891000-+00:00 25-Feb-2013Edited by: Purvesh K on Feb 25, 2013 3:52 PM
    Added Demo

  • Get time zone abbreviations

    How to get current time zone abbreviations from oracle?
    Why “select EXTRACT(timezone_abbr FROM current_timestamp) TA
    FROM dual;” Qury returns a ‘UNK’?

    To have a valid timezone abbreviation you need to set a time_zone :
    SQL> select current_timestamp from dual;
    CURRENT_TIMESTAMP
    12/03/07 14:28:10,566726 +01:00
    SQL> select EXTRACT(timezone_abbr FROM current_timestamp) TA
      2  FROM dual;
    TA
    UNK
    SQL> alter session set time_zone = 'cet';
    Session altered.
    SQL> select current_timestamp from dual;
    CURRENT_TIMESTAMP
    12/03/07 14:28:23,702305 CET
    SQL> select EXTRACT(timezone_abbr FROM current_timestamp) TA
      2  FROM dual;
    TA
    CET
    SQL> Nicolas.

  • Changing time zone

    This isn't a Dreamweaver question but I thought someone here
    might be able to help.
    How do I change my server's time zone? Right now MySQL seems
    to be timestamping every record with Mountain time. I would like it
    to be Eastern by default.

    MySQL lets you set the timezone on a pr. session basis. Here we first view a datetime, then change time zones, then view the same datetime again:
    $ mysql
    mysql> use information_schema
    mysql> select CREATE_TIME from TABLES where CREATE_TIME is not NULL limit 1;
    +---------------------+
    | CREATE_TIME         |
    +---------------------+
    | 2010-06-10 09:37:01 |
    +---------------------+
    1 row in set (0.03 sec)
    mysql> SET SESSION time_zone = 'America/Los_Angeles';
    Query OK, 0 rows affected (0.00 sec)
    mysql> select CREATE_TIME from TABLES where CREATE_TIME is not NULL limit 1;
    +---------------------+
    | CREATE_TIME         |
    +---------------------+
    | 2010-06-10 00:37:16 |
    +---------------------+
    1 row in set (0.03 sec)
    Note how the displayed datetime is different. Wouldn't it be fine to call "SET SESSION time_zone"?

Maybe you are looking for

  • Early upgrade, (Switching from unlimited to capped data?) 4g LTE

    Okay so I originally had a Droid 3 on the unlimited data plan, (blackberry tour before that).  I was grandfathered into the unlimited data plan, my Droid 3 was having the same issues everyone else's had so I got rid of it and switched to an HTC Thund

  • MarshalException is transferring image as byte[]

    Hi I am creating a web service which reads an image from an external url (the image is in png format). Then I am converting the image into a bufferedimage and then sending out the image through the web service using bytearrayoutputstream.tobyteArray(

  • Procedure for sending captital goods to vendor with excise challan

    Dear All, Need your help on the following issue. We are having an oven in the shop floor (Capital Goods)  which we need to send out of the factory to vendor site against excise challan for some upgradation. Can you suggest the procedure for the same

  • String values in JSlider

    Hi, I need to put the string values in the JSlider. For integer values i can use the constructor JSlider (int nMin, int nMax). Suppose i use JSlider (0, 100), then JSlider values ranges from 0 to 100. I need JSlider, containing three string values(lo

  • Deploy Server 2012 to VMWare Guest using Paravirtual SCSI

    Hi, I attempting to use Boot Media to boot a VMware Guest OS to image with Server 2012. I have imported the following drivers from the x64 VMware Tools: VMware PVSCSI Controller VMware PCI Ethernet Adapter vmxnet3 Ethernet Adapter I have added the dr