Sql command not working with date time??

I am using my own sql query to fetch data in the sql command.
Due to the problem I found - here is the basic example:
The sql is:
select to_number(to_date('10/11/2011 10:23:00','dd/mm/yyyy hh24:mi:ss') - to_date('10/11/2011 10:20:00','dd/mm/yyyy hh24:mi:ss'))  minu  from dual
But I am not getting anything in Crystal Report tool!!
In any sql tool I get results.
When I am not using time part (hh24:mi:ss) :
select to_number(to_date('10/11/2011','dd/mm/yyyy') - to_date('09/11/2011','dd/mm/yyyy'))  minu
from dual
I am getting data!!!!
What is the problem??
Initially I had it with parameters of type 'Date Time'
Please, any one knows what the problem is?

Hi,
Sorry for the delay and thanks for answering.
It was partial solution
Moving to oracle driver, not (OLE DB), this specific one worked fine:
select to_number(to_date('10/11/2011 10:23:00','dd/mm/yyyy hh24:mi:ss') - to_date('10/11/2011 10:20:00','dd/mm/yyyy hh24:mi:ss'))*100 minu from dual
BUT
When I tried to change one of the hardcoded values to be parameter of type 'Date Time' I couldn't pass the validation step - mostly the errors:
"ORA 00900 Invalid sql statment"   and
"ORA - 00907: Missing right parnthesis"
No matter which format I used.
Last version is:  
select to_date('{?tsStartReport}','yyyy-mm-dd hh24:mi:ss') from dual
Any idea why 'Date Time; is so problematic? How can I workaround it?

