Overloading a DATE function with TIMESTAMP to avoid "too many declarations"

CREATE OR REPLACE PACKAGE util
AS
  FUNCTION yn (bool IN BOOLEAN)
    RETURN CHAR;
  FUNCTION is_same(a varchar2, b varchar2)
    RETURN BOOLEAN;
  FUNCTION is_same(a date, b date)
    RETURN BOOLEAN;
  /* Oracle's documentation says that you cannot overload subprograms
   * that have the same type family for the arguments.  But,
   * apparently timestamp and date are in different type families,
   * even though Oracle's documentation says they are in the same one.
   * If we don't create a specific overloaded function for timestamp,
   * and for timestamp with time zone, we get "too many declarations
   * of is_same match" when we try to call is_same for timestamps.
  FUNCTION is_same(a timestamp, b timestamp)
    RETURN BOOLEAN;
  FUNCTION is_same(a timestamp with time zone, b timestamp with time zone)
    RETURN BOOLEAN;
  /* These two do indeed cause problems, although there are no errors when we compile the package.  Why no errors here? */
  FUNCTION is_same(a integer, b integer) return boolean;
  FUNCTION is_same(a real, b real) return boolean;
END util;
CREATE OR REPLACE PACKAGE BODY util
AS
     NAME: yn
     PURPOSE: pass in a boolean, get back a Y or N
  FUNCTION yn (bool IN BOOLEAN)
    RETURN CHAR
  IS
  BEGIN
    IF bool
    THEN
      RETURN 'Y';
    END IF;
    RETURN 'N';
  END yn;
     NAME: is_same
     PURPOSE: pass in two values, get back a boolean indicating whether they are
              the same.  Two nulls = true with this function.
  FUNCTION is_same(a in varchar2, b in varchar2)
    RETURN BOOLEAN
  IS
    bool boolean := false;
  BEGIN
    IF a IS NULL and b IS NULL THEN bool := true;
    -- explicitly set this to false if exactly one arg is null
    ELSIF a is NULL or b IS NULL then bool := false;
    ELSE bool := a = b;
    END IF;
    RETURN bool;
  END is_same;
  FUNCTION is_same(a in date, b in date)
    RETURN BOOLEAN
  IS
    bool boolean := false;
  BEGIN
    IF a IS NULL and b IS NULL THEN bool := true;
    -- explicitly set this to false if exactly one arg is null
    ELSIF a is NULL or b IS NULL then bool := false;
    ELSE bool := a = b;
    END IF;
    RETURN bool;
  END is_same;
  FUNCTION is_same(a in timestamp, b in timestamp)
    RETURN BOOLEAN
  IS
    bool boolean := false;
  BEGIN
    IF a IS NULL and b IS NULL THEN bool := true;
    -- explicitly set this to false if exactly one arg is null
    ELSIF a is NULL or b IS NULL then bool := false;
    ELSE bool := a = b;
    END IF;
    RETURN bool;
  END is_same;
  FUNCTION is_same(a in timestamp with time zone, b in timestamp with time zone)
    RETURN BOOLEAN
  IS
    bool boolean := false;
  BEGIN
    IF a IS NULL and b IS NULL THEN bool := true;
    -- explicitly set this to false if exactly one arg is null
    ELSIF a is NULL or b IS NULL then bool := false;
    ELSE bool := a = b;
    END IF;
    RETURN bool;
  END is_same;
  /* Don't bother to fully implement these two, as they'll just cause errors at run time anyway */
  FUNCTION is_same(a integer, b integer) return boolean is begin return false; end;
  FUNCTION is_same(a real, b real) return boolean is begin return false; end;
