SYSTIMESTAMP questions

Some (hopefully) simple questions about SYSTIMESTAMP:
1. What data type does SYSTIMESTAMP return? That is, how would I declare a column that could store the value returned by SYSTIMESTAMP?
2. Using PL/SQL, is it possible to access the elements of a timestamp value? i.e., suppose I want the variable m to contain the minutes art of the current time and s to contain the seconds part. How would I write the expressions for h and m in terms of x?
x = SYSTIMESTAMP
h = ...???
m =...???
3. If I have the elements of a timestamp (i.e. a year, month, date, hour, minute, seconds, fractional seconds and time zone), is it possible to create a timestamp value with those values?
Thanks!

user10936714 wrote:
Some (hopefully) simple questions about SYSTIMESTAMP:
1. What data type does SYSTIMESTAMP return? That is, how would I declare a column that could store the value returned by SYSTIMESTAMP?TIMESTAMP(6) WITH TIME ZONE
You could also declare the column as just a TIMESTAMP or even a TIMESTAMP WITH LOCAL TIME ZONE
2. Using PL/SQL, is it possible to access the elements of a timestamp value? i.e., suppose I want the variable m to contain the minutes art of the current time and s to contain the seconds part. How would I write the expressions for h and m in terms of x?
x = SYSTIMESTAMP
h = ...???
m =...???
SQL> ed
Wrote file afiedt.buf
  1  select extract( hour from systimestamp ) hr,
  2         extract( minute from systimestamp ) min
  3*   from dual
SQL> /
        HR        MIN
        18          2
3. If I have the elements of a timestamp (i.e. a year, month, date, hour, minute, seconds, fractional seconds and time zone), is it possible to create a timestamp value with those values?
SQL> ed
Wrote file afiedt.buf
  1* select to_timestamp( '01-02-2003 12:34:56.7890','MM-DD-YYYY HH24:MI:SS.FF'
) ts from dual
SQL> /
TS
02-JAN-03 12.34.56.789000000 PMJustin