Similar Messages

  • Why Model MD297AE/A is not working with Fcae time and Model MD293C/A is working in UAE with Facetime

    Why Model MD297AE/A is not working with Fcae time and Model MD293C/A is working in UAE with Facetime.
    In fact I have given my iPhone to my daughter to use in Canada (purchased from UAE ISP) she is unable to use Face Time within Canada. ?
    Is it possibile to activate FaceTime in Canada if iPhone is purchase from UAE.
    Purchase under Points by ISP (No contract)
    Thanks
    Abbas

    Hello sir
           I agree what u replied for the above question, but because of the UAE request, you cannot deactivate the facetime completely from this iphone, they should stop working through SIM network. The iphone is a universal mobile which can travel all over the world, many tourist people will suffer due to that, pls re-consider in taking back and try to make it upgrading this software.
    Thanks
    SATHISH KUMAR

  • Odi os command not working with agentservice agent.

    dear all,
    odi os command not working with agentservice agent but with local agent it work fine.. and user is administrator.
    kindly solve it
    Regards
    Naseer

    Hi,
    you referred to oscommand, so are you executing a .bat fille? if yes, where exactly does the .bat file reside, local machine or on network share?
    Also, follow these couple of documents, they may be helpful to you.
    859215.1 and 424703.1
    Regards
    Srikanth

  • Keyboard commands not working with pen tablet attached to MacBook Pro

    HELP!! I can't use the clone tool in Photoshop! None of my keyboard commands are working, zoom in, zoom out...etc.
    I went through iCloud and reset Photoshop, InDesign and Illustrator keyboard, but my keyboard on my MacBook Pro
    is not working with adobe CC.
    Is it my Bamboo pen tablet attached causing this problem?
    Please advise.
    Thanks.

    You will likely get better program help in a program forum
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • SAP* and DDIC locked and SQL commands not working

    Dear All,
    We work on ECC6 and SQL 2005 as database.Somehow our SAP* and DDIC user gets locked in production server client 240 and SID AEP
    I tried the following things but none worked.Every time getting error.
    1. First i tried to run the following command in SQLPLUS mode
    in th command prompt i typed sqlplus / nolog(then enter)
    I got the following error sqlplus is not recognized as an internal or external command,operable program or batch file.
    2 Then i thought may be we work on SQL database we may already be in the SQLprompt.Still when i typed conn / as sysdba,same error
    conn is not recognized as an internal or external command,operable program or batch file.
    3.Then i again go to the command prompt and typed
    delete* from sap<AEP>.usr02, where BNAME = ' sap* ' and MANDT = ' 240 '
    This time I get the system cannot find the file specified
    Anyone can please clear my following doubt.
    1. Am I requiredto go in SQLPLUS  mode even when we have SQL Database.
    2. How to unlock this SAP* and other super users.Cause yesterday somebody must have tried to login to sap*,ddic,and sapbasis and in the process locked all by entering the wrong password.
    PS: Other users are working as we have role based authorization
    Help will be highly obliged
    Regards,
    Ashutosh

    Hello, ive got a problem with the SAPDB abd SAP* and DDIC in Client 000
    in our PROD 000 client we forgot the password for SAP* , DDIC and cannot delete it.
    Now the account was locked. please help how to reset SAP * this account on SAPDB.
    Its DB Versio 7.7! I read a lot about that! Please, step by step, is that a problem of interface sqlcli, or rights?
    Please could somebody give me an feedback about sqlcli, could i delete it with this tool the user? Because SQL studio is damaged on that server. Failed installation,Will not work! could not remove!
    I have to configure the server! sorry, i am not so much familar with SAPDB
    in old releases the shema is SAPR3 the new (NW 7) is SAPSR3.
    Checked 701!
    please set login/no_automatic_user_sapstar to 0.= Done!
    At sql propmt: Thats no SAPDB sqxli command, right!!!!
    select * from sapsr3.usr02 where bname='sap*' and mandt='000';
    Thats doesnt work!
    When i logon with the superdba , the connect is fine!
    After the command execute
    D:\sapdb>sqlcli -U DEFAULT delete from sapsr3DB.usr02 where bname='sap*' and mandt ='000';
    -10757: XUSER error (the USERKEY is unknown)
    select * from sapsr3.usr02 where bname='sap*' and mandt='000'; Doesnt work!
    What the hell is the error??? Doesnt find the answer, before, i get the same error then the other colleagues
    unknown table USR02! Is this superdba? Rights of DBA??
    please give an step by step advice. Logon with..... before ... choose sqlci..............sqlcli, \? + sql execute......
    Kind regards
    Ralph

  • My first PL/SQL block not working with using Select query within begin

    I am new to PL/SQL , just started with basics of BLOCKS .
    I am having a query here in executing a block .
    When i am doing a insert oprtation in Blocks Begin method everything is working fine , but when ever i tried to do select operation , some error is being thrown .
    First of all This is my Table :
    select from try :*
    KEY      VALUE
    Key     Value
    Key1     Value1
    Key2     Value2
    Key3     Value3
    ======================
    This is the code which is not working : Please see the code and tell me what is the problem .
    DECLARE
    v_KEY    VARCHAR2(20);
    v_VALUE   VARCHAR2(20);
    BEGIN
    select key into v_KEY FROM try where v_value='Value' ;
    dbms_output.put_line(v_KEY);
    END;
    When i run this code , it is saying Data Not Found on this line " select key into v_KEY FROM try where v_value='Value' ;"
    wheer when i run tis individually it worked fine :
    select KEY FROM try where VALUE='Value' ;"
    please share your ideas .as why it isn't running ??
    Edited by: user10503747 on Sep 20, 2010 3:16 AM

    Hi,
    user10503747 wrote:
    I am new to PL/SQL , just started with basics of BLOCKS .
    I am having a query here in executing a block .
    When i am doing a insert oprtation in Blocks Begin method everything is working fine , but when ever i tried to do select operation , some error is being thrown .
    First of all This is my Table :
    select from try :*
    KEY      VALUE
    Key     Value
    Key1     Value1
    Key2     Value2
    Key3     Value3
    ======================
    This is the code which is not working : Please see the code and tell me what is the problem .
    DECLARE
    v_KEY    VARCHAR2(20);
    v_VALUE   VARCHAR2(20);
    BEGIN
    select key into v_KEY FROM try where v_value='Value' ;
    dbms_output.put_line(v_KEY);
    END;
    When i run this code , it is saying Data Not Found on this line " select key into v_KEY FROM try where v_value='Value' ;"
    wheer when i run tis individually it worked fine :
    select KEY FROM try where VALUE='Value' ;"
    please share your ideas .as why it isn't running ??
    Edited by: user10503747 on Sep 20, 2010 3:16 AMInstead of:
    {code}
    select key into v_KEY FROM try where v_value='Value' ;
    {code}
    perhaps you meant something like:
    {code}
    v_value := 'Value1';
    select key into v_KEY FROM try where v_value=Value ; -- No quotes
    {code}
    Until you assign a vlue to a variable, like v_value, it is NULL, so your original statement was equivalent to
    {code}
    select KEY FROM try where NULL='Value' ;
    {code}
    In PL/SQL, a SELECT ... INTO statement must return exactly one row, or else you will get an error (either NO_DATA_FOUND or TOO_MANY_ROWS). This is different from SQL, where a query cn return any number of rows, including 0, without raising an error.

  • 0PM_ORDER_ATTR Delta is not working with AEDAT time stamp

    Hi Experts,
    I was trying to do a delta master data load for 0PM_ORDER_ATTR with AEDAT at delta filed with time stamp but its not working for me. The changed records are not comming in the delta load.
    But if i do a full load with with the date selection with the same AEDAT then its working.
    Is there anything wrong with the setting? Is delta supported for 0PM_ORDER_ATTR with AEDAT? M i missing anything?
    Help will be appreciated.

    Hello,
    I have the same problem.
    The safety margin is set to 0. So It should work, but maybe we have to set it to 1. I will test it tomorrow.
    If anybody has an idea, please let us know.
    Regards,
    bBe

  • Widows Search not working with Data Deduplication?

    Hi,
    I noticed that many files were missing when searching for them on my Server 2012 Fileserver.
    After some troubleshooting I noticed that the ones missing, had a Size on Disk of 4KB and the "SparseFile" and "ReparsePoint" (PL) Flags set.
    So it looks like they were processed by the enabled Data Deduplication.
    Am I missing something here or is it really the case that deduplicated files cannot be indexed by windows search?

    BTW! "... and mounted those file hierarcies below. 5 reparse points" so I my case I had consolidated the users Space into 5 overall concepts on 1 volume each. In that way I had already reduced my use of volumes.
    So for now I can add a drive letter to each for trying to make Windows Search work.
    But guess I am going to stumble into the same issue then with Windows Search not supporting resparse points again ....because some of the volumes are deduped.
    Great experience as ever working with file virtualization in the Windows client, i.e. Liberaries. Just wonder why the heck MS did not improove that experience ...
    Right now, with Server 2012, find myself "hacking" again this year 2013 ... to try and make Windows work on some basic issues. All the Flex is starting to go away now ... here comes reality ... NOT WORKING.
    NTFS resparse points, long file names, etc. Great Flex! However in theory only. For real when everything is pulled together and the system receives its more or less complete configuration ... unsupported in Windows. Go hack it.
    Please stop doing just components test ... and do complete flight tests also. More hollistic tests please across constraints! With a focus in each test ... from 0 to a fully configured system.
    How can no support in Windows Search for resparse points in NTFS be a miss during introduction of libraries (Windows 7/2008 R2) and now during introduction of data deduplication (Windows 8/2012) ... during just internal tests at MS? And we all have to use
    libraries (thus a remote Windows Search index on remote shares in a domain setup) ... and now Windows 8 WinRT is even more dependent on libraries? How can that be overlooked - or such a basic thing receive no priority - and just get skipped? How can that happen?

  • CurrentFrame command not working with Else/If statement?

    The code below is part of a game in which the character moves through doors. On the current stage are three doors, all
    instances from the same symbol. The symbol contains nine frames- 1,2 and 3 are three doors of three diff colors doors. 21,22, and 23 are those same three doors with a certain power up and 31,32 and 33 are the same doors with yet another power up.
    Door1.addEventListener(MouseEvent.CLICK,dooraction);
                    function dooraction(event:MouseEvent){
        if (Door3.currentFrame ==Door1.currentFrame + 2 ) {
                  Door1.gotoAndStop(" door21");
                  Door2.gotoAndStop(" door22");
                  Door3.gotoAndStop(" door23");
    So, this code as written works fine, When I add the code below, it stops working.
         else if (Door3.currentframe == Door1.currentFrame +2){
                 Door1.gotoAndStop("door31");
                 Door2.gotoAndStop("door32");
                 Door3.gotoAndStop("door33");
    However, when I alter the code so that all of the code in the first part  gotoAndStop's at "door21", and then remove the "+2 " from the
    second part of the code, it works. What have I done incorrectly that causes the second "+2" to not work?

    the else-if branch of your conditional is identical to the if-branch so i wouldn't expect the else-if branch to ever execute.

  • SQL*Plus column command not working with Script Runner

    SQL Developer EA 2.1
    When running a script (interactive or from a file), the COLUMN commands are ignored. The documentation (User's Guide 1.7.1) says that COLUMN is supported, but the headings set in the column command are not changed. As a test, the SET FEEDBACK OFF command is processed.
    SET FEEDBACK OFF
    COLUMN ename HEADING 'Name'
    COLUMN job HEADING 'Job'
    COLUMN deptno HEADING 'Dept'
    SELECT ename as ename, JOB, DEPTNO
    FROM EMPLOYEES;
    The documentation for Script Runner (User's Guide 1.7.2) says that a much more limited set of SQL*Plus commands are available.
    Is this intended behavior? If so, the documentation should reflect that the COLUMN command is ignored.

    Hi,
    Doc bug logged:
    Bug 9015160 - OTNEA1: USER GUIDE COLUMN SUPPORTS 'COLUMN...NEWVAL' ONLY
    The user guide says column is supported, but
    Column supports the following new_value use only
    i.e. moving a value from a selected column to a substitution variable:
    column aval new_v a
    select 1 aval from dual;
    select '&a' || ' is 1' from dual;
    Output:
    AVAL
    1
    1 rows selected
    '1'||'IS1'
    1 is 1
    1 rows selected
    -Turloch

  • SQL Plus not work with domain user

    Hey guys,
    have a problem with sql plus in our network. when i started it with the admin it works. but when i started it with a user account, fill in the username, the password and the host and click on the ok button, the window closes and nothing happen. no error no new window, the window simply closes.
    what to do?
    regards

    Hi,
    There might be different reasons behind this.
    Check whether user is created in database or not.
    There might be possibility that, user is in different database.
    SELECT * FROM V$DATABASE; --This will help you to findout database name.
    SELECT * FROM DBA_USERS WHERE USERNAME = 'HR';  --HR is user present on database. If your user is present in database then user might not have connect privilege.
    GRANT CONNECT , RESOURCE TO HR; --HR is user. To execute this command, login as sys You can also try to login with command prompt.
    sqlplus user/password@host

  • Keyboard commands not working with Headstart

    Hello,
    I'm using Headstart 2.1.2 with Template package 5.0.3.1. Forms 6.0.5.29 and Designer 6.0.3.
    When making a form in Forms without Designer and Headstart the forms responds normally to Alt + spacebar + n to minimze the MDI window. A Headstart generated forms responds to this command with FRM-41008: undefined function key. Does anyone know a way to fix this?
    Thanks, Joost

    You will have to add a key definition for this to the qmsrf50.res resource file. Your best bet is to look in the
    forms default resource file and copy that definition.
    Regards,
    LauriThanks for your reply, Lauri. Unfortunately I'm still not clear about this, I would appreciate it if you could explain a little further.
    What does this qmsrf50.res file do? The Headstart manual instructs me to replace the original Forms fmrusw.res file with the resource file supplied with Headstart. If I do so my application fails to start.
    As I wrote before my application responds to Alt + spacebar + n with 'Undefined function key'. The Headstart foundation application forms however responds correctly. They use the same runtime executable. Could it be that the resource file is used at compile time or is it only read at runtime?

  • Select is not working with date range .

    In my program doing a simple select from cdhdr table based on date range i have created but it fails .
    here is the code I am using.
    SELECT SINGLE *   FROM tvarv  INTO  wa_tvarv WHERE name EQ 'Z_SERVICE_CHANGE_DATE' .
    move wa_tvarv-low to v_date .
    move wa_tvarv-high to v_time .
    fill the date range
    *write v_date to ra_date-low  .
        move  v_date TO ra_date-low  .
    *write sy-datum to v_dateh .
        ra_date-high = sy-datum  .
        ra_date-sign = 'I' .
        ra_date-option = 'BT' .
        APPEND ra_date .
    fill the time range
        move v_time  TO  ra_time-low .
    *write sy-uzeit to v_timeh .
        ra_time-high = sy-uzeit  .
        ra_time-sign = 'I' .
        ra_time-option = 'BT' .
        APPEND ra_time .
    *Get all the records from cdhdr table for contract i.e VERKBELEG .
        *SELECT objectclas objectid FROM cdhdr INTO CORRESPONDING FIELDS OF TABLE it_cdhdr*
                                   *WHERE objectclas = 'VERKBELEG'*
                                   *AND  udate IN ra_date*
                                   *and  UTIME in ra_time .*
    above select is creating Problem .
    Help will be Appreciated .

    I wonder if you have a conflict between your date and time.  If you want all records between 3PM and 3AM the next day, that will cause a conflict.  That's because the first date should be "before" the second date, wthin a given day.
    To troubleshoot, why don't you try taking the time part out of the SQL?

  • OracleBI Spreadsheet Add-in Not Working With ROLAP TIME Dimension

    Hello,
    I've been trying to figure this bizarre behavior for a while now.
    I have created a TIME dimension (based on a relational table) using OEM and defined the metadata etc. My hierarchy has 4 levels: day->month->quarter->year. I have end_date and time_span attributes defined for each level. I have defined a simple cube dimensioned by TIME and having only 1 numeric measure.
    When I open BI Spreadsheet Add-in, I can see my cube measure and the dimension in the list of available entities. I add them to the list of selected entities and hit 'next'. On the next screen I arrange them to my liking and hit 'next' again. This is where the problem occurs. Or rather where nothing occurs. The add-in just gets stuck at this point and no matter what I do or click, it won't advance to the next step.
    If I change the dimension type from time to normal, then everything works as expected (although, I cannot do time-series analysis).
    If I create and enable an analytic workspace and use it in the add-in, then everything works as expected as well.
    Any ideas what's wrong here? I kind of suspect the end_date and time_span attributes are involved somehow...
    Thanks!
    Dobo

    The expected format for a relational time table would be something like the following:
    CREATE TABLE "BIBDEMO"."BIBDEMO_TIME"
    ("TIME_STD_MONTH" VARCHAR2(30),
    "TIME_STD_MONTH_LLABEL" VARCHAR2(60),
    "TIME_STD_MONTH_SLABEL" VARCHAR2(30),
    "TIME_STD_QUARTER" VARCHAR2(30),
    "TIME_STD_QUARTER_LLABEL" VARCHAR2(60),
    "TIME_STD_QUARTER_SLABEL" VARCHAR2(30),
    "TIME_STD_YEAR" VARCHAR2(30),
    "TIME_STD_YEAR_LLABEL" VARCHAR2(60),
    "TIME_STD_YEAR_SLABEL" VARCHAR2(30),
    "TIME_YTD_YEAR" VARCHAR2(30),
    "TIME_YTD_YEAR_LLABEL" VARCHAR2(60),
    "TIME_YTD_YEAR_SLABEL" VARCHAR2(30),
    CONSTRAINT BIBDEMO_TIME_PK PRIMARY KEY("TIME_STD_MONTH")
    ALTER TABLE "BIBDEMO"."BIBDEMO_TIME"
    ADD ("TIME_STD_MONTH_END_DATE" DATE,
    "TIME_STD_QUARTER_END_DATE" DATE,
    "TIME_STD_YEAR_END_DATE" DATE,
    "TIME_YTD_YEAR_END_DATE" DATE) ;
    ALTER TABLE "BIBDEMO"."BIBDEMO_TIME"
    ADD ("TIME_STD_MONTH_TIMESPAN" NUMBER,
    "TIME_STD_QUARTER_TIMESPAN" NUMBER,
    "TIME_STD_YEAR_TIMESPAN" NUMBER,
    "TIME_YTD_YEAR_TIMESPAN" NUMBER) ;
    and the metadata registration script should look something like this:
    -- This script modifies the bibdemo_time lookup table and bibdemo TIME dimension. It adds a period end date attribute.
    ALTER TABLE "BIBDEMO"."BIBDEMO_TIME"
    ADD ("TIME_STD_MONTH_END_DATE" DATE,
    "TIME_STD_QUARTER_END_DATE" DATE,
    "TIME_STD_YEAR_END_DATE" DATE,
    "TIME_YTD_YEAR_END_DATE" DATE) ;
    ALTER TABLE "BIBDEMO"."BIBDEMO_TIME"
    ADD ("TIME_STD_MONTH_TIMESPAN" NUMBER,
    "TIME_STD_QUARTER_TIMESPAN" NUMBER,
    "TIME_STD_YEAR_TIMESPAN" NUMBER,
    "TIME_YTD_YEAR_TIMESPAN" NUMBER) ;
    begin
    dbms_output.put_line('Drop level attributes of TIME prior to recreation.');
    cwm_olap_dim_attribute.remove_level_attribute('BIBDEMO', 'TIME', 'Long Description', 'L1', 'TIME_STD_YEAR_LLABEL');
    cwm_olap_dim_attribute.remove_level_attribute('BIBDEMO', 'TIME', 'Short Description', 'L1', 'TIME_STD_YEAR_SLABEL');
    cwm_olap_dim_attribute.remove_level_attribute('BIBDEMO', 'TIME', 'Long Description', 'L2', 'TIME_STD_QUARTER_LLABEL');
    cwm_olap_dim_attribute.remove_level_attribute('BIBDEMO', 'TIME', 'Short Description', 'L2', 'TIME_STD_QUARTER_SLABEL');
    cwm_olap_dim_attribute.remove_level_attribute('BIBDEMO', 'TIME', 'Long Description', 'L3', 'TIME_STD_MONTH_LLABEL');
    cwm_olap_dim_attribute.remove_level_attribute('BIBDEMO', 'TIME', 'Short Description', 'L3', 'TIME_STD_MONTH_SLABEL');
    cwm_olap_dim_attribute.remove_level_attribute('BIBDEMO', 'TIME', 'Long Description', 'L4', 'TIME_YTD_YEAR_LLABEL');
    cwm_olap_dim_attribute.remove_level_attribute('BIBDEMO', 'TIME', 'Short Description', 'L4', 'TIME_YTD_YEAR_SLABEL');
    commit;
    exception
    when others then
    dbms_output.put_line('ERROR: unexpected exception during seeding');
    cwm_utility.dump_error;
    rollback;
    raise;
    end;
    ALTER DIMENSION BIBDEMO.TIME
    DROP ATTRIBUTE L1
    DROP ATTRIBUTE L2
    DROP ATTRIBUTE L3
    DROP ATTRIBUTE L4;
    ALTER DIMENSION BIBDEMO.TIME
    ADD ATTRIBUTE L1 DETERMINES
    (BIBDEMO_TIME.TIME_STD_YEAR_LLABEL,
    BIBDEMO_TIME.TIME_STD_YEAR_SLABEL,
    BIBDEMO_TIME.TIME_STD_YEAR_END_DATE,
    BIBDEMO_TIME.TIME_STD_YEAR_TIMESPAN)
    ADD ATTRIBUTE L2 DETERMINES
    (BIBDEMO_TIME.TIME_STD_QUARTER_LLABEL,
    BIBDEMO_TIME.TIME_STD_QUARTER_SLABEL,
    BIBDEMO_TIME.TIME_STD_QUARTER_END_DATE,
    BIBDEMO_TIME.TIME_STD_QUARTER_TIMESPAN)
    ADD ATTRIBUTE L3 DETERMINES
    (BIBDEMO_TIME.TIME_STD_MONTH_LLABEL,
    BIBDEMO_TIME.TIME_STD_MONTH_SLABEL,
    BIBDEMO_TIME.TIME_STD_MONTH_END_DATE,
    BIBDEMO_TIME.TIME_STD_MONTH_TIMESPAN)
    ADD ATTRIBUTE L4 DETERMINES
    (BIBDEMO_TIME.TIME_YTD_YEAR_LLABEL,
    BIBDEMO_TIME.TIME_YTD_YEAR_SLABEL,
    BIBDEMO_TIME.TIME_YTD_YEAR_END_DATE,
    BIBDEMO_TIME.TIME_YTD_YEAR_TIMESPAN);
    declare
    timespan_desc_id number;
    enddate_desc_id number;
    TIME_DIM_ATTRIB_TYPE constant varchar2(30) := 'DIMENSION ATTRIBUTE';
    TIME_ATTRIBUTE_TYPE constant varchar2(30) := 'LEVEL ATTRIBUTE';
    begin
    dbms_output.put_line('Create end_date and timespan attributes of TIME for BIBDEMO schema');
    begin
    cwm_olap_level_attribute.set_name('BIBDEMO', 'TIME', 'L1', 'TIME_STD_YEAR_END_DATE', 'TIME_STD_YEAR_END_DATE');
    cwm_olap_level_attribute.set_name('BIBDEMO', 'TIME', 'L2', 'TIME_STD_QUARTER_END_DATE', 'TIME_STD_QUARTER_END_DATE');
    cwm_olap_level_attribute.set_name('BIBDEMO', 'TIME', 'L3', 'TIME_STD_MONTH_END_DATE', 'TIME_STD_MONTH_END_DATE');
    cwm_olap_level_attribute.set_name('BIBDEMO', 'TIME', 'L4', 'TIME_YTD_YEAR_END_DATE', 'TIME_YTD_YEAR_END_DATE');
    cwm_olap_level_attribute.set_name('BIBDEMO', 'TIME', 'L1', 'TIME_STD_YEAR_TIMESPAN', 'TIME_STD_YEAR_TIMESPAN');
    cwm_olap_level_attribute.set_name('BIBDEMO', 'TIME', 'L2', 'TIME_STD_QUARTER_TIMESPAN', 'TIME_STD_QUARTER_TIMESPAN');
    cwm_olap_level_attribute.set_name('BIBDEMO', 'TIME', 'L3', 'TIME_STD_MONTH_TIMESPAN', 'TIME_STD_MONTH_TIMESPAN');
    cwm_olap_level_attribute.set_name('BIBDEMO', 'TIME', 'L4', 'TIME_YTD_YEAR_TIMESPAN', 'TIME_YTD_YEAR_TIMESPAN');
    cwm_olap_dim_attribute.create_dimension_attribute('BIBDEMO', 'TIME', 'End_Date', 'End_Date', 'End Date of time period');
    cwm_olap_dim_attribute.create_dimension_attribute('BIBDEMO', 'TIME', 'Time_Span', 'Time_Span', 'Number of days in time period');
    cwm_olap_dim_attribute.add_level_attribute('BIBDEMO', 'TIME', 'Long Description', 'L1', 'TIME_STD_YEAR_LLABEL');
    cwm_olap_dim_attribute.add_level_attribute('BIBDEMO', 'TIME', 'Short Description', 'L1', 'TIME_STD_YEAR_SLABEL');
    cwm_olap_dim_attribute.add_level_attribute('BIBDEMO', 'TIME', 'End_Date', 'L1', 'TIME_STD_YEAR_END_DATE');
    cwm_olap_dim_attribute.add_level_attribute('BIBDEMO', 'TIME', 'Time_Span', 'L1', 'TIME_STD_YEAR_TIMESPAN');
    cwm_olap_dim_attribute.add_level_attribute('BIBDEMO', 'TIME', 'Long Description', 'L2', 'TIME_STD_QUARTER_LLABEL');
    cwm_olap_dim_attribute.add_level_attribute('BIBDEMO', 'TIME', 'Short Description', 'L2', 'TIME_STD_QUARTER_SLABEL');
    cwm_olap_dim_attribute.add_level_attribute('BIBDEMO', 'TIME', 'End_Date', 'L2', 'TIME_STD_QUARTER_END_DATE');
    cwm_olap_dim_attribute.add_level_attribute('BIBDEMO', 'TIME', 'Time_Span', 'L2', 'TIME_STD_QUARTER_TIMESPAN');
    cwm_olap_dim_attribute.add_level_attribute('BIBDEMO', 'TIME', 'Long Description', 'L3', 'TIME_STD_MONTH_LLABEL');
    cwm_olap_dim_attribute.add_level_attribute('BIBDEMO', 'TIME', 'Short Description', 'L3', 'TIME_STD_MONTH_SLABEL');
    cwm_olap_dim_attribute.add_level_attribute('BIBDEMO', 'TIME', 'End_Date', 'L3', 'TIME_STD_MONTH_END_DATE');
    cwm_olap_dim_attribute.add_level_attribute('BIBDEMO', 'TIME', 'Time_Span', 'L3', 'TIME_STD_MONTH_TIMESPAN');
    cwm_olap_dim_attribute.add_level_attribute('BIBDEMO', 'TIME', 'Long Description', 'L4', 'TIME_YTD_YEAR_LLABEL');
    cwm_olap_dim_attribute.add_level_attribute('BIBDEMO', 'TIME', 'Short Description', 'L4', 'TIME_YTD_YEAR_SLABEL');
    cwm_olap_dim_attribute.add_level_attribute('BIBDEMO', 'TIME', 'End_Date', 'L4', 'TIME_YTD_YEAR_END_DATE');
    cwm_olap_dim_attribute.add_level_attribute('BIBDEMO', 'TIME', 'Time_Span', 'L4', 'TIME_YTD_YEAR_TIMESPAN');
    begin
    SELECT descriptor_id INTO enddate_desc_id
    FROM all_olap_descriptors
    WHERE descriptor_value = 'End Date'
    AND descriptor_type = 'Time Dimension Attribute Type';
    begin
    dbms_output.put_line('Classify entity descriptor use end date for TIME');
    begin
    cwm_classify.add_entity_descriptor_use(enddate_desc_id, TIME_DIM_ATTRIB_TYPE, 'BIBDEMO', 'TIME', 'End_Date');
    exception
    when cwm_exceptions.element_already_exists
    then null;
    end;
    begin
    cwm_classify.add_entity_descriptor_use(enddate_desc_id, TIME_ATTRIBUTE_TYPE, 'BIBDEMO', 'TIME', 'L3', 'TIME_STD_MONTH_END_DATE');
    exception
    when cwm_exceptions.element_already_exists
    then null;
    end;
    begin
    cwm_classify.add_entity_descriptor_use(enddate_desc_id, TIME_ATTRIBUTE_TYPE, 'BIBDEMO', 'TIME', 'L2', 'TIME_STD_QUARTER_END_DATE');
    exception
    when cwm_exceptions.element_already_exists
    then null;
    end;
    begin
    cwm_classify.add_entity_descriptor_use(enddate_desc_id, TIME_ATTRIBUTE_TYPE, 'BIBDEMO', 'TIME', 'L1', 'TIME_STD_YEAR_END_DATE');
    exception
    when cwm_exceptions.element_already_exists
    then null;
    end;
    begin
    cwm_classify.add_entity_descriptor_use(enddate_desc_id, TIME_ATTRIBUTE_TYPE, 'BIBDEMO', 'TIME', 'L4', 'TIME_YTD_YEAR_END_DATE');
    exception
    when cwm_exceptions.element_already_exists
    then null;
    end;
    end;
    end;
    begin
    SELECT descriptor_id INTO timespan_desc_id
    FROM all_olap_descriptors
    WHERE descriptor_value = 'Time Span'
    AND descriptor_type = 'Time Dimension Attribute Type';
    begin
    dbms_output.put_line('Classify entity descriptor use time span for TIME');
    begin
    cwm_classify.add_entity_descriptor_use(timespan_desc_id, TIME_DIM_ATTRIB_TYPE, 'BIBDEMO', 'TIME', 'Time_Span');
    exception
    when cwm_exceptions.element_already_exists
    then null;
    end;
    begin
    cwm_classify.add_entity_descriptor_use(timespan_desc_id, TIME_ATTRIBUTE_TYPE, 'BIBDEMO', 'TIME', 'L3', 'TIME_STD_MONTH_TIMESPAN');
    exception
    when cwm_exceptions.element_already_exists
    then null;
    end;
    begin
    cwm_classify.add_entity_descriptor_use(timespan_desc_id, TIME_ATTRIBUTE_TYPE, 'BIBDEMO', 'TIME', 'L2', 'TIME_STD_QUARTER_TIMESPAN');
    exception
    when cwm_exceptions.element_already_exists
    then null;
    end;
    begin
    cwm_classify.add_entity_descriptor_use(timespan_desc_id, TIME_ATTRIBUTE_TYPE, 'BIBDEMO', 'TIME', 'L1', 'TIME_STD_YEAR_TIMESPAN');
    exception
    when cwm_exceptions.element_already_exists
    then null;
    end;
    begin
    cwm_classify.add_entity_descriptor_use(timespan_desc_id, TIME_ATTRIBUTE_TYPE, 'BIBDEMO', 'TIME', 'L4', 'TIME_YTD_YEAR_TIMESPAN');
    exception
    when cwm_exceptions.element_already_exists
    then null;
    end;
    end;
    end;
    end;
    commit;
    exception
    when others then
    dbms_output.put_line('ERROR: unexpected exception during seeding');
    cwm_utility.dump_error;
    rollback;
    raise;
    end;
    --UPDATE "BIBDEMO"."BIBDEMO_TIME" SET TIME_STD_MONTH_END_DATE = LAST_DAY(TO_DATE( time_std_month , 'monyy'));
    --UPDATE "BIBDEMO"."BIBDEMO_TIME" t SET TIME_STD_QUARTER_END_DATE = (select max(t1.time_std_month_end_date) from bibdemo_time t1 where t1.time_std_quarter = t.time_std_quarter group by t1.time_std_quarter) ;
    --UPDATE "BIBDEMO"."BIBDEMO_TIME" t SET TIME_STD_YEAR_END_DATE = (select max(t1.time_std_month_end_date) from bibdemo_time t1 where t1.time_std_year = t.time_std_year group by t1.time_std_year) ;
    update bibdemo_time set time_std_month_end_date = to_date('31-JAN-2000', 'dd-mon-yyyy') where time_std_month = 'JAN00';
    update bibdemo_time set time_std_month_end_date = to_date('29-FEB-2000', 'dd-mon-yyyy') where time_std_month = 'FEB00';
    update bibdemo_time set time_std_month_end_date = to_date('31-MAR-2000', 'dd-mon-yyyy') where time_std_month = 'MAR00';
    update bibdemo_time set time_std_month_end_date = to_date('30-APR-2000', 'dd-mon-yyyy') where time_std_month = 'APR00';
    update bibdemo_time set time_std_month_end_date = to_date('31-MAY-2000', 'dd-mon-yyyy') where time_std_month = 'MAY00';
    update bibdemo_time set time_std_month_end_date = to_date('30-JUN-2000', 'dd-mon-yyyy') where time_std_month = 'JUN00';
    update bibdemo_time set time_std_month_end_date = to_date('31-JUL-2000', 'dd-mon-yyyy') where time_std_month = 'JUL00';
    update bibdemo_time set time_std_month_end_date = to_date('31-AUG-2000', 'dd-mon-yyyy') where time_std_month = 'AUG00';
    update bibdemo_time set time_std_month_end_date = to_date('30-SEP-2000', 'dd-mon-yyyy') where time_std_month = 'SEP00';
    update bibdemo_time set time_std_month_end_date = to_date('31-OCT-2000', 'dd-mon-yyyy') where time_std_month = 'OCT00';
    update bibdemo_time set time_std_month_end_date = to_date('30-NOV-2000', 'dd-mon-yyyy') where time_std_month = 'NOV00';
    update bibdemo_time set time_std_month_end_date = to_date('31-DEC-2000', 'dd-mon-yyyy') where time_std_month = 'DEC00';
    update bibdemo_time set time_std_month_end_date = to_date('31-JAN-2001', 'dd-mon-yyyy') where time_std_month = 'JAN01';
    update bibdemo_time set time_std_month_end_date = to_date('28-FEB-2001', 'dd-mon-yyyy') where time_std_month = 'FEB01';
    update bibdemo_time set time_std_month_end_date = to_date('31-MAR-2001', 'dd-mon-yyyy') where time_std_month = 'MAR01';
    update bibdemo_time set time_std_month_end_date = to_date('30-APR-2001', 'dd-mon-yyyy') where time_std_month = 'APR01';
    update bibdemo_time set time_std_month_end_date = to_date('31-MAY-2001', 'dd-mon-yyyy') where time_std_month = 'MAY01';
    update bibdemo_time set time_std_quarter_end_date = to_date('30-JUN-2000', 'dd-mon-yyyy') where time_std_quarter = 'Q2.00';
    update bibdemo_time set time_std_quarter_end_date = to_date('30-SEP-2000', 'dd-mon-yyyy') where time_std_quarter = 'Q3.00';
    update bibdemo_time set time_std_quarter_end_date = to_date('31-DEC-2000', 'dd-mon-yyyy') where time_std_quarter = 'Q4.00';
    update bibdemo_time set time_std_quarter_end_date = to_date('31-MAR-2000', 'dd-mon-yyyy') where time_std_quarter = 'Q1.00';
    update bibdemo_time set time_std_quarter_end_date = to_date('31-MAR-2001', 'dd-mon-yyyy') where time_std_quarter = 'Q1.01';
    update bibdemo_time set time_std_quarter_end_date = to_date('31-MAY-2001', 'dd-mon-yyyy') where time_std_quarter = 'Q2.01';
    update bibdemo_time set time_std_year_end_date = to_date('31-DEC-2000', 'dd-mon-yyyy') where time_std_year = '2000';
    update bibdemo_time set time_std_year_end_date = to_date('31-MAY-2001', 'dd-mon-yyyy') where time_std_year = '2001';
    update bibdemo_time set time_ytd_year_end_date = to_date('31-DEC-2000', 'dd-mon-yyyy') where time_ytd_year = '2000';
    update bibdemo_time set time_ytd_year_end_date = to_date('31-MAY-2001', 'dd-mon-yyyy') where time_ytd_year = '2001';
    update "BIBDEMO"."BIBDEMO_TIME" set "TIME_STD_MONTH_TIMESPAN" = 31 where "TIME_STD_MONTH" = 'JAN00';
    update "BIBDEMO"."BIBDEMO_TIME" set "TIME_STD_MONTH_TIMESPAN" = 29 where "TIME_STD_MONTH" = 'FEB00';
    update "BIBDEMO"."BIBDEMO_TIME" set "TIME_STD_MONTH_TIMESPAN" = 31 where "TIME_STD_MONTH" = 'MAR00';
    update "BIBDEMO"."BIBDEMO_TIME" set "TIME_STD_MONTH_TIMESPAN" = 30 where "TIME_STD_MONTH" = 'APR00';
    update "BIBDEMO"."BIBDEMO_TIME" set "TIME_STD_MONTH_TIMESPAN" = 31 where "TIME_STD_MONTH" = 'MAY00';
    update "BIBDEMO"."BIBDEMO_TIME" set "TIME_STD_MONTH_TIMESPAN" = 30 where "TIME_STD_MONTH" = 'JUN00';
    update "BIBDEMO"."BIBDEMO_TIME" set "TIME_STD_MONTH_TIMESPAN" = 31 where "TIME_STD_MONTH" = 'JUL00';
    update "BIBDEMO"."BIBDEMO_TIME" set "TIME_STD_MONTH_TIMESPAN" = 31 where "TIME_STD_MONTH" = 'AUG00';
    update "BIBDEMO"."BIBDEMO_TIME" set "TIME_STD_MONTH_TIMESPAN" = 30 where "TIME_STD_MONTH" = 'SEP00';
    update "BIBDEMO"."BIBDEMO_TIME" set "TIME_STD_MONTH_TIMESPAN" = 31 where "TIME_STD_MONTH" = 'OCT00';
    update "BIBDEMO"."BIBDEMO_TIME" set "TIME_STD_MONTH_TIMESPAN" = 30 where "TIME_STD_MONTH" = 'NOV00';
    update "BIBDEMO"."BIBDEMO_TIME" set "TIME_STD_MONTH_TIMESPAN" = 31 where "TIME_STD_MONTH" = 'DEC00';
    update "BIBDEMO"."BIBDEMO_TIME" set "TIME_STD_MONTH_TIMESPAN" = 31 where "TIME_STD_MONTH" = 'JAN01';
    update "BIBDEMO"."BIBDEMO_TIME" set "TIME_STD_MONTH_TIMESPAN" = 28 where "TIME_STD_MONTH" = 'FEB01';
    update "BIBDEMO"."BIBDEMO_TIME" set "TIME_STD_MONTH_TIMESPAN" = 31 where "TIME_STD_MONTH" = 'MAR01';
    update "BIBDEMO"."BIBDEMO_TIME" set "TIME_STD_MONTH_TIMESPAN" = 30 where "TIME_STD_MONTH" = 'APR01';
    update "BIBDEMO"."BIBDEMO_TIME" set "TIME_STD_MONTH_TIMESPAN" = 31 where "TIME_STD_MONTH" = 'MAY01';
    update "BIBDEMO"."BIBDEMO_TIME" t
    set "TIME_STD_QUARTER_TIMESPAN" = (
    select sum(t1.time_std_month_timespan)
    from bibdemo_time t1
    where t."TIME_STD_QUARTER" = t1.time_std_quarter
    group by t1.time_std_quarter
    update "BIBDEMO"."BIBDEMO_TIME" t
    set "TIME_STD_YEAR_TIMESPAN" = (
    select sum(t1.time_std_month_timespan)
    from bibdemo_time t1
    where t."TIME_STD_YEAR" = t1.time_std_year
    group by t1.time_std_year
    update "BIBDEMO"."BIBDEMO_TIME" t
    set "TIME_YTD_YEAR_TIMESPAN" = (
    select sum(t1.time_std_month_timespan)
    from bibdemo_time t1
    where t."TIME_YTD_YEAR" = t1.time_ytd_year
    group by t1.time_ytd_year
    commit;
    quit;
    Hope this helps
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • IBook G3 startup shortcut key commands not working with OS 9?

    My iBook does not recognize any of these key commands:
    startup from disk holding "C"
    target disk mode holding "T"
    PRAM zap
    etc...
    The only command it listens to is Shift to turn extensions off. My keyboard works fine and none of the keys are stuck. I've never seen anything like this, what could it possibly be?

    If there's a firmware password set on the computer, it needs to be removed first. This can be tested by pressing the Option key and seeing whether a padlock appears or the command is ignored.
    (51320)

Maybe you are looking for