END util;
declare
d1 date := timestamp '2011-02-15 13:14:15';
d2 date;
t timestamp := timestamp '2011-02-15 13:14:15';
t2 timestamp;
a varchar2(10);
n real := 1;
n2 real;
begin
dbms_output.put_line('dates');
dbms_output.put_line(util.yn(util.is_same(d2,d2) ));
dbms_output.put_line(util.yn(util.is_same(d1,d2) ));
dbms_output.put_line('timestamps'); -- why don't these throw exception?
dbms_output.put_line(util.yn(util.is_same(t2,t2) ));
dbms_output.put_line(util.yn(util.is_same(t,t2) ));
dbms_output.put_line('varchars');
dbms_output.put_line(util.yn(util.is_same(a,a)));
dbms_output.put_line(util.yn(util.is_same(a,'a')));
dbms_output.put_line('numbers');
-- dbms_output.put_line(util.yn(util.is_same(n,n2))); -- this would throw an exception
end;
/Originally, I had just the one function with VARCHAR2 arguments. This failed to work properly because when dates were passed in, the automatic conversion to VARCHAR2 was dropping the timestamp. So, I added a 2nd function with DATE arguments. Then I started getting "too many declarations of is_same exist" error when passing TIMESTAMPs. This made no sense to me, so even though Oracle's documentation says you cannot do it, I created a 3rd version of the function, to handle TIMESTAMPS explicitly. Surprisingly, it works fine. But then I noticed it didn't work with TIMESTAMP with TIME ZONEs. Hence, the fourth version of the function. Oracle's docs say that if your arguments are of the same type family, you cannot create an overloaded function, but as the example above shows, this is very wrong.
Lastly, just for grins, I created the two number functions, one with NUMBER, the other with REAL, and even these are allowed - they compile. But then at run time, it fails. I'm really confused.
Here is the apparently incorrect Oracle documentation on the matter: http://docs.oracle.com/cd/B12037_01/appdev.101/b10807/08_subs.htm (see overloading subprogram names), and here are the various types and their families: http://docs.oracle.com/cd/E11882_01/appdev.112/e17126/predefined.htm.
Edited by: hotwater on Jan 9, 2013 3:38 PM
Edited by: hotwater on Jan 9, 2013 3:46 PM

>
So, I added a 2nd function with DATE arguments. Then I started getting "too many declarations of is_same exist" error when passing TIMESTAMPs. This made no sense to me
>
That is because when you pass a TIMESTAMP Oracle cannot determine whether to implicitly convert it to VARCHAR2 and use your first function or implicitly convert it to DATE and use your second function. Hence the 'too many declarations' exist error.
>
, so even though Oracle's documentation says you cannot do it, I created a 3rd version of the function, to handle TIMESTAMPS explicitly. Surprisingly, it works fine. But then I noticed it didn't work with TIMESTAMP with TIME ZONEs.
>
Possibly because of another 'too many declarations' error? Because now there would be THREE possible implicit conversions that could be done.
>
Hence, the fourth version of the function. Oracle's docs say that if your arguments are of the same type family, you cannot create an overloaded function, but as the example above shows, this is very wrong.
>
I think the documentation, for the 'date' family, is wrong as you suggest. For INTEGER and REAL the issue is that those are ANSI data types and are really the same Oracle datatype; they are more like 'aliases' than different datatypes.
See the SQL Language doc
>
ANSI, DB2, and SQL/DS Datatypes
SQL statements that create tables and clusters can also use ANSI datatypes and datatypes from the IBM products SQL/DS and DB2. Oracle recognizes the ANSI or IBM datatype name that differs from the Oracle Database datatype name. It converts the datatype to the equivalent Oracle datatype, records the Oracle datatype as the name of the column datatype, and stores the column data in the Oracle datatype based on the conversions shown in the tables that follow.
INTEGER
INT
SMALLINT
NUMBER(38)
FLOAT (Note b)
DOUBLE PRECISION (Note c)
REAL (Note d)
FLOAT(126)
FLOAT(126)
FLOAT(63)

