"add_months" and "interval"

please tell me what is the difference between the below query.i need to take the last month date using the current date.Which query will be the correct one and whats the difference.
select trunc(sysdate)+ interval '1' month from dual;
select trunc(add_months(sysdate,1)) from dual;

1)select trunc(to_date('30-jan-2008','dd-mon-yyyy'))+ interval '1' month from dual;
2)select trunc(add_months(to_date('30-jan-2008','dd-mon-yyyy'),1)) from dual;you get to understand the difference from above examples....
in case of first query...if you add a interval 1 month then date is not valid because 30-feb-2008 doesn't exist...so the query will fail..
in case of second query...if you use add_months function...if there is no valid date next month...then it will take last day of the month like in above case...29-feb-2008.
so in your case depending upon your requirement you need to use 1 or 2...
Ravi Kumar
Edited by: ravikumar.sv on Aug 25, 2009 12:24 PM

Similar Messages

  • How to update timeout and interval of DSN in CF10 Admin API?

    Hi,
    We are trying to update an existing MSSQL DSN. Can we just overwrite the DSN to update it?
    Secondly, the timeout and interval values never update, and these are the values we want to change. Is this a bug Adobe? Do you have an example of a MSSQL DSN update. The examples on the Adobe site do not work - the interval/timeout values are not updatable. We run CF10 update 11 on IIS8.
    Thanks,
    Mark

    Hi,
    We are trying to update an existing MSSQL DSN. Can we just overwrite the DSN to update it?
    Secondly, the timeout and interval values never update, and these are the values we want to change. Is this a bug Adobe? Do you have an example of a MSSQL DSN update. The examples on the Adobe site do not work - the interval/timeout values are not updatable. We run CF10 update 11 on IIS8.
    Thanks,
    Mark

  • DBMS_TYPES with timestamp and interval does not seem to work.

    I have a PL/SQL script that seems to work for char,varchar,numerics, dates, but not for intervals. I basically took example code out of the Oracle manuals and stitched it together.
    The code in question is the function colTypeString. Apparently, interval is not being recognized as a type, so the function is returning back unknown. The documentation seems a bit spartan, so I thought perhaps you can help me out.
    Thanks.
    Here's the code:
    create table interval_test( intym interval year(4) to month, intdm interval day(3) to second(4) );
    execute oraforum_pkg.desc_query( 'select * from interval_test' );
    col_type     =     182, UNKNOWN_TYPE
    col_maxlen     =     5
    col_name     =     INTYM
    col_name_len     =     5
    col_schema_name =
    col_schema_name_len =     0
    col_precision     =     4
    col_scale     =     0
    col_null_ok     =     true
    col_type     =     183, UNKNOWN_TYPE
    col_maxlen     =     11
    col_name     =     INTDM
    col_name_len     =     5
    col_schema_name =
    col_schema_name_len =     0
    col_precision     =     3
    col_scale     =     4
    col_null_ok     =     true
    PL/SQL procedure successfully completed.
    Here's the package:
    -- Define the ref cursor types and function
    CREATE OR REPLACE PACKAGE oraforum_pkg IS
    FUNCTION colTypeString( typeId in integer) return varchar2; -- typeId from dbms_types
    PROCEDURE print_rec(rec in DBMS_SQL.DESC_REC);
    PROCEDURE desc_query( selectSql in varchar2 );
    END oraforum_pkg;
    CREATE OR REPLACE PACKAGE BODY oraforum_pkg IS
    FUNCTION colTypeString( typeId in integer)
    return varchar2 -- typeId from dbms_types
    is
    rval varchar2(40) := 'Unknown';
    BEGIN
    case typeId
    when DBMS_TYPES.NO_DATA then rval := 'NO_DATA' ;
    when DBMS_TYPES.SUCCESS          then rval := 'SUCCESS' ;
    when DBMS_TYPES.TYPECODE_BDOUBLE     then rval := 'BDOUBLE' ;
    when DBMS_TYPES.TYPECODE_BFILE     then rval := 'BFILE' ;
    when DBMS_TYPES.TYPECODE_BFLOAT     then rval := 'BFLOAT' ;
    when DBMS_TYPES.TYPECODE_BLOB     then rval := 'BLOB' ;
    when DBMS_TYPES.TYPECODE_CFILE     then rval := 'CFILE' ;
    when DBMS_TYPES.TYPECODE_CHAR     then rval := 'CHAR' ;
    when DBMS_TYPES.TYPECODE_CLOB     then rval := 'CLOB' ;
    when DBMS_TYPES.TYPECODE_DATE     then rval := 'DATE' ;
    when DBMS_TYPES.TYPECODE_INTERVAL_DS     then rval := 'INTERVAL_DS' ;
    when DBMS_TYPES.TYPECODE_INTERVAL_YM     then rval := 'INTERVAL_YM' ;
    when DBMS_TYPES.TYPECODE_MLSLABEL     then rval := 'MLSLABEL' ;
    when DBMS_TYPES.TYPECODE_NAMEDCOLLECTION then rval := 'NAMEDCOLLECTION' ;
    when DBMS_TYPES.TYPECODE_NUMBER     then rval := 'NUMBER' ;
    when DBMS_TYPES.TYPECODE_OBJECT     then rval := 'OBJECT' ;
    when DBMS_TYPES.TYPECODE_OPAQUE     then rval := 'OPAQUE' ;
    when DBMS_TYPES.TYPECODE_RAW          then rval := 'RAW' ;
    when DBMS_TYPES.TYPECODE_REF          then rval := 'REF' ;
    when DBMS_TYPES.TYPECODE_TABLE     then rval := 'TABLE' ;
    when DBMS_TYPES.TYPECODE_TIMESTAMP     then rval := 'TIMESTAMP' ;
    when DBMS_TYPES.TYPECODE_TIMESTAMP_LTZ then rval := 'TIMESTAMP_LTZ' ;
    when DBMS_TYPES.TYPECODE_TIMESTAMP_TZ then rval := 'TIMESTAMP_TZ' ;
    when DBMS_TYPES.TYPECODE_VARCHAR2     then rval := 'VARCHAR2' ;
    when DBMS_TYPES.TYPECODE_VARCHAR     then rval := 'VARCHAR' ;
    when DBMS_TYPES.TYPECODE_VARRAY then rval := 'VARRAY' ;
    else rval := 'UNKNOWN_TYPE';
    end case;
    return rval;
    END;
    PROCEDURE print_rec(rec in DBMS_SQL.DESC_REC) IS
    BEGIN
    DBMS_OUTPUT.PUT_LINE('col_type = '
    || rec.col_type || ', ' || colTypeString(rec.col_type) );
    DBMS_OUTPUT.PUT_LINE('col_maxlen = '
    || rec.col_max_len);
    DBMS_OUTPUT.PUT_LINE('col_name = '
    || rec.col_name);
    DBMS_OUTPUT.PUT_LINE('col_name_len = '
    || rec.col_name_len);
    DBMS_OUTPUT.PUT_LINE('col_schema_name = '
    || rec.col_schema_name);
    DBMS_OUTPUT.PUT_LINE('col_schema_name_len = '
    || rec.col_schema_name_len);
    DBMS_OUTPUT.PUT_LINE('col_precision = '
    || rec.col_precision);
    DBMS_OUTPUT.PUT_LINE('col_scale = '
    || rec.col_scale);
    DBMS_OUTPUT.PUT('col_null_ok = ');
    IF (rec.col_null_ok) THEN
    DBMS_OUTPUT.PUT_LINE('true');
    ELSE
    DBMS_OUTPUT.PUT_LINE('false');
    END IF;
    DBMS_OUTPUT.PUT_LINE('');
    END;
    PROCEDURE desc_query( selectSql in varchar2 ) IS
    c NUMBER;
    d NUMBER;
    col_cnt INTEGER;
    f BOOLEAN;
    rec_tab DBMS_SQL.DESC_TAB;
    col_num NUMBER;
    BEGIN
    c := DBMS_SQL.OPEN_CURSOR; -- Is this needed for parsing? Yes, as argument to PARSE
    DBMS_SQL.PARSE(c, selectSql, DBMS_SQL.NATIVE);
    -- d := DBMS_SQL.EXECUTE(c); -- Doesn't look necessary.
    DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
    * Following loop could simply be for j in 1..col_cnt loop.
    * Here we are simply illustrating some of the PL/SQL table
    * features.
    col_num := rec_tab.first;
    IF (col_num IS NOT NULL) THEN
    LOOP
    print_rec(rec_tab(col_num));
    col_num := rec_tab.next(col_num);
    EXIT WHEN (col_num IS NULL);
    END LOOP;
    END IF;
    DBMS_SQL.CLOSE_CURSOR(c);
    END;
    END oraforum_pkg;
    Message was edited by:
    user554561

    The issue is that DBMS_SQL and DBMS_TYPES have different typecodes. Which means you can't interrogate the DBMS_SQL.DESC_REC using DBMS_TYPES constants. You could create yourself a package of DBMS_SQL_TYPES.
    SQL> create table t ( ts timestamp, iv interval day to second );
    Table created.
    SQL>
    SQL> insert into t values ( systimestamp, interval '1' second );
    1 row created.
    SQL>
    SQL> declare
      2     c         integer           := dbms_sql.open_cursor ();
      3     rec_tab   dbms_sql.desc_tab;
      4     col_cnt   integer;
      5  begin
      6     dbms_sql.parse (c, 'select * from t', dbms_sql.native);
      7     dbms_sql.describe_columns (c, col_cnt, rec_tab);
      8
      9     for i in 1 .. col_cnt
    10     loop
    11        dbms_output.put_line ('Name: ' || rec_tab (i).col_name || '; Type: ' || rec_tab (i).col_type);
    12     end loop;
    13
    14     dbms_sql.close_cursor (c);
    15
    16     dbms_output.put_line ('DBMS_TYPES.TYPECODE_TIMESTAMP; Type: ' || DBMS_TYPES.TYPECODE_TIMESTAMP);
    17     dbms_output.put_line ('DBMS_TYPES.TYPECODE_INTERVAL_DS; Type: ' || DBMS_TYPES.TYPECODE_INTERVAL_DS);
    18
    19  end;
    20  /
    Name: TS; Type: 180
    Name: IV; Type: 183
    DBMS_TYPES.TYPECODE_TIMESTAMP; Type: 187
    DBMS_TYPES.TYPECODE_INTERVAL_DS; Type: 190
    PL/SQL procedure successfully completed.Regards

  • Function module to give a date based on a particular date and interval.

    Hi there,
    I am writing a code where I need to to find another date
    based on a key date and and an interval.
    Is there any function module where I pass the date and the interval
    (say 30) and it gives me a new date after subtracting 30 from it.
    Or is there any piece of code which does it?
    Thanks in advance.
    Regards,
    Kate

    hi Kate,
    you can try ?
    data : date2 like sy-datum.
    date2 = yourdate - 30.
    hope this helps.

  • Unable to create a schedule to exclude days and interval within each day

    Please can someone help me with this issue:
    I'm trying to create a schedule to run job every 10 mins from Monday 8am -Until Saturday 10am. Which means not to run run it from (sat 8am-Mon 10am).
    I know you can can use "exclude" parameter but some how I can get to work:
    I'm trying to do this:
    EGIN
    DBMS_SCHEDULER.create_schedule (schedule_name => 'sat10am_onward'
    ,start_date => SYSTIMESTAMP
    ,repeat_interval => 'freq=hourly;byday=sat;byhour=10,11,12,13,14,15,16,17,18,19,20,21,22,23;'
    ,comments => 'sat10am_onward'
    END;
    BEGIN
    DBMS_SCHEDULER.create_schedule (schedule_name => 'all_sunday'
    ,start_date => SYSTIMESTAMP
    ,repeat_interval => 'freq=hourly;byday=sun;byhour=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23;'
    ,comments => 'all_sunday'
    END;
    BEGIN
    DBMS_SCHEDULER.create_schedule (schedule_name => 'monday_TO_8'
    ,start_date => SYSTIMESTAMP
    ,repeat_interval => 'freq=hourly;byday=mon;byhour=0,1,2,3,4,5,6,7;'
    ,comments => 'monday_to_8'
    END;
    BEGIN
    DBMS_SCHEDULER.create_schedule (schedule_name => 'Mon_fri_10_min_not_sat10_mon8'
    ,start_date => SYSTIMESTAMP
    ,repeat_interval => 'freq=minutely;interval=10; exclude=all_sunday;exclude=monday_TO_8;exclude=sat10am_onward;'
    ,comments => 'Mon_fri_10_min_not_sat10_mon8'
    END;
    I exlude three other schedulers but I get an error?
    Does any one know what would be the best way to create this type of schedules?
    Thanks
    Xhev-

    Hi Bruce,
    Presenter 9.0 will require a new packager to create the installation package. We can provide details about the new packager in mail. Pls. write to me [email protected] and provide the following details:-
    1. Windows version where Presenter will be installed
    2. Powerpoint version (Office 2010 or Office 2013)
    3. office 32-bit or 64-bit
    Thanks,
    Jayashree
    Adobe Presenter Engg. Team

  • Mixing SourceDataLine with Clip with initial gap and interval

    Hi!
    I have one long (wav or aif) file. I want to "watermark" it with small clip file (*.wav). How could I mix them to get long file watermarked with clip with initial gap and specific interval (I mean in output file the clip is played after 10s, then after 20s interval clip is played again, next 20s and again etc)?
    Could this be done? Could You give me simple hints?

    zielonyplot wrote:
    Hi!
    I already did it. I had to modify MixingAudioInputStream, but it was't so simple as it sounds... ;-)Oh, I'm sure it was a pain and a half ;-) But certainly less work than mixing the streams at the sample-level yourself ;-)
    But thanks!Glad you got it working....

  • After a ram upgrade to 8 GB mini does not start, control led is blinking and interval tut....tut is hearing..???, After a ram upgrade to 8 GB mini does not start, control led is blinking and interval tut....tut is hearing..???

    Hello,
    i tried to change the RAM on my Mac mini 2011 up to 8 GB RAM.
    After installing the modules the mini does not start, led blinking and tut......tut....tut.
    changhing back to the old modules, same problem.
    Who can haelp? THANKS

    Hello,
    The following table lists the new tones and their meaning:
    Tone(s)    Description
    1 tone, a 5-second pause, repeat    No RAM installed
    3 successive tones, a 5-second pause, 3 successive tones    RAM does not pass data integrity check
    1 long tone when holding down the power button    Firmware upgrade in process. See About firmware updates for Intel-based Macs for more details.
    3 long tones, 3 short tones, 3 long tones    Firmware restoration from CD in process. See About the Firmware Restoration CD (Intel-based Macs) for more details.
    http://support.apple.com/kb/HT2538
    Try reseating the RAM, or try the old RAM, the new one(s) may be bad or not Mac compatible.

  • HT201250 How do I set the time of day and interval I want  Time Machine to perform backup?

    Time Machine keeps starting its backup when I'm using my mac.  I would like it to do its backup overnight - when I'm not using it.  How do I set this?  I'd also only like to do backups once a week.
    Can I also configure it to perform backup on an external hard drive as well as the internal hard drive?

    Check out Time Machine Tips 

  • MMNR - Insert interval button and group problem

    Hi all,
    I've got a couple of problems not sure if anyone else may have come across this.
    After an upgrade to enhancement pack 4 on ECC 6  the Insert Interval button is not longer showing in the transaction MMNR. 
    Additionally, we cannot save newly created groups.  When I click to save, I get a message saying no changes made and the newly created group promptly disappears.
    I can't find anything on OSS close to this except an old note to run a report to check for table inconsistencies which I have done and not errors were detected.
    Has anyone else encountered this problem?

    Hi Tracey,
    I haven't done an upgrade from 4.7 to ECC6.0  but my client is using ECC 6.0 with EHP 4 (similar to your upgraded version)
    Try with the following :
    MMNR
    Click on Change Group ( Check the Number range already used in system)
    Go to Group (Top Blue Ribbon ) or press F6
    Insert the Group Text and Define Number Range and save
    Assign new group and interval to the Material type.
    If this does not work, then you might have to take some Technical help from Basis / SAP (if reqd)
    Hope this helps,
    best regards
    Amit Bakshi

  • Mac keeps crashing and asking me to shutdown

    Hi all.
    I was a PC user until a month ago when I bought a Macbook. I always assumed Macbooks are stable, but I've had a number of problems which are starting to irk me.
    The main problem is I'll be reading something online (usually BBC news or emails) and then my computer will freeze with the rainbow circular graphic showing. Everything will grey out and I'll be prompted to restart thus losing other work on my Macbook. Now, this is something I didn't pay £900 for!
    After the start up, I see this common problem in the log file - anyone know what this could be?
    Sun Apr 3 19:44:19 2011
    panic(cpu 0 caller 0x4fd174): "A kext releasing a(n) AppleAHCIDiskDriver has corrupted the registry."@/SourceCache/xnu/xnu-1504.7.51/libkern/c++/OSObject.cpp:244
    Backtrace (CPU 0), Frame : Return Address (4 potential args on stack)
    0x2baa3ed8 : 0x21b455 (0x5d09dc 0x2baa3f0c 0x2238b1 0x0)
    0x2baa3f28 : 0x4fd174 (0x5d1f10 0x5299960 0x53f5804 0x53f5700)
    0x2baa3f68 : 0x4fcdce (0x53f5800 0x0 0x1 0xe00002c0)
    0x2baa3f88 : 0x4fcde9 (0x53f5800 0x0 0x0 0x53f5700)
    0x2baa3fa8 : 0x132d109 (0x53f5800 0x5400a00 0x29f47f 0x227764)
    0x2baa3fc8 : 0x29e6cc (0x53f5700 0x0 0x10 0x0)
    Kernel Extensions in backtrace (with dependencies):
    com.apple.iokit.IOAHCIBlockStorage(1.6.2)@0x132a000->0x133cfff
    dependency: com.apple.iokit.IOAHCIFamily(2.0.4)@0xf52000
    dependency: com.apple.iokit.IOStorageFamily(1.6.2)@0xf7c000
    BSD process name corresponding to current thread: kernel_task
    and a few days earlier:
    Tue Apr 5 13:41:02 2011
    panic(cpu 1 caller 0x5046d4): "A kext releasing a(n) AppleAHCIDiskDriver has corrupted the registry."@/SourceCache/xnu/xnu-1504.9.37/libkern/c++/OSObject.cpp:244
    Backtrace (CPU 1), Frame : Return Address (4 potential args on stack)
    0x31a33ed8 : 0x21b510 (0x5d9514 0x31a33f0c 0x223978 0x0)
    0x31a33f28 : 0x5046d4 (0x5daa48 0x52d3e60 0x5476504 0x5476400)
    0x31a33f68 : 0x50432e (0x5476500 0x0 0x1 0xe00002c0)
    0x31a33f88 : 0x504349 (0x5476500 0x0 0x0 0x5476400)
    0x31a33fa8 : 0x135710b (0x5476500 0x548be80 0x31a33fc8 0x2278cb)
    0x31a33fc8 : 0x2a06dc (0x5476400 0x0 0x10 0x59e8b44)
    Kernel Extensions in backtrace (with dependencies):
    com.apple.iokit.IOAHCIBlockStorage(1.6.3)@0x1354000->0x1366fff
    dependency: com.apple.iokit.IOAHCIFamily(2.0.4)@0xf6d000
    dependency: com.apple.iokit.IOStorageFamily(1.6.2)@0xf97000
    BSD process name corresponding to current thread: kernel_task

    Interval Since Last Panic Report: 39128 sec
    Panics Since Last Report: 1
    Anonymous UUID: 07671814-761B-42B5-950E-BFFAB5A3987C
    Sun Apr 3 19:44:19 2011
    panic(cpu 0 caller 0x4fd174): "A kext releasing a(n) AppleAHCIDiskDriver has corrupted the registry."@/SourceCache/xnu/xnu-1504.7.51/libkern/c++/OSObject.cpp:244
    Backtrace (CPU 0), Frame : Return Address (4 potential args on stack)
    0x2baa3ed8 : 0x21b455 (0x5d09dc 0x2baa3f0c 0x2238b1 0x0)
    0x2baa3f28 : 0x4fd174 (0x5d1f10 0x5299960 0x53f5804 0x53f5700)
    0x2baa3f68 : 0x4fcdce (0x53f5800 0x0 0x1 0xe00002c0)
    0x2baa3f88 : 0x4fcde9 (0x53f5800 0x0 0x0 0x53f5700)
    0x2baa3fa8 : 0x132d109 (0x53f5800 0x5400a00 0x29f47f 0x227764)
    0x2baa3fc8 : 0x29e6cc (0x53f5700 0x0 0x10 0x0)
    Kernel Extensions in backtrace (with dependencies):
    com.apple.iokit.IOAHCIBlockStorage(1.6.2)@0x132a000->0x133cfff
    dependency: com.apple.iokit.IOAHCIFamily(2.0.4)@0xf52000
    dependency: com.apple.iokit.IOStorageFamily(1.6.2)@0xf7c000
    BSD process name corresponding to current thread: kernel_task
    Mac OS version:
    10F2108
    Kernel version:
    Darwin Kernel Version 10.4.1: Fri Jul 16 23:04:20 PDT 2010; root:xnu-1504.7.51~1/RELEASE_I386
    System model name: MacBook7,1 (Mac-F22C89C8)
    System uptime in nanoseconds: 7191832312590
    unloaded kexts:
    com.apple.driver.AppleFileSystemDriver 2.0 (addr 0xf94000, size 0x12288) - last unloaded 149061043355
    loaded kexts:
    com.apple.driver.AppleHWSensor 1.9.3d0 - last loaded 20381690011
    com.apple.filesystems.autofs 2.1.0
    com.apple.driver.AGPM 100.12.12
    com.apple.driver.AppleHDA 1.9.3f5
    com.apple.driver.AppleMikeyHIDDriver 1.2.0
    com.apple.driver.AppleUpstreamUserClient 3.4.0
    com.apple.driver.AppleMCCSControl 1.0.17
    com.apple.driver.AudioAUUC 1.9
    com.apple.driver.AppleMikeyDriver 1.9.3f5
    com.apple.driver.AppleBacklight 170.0.30
    com.apple.driver.SMCMotionSensor 3.0.0d4
    com.apple.DontSteal_Mac_OSX 7.0.0
    com.apple.driver.AudioIPCDriver 1.1.5
    com.apple.driver.AppleIntelPenrynProfile 17
    com.apple.driver.ACPISMCPlatformPlugin 4.3.0d3
    com.apple.driver.AppleLPC 1.4.12
    com.apple.GeForce 6.1.8
    com.apple.driver.AppleUSBTCButtons 1.8.1b1
    com.apple.driver.AppleUSBTCKeyboard 1.8.1b1
    com.apple.iokit.SCSITaskUserClient 2.6.5
    com.apple.BootCache 31
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
    com.apple.iokit.IOAHCIBlockStorage 1.6.2
    com.apple.driver.AppleSmartBatteryManager 160.0.0
    com.apple.driver.AirPortBrcm43224 425.16.2
    com.apple.driver.AppleAHCIPort 2.1.2
    com.apple.nvenet 2.0.15
    com.apple.driver.AppleUSBHub 4.0.0
    com.apple.driver.AppleUSBEHCI 4.0.2
    com.apple.driver.AppleUSBOHCI 3.9.6
    com.apple.driver.AppleEFINVRAM 1.3.0
    com.apple.driver.AppleRTC 1.3.1
    com.apple.driver.AppleHPET 1.5
    com.apple.driver.AppleACPIButtons 1.3.3
    com.apple.driver.AppleSMBIOS 1.6
    com.apple.driver.AppleACPIEC 1.3.3
    com.apple.driver.AppleAPIC 1.4
    com.apple.driver.AppleIntelCPUPowerManagementClient 105.11.0
    com.apple.security.sandbox 0
    com.apple.security.quarantine 0
    com.apple.nke.applicationfirewall 2.1.11
    com.apple.driver.AppleIntelCPUPowerManagement 105.11.0
    com.apple.driver.DspFuncLib 1.9.3f5
    com.apple.driver.AppleProfileReadCounterAction 17
    com.apple.driver.AppleProfileTimestampAction 10
    com.apple.driver.AppleProfileThreadInfoAction 14
    com.apple.driver.AppleProfileRegisterStateAction 10
    com.apple.driver.AppleProfileKEventAction 10
    com.apple.driver.AppleProfileCallstackAction 20
    com.apple.nvidia.nv50hal 6.1.8
    com.apple.iokit.IOSurface 74.0
    com.apple.iokit.IOBluetoothSerialManager 2.3.7f1
    com.apple.iokit.IOSerialFamily 10.0.3
    com.apple.iokit.IOAudioFamily 1.7.6fc2
    com.apple.kext.OSvKernDSPLib 1.3
    com.apple.driver.AppleHDAController 1.9.3f5
    com.apple.iokit.IOHDAFamily 1.9.3f5
    com.apple.driver.AppleSMBusController 1.0.8d0
    com.apple.iokit.AppleProfileFamily 41
    com.apple.driver.AppleSMC 3.0.1d2
    com.apple.driver.IOPlatformPluginFamily 4.3.0d3
    com.apple.driver.AppleSMBusPCI 1.0.8d0
    com.apple.NVDAResman 6.1.8
    com.apple.iokit.IONDRVSupport 2.2
    com.apple.iokit.IOGraphicsFamily 2.2
    com.apple.driver.BroadcomUSBBluetoothHCIController 2.3.7f1
    com.apple.driver.AppleUSBBluetoothHCIController 2.3.7f1
    com.apple.iokit.IOBluetoothFamily 2.3.7f1
    com.apple.driver.AppleUSBMultitouch 205.32
    com.apple.iokit.IOUSBHIDDriver 4.0.2
    com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.6.5
    com.apple.iokit.IOBDStorageFamily 1.6
    com.apple.iokit.IODVDStorageFamily 1.6
    com.apple.iokit.IOCDStorageFamily 1.6
    com.apple.driver.AppleUSBMergeNub 4.1.0
    com.apple.driver.AppleUSBComposite 3.9.0
    com.apple.driver.XsanFilter 402.1
    com.apple.iokit.IOAHCISerialATAPI 1.2.4
    com.apple.iokit.IOSCSIArchitectureModelFamily 2.6.5
    com.apple.iokit.IO80211Family 311.1
    com.apple.iokit.IOAHCIFamily 2.0.4
    com.apple.iokit.IONetworkingFamily 1.9
    com.apple.iokit.IOUSBUserClient 4.0.0
    com.apple.iokit.IOUSBFamily 4.1.0
    com.apple.driver.NVSMU 2.2.7
    com.apple.driver.AppleEFIRuntime 1.3.0
    com.apple.iokit.IOHIDFamily 1.6.5
    com.apple.iokit.IOSMBusFamily 1.1
    com.apple.kext.AppleMatch 1.0.0d1
    com.apple.security.TMSafetyNet 6
    com.apple.driver.DiskImages 286
    com.apple.iokit.IOStorageFamily 1.6.2
    com.apple.driver.AppleACPIPlatform 1.3.3
    com.apple.iokit.IOPCIFamily 2.6
    com.apple.iokit.IOACPIFamily 1.3.0
    Model: MacBook7,1, BootROM MB71.0039.B0B, 2 processors, Intel Core 2 Duo, 2.4 GHz, 2 GB, SMC 1.60f5
    Graphics: NVIDIA GeForce 320M, NVIDIA GeForce 320M, PCI, 256 MB
    Memory Module: global_name
    AirPort: spairportwireless_card_type_airportextreme (0x14E4, 0x93), Broadcom BCM43xx 1.0 (5.10.131.16.1)
    Bluetooth: Version 2.3.7f1, 2 service, 19 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: ST9500325AS, 465.76 GB
    Serial ATA Device: MATSHITADVD-R UJ-898
    USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8507, 0x24600000
    USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x0237, 0x06300000
    USB Device: BRCM2070 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x06600000
    USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8218, 0x06630000
    and
    Interval Since Last Panic Report: 5037 sec
    Panics Since Last Report: 1
    Anonymous UUID: 07671814-761B-42B5-950E-BFFAB5A3987C
    Tue Apr 5 13:41:02 2011
    panic(cpu 1 caller 0x5046d4): "A kext releasing a(n) AppleAHCIDiskDriver has corrupted the registry."@/SourceCache/xnu/xnu-1504.9.37/libkern/c++/OSObject.cpp:244
    Backtrace (CPU 1), Frame : Return Address (4 potential args on stack)
    0x31a33ed8 : 0x21b510 (0x5d9514 0x31a33f0c 0x223978 0x0)
    0x31a33f28 : 0x5046d4 (0x5daa48 0x52d3e60 0x5476504 0x5476400)
    0x31a33f68 : 0x50432e (0x5476500 0x0 0x1 0xe00002c0)
    0x31a33f88 : 0x504349 (0x5476500 0x0 0x0 0x5476400)
    0x31a33fa8 : 0x135710b (0x5476500 0x548be80 0x31a33fc8 0x2278cb)
    0x31a33fc8 : 0x2a06dc (0x5476400 0x0 0x10 0x59e8b44)
    Kernel Extensions in backtrace (with dependencies):
    com.apple.iokit.IOAHCIBlockStorage(1.6.3)@0x1354000->0x1366fff
    dependency: com.apple.iokit.IOAHCIFamily(2.0.4)@0xf6d000
    dependency: com.apple.iokit.IOStorageFamily(1.6.2)@0xf97000
    BSD process name corresponding to current thread: kernel_task
    Mac OS version:
    10J869
    Kernel version:
    Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386
    System model name: MacBook7,1 (Mac-F22C89C8)
    System uptime in nanoseconds: 9641027071054
    unloaded kexts:
    com.apple.driver.AppleUSBTCKeyEventDriver 200.3.2 (addr 0x1228000, size 0x8192) - last unloaded 1003966141391
    loaded kexts:
    com.apple.driver.AppleHWSensor 1.9.3d0 - last loaded 941531621904
    com.apple.filesystems.autofs 2.1.0
    com.apple.driver.AGPM 100.12.19
    com.apple.driver.AppleMikeyHIDDriver 1.2.0
    com.apple.driver.AppleHDA 1.9.9f12
    com.apple.driver.AppleUpstreamUserClient 3.5.4
    com.apple.driver.AppleMCCSControl 1.0.17
    com.apple.driver.AppleMikeyDriver 1.9.9f12
    com.apple.driver.AudioAUUC 1.54
    com.apple.driver.AppleLPC 1.4.12
    com.apple.driver.SMCMotionSensor 3.0.0d4
    com.apple.DontSteal_Mac_OSX 7.0.0
    com.apple.driver.AudioIPCDriver 1.1.6
    com.apple.driver.AppleIntelPenrynProfile 17
    com.apple.driver.ACPISMCPlatformPlugin 4.5.0d5
    com.apple.driver.AppleBacklight 170.0.34
    com.apple.GeForce 6.2.6
    com.apple.driver.AppleUSBTCButtons 200.3.2
    com.apple.driver.AppleUSBTCKeyboard 200.3.2
    com.apple.iokit.SCSITaskUserClient 2.6.5
    com.apple.BootCache 31
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
    com.apple.driver.AppleSmartBatteryManager 160.0.0
    com.apple.iokit.IOAHCIBlockStorage 1.6.3
    com.apple.driver.AirPortBrcm43224 427.36.9
    com.apple.driver.AppleUSBHub 4.1.7
    com.apple.driver.AppleAHCIPort 2.1.5
    com.apple.nvenet 2.0.15
    com.apple.driver.AppleUSBEHCI 4.1.8
    com.apple.driver.AppleUSBOHCI 4.1.5
    com.apple.driver.AppleEFINVRAM 1.4.0
    com.apple.driver.AppleRTC 1.3.1
    com.apple.driver.AppleHPET 1.5
    com.apple.driver.AppleACPIButtons 1.3.5
    com.apple.driver.AppleSMBIOS 1.6
    com.apple.driver.AppleACPIEC 1.3.5
    com.apple.driver.AppleAPIC 1.4
    com.apple.driver.AppleIntelCPUPowerManagementClient 105.13.0
    com.apple.security.sandbox 1
    com.apple.security.quarantine 0
    com.apple.nke.applicationfirewall 2.1.11
    com.apple.driver.AppleIntelCPUPowerManagement 105.13.0
    com.apple.driver.AppleProfileReadCounterAction 17
    com.apple.driver.DspFuncLib 1.9.9f12
    com.apple.driver.AppleProfileTimestampAction 10
    com.apple.driver.AppleProfileThreadInfoAction 14
    com.apple.driver.AppleProfileRegisterStateAction 10
    com.apple.driver.AppleProfileKEventAction 10
    com.apple.driver.AppleProfileCallstackAction 20
    com.apple.nvidia.nv50hal 6.2.6
    com.apple.driver.AppleSMBusController 1.0.8d0
    com.apple.iokit.IOSurface 74.2
    com.apple.iokit.IOBluetoothSerialManager 2.4.0f1
    com.apple.iokit.IOSerialFamily 10.0.3
    com.apple.iokit.IOAudioFamily 1.8.0fc1
    com.apple.kext.OSvKernDSPLib 1.3
    com.apple.iokit.AppleProfileFamily 41
    com.apple.driver.AppleSMC 3.1.0d3
    com.apple.driver.IOPlatformPluginFamily 4.5.0d5
    com.apple.driver.AppleSMBusPCI 1.0.8d0
    com.apple.driver.AppleHDAController 1.9.9f12
    com.apple.iokit.IOHDAFamily 1.9.9f12
    com.apple.NVDAResman 6.2.6
    com.apple.iokit.IONDRVSupport 2.2
    com.apple.iokit.IOGraphicsFamily 2.2
    com.apple.driver.BroadcomUSBBluetoothHCIController 2.4.0f1
    com.apple.driver.AppleUSBBluetoothHCIController 2.4.0f1
    com.apple.iokit.IOBluetoothFamily 2.4.0f1
    com.apple.driver.AppleUSBMultitouch 206.6
    com.apple.iokit.IOUSBHIDDriver 4.1.5
    com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.6.5
    com.apple.iokit.IOBDStorageFamily 1.6
    com.apple.iokit.IODVDStorageFamily 1.6
    com.apple.iokit.IOCDStorageFamily 1.6
    com.apple.driver.AppleUSBMergeNub 4.1.8
    com.apple.driver.AppleUSBComposite 3.9.0
    com.apple.driver.XsanFilter 402.1
    com.apple.iokit.IOAHCISerialATAPI 1.2.5
    com.apple.iokit.IOSCSIArchitectureModelFamily 2.6.5
    com.apple.iokit.IO80211Family 314.1.1
    com.apple.iokit.IOUSBUserClient 4.1.5
    com.apple.iokit.IOAHCIFamily 2.0.4
    com.apple.iokit.IONetworkingFamily 1.10
    com.apple.iokit.IOUSBFamily 4.1.8
    com.apple.driver.AppleEFIRuntime 1.4.0
    com.apple.driver.NVSMU 2.2.7
    com.apple.iokit.IOHIDFamily 1.6.5
    com.apple.iokit.IOSMBusFamily 1.1
    com.apple.kext.AppleMatch 1.0.0d1
    com.apple.security.TMSafetyNet 6
    com.apple.driver.DiskImages 289
    com.apple.iokit.IOStorageFamily 1.6.2
    com.apple.driver.AppleACPIPlatform 1.3.5
    com.apple.iokit.IOPCIFamily 2.6
    com.apple.iokit.IOACPIFamily 1.3.0
    Model: MacBook7,1, BootROM MB71.0039.B0B, 2 processors, Intel Core 2 Duo, 2.4 GHz, 2 GB, SMC 1.60f5
    Graphics: NVIDIA GeForce 320M, NVIDIA GeForce 320M, PCI, 256 MB
    Memory Module: global_name
    AirPort: spairportwireless_card_type_airportextreme (0x14E4, 0x93), Broadcom BCM43xx 1.0 (5.10.131.36.9)
    Bluetooth: Version 2.4.0f1, 2 service, 19 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: ST9500325AS, 465.76 GB
    Serial ATA Device: MATSHITADVD-R UJ-898
    USB Device: BRCM2070 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x06600000
    USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8218, 0x06630000
    USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x0237, 0x06300000
    USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8507, 0x24600000

  • Discoverer Analytic Function windowing - errors and bad aggregation

    I posted this first on Database General forum, but then I found this was the place to put it:
    Hi, I'm using this kind of windowing function:
    SUM(Receitas Especificas) OVER(PARTITION BY Tipo Periodo,Calculado,"Empresa Descrição (Operador)","Empresa Descrição" ORDER BY Ini Periodo RANGE BETWEEN INTERVAL '12' MONTH PRECEDING AND INTERVAL '12' MONTH PRECEDING )
    If I use the "Receitas Especificas SUM" instead of
    "Receitas Especificas" I get the following error running the report:
    "an error occurred while attempting to run..."
    This is not in accordance to:
    http://www.boku.ac.at/oradoc/ias/10g(9.0.4)/bi.904/b10268.pdf
    but ok, the version without SUM inside works.
    Another problem is the fact that for analytic function with PARTITION BY,
    this does not work (shows the cannot aggregate symbol) if we collapse or use "<All>" in page items.
    But it works if we remove the item from the PARTITION BY and also remove from workbook.
    It's even worse for windowing functions(query above), because the query
    only works if we remove the item from the PARTITION BY but we have to show it on the workbook - and this MAKES NO SENSE... :(
    Please help.

    Unfortunately Discoverer doesn't show (correct) values for analytical functions when selecting "<All>" in a page item. I found out that it does work when you add the analytical function to the db-view instead of to the report as a calculation or as a calculated item on the folder.
    The only problem is you've to name all page-items in the PARTITION window, so, when adding a page-item to the report, you,ve to change the db-view and alter the PARTITION window.
    Michael

  • 12 month but devided into current and previous year

    hi guys
    i have this requirement to disaply amount for current period and previous period for 12 month.
    Current period is the period of  user entered year and previous period is previous year 
    So if user enter feb 2007 u2026Then current year is  feb, jan ,dec 2006
    And previous period is   Nov 2006  to March 2006
    user is entering the value 0CALMONTH ...and report to need to display 12 month internval betwen years. my problem is how to check the year  and interval
    please help me without any custom exit? can it be possible thru varibale?

    Hi,
    I think i misunderstood your question previously.
    You can create offsets on CALMONTH and achieve this easily.
    1)In the columns are of query disigner, create selections for 12 months by using CALMONTH and offset each field by -1 or -2,-3,-4 ..... -12.
    2) Create a Text Variable to show the month Value in column header
    3) Create a structure in columns area and place it below all the CALMONTH selections
    4) Include all your Key Figures inside the structure.

  • The window to select dimensions simply does not appear and I can't move forward, due to variables exit in the report

    Dear experts,
    I am having an issue when I try to create a WEBI document using Bex query through OLAP connection (Bics).
    Due to variables exit, it is not possible to open query pannel in webi to choose wich dimensions to add to the webi document.
    The window to select dimensions simply does not appear and I can't move forward!
    In RSRT ou Bex Analyzer, the query is running fine without errors.
    CMOD code is like this (I believe there is not any error as it is working flawless on other reports for other variable names):
    WHEN 'ZREDT1'.
         IF i_step = 2.
           CLEAR wa2.
           READ TABLE i_t_var_range INTO wa2 WITH KEY vnam = 'ZRE_DT_IN'.
    *      wa2-low = |{ v_year_h }12|.
           IF sy-subrc EQ 0.
             v_year_h = wa2-low(4) - 1.
             CONCATENATE v_year_h '12' INTO wa1-low.
    *        wa1-low = wa2-low.
             wa1-opt  = 'EQ'.
             wa1-sign = 'I'.
             APPEND wa1 TO e_t_range.
           ENDIF.
         ENDIF.
        WHEN 'ZREDT2'.
         IF i_step = 2.
           CLEAR wa2.
           READ TABLE i_t_var_range INTO wa2 WITH KEY vnam = 'ZRE_DT_IN'.
           IF sy-subrc EQ 0.
    *        wa2-low = |{ v_year_h }12|.
             v_year_h = wa2-low(4) - 1.
             CONCATENATE v_year_h '12' INTO wa1-low.
             wa1-opt  = 'EQ'.
             wa1-sign = 'I'.
             APPEND wa1 TO e_t_range.
           ENDIF.
         ENDIF.
    Please provide assistance,
    Thanks in advance,
    Kind regards,
    André Oliveira

    I solved it.
    The problem was due to date coming to exit - as you know some time intervals start at 01-01-1000, and as I was calculating 1000-1 = 999
    I was getting and interval from 99901 to 201405. Do not know if it was not working because CHAR NUMC6 was failing trying to recognize interval 99901 - 201405, but probably, this was the issue.
    Thanks for your inputs,
    Best regards,
    André Oliveira

  • Converting INTERVAL to single number

    I have two TIMESTAMP values. The difference, obviously, is INTERVAL DAY TO SECOND. I want to know the total time in the interval measured in seconds. I know that I can do 4 EXTRACT functions to get days, hours, minutes, and seconds separately; followed by 3 multiplications and 3 adds. I hope I'm not the only one who thinks this is overly complicated. The old-fashioned DATE data type would give me exactly what I wanted with a single subtraction and multiplication. But the resolution of DATE is only 1 second and I need the fractional resolution that TIMESTAMP will give me. If the complicated method is the only one available, then I'm seriously disappointed in the functionality of TIMESTAMP and INTERVAL.
    All of my attempts to convert INTERVAL to any numeric type have failed.
    Does anyone know of a quick way to get the total seconds from an INTERVAL without extracting the 4 fields separately?

    SQL> select interval '256' second as int from dual;
    INT
    +00 00:04:16.000000
    SQL> select ((sysdate + T) - sysdate)*86400 Numeric from (select interval '256' second as T from dual);
       NUMERIC
           256
    SQL>

  • ROWS BETWEEN 12 PRECEDING AND CURRENT ROW

    I have a report with the last 12 months and for each month, I have to show the sales sum of the last 12 months. For example, for 01/2001, I have to show the sales sum from 01/2000 to 12/2000.
    I have tried this:
    SUM(sales)
    OVER (PARTITION BY product, channel
    ORDER BY month ASC
    ROWS BETWEEN 12 PRECEDING AND CURRENT ROW)
    The problem is: this calculation only considers the data that are in the report.
    For example, if my report shows the data from jan/2001 to dec/2001, then for the first month the calculation result only returns the result of jan/2001, for feb/2001, the result is feb/2001 + jan/2001.
    How can I include the data of the last year in my calculation???

    Hi,
    I couldn't solve my problem using Discoverer Plus functions yet...
    I used this function to return the amount sold last year:
    SUM("Amount Sold SUM 1") OVER(PARTITION BY Products.Prod Name ORDER BY TO_DATE(Times."Calendar Year",'YYYY') RANGE BETWEEN INTERVAL '1' YEAR PRECEDING AND INTERVAL '1' YEAR PRECEDING )
    The result was: it worked perfectly well when I had no condition; so it showed three months (1998, 1999, 2000) and two data points (Amount Sold, Amount Sold Last Year). The "Amount Sold Last Year" was null for 1998, as there aren't data for 1997.
    Then I created a condition to filter the year (Times."Calendar Year" = 1999), because I must show only one year in my report. Then I got the "Amount Sold" with the correct result and the "Amount Sold Last Year" with null values. As I do have data for 1998, the result didn't return the result I expected.
    Am I doing something wrong??