Similar Messages

  • Question on schedule jobs

    Hi,
    i created two varients of the job as shown belo.
    1)
    DECLARE
      X NUMBER;
    BEGIN
      SYS.DBMS_JOB.SUBMIT
        ( job       => X - job name as 'X'
         ,what      => 'DEL_EMPLOYEE_TABLE;' - ITS A STORED PROCEDURE
         ,next_date => to_date('19/05/2009 01:00:00','dd/mm/yyyy hh24:mi:ss')
         ,interval  => 'trunc(sysdate) + 1/24 + 1'
         ,no_parse  => TRUE
      SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
    END;
    2)
    begin
    dbms_scheduler.create_job (
    job_name => 'DEL_EMPLOYEE_TABLE',
    job_type => 'STORED_PROCEDURE',
    job_action => 'DEL_EMPLOYEE_TABLE',
    number_of_arguments => 0,
    start_date => SYSTIMESTAMP,
    repeat_interval => 'FREQ=DAILY;BYHOUR=0;BYMINUTE=0;BYSECOND=0',
    end_date => NULL,
    enabled => TRUE,
    comments => 'Delete EMPOYEE old records');
    end;
    i have the following questions
    1) what is the difference between #1 and #2
    2) When i queried the DB with following query i could see only
    select owner, job_name, state from dba_scheduler_jobs
    i could see only
    'DEL_EMPLOYEE_TABLE' - job but do not see the #1 job as - X

    [email protected] wrote:
    1) what is the difference between #1 and #2They use two different schedulers, the old one (DBMS_JOB) and the new one (DBMS_SCHEDULER)
    2) When i queried the DB with following query i could see only
    select owner, job_name, state from dba_scheduler_jobs
    i could see only
    'DEL_EMPLOYEE_TABLE' - job but do not see the #1 job as - XYou can find it using:
    select * from user_jobsMax
    http://oracleitalia.wordpress.com
    Edited by: Massimo Ruocchio on Mar 9, 2010 9:37 PM
    typos

  • DST questions, part duex

    Oracle 11.20.1.0 SE-One
    Oracle Linux 5.6 x86-64
    Cut to the chase. Most of our scheduler jobs are defined such that start_date, last_start_date, and next_run_date all specify the timezone with a fixed offset. As a result, the first execution after the DST time change, they ran one hour early, but then computation for the next run corrected and they fell back to running at the scheduled time.
    Well, almost.
    We have two application schemas that own scheduler jobs.
    The jobs in one schema behaved as above.
    But all of the jobs in the other schema continue to run one hour early.
    the above can be observed in the output from this query:
    select
         instance_name
    ,     systimestamp
    from
         v$instance;
    select
         owner
    ,     job_name
    ,     log_date
    ,     status
    from
         dba_scheduler_job_log
    here   log_date > sysdate - 10
      and   owner not in ('EXFSYS',
                          'ORACLE_OCM',
                          'PERFSTAT',
                          'SYS'
    order by
         owner
    ,     job_name
    ,     log_date
    ;Very easy to just go down the LOG_DATE column and see the time change.
    So my first of two questions is - can anyone explain the above behavior, especially the inconsistency in the jobs of one schema 'healing' themselves after the first run after the time change, but the jobs of another schema continuing to run an hour early.
    I don't know if it bears on it or not, but most of the jobs (both schemas) are scheduled with a home-grown function for 'frequency' that uses a decimal representation of time (ie: WEEKLY(.4583,'SATURDAY') )
    And a second question - what are the things that influence the timezone representation in the START_DATE when defining a new job? Our programmer creates/maintains the jobs using SQL Navigator, and there is no provision in the GUI there for specifying either a specific time zone or the method (offset vs. name) of representing a timezone. I've read that there are some client-side influences but haven't pieced that together just yet.

    spajdy wrote:
    Job JOB_PEOPLESOFT_EXTRA, repeat_interval is in CALENDAR, syntax start_date=09-NOV-12 09.45.00.000000 AM -06:00 time zone is specified by absolute offset -6:00. So this job can't follow DST because as ORACLE doc say:
    The calendaring syntax does not allow you to specify a time zone. Instead the Scheduler retrieves the time zone from the start_date argument. If jobs must follow daylight savings adjustments you must make sure that you specify a region name for the time zone of the start_date. For example specifying the start_date time zone as 'US/Eastern' in New York will make sure that daylight saving adjustments are automatically applied. If instead the time zone of the start_date is set to an absolute offset, such as '-5:00', daylight savings adjustments are not followed and your job execution will be off by an hour half of the year.
    Yes, I'm with you so far.
    Job EVENT_TRANSFER, repeat_interval is in PL/SQL syntax, start_date=05-NOV-12 10.30.00.000000 AM -05:00. Because repeat_internal is in PL/SQL = function MON_TO_FRI then timezone for next_run_date is defined by this function. And this function use SYSDATE.
    And this is where I'm missing something. I don't see how the timezone is defined in the function whose code I provided. SYSDATE doesn't carry TZ info.
    And anticipating the next question ...
    SQL> DECLARE
      2   x VARCHAR2(100);
      3  BEGIN
      4    dbms_scheduler.get_scheduler_attribute('DEFAULT_TIMEZONE', x);
      5    dbms_output.put_line('DTZ: ' || x);
      6  END;
      7  /
    PL/SQL procedure successfully completed.
    SQL> set serveroutput on
    SQL> /
    DTZ: CST6CDT
    PL/SQL procedure successfully completed.
    A we can see SYSTIMESTAMP has now timezone -06:00. In DST it is hour shifted =-5:00.
    So what's conclusion:
    1/ when you are using PL/SQL syntax for repeat_interval then time zone is defined by used expression. In your case by function MON_TO_FRI. This function is based on SYSDATE and this function change timezone twice a year (DST start and end).And that's what I'm failing to see -- HOW it is defined by the ps/sql function.
    2/ when you are using CANLENDAR syntax for repeat_interval and you want job to follow DST changes correctly you must specify start_date with timezone in region/city.
    3/ if you want to correct job JOB_PEOPLESOFT_EXTRA disable it, set start_date with correct timezone definition and then enable job Yes. Actually, my testing has shown no reason to disable the job first. I've seen that if it simply unset start date (dbms_scheduler.set_attribute_null ('ESTEVENS.EDST_TEST_3','START_DATE');), the TZ for START_DATE gets set to the DEFAULT_TIME_ZONE (see above) AND .... the TZ spec in NEXT_RUN_TIME gets reset as well. If REPEAT_INTERVAL is specified as an interval, NEXT_RUN_TIME gets adjusted to match the current time, but if it is specified as an absolute (BYDAY, BYHOUR, etc.) only the TZ info of NEXT_RUN_TIME will change.
    >
    dbms_scheduler.stime return 12-NOV-12 11.45.24.658242000 AM CST6CDT so I hope that CST6CDT is correct timezone of your DB. You profile says that you are located in TN - USA and UTC-6 is for Tennessee (middle and western)- Memphis dst.I've got the fix ready to implement and fully tested, and in addition to fixing the TZ info itself, we are going to replace the home-grown functions with standard calendar syntax. At this point I'm just trying to fill in the last bits of my understanding. Purely academic now.

  • Composite Primary Key question

    I have a new question regarding composite primary keys on another table I have created.
    I have the following table with the following definition:
    CREATE TABLE "APSOM"."CPULIST"
    ( "CPU_ID" VARCHAR2(10 BYTE),
    "SERVER_ID" VARCHAR2(10 BYTE),
    "CREATED_DATETIME" TIMESTAMP (6),
    "UPDATED_DATETIME" TIMESTAMP (6)
    with the following composite PK definition:
    ALTER TABLE "APSOM"."CPULIST" ADD CONSTRAINT "CPULIST_PK" PRIMARY KEY ("CPU_ID", "SERVER_ID")
    Then, I inserted data in the following way:
    insert into CPULIST
    values ('CPU1', 'P1', SYSDATE, SYSDATE);
    with following CPU ID values from 'CPU1' to 'CPU16' for SERVER ID value 'P1' also inserted as well.
    Now, I am trying to insert values for SERVER ID value 'P2'
    insert into CPULIST
    values ('CPU1', 'P2', SYSDATE, SYSDATE);
    and I am getting the following error message:
    Error starting at line 1 in command:
    insert into CPULIST
    values ('CPU1', 'P2', SYSDATE, SYSDATE)
    Error report:
    SQL Error: ORA-00001: unique constraint (APSOM.XPKCPULIST) violated
    00001. 00000 - "unique constraint (%s.%s) violated"
    *Cause: An UPDATE or INSERT statement attempted to insert a duplicate key.
    For Trusted Oracle configured in DBMS MAC mode, you may see
    this message if a duplicate entry exists at a different level.
    *Action: Either remove the unique restriction or do not insert the key.
    Using the following SQL command:
    select column_name from all_cons_columns
    where constraint_name = 'CPULIST_PK'
    and owner = 'APSOM';
    I get the following records
    1. CPU_ID
    2. SERVER_ID
    This error does not make sense to me. Any help would be appreciated.
    Thanks,
    Patrick Quinn
    Operations
    Turning Point Global Solutions

    So, if there is a hidden unique constraint XPKCPULIST that cannot be pulled the all_cons_column table and I drop the XPXCPULIST constraint with the following SQL:
    alter table CPULIST drop constraint XPKCPULIST;
    Error starting at line 1 in command:
    alter table CPULIST drop constraint XPKCPULIST
    Error report:
    SQL Error: ORA-02443: Cannot drop constraint - nonexistent constraint
    02443. 00000 - "Cannot drop constraint - nonexistent constraint"
    *Cause:    alter table drop constraint <constraint_name>
    *Action:   make sure you supply correct constraint name.
    What can I do to get past this so I can perform the following insert and receive this error message??
    insert into CPULIST
    values ('CPU1', 'P2', SYSTIMESTAMP, SYSTIMESTAMP);
    Error starting at line 1 in command:
    insert into CPULIST
    values ('CPU1', 'P2', SYSTIMESTAMP, SYSTIMESTAMP)
    Error report:
    SQL Error: ORA-00001: unique constraint (APSOM.XPKCPULIST) violated
    00001. 00000 - "unique constraint (%s.%s) violated"
    *Cause:    An UPDATE or INSERT statement attempted to insert a duplicate key.
    For Trusted Oracle configured in DBMS MAC mode, you may see
    this message if a duplicate entry exists at a different level.
    *Action:   Either remove the unique restriction or do not insert the key.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • OEM Query Results Question

    Hi..
    I am working on a query to display the last 30 days of uptime for our databases. This is the query:
    select availability_status, target_name, target_type, end_time - start_time from (select availability_status, target_name, target_type,
    nvl(end_timestamp, sysdate) end_time,
    case when start_timestamp < sysdate -31 then sysdate -31
    else start_timestamp end start_time
    from MGMT$AVAILABILITY_HISTORY
    where nvl(end_timestamp, sysdate) > sysdate -31
    and target_name ='FSPERF11')
    I get the results below:
    AVAILABILITY_STATUS TARGET_NAME TARGET_TYPE END_TIME-START_TIME
    Agent Down FSPERF11 oracle_database 0.006
    Target Down FSPERF11 oracle_database 0.003
    Target Down FSPERF11 oracle_database 0.001
    Target Up FSPERF11 oracle_database 2.91
    Target Up FSPERF11 oracle_database 10.803
    Target Up FSPERF11 oracle_database 0
    Target Up FSPERF11 oracle_database 17.27
    The question I have is why do I have multiple results when I am only looking for database uptime/downtime? Why do I have 3 Target Up results?
    Thanks...

    Thanks! When I collect the SQL it gives me an invalid SQL statement error when I go to run it. This is the SQL listed:
    SELECT sum(Avail) OVERALL_AVAILABILITY_PER_ID , sum(T_Uptime) TOTAL_UPTIME_HRS_ID , sum(T_Downtime) TOTAL_DOWNTIME_HRS_ID , sum(T_Blackouttime) TOTAL_BLACKOUT_TIME_HRS_ID, sum(T_Unmonitoredtime) TOTAL_UNMONITORED_TIME_HRS_ID from(
    select 0 Avail, 0 T_Uptime, 0 T_Downtime, 0 T_Blackouttime, 0 T_Unmonitoredtime from dual UNION ALL
    SELECT round( st_dur.tgt_up/(decode(st_dur.tgt_up+st_dur.agent_down+st_dur.tgt_down,0,1,st_dur.tgt_up+st_dur.agent_down+st_dur.tgt_down))*100,2) Avail
    ,round((st_dur.tgt_up*24),2) T_Uptime, round((st_dur.tgt_down*24),2) T_Downtime, round((st_dur.blackout*24),2) T_Blackouttime, round(((st_dur.agent_down+st_dur.metric_error+st_dur.pend_unknown+st_dur.unreach)*24),2) T_Unmonitoredtime
    FROM (
    SELECT SUM( decode(AVAI_STATUS,'agent down',DURATION,0)) agent_down,
         SUM(decode(AVAI_STATUS,'blackout',DURATION,0)) blackout,
         SUM(decode(AVAI_STATUS,'metric error',DURATION,0)) metric_error,
         SUM(decode(AVAI_STATUS,'pending/unknown',DURATION,0)) pend_unknown,
         SUM(decode(AVAI_STATUS,'target down',DURATION,0)) tgt_down,
         SUM(decode(AVAI_STATUS,'target up',DURATION,0)) tgt_up,
         SUM(decode(AVAI_STATUS,'unreachable',DURATION,0)) unreach FROM(
              SELECT LOWER(A.AVAILABILITY_STATUS) AVAI_STATUS
              ,ROUND(least(nvl(A.end_timestamp,(CAST(systimestamp at time zone B.TIMEZONE_REGION AS DATE))), MGMT_VIEW_UTIL.ADJUST_TZ(??EMIP_BIND_END_DATE??,??EMIP_BIND_TIMEZONE_REGION??,B.TIMEZONE_REGION) )
              -greatest(A.start_timestamp,MGMT_VIEW_UTIL.ADJUST_TZ(??EMIP_BIND_START_DATE??,??EMIP_BIND_TIMEZONE_REGION??,B.TIMEZONE_REGION) ),4) DURATION
              FROM mgmt$availability_history A,MGMT$TARGET B WHERE A.target_guid=??EMIP_BIND_TARGET_GUID?? AND A.TARGET_GUID=B.TARGET_GUID
         and A.start_timestamp>=(select min(NVL(end_timestamp,(CAST(systimestamp at time zone B.TIMEZONE_REGION AS DATE)))) from mgmt$availability_history where target_guid=??EMIP_BIND_TARGET_GUID?? )
         and ((A.start_timestamp>MGMT_VIEW_UTIL.ADJUST_TZ(??EMIP_BIND_START_DATE??,??EMIP_BIND_TIMEZONE_REGION??,B.TIMEZONE_REGION) AND NVL(A.end_timestamp,(CAST(systimestamp at time zone B.TIMEZONE_REGION AS DATE)))<MGMT_VIEW_UTIL.ADJUST_TZ(??EMIP_BIND_END_DATE??,??EMIP_BIND_TIMEZONE_REGION??,B.TIMEZONE_REGION))
              OR(MGMT_VIEW_UTIL.ADJUST_TZ(??EMIP_BIND_START_DATE??,??EMIP_BIND_TIMEZONE_REGION??,B.TIMEZONE_REGION) between A.start_timestamp AND NVL(A.end_timestamp,(CAST(systimestamp at time zone B.TIMEZONE_REGION AS DATE))))OR
              (MGMT_VIEW_UTIL.ADJUST_TZ(??EMIP_BIND_END_DATE??,??EMIP_BIND_TIMEZONE_REGION??,B.TIMEZONE_REGION) between A.start_timestamp and NVL(A.end_timestamp,(CAST(systimestamp at time zone B.TIMEZONE_REGION AS DATE)))))
    )st_dur)
    What do the "??" represent and how do I get it to run?
    Thanks again...

  • Where the value of systimestamp/sysdate comes from and dbms_scheduler

    I saw bunch of other posts but I could find the post that exactly explaining about where the value returned as systimestamp/sysdate comes from or impacted or I’m missing something and need some help.
    Here is my situation
    I have an access to this db (let me call db A) and when I access it, I get following result. I don’t have full access to this db so I cannot experiment a lot here.
    SYSTIMESTAMP CURRENT_TIMESTAMP LOCALTIMESTAMP DBTIMEZONE SESSIONTIMEZONE
    27-MAR-13 02.31.55.041411 AM +00:00 26-MAR-13 07.31.55.041416 PM -07:00 26-MAR-13 07.31.55.041416 PM +00:00 -07:00
    I’m in PST timezone.
    I have my db which I have full access as well as its host.
    I can make result like db A on my db if I started up db and its listener while TZ environment variable equal to UTC.
    Now I saw in other post that someone was trying to retrieve systimestamp value in a job executed via dbms_scheduler.run_job.
    So I did that in two ways. 1 with use_current_session = true and 2 is false for the same.
    On my db, results are the same (both returns time in UTC) but on db A, I got UTC time when use_current_session = true and PST when use_current_session = false.
    So questions are:
    What could be the difference in setup between my db and db A?
    Is there a query, logfile, or anything I should check to find out what can be the difference?
    Any clue about where to check will be appreciated as well and please let me know if there is some additional information necessary to provide me some help on this.
    I tried to find the cause with my db and I could see the same result as db A which is to see UTC time if use_current_session = true and PST time if use_current_session = false by bringing up the db listener after I set TZ environment variable equal to PST8PDT. However this causes systimestamp from sqlplus session become also a PST time.
    The reason I’m playing around with the setup and checking systimestamp value is because we are facing the situation where everywhere except pl/sql job submitted by enterprise scheduler service is pointing wrong timezone (PST instead of UTC) and I’ve been searching the solution or clue for where to look at.

    Hi Stephen,
    I think your first thought about using a javascript timer, call an APEX application process to get the new value and finally set it in the page 0 item would be the way I would take. :)
    +"Also, the message shown may vary depending on who is logged in, i.e. the user session. More than user is logged-in at the same time."+
    In case you use an application process this shouldn't be any problem.
    Some useful links: [Carl Backstrom's example|http://apex.oracle.com/pls/otn/f?p=11933:11]
    [My example application includes similar ways of using js and application processes|http://apex.oracle.com/pls/otn/f?p=65555:1]
    Best regards,
    Tobias
    [http://apex-at-work.blogspot.com/|http://apex-at-work.blogspot.com/]

  • SYSTIMESTAMP and PST again

    In a previous question I proposed the following function to determine the current time as represeted in PST:
    CREATE OR REPLACE FUNCTION PST_SYSDATE RETURN DATE IS
      th NUMBER;
      tm NUMBER;
      now TIMESTAMP(6) WITH TIME ZONE;
      d  VARCHAR2(200);
    BEGIN
      now := SYSTIMESTAMP;
      SELECT
        TO_CHAR(now, 'YYYY-MM-DD HH24:MI:SS'),
        EXTRACT(timezone_hour FROM now) TH,
        EXTRACT(timezone_minute FROM now) TM
      INTO d, th, tm
      FROM DUAL;
      RETURN TO_DATE(d, 'YYYY-MM-DD HH24:MI:SS') - ((th+tm/60+8)/24); 
    END PST_SYSDATE;
    / I got some helpful replies which suggested that I use the expression:
    CAST( SYSTIMESTAMP AT TIME ZONE TZ_OFFSET('PST') AS DATE)However, my function is not agreeing with this expression:
    SQL>  select SYSDATE, PST_SYSDATE,  CAST(SYSTIMESTAMP AT TIME ZONE TZ_OFFSET('PST') AS DATE) PST_DATE from dual;
    SYSDATE             PST_SYSDATE         PST_DATE
    04/09/2009 11:18:05 04/09/2009 08:18:05 04/09/2009 09:18:06Note that I am in the Central Timezone and we are currently using CDT. 11 AM CDT is 8 AM PST not 9 AM PST.
    So is there another expression which can do the same thing as my PST_SYSDATE function?
    Thanks!

    Ah - this is the problem: when I say 'PST' I mean GMT-8 regardless of the time of year.
    I am in the Central time zone and in a region which observes DST. Therefore, right now my offset from GMT is -5, and when reporting times one would normally use CDT to indicate that daylight time is in effect. For instance, my current time is approx. 1:11 PM CDT.
    In places where daylight time is not observed (like Ontario), their offset from GMT is -6, and their local time is 12:11 PM CST.
    When using the expression AT TIME ZONE TZ_OFFSET('PST'), Oracle seems to be only subtracting two hours when I think it should be subtracting three hours. Perhaps it is a feature. In any case, it is not the behavior I want.
    My function does take into account if the database clock uses daylight saving time. Note that SYSTIMESTAMP has a timezone modifier of -5. This is used to determine the time in GMT and then 8 hours is subtracted to obtain the time in PST.
    If I run SYSTIMESTAMP during the winter, it will report a timezone offset of -6 (for CST). Again, my function would produce the correct result.
    So - I guess the lesson here is that AT TIME ZONE TZ_OFFSET('PST') is not the same as AT TIME ZONE TZ_OFFSET('GMT-8') (if this latter expression were legal in Oracle).
    Edited by: user10936714 on Apr 9, 2009 11:24 AM

  • Determining PST time from SYSTIMESTAMP

    Thanks to everyone who answered by previous question about SYSTIMESTAMP.
    Here's a PL/SQL function I wrote to convert the current time to PST and return it as a DATE value. The idea is that it should work regardless of what the database's timezone is set to.
    Any critiques are welcome - efficiency, style, whatever. In particular, is there a way to avoid the conversion to a VARCHAR2? Is there a system supplied function I am overlooking?
    Thanks again!
    CREATE OR REPLACE FUNCTION PST_SYSDATE RETURN DATE IS
      th NUMBER;
      tm NUMBER;
      now TIMESTAMP(6) WITH TIME ZONE;
      d  VARCHAR2(200);
    BEGIN
      now := SYSTIMESTAMP;
      SELECT
        TO_CHAR(now, 'YYYY-MM-DD HH24:MI:SS'),
        EXTRACT(timezone_hour FROM now) TH,
        EXTRACT(timezone_minute FROM now) TM
      INTO d, th, tm
      FROM DUAL;
      RETURN TO_DATE(d, 'YYYY-MM-DD HH24:MI:SS') - ((th+tm/60+8)/24); 
    END PST_SYSDATE;
    /

    You do not need a function for that. Use AT TIME ZONE TZ_OFFSET:
    SQL> ALTER SESSION SET NLS_DATE_FORMAT = 'MM/DD/YYYY HH24:MI:SS'
      2  /
    Session altered.
    SQL> SELECT  SYSTIMESTAMP EST,
      2          SYSTIMESTAMP AT TIME ZONE TZ_OFFSET('PST') PST,
      3          CAST(SYSTIMESTAMP AT TIME ZONE TZ_OFFSET('PST') AS DATE) PST_DATE
      4    FROM  DUAL
      5  /
    EST                                      PST                                      PST_DATE
    08-APR-09 03.25.39.034000 PM -04:00      08-APR-09 12.25.39.034000 PM -07:00      04/08/2009 12:25:39
    SQL> SY.

  • Questions on Print Quote report

    Hi,
    I'm fairly new to Oracle Quoting and trying to get familiar with it. I have a few questions and would appreciate if anyone answers them
    1) We have a requirement to customize the Print Quote report. I searched these forums and found that this report can be defined either as a XML Publisher report or an Oracle Reports report depending on a profile option. Can you please let me know what the name of the profile option is?
    2) When I select the 'Print Quote' option from the Actions drop down in the quoting page and click Submit I get the report printed and see the following URL in my browser.
    http://<host>:<port>/dev60cgi/rwcgi60?PROJ03_APPS+report=/proj3/app/appltop/aso/11.5.0/reports/US/ASOPQTEL.rdf+DESTYPE=CACHE+P_TCK_ID=23731428+P_EXECUTABLE=N+P_SHOW_CHARGES=N+P_SHOW_CATG_TOT=N+P_SHOW_PRICE_ADJ=Y+P_SESSION_ID=c-RAuP8LOvdnv30grRzKqUQs:S+P_SHOW_HDR_ATTACH=N+P_SHOW_LINE_ATTACH=N+P_SHOW_HDR_SALESUPP=N+P_SHOW_LN_SALESUPP=N+TOLERANCE=0+DESFORMAT=RTF+DESNAME=Quote.rtf
    Does it mean that the profile in our case is set to call the rdf since it has reference to ASOPQTEL.rdf in the above url?
    3) When you click on submit button do we have something like this in the jsp code: On click call ASOPQTEL.rdf. Is the report called using a concurrent program? I want to know how the report is getting invoked?
    4) If we want to customize the jsp pages can you please let me know the steps involved in making the customizations and testing them.
    Thanks and Appreciate your patience
    -PC

    1) We have a requirement to customize the Print Quote report. I searched these forums and found that this report can be defined either as a XML Publisher report or an Oracle Reports report depending on a profile option. Can you please let me know what the name of the profile option is?
    I think I posted it in one of the threads2) When I select the 'Print Quote' option from the Actions drop down in the quoting page and click Submit I get the report printed and see the following URL in my browser.
    http://<host>:<port>/dev60cgi/rwcgi60?PROJ03_APPS+report=/proj3/app/appltop/aso/11.5.0/reports/US/ASOPQTEL.rdf+DESTYPE=CACHE+P_TCK_ID=23731428+P_EXECUTABLE=N+P_SHOW_CHARGES=N+P_SHOW_CATG_TOT=N+P_SHOW_PRICE_ADJ=Y+P_SESSION_ID=c-RAuP8LOvdnv30grRzKqUQs:S+P_SHOW_HDR_ATTACH=N+P_SHOW_LINE_ATTACH=N+P_SHOW_HDR_SALESUPP=N+P_SHOW_LN_SALESUPP=N+TOLERANCE=0+DESFORMAT=RTF+DESNAME=Quote.rtf
    Does it mean that the profile in our case is set to call the rdf since it has reference to ASOPQTEL.rdf in the above url?
    Yes, your understanding is correct.3) When you click on submit button do we have something like this in the jsp code: On click call ASOPQTEL.rdf. Is the report called using a concurrent program? I want to know how the report is getting invoked?
    No, there is no conc program getting called, you can directly call a report in a browser window, Oracle reports server will execute the report and send the HTTP response to the browser.4) If we want to customize the jsp pages can you please let me know the steps involved in making the customizations and testing them.
    This is detailed in many threads.Thanks
    Tapash

  • Satellite P300D-10v - Question about warranty

    HI EVERYBODY
    I have these overheating problems with my laptop Satellite P300D-10v.
    I did everything I could do to fix it without any success..
    I get the latest update of the bios from Toshiba. I cleaned my lap with compressed air first and then disassembled it all and cleaned it better.(it was really clean insight though...)
    BUT unfortunately the problem still exists...
    So i made a research on the internet and I found out that most of Toshiba owners have the same exactly problem with their laptop.
    Well i guess this is a Toshiba bug for many years now.
    Its a really nice lap, cool sound (the best in laptop ever) BUT......
    So I wanted to make a question. As i am still under warranty, can i return this laptop and get my money back or change it with a different one????
    If any body knows PLS let me know.
    chears
    Thanks in advance

    Hi
    I have already found you other threads.
    Regarding the warranty question;
    If there is something wrong with the hardware then the ASP in your country should be able to help you.
    The warranty should cover every reparation or replacement.
    But I read that you have disasembled the laptop at your own hand... hmmm if you have disasembled the notebook then your warrany is not valid anymore :(
    I think this should be clear for you that you can lose the warrany if you disasemble the laptop!
    By the way: you have to speak with the notebook dealer where you have purchased this notebook if you want to return the notebook
    The Toshiba ASP can repair and fix the notebook but you will not get money from ASP.
    Greets

  • Question regarding NULL and forms

    Hi all, i have a survey that im working on that will be sent via email.
    I'm having an issue though. if i have a multiple choice question, and the user only selects one of the choices, all the unselected choices return as NULL. is there a way i can filter out anytihng that says "NULL" so it only shows the selected options?
    thanks.
    here is the page that retrieves all the data. thanks
    <body>
    <p>1) Is this your first visit to xxxxxxx? <b><%=request.getParameter("stepone") %></b>
    </p>
    <p> </p>
    <p>2) How did You Learn About xxxxxxx?</p>
    <p><b><%=request.getParameter("steptwoOne") %></b>
      <br>
        <b><%=request.getParameter("steptwoTwo") %></b>
      <br>
        <b><%=request.getParameter("steptwoThree") %></b>
      <br>
        <b><%=request.getParameter("steptwoFour") %></b>
      <br>
        <b><%=request.getParameter("steptwoOther") %></b>
    </p>
    <p> </p>
    <p>3) What was your main reason for visiting xxxxx?</p>
    <p><b><%=request.getParameter("stepthreeOne") %></b>
        <br>
          <b><%=request.getParameter("stepthreeTwo") %></b>
        <br>
          <b><%=request.getParameter("stepthreeThree") %></b>
        <br>
          <b><%=request.getParameter("stepthreeFour") %></b>
        <br>
          <b><%=request.getParameter("stepthreeOther") %></b>
    </p>
    <p>4) did you find the information you were looking for on this site?</p>
    <p><b><%=request.getParameter("stepfour") %>
    <br>
    <b><%=request.getParameter("stepfourOther") %></b>
    </b></p>
    <p>5) Do you plan on using this website in the future?</p>
    <p><b><%=request.getParameter("stepfive") %></b></p>
    <p>6) What is your gender</p>
    <p><b><%=request.getParameter("stepsix") %></b></p>
    <p>7) What is your age group</p>
    <p><b><%=request.getParameter("stepseven") %></b></p>
    8) Would you like to take a moment and tell us how we can improve your experience on xxxxxxxxxx?
    <p><b><%=request.getParameter("stepeightFeedback") %></b></p>

    i was messing around and came up with this. it doesnt remove the null, but if it is null it adds ABC beside it. so i think i might be getting close. i just need to figure out how to replace the null.
    code]
    <b><%=request.getParameter("steptwoFour") %></b>
         <% if (request.getParameter("steptwoFour") == null ) {
         %>
         <% out.print("abc"); %>
         <% }
         %>

  • Anyone know how to remove Overdrive books from my iphone that have been transferred from my computer? They do not show up on itunes. I see a lot of answers to this question but they all are based on being able to see the books in iTunes.

    How do I remove Overdrive books from the library that were downloaded onto my computer then transferred to my iphone? The problem is that they do not show up in iTunes.
    I see this question asked a lot when I google, but they always give answers that assumes you can find the books in iTunes either under the books tab, or the audio books tab or in the music. They do not show up anywhere for me. They do not remove from the app like the ones I downloaded directly onto my iphone.the related archived article does not answer it either.  I even asked a guy working at an apple store and he could not help either.   Anybody...?
    Thanks!

    there is an app called daisydisk on mac app store which will help you see exactly where the memory is focused and consumed try using that app and see which folders are using more memory

  • Basic question

    Hello, i have a basic question. if i have defined 2 fields in a cube or a dso:
    Name Quantity
    and from the external flat file i get some characters for my quantity field. would my load fail?  for standard dso and for write optimized?
    NOTE: quantity field is a keyfigure defined as numeric.
    and the load coming in has "VIKPATEL" for Quantity field and not numbers.
    thanks

    Hi Vik,
    Yes, the load will fail.
    May be you coud first load this data into BW (into PSA) and set both fields as characters fields. Then you can create DSO, do transformation from this PSA to the DSO, and put your logic as to what do you want to do with those Quantity that is not number (e.g. convert to 0, or 'Not assgined', etc).
    You can use transfer rule, or a clean up ABAP code in the start routine.
    Hope this helps.

  • Mid 2010 15" i5 Battery Calibration Questions

    Hi, I have a mid 2010 15" MacBook Pro 2.4GHz i5.
    Question 1: I didn't calibrate my battery when I first got my MacBook Pro (it didn't say in the manual that I had to). I've had it for about a month and am doing a calibration today, is that okay? I hope I haven't damaged my battery? The calibration is only to help the battery meter provide an accurate reading of how much life it has remaining, right?
    Question 2: After reading Apple's calibration guide, I decided to set the MacBook Pro to never go to sleep (in Energy Saver System Preference) and leave it on overnight so it would run out of power and go to sleep, then I'd leave it in that state for at least 5 hours before charging it. When I woke up, the light on the front wasn't illuminated. It usually pulsates when in Sleep. Expectedly, it wouldn't wake when pressing buttons on the keyboard. So, what's happened? Is this Safe Sleep? I didn't see any "Your Mac is on reserve battery and will shut down" dialogues or anything similar, as I was asleep! I've left it in this state while I'm at work and will charge it this afternoon. Was my described method okay for calibration or should I have done something different?
    Question 3: Does it matter how quickly you drain your battery when doing a calibration? i.e is it okay to drain it quickly (by running HD video, Photo Booth with effects etc) or slowly (by leaving it idle or running light apps)?
    Thanks.
    Message was edited by: Fresh J

    Fresh J:
    A1. You're fine calibrating the battery now. You might have gotten more accurate readings during the first month if you'd done it sooner, but no harm has been done.
    A2. Your machine has NOT shut down; it has done exactly what it was supposed to do. When the power became critically low, it first wrote the contents of RAM to the hard drive, then went to sleep. When the battery was completely drained some time later, the MBP went into hibernation and the slepp light stopped pulsing and turned off. In that state the machine was using no power at all, but the contents of your RAM were still saved. Once the AC adapter was connected, a press of the power button would cause those contents to be reloaded, and the machine would pick up again exactly where you left off. It is not necessary to wait for the battery to be fully charged before using the machine on AC power, but do leave the AC adapter connected for at least two hours after the battery is fully charged. Nothing that you say you've done was wrong, and nothing that you say has happened was wrong.
    A3. No, it does not matter.

  • Jabber/WebEx Connect SSO Questions

    I've got a few questions around exactly what needs to be done to get SAML working for our Connect accounts to successfully authenticate from Jabber for Windows, Mac, iPhone, and Android.
    We have both a Meeting Center and Connect account under WebEx using Loose Coupled Integration. Just this past week I enabled SAML for our Meeting Center accounts which went off without a hitch with the exception of Meeting Center integration with Jabber, which is now broken with a message about SSO enabled Meeting Sites not being supported (I think this would maybe be fixed if we had Tight Coupled Integration with our two account?).
    Anyway, my questions are...
    For Windows, I understand all clients will need to be reinstalled with the MSI argument for the SSO_ORG_DOMAIN switch I've read about, is that correct? Are there any other switches needed for the reinstall? 
    How will this work with the Mac and mobile clients? There's obviously no command line options to specify for the installations here, will they just know to kick over to my IdP for authentication once they see an email address that falls under an org with SSO enabled? If so, why does the Windows client need to be completely reinstalled and not just know to find the IdP from the Cloud Connect service like Meeting Center does with the Productivity Tools?
    We're just doing this for our Connect Web IM accounts, not attempting any sort of SSO with the phone accounts/UC integration yet.
    Any ideas on getting the Meeting Center integration into Jabber working again?

    I'd suggest posting your question over on the Jabber Pilot forum, as this forum is specific to Jabber Guest questions:
    https://supportforums.cisco.com/community/4551/jabber-pilot-support
    -jim

Maybe you are looking for

  • How do I move or copy a page from one pages doc to another?

    I used to frequently move or copy a page from one multiple-page Pages document to another just but dragging and dropping the thumbnail.  Since I upgraded I can't do this anymore.  How can I do it now?

  • Update audit table trigger by a column

    Have a need to update a audit table when a specific column data has been updated\deleted\inserted on table T1 . The column is Grade_complete. My first thought was to create an instead of trigger since the form was based on the table (T1) view ( CREAT

  • Re: Internet connection issues on GT60/GT70 caused by Killer Network Manager

    How do I uninstall the correct driver before installing this one? when I try to run the .exe I get an error saying "Error reading setup initialization file"

  • Medify bupadetail.htm to add fields

    Hi All,    My requirement is to add 2 new fields on view bupadetai.htm for street2 and street 3. This requires to modify std SAP BSP application. Please can anyone tell me how to do it. I have serached SDN but couldnt find any blog for adding new fie

  • What version of Photoshop to use?

    Hello, I "used to be" a professional photographer but am now retired.  I would like to get into using Photoshop but don't know what version to use.  Can someone help?  I have an HP w/AMD Athlon II X4 640 Processor w/6GB RAM and all the bells & whistl