Similar Messages

  • Digital Editions: The account you tried to log in with is activated on too many devices.

    Digital Editions: The account you tried to log in with is activated on too many devices.
    How do i reset it???
    Chat does not run, my english is not got enough to call the hotline.
    I didn*t find out how to contact adobe support by email :-(((
    So, what can i do?  Please help.
    Otherwise, i can not read my ebooks any longer :-(((

    The only people that I'm aware of who can reset your activation count is
    the Adobe Help line that you call.  And many of those people have to be
    told that it is their job.  This forum does not have the ability to forward
    posts to Adobe technical support to get these kinds of problems resolved.
    Trust in your English - or perhaps have a friend that speaks English better
    do the talking.
    I have to ask what you have been doing that used up all of the
    activations.  We need to fix the root of the problem.
    =================

  • Problem overloading "set data" function on Button DataGrid Renderer

    Hi all, I'm hoping this is something simple.
    I have a class that extends mx.controls.Button and implements mx.core.IDataRenderer.  I need to set the button icon whenever the Data property is set from the DataGrid.  My problem is that my overloaded set/get Data function are never called (I've stepped through the code in debug).  Instead the set/get functions in Container.as (Flex 3.4 SDK) get called.
    Here's the basics code:
    exportButtonRenderer.as
    package controls
        import flash.events.Event;
        import flash.events.MouseEvent;
        import mx.controls.Button;   
        import mx.core.IDataRenderer;
        import mx.controls.dataGridClasses.DataGridListData;   
        import mx.controls.listClasses.BaseListData;
        import mx.events.FlexEvent;
        import mx.controls.Alert;
        import model.descriptors.compDescriptor;
        import events.exportClickedEvent;   
        public class exportButtonRenderer extends Button implements IDataRenderer   
            //    embed your icons
            [Embed(source='/assets/icons/export.png')]
            [Bindable]
            public static var imageExport:Class;
            [Embed(source='/assets/icons/blank.png')]
            [Bindable]
            public static var imageBlank:Class;
            public function exportButtonRenderer()
                super();
            private var _listData:DataGridListData;
            override public function get listData():BaseListData
                return _listData;
            override public function set listData(value:BaseListData):void
                _listData = DataGridListData(value);
            private var _data:Object;       
            override public function get data():Object
                return _data;
            override public function set data(value:Object):void
                _data = value;
            override protected function clickHandler(event:MouseEvent):void
                super.clickHandler(event);   
    Now I know I'm using the Flexlib TreeGrid and not a standard DataGrid but when I trace through all the code all code firing the set/get functions is coming from the DataGrid anyway.
    Here's the my Grid def in my main app mxml:
    Header 1
    <flexlib:TreeGrid
            id="MKTXGrid"
            dragEnabled="false" sortableColumns="false" showRoot="false"
            disclosureClosedIcon="@Embed(source='/assets/icons/arrow_right.png')"
            disclosureOpenIcon="@Embed(source='/assets/icons/arrow_down.png')"
            folderOpenIcon="@Embed(source='/assets/icons/psd.png')"
            folderClosedIcon="@Embed(source='/assets/icons/psd.png')"       
            click="MKTXGrid_clickHandler(event)"
             doubleClickEnabled="true" doubleClick="MKTXGrid_doubleClickHandler(event)" left="0" right="0" top="0" bottom="16">
        <flexlib:columns>
                <flexlib:TreeGridColumn dataField="Name" headerText = "Name" minWidth="200" width="200" editable="true"/>
                <mx:DataGridColumn dataField="ExportName" headerText = "Export Name"/>
                <mx:DataGridColumn dataField="Export" headerText = "Export" width="50" minWidth="20" resizable="false">
                 <mx:itemRenderer>
                    <mx:Component>
                        <mx:Box horizontalAlign="center" width="100%" verticalScrollPolicy="off" horizontalScrollPolicy="off">
                            <controls:exportButtonRenderer label="Export" icon="@Embed(source='assets/icons/export.png')" width="12" height="12" useHandCursor="true">                        
                                <controls:click>
                                    <![CDATA[
                                        import events.exportClickedEvent;
                                        var e:exportClickedEvent = new exportClickedEvent();
                                        e.itemData = data;
                                        dispatchEvent(e);
                                    ]]>
                                </controls:click>
                            </controls:exportButtonRenderer>
                        </mx:Box>
                    </mx:Component>
                </mx:itemRenderer>
                </mx:DataGridColumn>
            </flexlib:columns>
        </flexlib:TreeGrid>
    Nothing too special going on.
    I know this can be done, I've seen examples in the SDK:
    http://opensource.adobe.com/svn/opensource/durango/trunk/ExternalFlexTools/com/dougmccune/ containers/accordionClasses/AccordionHeader.as
    By the way I've stepped through the code of the TreeGridItemRenderer class in Flexlib which works correctly and the class def starts like this:
    TreeGridItemRenderer.as
    import flash.display.DisplayObject;
    import flash.display.InteractiveObject;
    import flash.display.Shape;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.MouseEvent;
    import flash.geom.Point;
    import flash.geom.Rectangle;
    import flexlib.controls.TreeGrid;
    import mx.controls.Image;
    import mx.controls.dataGridClasses.DataGridListData;
    import mx.controls.listClasses.BaseListData;
    import mx.controls.listClasses.IDropInListItemRenderer;
    import mx.controls.listClasses.IListItemRenderer;
    import mx.core.IDataRenderer;
    import mx.core.IFlexDisplayObject;
    import mx.core.IToolTip;
    import mx.core.SpriteAsset;
    import mx.core.UIComponent;
    import mx.core.UITextField;
    import mx.events.FlexEvent;
    import mx.events.ToolTipEvent;
    import mx.events.TreeEvent;
    import mx.managers.ILayoutManagerClient;
    import mx.styles.IStyleClient;
    public class TreeGridItemRenderer extends UIComponent
                                      implements IDataRenderer,
                                                   IDropInListItemRenderer,
                                                 ILayoutManagerClient,
                                                   IListItemRenderer
    Any help would be great!

    That's because you put your component in a Box.  The DataGrid is setting the Box's .data property and no code is setting the one on your component.  You shouldn't really need Box.  You can override updateDisplayList to center your Button instead.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • A date column, with timestamp..how to remove timestamp

    Hi,
    I have a table name CATCH, with one of its fieldnamed DATE, using DATE datatype.
    The date format incudes timestamp,can anyone help me how to remove the timestamp part.
    I only want the date part only. I have tried this:
    Update CATCH set DATE=to_char(date,'DD-MON-YYYY');
    but the result of all the date inside the table still having timestamp.
    then i use this:
    Update CATCH set DATE=to_date(date,'DD-MON-YYYY');
    and the result still the same.
    Can anyone advice on this? pls.
    Thanks

    user9353110 wrote:
    Thank you very much..if thats the case, can we remove the timestamp when creating view for this table?no, you can never remove the time component of a DATE.
    If you don't want to show the time for a date (display purposes only!), use TO_CHAR to "transform" the DATE to a string with the appropriate format mask
    SQL> alter session set nls_date_format = 'dd-mm-yyyy hh24:mi'
      2  /
    Session altered.
    SQL> select sysdate
      2    from dual
      3  /
    SYSDATE
    17-03-2010 09:28
    SQL> select to_char (sysdate, 'dd-Mon-yyyy')
      2    from dual
      3  /
    TO_CHAR(SYSDATE,'
    17-Mar-2010
    SQL> select to_char (sysdate, 'yyyy-MON-dd')
      2    from dual
      3  /
    TO_CHAR(SYSDATE,'
    2010-MAR-17
    SQL> NOTE: the last two example are not DATEs! They are STRING

  • Trying to sync iPhone with iCloud.. says too many devices.Remove one

      What is the process to remove iOS devices from your iCloud.  Trying to sync iPhone with iCloud under the settings and it says too many devices.  Remove one.
    Thanks

    I suspect the message is referring to you having too many devices associated with the Apple ID you are using for iCloud.  You can have a maximum of 10 devices associated with an Apple ID, 5 of which can be computers.  This article explains how to remove a device from your Apple ID: http://support.apple.com/kb/HT4627.

  • Default date parameters with timestamps

    Hi everyone!
    I have an user request that I thought should be fairly simple, but I cannot quite get it working.
    We have a concurrent request with beginning and ending date parameters. The users have requested that these dates default to the beginning/end of the current day.
    For example:
    20-MAR-2009 00:00:00
    20-MAR-2009 23:59:59
    I thought this would be a simple sql statement, but Apps does not seem to agree.
    The parameters are of type FND_STANDARD_DATE.
    What we have tried:
    select to_char(sysdate, 'DD-MON-YYYY') || ' 00:00:01' p_beg_date
    , to_char(sysdate, 'DD-MON-YYYY') || ' 23:59:59' p_end_date
    from dual
    -- did not work, said looking for DATE format --
    select to_date(to_char(sysdate, 'DD-MON-YYYY') || ' 00:00:01', 'DD-MON-YYYY HH24:MI:SS') P_BEG_DATE
    , to_date(to_char(sysdate, 'DD-MON-YYYY') || ' 23:59:59', 'DD-MON-YYYY HH24:MI:SS') P_END_DATE
    from dual
    -- works for beg date, but not end date, both display time as 00:00:01 ( I believe i was having issues in TOAD trying to get it as 00:00:00) --
    Any ideas?
    Thanks!
    Janel
    (apologies for the double post - what exactly is the difference between the 2 EBS forums?!?!?)

    Your second code snippet is correct - it works in my instance :-)
    SQL> alter session set NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS';
    Session altered.
    SQL> select to_date(to_char(sysdate, 'DD-MON-YYYY') || '00:00:01', 'DD-MON-YYYY HH24:MI:SS') P_BEG_DATE,
      2  to_date(to_char(sysdate, 'DD-MON-YYYY') || '23:59:59', 'DD-MON-YYYY HH24:MI:SS') P_END_DATE from dual;
    P_BEG_DATE                 P_END_DATE
    20-MAR-2009 00:00:01       20-MAR-2009 23:59:59HTH
    Srini

  • Left join and where clause with not equal ( ) returns too many rows

    Say I have something like this
    Table A
    =========
    Id
    OrderNum
    Date
    StoreName
    AddressKey
    Table B
    ========
    Id
    StreetNumber
    City
    State
    select a.* from [Table A] a
    left join [Table B] b on a.AddressKey = b.Id
    where a.StoreName <> 'Burger place'
    The trouble is that the above query still returns rows that have StoreName = 'Burger place'
    One way Ive handled this is to use a table expression, select everything into that, then select from the CTE and apply the filter there.  How could you handle it in the same query however?

    Hi Joe,
    Thanks for your notes.
    INT SURROGATE PRIMARY KEY provides a small footprint JOIN ON column. Hence performance gain and simple JOIN programming.  In the Addresses table, address_id is 4 bytes as opposed to 15 bytes san. Similarly for the Orders table.
    INT SURROGATE PRIMARY KEY is a meaningless number which can be duplicated at will in other tables as FOREIGN KEY.  Having a meaningful PRIMARY KEY violates the RDBMS basics about avoiding data duplication.  If I make CelebrityName (Frank Sinatra)
    a PRIMARY KEY, I have to duplicate "Frank Sinatra" as an FK wherever it needed as opposed to duplicating SURROGATE PRIMARY KEY CelebrityID (79) a meaningless number.
    This is how we design in SQL Server world.
    QUOTE from Wiki: "
    Advantages[edit]
    Immutability[edit]
    Surrogate keys do not change while the row exists. This has the following advantages:
    Applications cannot lose their reference to a row in the database (since the identifier never changes).
    The primary or natural key data can always be modified, even with databases that do not support cascading updates across related
    foreign keys.
    Requirement changes[edit]
    Attributes that uniquely identify an entity might change, which might invalidate the suitability of natural keys. Consider the following example:
    An employee's network user name is chosen as a natural key. Upon merging with another company, new employees must be inserted. Some of the new network user names create conflicts because their user names were generated independently (when the companies
    were separate).
    In these cases, generally a new attribute must be added to the natural key (for example, an
    original_company column). With a surrogate key, only the table that defines the surrogate key must be changed. With natural keys, all tables (and possibly other, related software) that use the natural key will have to change.
    Some problem domains do not clearly identify a suitable natural key. Surrogate key avoids choosing a natural key that might be incorrect.
    Performance[edit]
    Surrogate keys tend to be a compact data type, such as a four-byte integer. This allows the database to query the single key column faster than it could multiple columns. Furthermore a non-redundant distribution of keys causes the resulting
    b-tree index to be completely balanced. Surrogate keys are also less expensive to join (fewer columns to compare) than
    compound keys.
    Compatibility[edit]
    While using several database application development systems, drivers, and
    object-relational mapping systems, such as
    Ruby on Rails or
    Hibernate, it is much easier to use an integer or GUID surrogate keys for every table instead of natural keys in order to support database-system-agnostic operations and object-to-row mapping.
    Uniformity[edit]
    When every table has a uniform surrogate key, some tasks can be easily automated by writing the code in a table-independent way.
    Validation[edit]
    It is possible to design key-values that follow a well-known pattern or structure which can be automatically verified. For instance, the keys that are intended to be used in some column of some table might be designed to "look differently from"
    those that are intended to be used in another column or table, thereby simplifying the detection of application errors in which the keys have been misplaced. However, this characteristic of the surrogate keys should never be used to drive any of the logic
    of the applications themselves, as this would violate the principles of
    Database normalization"
    LINK: http://en.wikipedia.org/wiki/Surrogate_key
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Data display slow because I have too many DAQs displaying or poor coding?

    Attached is my VI, and I have 3 NI daqs running and giving me voltages for all the channels (32 total by the end of this, this is only the start). I want to display and record this information in real time. and still have options for recoding time events, etc. Am i going about breaking up my channels between the graphs and displaying everythign properly in the right way?  in addition to the recording setup i have? I really like how the daqmx lgos the data in a new sheet automatically each time and writes out the goup name, etc. it is exactly the type of file i want to have by the end of this so i gave up on getting a producer/consumer queue steup for the data collection that some people had recmmended to me. so you can Ignore the queue stuff, it is there for something i wanted to try and does nothing right now. just didnt feel like deleting it and couldnt figure out how to "comment" out labview blocks.
    thank you for the feedback.
    Attachments:
    daqtester.vi ‏88 KB

    labview12110 wrote:
    Dennis_Knutson wrote:
    Splits them sequentially and it converts to the evil dynamic data type. Stick with the split array.
    okay im getting some mixed signals here (get it )  is it a good idea to use the split or not? Crossrulz said that it would help me avoid the data type...
    I say to use the Split Array.  It does the splitting sequencially and you can dynamically tell it where to do the split.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Visual report issue with PP 2010 - Displaying too many years

    Hi,
    I am using project pro 2010.  When I display a report (e.g. Resource Cost Summary), and if I add the Monthly Calendar field in the report, it displays 7 columns from 2010 to 2016 even though there is data only for 2014 and 2015. I need to manually
    filter out all years with no data.
    Is there a setup that would display only the years and months with data?
    It was working fine before I update MS Proj.
    Thanks!

    Benoit1 --
    First of all, do you have your copy of Microsoft Project 2010 patched with the most recent Service Packs and Cumulative Updates?  If not, I would strongly recommend you do that.
    I am not able to duplicate your problem, but there is a way to work around it.  In the Excel PivotTable, click the Year pick list, deselect the years you do not want to see in your Visual Report, and then click the OK button.
    Hope this helps.
    Dale A. Howard [MVP]

  • Verizon data connectivity problem the page contains too many server redirects

    I work at a bank and literally Everyone on the Verizon network with an Android OS phone is getting this error when they try going to our website through the phone browser but it only pops up the rror after trying to login.  we have done difinitive testing that this is not occuring to any AT&T phones or black berry.  and it also is not happening with the Verizon Iphone.  Its soley an android issue that we can tell.    It just in the last week or so started doing this.  it had been working fine the last  few months.  Rebooting the phoen does not work.  clearing the browser cookies and cache and history does not work.  any legitimate ideas on what is causing this would be appreciated.  All things indicate an issue within the Android OS and its browser..

    Verizon Wireless Customer Support        Aug 1, 2012 3:36 PM                                    (in response to bgleas)               
    Currently Being Moderated               
    Bgleas, thank you for sharing your issue as well. When other people send you text messages, do they receive any errors that it was not sent? Is this happening with numbers from a certain carrier? Try clearing your text threads and also clearing cache from messaging. Settings, Applications, Manage Applications, All, Messaging, Clear data/cache. Let me know your results.
    MarquiaF_VZW
    Follow us on Twitter @VZWSupport
    I JUST FOLLOWED THESE INSTRUCTIONS, ONLY INSTEAD OF CLEARING OUT THE MESSAGING, I CLEARED THE BROWSER!  IT WORKED.  THE ERROR MESSAGE IS GONE, AND NOW THE BROWSER IS WORKING AGAIN 

  • Hyperion 11.1.2.2 with SQL Server 2008 - too many bad logons in db

    Hi
    I've installed 11.1.2.2 with Sql server as repository. HSS and HBI as two separate databases.
    My DBA has come up to me with a big database log file - with a number of bad logins from the EPM Server.
    Has anybody had this issue ? the log reports as follows..
    Logon, Unknown, Login failed for User '@#' Error 18456 Severity 14
    and there are thousands of errors like that - all coming in from the foundation server.
    Anybody had this issue - have you had a look at your db server ?
    Thanks in advance.

    you need to open the sql server configuration tools ->configuration area manager
    you need to change few things
    follow this link
    http://atmyplace.co.uk/?p=51
    follow sql server part b
    cheers

  • Slideshow with Filmstrip - Strip jumps too many thumbnails

    Hi,
    Thanks for looking at my post and thanks in advance if you can help me.
    I recently decided I wanted to try using the Slideshow & Filmstrip Widget on my web site to help display my gallery.
    I feel I have been successful in adjusting the scripts to customise it to my web site, however there is one I just can’t seem to solve.
    On the filmstrip I have 10 thumbnails. When my page loads it displays 6 of the thumbs. However if you press the right arrow, it jumps to show thumbs 9 & 10 without showing 7 & 8.
    Can I change how many thumbs the filmstrip jumps? Or is there an alternate way of fixing this problem?
    My site can be found here http://www.exhibitionsinternational.co.uk/2012/grottos/cabin/cabins.htm
    Thanks again,
    Brian

    Thank you.
    That was brilliant. Thanks again for your help
    Regards,
    Brian

  • "System error: Move error" on comparing DATE rows with literal timestamps

    say, I have a table consisting of a DATE and a TIMESTAMP column:
      create table test (
      d date,
      ts timestamp
    now the problem:
    when I try to retrieve values using a statement like this (using MaxDB's SQL Studio or via JDBC):
      select * from test
      where  d >= {ts '2007-06-18 12:19:45'}
    it produces the following error:
      General error;-9111 POS(36) System error: Move error
    So, I am not able to compare DATE columns with timestamp values?
    In contrast, the following combinations all work flawlessly:
      select * from test
      where  d >= {ts '2007-06-18 12:19:45'}
      select * from test
      where ts >= {d '2007-06-18'}
      select * from test
      where  ts >= {ts '2007-06-18 12:19:45'}
    Thus, the opposite direction (comparing a TIMESTAMP column to a literal date value) apparently poses no problem to the MaxDB database engine.
    Unfortunately, I cannot just resort to "truncating" the timestamp values and using the {d ...}-Syntax, because I am using Apache's Torque object-relational mapper which generates the statement like this and feeds the JDBC API with it. Anyway, I deem this a bug in MaxDB, especially with respect to the quite obscure error message.
    I can reproduce this issue on both MaxDB 7.5 and 7.6 server, using client software (SQL Studio), version 7.5 and 7.6 as well.
    Does anybody know this problem?
    TIA,
    Alex

    Hi,
    this is a new bug and we will fix it with one of the next versions of MaxDB.
    You can watch the proceeding in our internal bug tracking system:
    http://www.sapdb.org/webpts?wptsdetail=yes&ErrorType=0&ErrorID=1151609
    Thank you for reporting it.
    Kind regards
    Holger

  • Customized java date function in heart of JDK

    hi
    how can i force JDK to return Persian or Arabic date instead of christian era?
    i have an application in java platform. i couldn't change code of program, because source is closed and is not reachable. i want to know how can i use a wrapper for date function in java? if it is possible how can i replace java date functionality with my desired date function?
    thanks for any help

    Thanks for your help.
    however i looking for one thing, similar a function wrapper that can substitute original method.
    I don't know where the application use date function and how calls it. so i think that it is possible to change behavior of java itself.

  • Calling Overloaded Procedures from Table Adapter - PLS-00307: too many..

    I have called Overloaded Oracle Procs in .NET code in the past. I now want to add a procedure call to a table adapter. The proc is an overloaded proc and when I add it I get the following:
    PLS-00307: too many declarations of 'prc_[my proc name]' match this call.
    I looked in the designer class and all the parameters are there, just as I do in my own code, but it still gets the message above even with all the parameter names in place.
    Is there a way to call Overloaded Procs from a table adapter? ?

    Any Oracle folks care to provide some input on why Table Adapters cannot call Overloaded Stored Procs?
    Edited by: SURFThru on Jul 8, 2011 11:37 AM

Maybe you are looking for

  • How to populate a Value Attribute of a Value Node inside Model Node

    Hello I have my context like this.   Context ..          - ModelNode ....                      - Model Attr1 ....                      - Model Attr2 ....                      - Model Attr3 ....                      - Model Attr4 ....                 

  • Problem with itunes 11.1.0.126, windows 7, 32-bit version, not recognizing iphone 3gs

    Anyone having an issue like this?  I just updated to the latest version of itunes, 11.1.0.126.

  • Win7 install with multiple/all the FAILS! Satellite P750 (PART NO. PSAY3A-02T001)

    Laptop: Toshiba Satellite P750 (PART NO. PSAY3A-02T001) Installing: Windows 7 Home Premium SP1 (64 bit) Background: Laptop is around 2-3 years old now. Formatting and installing a fresh copy of Win7. Doing this for a close friend. Issue #1: Using the

  • CS3 freezes

    Photoshop CS3 freezes after making an adjustment layer using levels. A description of where the picture is located on the computer (usually only seen as a mouse over) appears and is also frozen. I am unable to save the file and have to end the progra

  • G5 Dual unstable after re-installation

    Just re-installed 10.4.6 on my system and now my system is very unstable... crashing often. here is what i have tried already: Upgrading to 10.4.7 updating the firmware to 5.1.4 still after these attemps the system is extreamly unstable