Maybe you are looking for

  • Strange issue with rights of account, used by SSIS (Foreach Loop Container does not return file names without Admin rights on server)

    Hello everyone. Faced very strange issue with account, which is used to run SSIS package. The specific package uses Foreach Loop Container to retrieve file names within the specified folder, and put them into Import file task. The package is set up t

  • Spotify on Nokia 2730 ever possible?

    Will it ever be possible on my Nokia 2730? Or do I need to get an iphone? What is stopping it, limitations in the phone, OS, hardware? Or some implementation needed to be done to the spotify software? For those who have never heard of it, Spotify is 

  • Restoring original adjustments of a Mac Book Pro 13 last model

    Good morning I just bought a Mac Book pro 13 (last model) and I tried to use assistant migration to migrate everything from my old Mac Book (OS X LIon and updated), by ethernet connexion by cable, but the operation avorted twice. No interesting solut

  • Illustrator CS3 acts weird...what is this?

    hi all, Mac Pro 2.8 Quad Core w. 4Gb memory. Recently Illustrator acts very weird. I open a file and Illustrator doesn't let me do anything as if the layers were locked (it's not), can't select etc etc... but if I open the Layer Option window then ev

  • SSD with DV9500T

    Hello Everyone, I have a HP Pavilion NOTEBOOK PC DV9500T, it has an intel processor and I would like to use an SSD instead of my normal harddrive. I have couple of questions regarding that, any help will be much appreciated The laptop came with 2 har