Alternate for stuff function of sqlserver

Hi,Can Anyone please help me in migrating following code from sqlserver to oracle.
set @sLastItemInPkts_2 = Stuff(@sLastItemInPkts_2,
@iOffset,
@iElementSize,
SubString(@sLastItemInPkts_1,
@iOffset,
@iElementSize)
set @sLastItemInPkts_1 = Stuff(@sLastItemInPkts_1,
@iOffset,
@iElementSize,
Convert(varChar(10),
Replace(Str(@iDocId, @iElementSize),
0))
Thanks in advance.

If we need to replace in a string not a certain sequence of characters, but a specified number of characters, starting from some position, it's simpler to use the STUFF function:
STUFF ( <character_expression1> , <start> , <length> , <character_expression2> )
This function replaces a substring with length of length that starts from the start position in the character_expression1 with the character_expression2.

Similar Messages

  • Alternate for Replicate function of sqlserver

    What is the alternate for Replicate function of Sql Server in oracle.

    Or, you can create it easily.
    SQL> create or replace
      2  function replicate(in_str varchar2,in_int number)
      3  return varchar2
      4  is
      5  p_str varchar2(4000);
      6  begin
      7    p_str := '';
      8    for i in 1..in_int loop
      9      p_str := p_str||in_str;
    10    end loop;
    11    return p_str;
    12  end;
    13  /
    Function created.
    SQL> select replicate('abc',3) from dual;
    REPLICATE('ABC',3)
    abcabcabc

  • Converting Stuff function from SQLServer to Oracle

    Anyone out there found an Oracle counterpart for the SQL Server "stuff" function.
    It is being used following an ascii(substr(variable)) locating all nonprintable characters and replacing with null.

    anjali5 wrote:
    I am very new to oracle. I am trying to convert this function to oracle, but keep getting errors
    USE [REF]
    GO
    /****** Object: UserDefinedFunction [dbo].[fnc_get_home] Script Date: 10/21/2011 17:50:10 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author:          <Author,,Name>
    -- Create date: <Create Date, ,>
    -- Description:     <Description, ,>
    -- =============================================
    ALTER FUNCTION [dbo].[fnc_get_home]
         @p_ui nvarchar(50), @p_dt datetime
    RETURNS NVARCHAR(50)
    AS
    BEGIN
         declare @v_home NVARCHAR(50);
         select top 1 @v_home = HOME_CODE from dbo.activity_home_b
              where UI = @p_ui
              order by HOME_END_DT desc;
         RETURN @v_home;
    ENDI am very new to Volkwagen cars, but here is a picture of my old Toyota
    My new car won't go
    Tell me how to make my car go.
    You refer to Oracle, but I wonder if this has anything to do with ACCESS.
    post complete CREATE TABLE statement of Oracle Table
    post INSERT for sample test date & expected/desired results

  • Help:alternate for calling function in where clause

    Hi ,
    In below query i'm calling function in where clause to avoid COMPLETE status records,due to this query taking 700 secs to return result.If i'm remove below function condition it's returning results with in 5 secs.Can you some one advice to any alternate idea for this?
    WHERE mark_status != 'COMPLETE'
    SELECT assessment_school,
      subject,
      subject_option,
      lvl,
      component,mark_status,
      mark_status
      NULL AS grade_status,
      NULL AS sample_status,
      :v_year,
      :v_month,
      :v_formated_date,
      :v_type,
      cand_lang
    FROM
      (SELECT assessment_school,
        subject,
        subject_option,
        lvl,
        programme,
        component,
        paper_code,
        cand_lang,
        mark_entry.get_ia_entry_status(:v_year, :v_month, assessment_school, subject_option, lvl, cand_lang, component, paper_code) AS mark_status
      FROM
        (SELECT DISTINCT ccr.assessment_school,
          ccr.subject,
          ccr.subject_option,
          ccr.lvl,
          ccr.programme,
          ccr.language AS cand_lang,
          ccr.paper_code,
          ccr.component
        FROM candidate_component_reg ccr
        WHERE ccr.split_session_year = :v_year
        AND ccr.split_session_month  = :v_month
        AND EXISTS
          (SELECT 1
          FROM IBIS.subject_component sc
          WHERE sc.year          = ccr.split_session_year
          AND sc.month           = ccr.split_session_month
          AND sc.paper_code      = ccr.paper_code
          AND sc.assessment_type = 'INTERNAL'
          AND sc.subject_option NOT LIKE '%self taught%'
          AND sc.component NOT IN ('PERFORMANCE  PRODUCTION','PRESENTATION WORK','REFLECTIVE PROJECT','SPECIAL SYLLABUS INT. ASSESSMENT')
        AND NVL(ccr.withdrawn,'N') = 'N'
        AND ccr.mark_status       != 'COMPLETE'
        AND EXISTS
          (SELECT 1
          FROM school s
          WHERE s.school_code   = ccr.assessment_school
          AND s.training_school = 'N'
    WHERE mark_status != 'COMPLETE';

    One thing you can test quickly is to put the function call in it's own select ...from dual.
    This might make a difference.
    However, only you can check this, I don't have your tables or data.
    So, what happens if you use:
        paper_code,
        cand_lang,
      (select mark_entry.get_ia_entry_status(:v_year, :v_month, assessment_school, subject_option, lvl, cand_lang, component, paper_code) from dual ) AS mark_status
      FROM
        (SELECT DISTINCT ccr.assessment_school,  --<< is the DISTINCT really needed?
          ccr.subject,
          ccr.subject_option,
    ...Also, try to find out the purpose of that above DISTINCT, is it really needed or is there some join missing?

  • Alternate for analytic functions

    Hello All,
    I'm trying to write a query without using analytic functions.
    Using Analytic func,
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE     11.2.0.2.0     Production"
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    SELECT id, sal, rank() OVER (PARTITION BY ID ORDER BY SAL) rnk FROM
    (SELECT 10 AS id, 100 AS sal FROM DUAL
        UNION ALL
        SELECT 10, 300 FROM DUAL
        UNION ALL
        SELECT 10, 400 FROM DUAL
        UNION ALL
        SELECT 20, 200 FROM DUAL
        UNION ALL
        SELECT 20, 200 FROM DUAL
        UNION ALL
        SELECT 20, 300 FROM DUAL
        UNION ALL
        SELECT 30, 100 FROM DUAL
        UNION ALL
        SELECT 40, 100 FROM DUAL
        UNION ALL
        SELECT 40, 200 FROM DUAL
        ) Expected results. I want these results without analytic functions.
    10     100     1
    10     300     2
    10     400     3
    20     200     1
    20     200     1
    20     300     3
    30     100     1
    40     100     1
    40     200     2

    Hi,
    SamFisher wrote:
    Thank You Frank. That was simple.
    I was trying to get the reults without using analytical functions. Just trying to improve my SQL skills. Yes, I admit that practicising using the wrong tools can improve your SQL skills, but I think there's a lot to be said for practising using the right tools, too.
    I tried all sort of things. I thought hierarchical query would do it but hard luck for me.Do you want to use a CONNECT BY query for this? Here's one way:
    WITH     got_max_level            AS
         SELECT       id
         ,       sal
         ,       MAX (LEVEL)     AS max_level
         FROM       table_x
         CONNECT BY NOCYCLE  id        = PRIOR id
              AND          sal       >= PRIOR sal
              AND     (   sal       >  PRIOR sal
                   OR  ROWID > PRIOR ROWID
         GROUP BY  id
         ,            sal
    ,     got_cnt          AS
         SELECT       id
         ,       sal
         ,       COUNT (*)     AS cnt
         FROM       table_x
         GROUP BY  id
         ,            sal
    SELECT       x.id
    ,       x.sal
    ,       l.max_level + 1 - c.cnt     AS rnk
    FROM       table_x        x
    JOIN       got_max_level  l  ON   x.id     = l.id
                         AND      x.sal     = l.sal
    JOIN       got_cnt      c  ON      x.id     = c.id
                         AND      x.sal     = c.sal
    ORDER BY  x.id
    ,            x.sal
    ;This is even less efficient, as well as more complicated, than the scalar sub-query solution.

  • Which is better UDF or STUFF function ?

    Hi,
    We have a requirement like to retrieve a concatenated string of values as a column. For this whether i should use UDF with SQL query or STUFF.
    Please suggest.
    Here is my Example
    --Create function
    CREATE FUNCTION dbo.GroupsList(@AgentID NVARCHAR(32))
    RETURNS NVARCHAR(MAX)
    AS
    -- Returns the grouplist
    BEGIN
        DECLARE @listStr VARCHAR(MAX);
        SELECT @listStr = COALESCE(@listStr+',' ,'') + g.GroupName
     FROM
      AgentIDGroup ag 
      INNER JOIN Groups g
      ON ag.idindex = g.IDOrPhoneNoIndex
     WHERE
      ag.AgentID = @AgentID;
         IF(@listStr IS NULL)
            SET @listStr = '';
        RETURN @listStr;
    END;
    GO 
    --Call UDF to get resultset
    SELECT
     a.*
     ,dbo.GroupsList(a.PhoneUserID) as GroupsList
    FROM
     Agents a
    --CTE with STUFF function and XML PATH clause
    WITH CTE AS (
    SELECT AgentID,
    STUFF((SELECT ', ' + rtrim(convert(nvarchar(32),G.GroupName))
    FROM   AgentIDGroup AG1 JOIN Groups G on G.IDOrPhoneNoIndex = AG1.idindex WHERE AG.AgentID = AG1.AgentID AND G.GroupFlag = 0
    FOR XML PATH('')),1,1,'')
    GroupsList FROM   AgentIDGroup AG GROUP BY AgentID )
    SELECT A.*, ISNULL(CTE.GroupsList,'') as GroupsList
    FROM Agents A LEFT JOIN CTE on A.PhoneUserID = CTE.AgentID
    --In both case the output will be like this
    PhoneUserID | FirstName | LastName | MiddleName | GroupsList
    6001                 Jill              Steeves          J            test
    group,Delegates
    Thanks,
    Bijay

    Hi,
    We have a requirement like to retrieve a concatenated string of values as a column. For this whether i should use UDF with SQL query or STUFF. 
    Please suggest.
    Here is my Example
    --Create function
    CREATE FUNCTION dbo.GroupsList(@AgentID NVARCHAR(32))
    RETURNS NVARCHAR(MAX) 
    AS 
    -- Returns the grouplist
    BEGIN
        DECLARE @listStr VARCHAR(MAX);
        SELECT @listStr = COALESCE(@listStr+',' ,'') + g.GroupName
    FROM
    AgentIDGroup ag
    INNER JOIN Groups g
    ON ag.idindex = g.IDOrPhoneNoIndex
    WHERE
    ag.AgentID = @AgentID;
         IF(@listStr IS NULL) 
            SET @listStr = '';
        RETURN @listStr;
    END;
    GO  
    --Call UDF to get resultset 
    SELECT
    a.*
    ,dbo.GroupsList(a.PhoneUserID) as GroupsList
    FROM
    Agents a
    --CTE with STUFF function and XML PATH clause
    WITH CTE AS (
    SELECT AgentID,
    STUFF((SELECT ', ' + rtrim(convert(nvarchar(32),G.GroupName))
    FROM   AgentIDGroup AG1 JOIN Groups G on G.IDOrPhoneNoIndex = AG1.idindex WHERE AG.AgentID = AG1.AgentID AND G.GroupFlag = 0
    FOR XML PATH('')),1,1,'')
    GroupsList FROM   AgentIDGroup AG GROUP BY AgentID )
    SELECT A.*, ISNULL(CTE.GroupsList,'') as GroupsList 
    FROM Agents A LEFT JOIN CTE on A.PhoneUserID = CTE.AgentID 
    --In both case the out will be like this
    ID          |  FirstName   |
    LastName MiddleName
    |  GroupsList
    6001 Jill
            Steeves    test group,Delegates
    Thanks,
    Bijay

  • Expresion showing from stuff function in ssrs

    I have a table in sql server database, a column in it is made up using the stuff function, when i try to create a report in ssrs using the query, the column shows up like this
    <Expr1>, 1</Expr1><Expr1>, 2</Expr1><Expr1>, 3</Expr1><Expr1>,
    4</Expr1> .  in the column that will show in the sql query as 1234
    how can i resolve it.  this is the query 
    select FirstName,
    LastName,
    CourseTitle,
    lastlogindate,
    Noofmodules, 
    count (Coursecompleted) as modulesstarted,
    STUFF((SELECT ','  + CAST(CourseModule AS varchar(20))
    FROM EDSF 
    WHERE FirstName = e.FirstName
    AND LastName = e.LastName
    AND Coursecompleted = '1'
    AND CourseTitle = e.CourseTitle
    FOR XML PATH('')),1,1,'') AS CoursesCompleted
    from EDSF  e
    where Coursecompleted = '1' or Coursecompleted = '0'
    Group by FirstName, LastName, CourseTitle,lastlogindate, Noofmodules ;
    cheers

    Dont use query builder in SSRS
    just copy paste the query directly inside dataset command box as below
    SELECT FirstName, LastName, CourseTitle, lastlogindate, Noofmodules, COUNT(coursecompleted) AS modulesstarted, STUFF
    ((SELECT ',' + CAST(CourseModule AS varchar(20))
    FROM EDSF1
    WHERE (FirstName = e.FirstName) AND (LastName = e.LastName) AND (coursecompleted = '1') AND (CourseTitle = e.CourseTitle) FOR XML PATH('')), 1, 1, '')
    AS CoursesCompleted
    FROM EDSF1 AS e
    WHERE (coursecompleted = '1') OR
    (coursecompleted = '0')
    GROUP BY FirstName, LastName, CourseTitle, lastlogindate, Noofmodules
    and it should work fine
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Alternate for Clickstream???  Its Urgent

    Hi,
    Currently I am working in Oracle Application Server 10.1.2.0.2 (Windows 2000- Envirnoment) My recuirement is to capture information about where the users are coming and I want to track their clicks.
    Oracle Clickstream Intelligence is not supporting 10.1.2. Urgently I need to find the alternate for this.
    Thanks in Advance...
    Regard
    Balaji S

    the same functionality is available in oracle warehouse builder, please cross check.

  • Alternate Item Group functionality in BOM

    Hi PP Gurus,
    I was looking into the Alternate Item Group functionality in BOM and found it interesting for my business requirement.\
    But I am facing one problem as below:
    I have 3 components for Eg. A1, A2, A3 in my header material 'A'. All the three component materials are same but quailty of the 3 is different and also the standard price.
    My requirement is whenever I am creating Production material for header material 'TEST_Header_Material, the system should look into A3 first (Cheapest), if not available then A2 (Cheaper) and if not then A 1(expensove of all the three).
    For base quantity for A = 1EA, I have entered 1 EA for A1, A2, A3 in BOM. I have stock of A1=9, A2 = 6 and A3 = 2.
    When I am creating Production Order for A = 10 EA, ,yrequirement is that the system should consider A3 first, then A2 and then A1 based upon the prority and hence should withdraw A3=2, A2=6 and A1=2 for meeting the quantity for finish product A in Production Order. But actuall the system is considering A3 but confirming it as 0, then looking into A2 again confirming it as zero and then looking into A1 and  again confirming it as 0. And thus giving Missing Part list though I have sufficient quantity to cover the requirement.
    That means system is only considering total quanitty.
    Can you please advice?
    Thank You.
    Rahul.

    Dear Rahul,
    Priority:In this field, you define the priority of the item within an alternative item group. This determines the priority for planned
    withdrawal of items. Two items are assigned to an alternative item group (A1) with the following values for priority:
    Item 0060 Value for priority: 02
    Item 0065 Value for priority: 01
    The system reads item 0065 first.
    Also check these links,
    concept of alternative items
    Re: Alternative item in BOM
    Re: NOTE 149332 : Error for material components with usage probability 0
    Re: Discontinuation&Production Order
    Regards
    Mangalraj.S

  • Help - Class name and descriptions for a function location.

    Hi Guys
    i have to write a report that displays the class and class descriptions for a function location. the user passes in either the function location(TPLNR) or the class name and  the report should display the the class characteristics and resp. values. Is there a FM that i coud use?
    please help.
    many thanks.
    seelan.

    sadiepu1 wrote:
    When I set up Words with Friends on my Fire it asked for my username and password which from a previous reply to my inquiry above stated that the S 3 doesn't store due to privacy issues. I have tried all my usual combinations of usernames and passwords and my Fire won't let me access the game as it keeps telling me that one or the other is not correct. I have deleted the app from my Fire and re-downloaded it but have the same error comes up. I have accessed the Words with Friends support both on my phone and their website but there is no live chat. I might have to take both to a Verizon store. Also, my Fire won't let me access the game without a correct username and password. To say that I am frustrated would be an understatement as well I have tried everything I can think of with no luck! Thanks for any help you can give!
    Did you use facebook to log in? 
    Verizon will not be able to help you retrieve any of the information you need.  You will have to contact Zynga.

  • Performance issue for this function-module(HR_TIM_REPORT_ABSENCE_DATA)

    Hi Friends
    I am having performance issue for this function-module(HR_TIM_REPORT_ABSENCE_DATA) and one my client got over 8 thousend employees . This function-module taking forever to read the data. is there any other function-module to read the absences data IT2001 .
    I did use like this .if i take out this F.M 'HR_TIM_REPORT_ABSENCE_DATA_INI' its not working other Function-module.please Suggest me .
    call function 'HR_TIM_REPORT_ABSENCE_DATA_INI'
    exporting "Publishing to global memory
    option_string = option_s "string of sel org fields
    trig_string = trig_s "string of req data
    alemp_flag = sw_alemp "all employee req
    infot_flag = space "split per IT neccessary
    sel_modus = sw_apa
    importing
    org_num = fdpos_lines "number of sel org fields
    tables
    fieldtab = fdtab "all org fields
    field_sel = fieldnametab_m. "sel org fields
    To Read all infotypes from Absences type.
    RP_READ_ALL_TIME_ITY PN-BEGDA PN-ENDDA.
    central function unit to provide internal tables: abse orgs empl
    call function 'HR_TIM_REPORT_ABSENCE_DATA'
    exporting
    pernr = pernr-pernr
    begda = pn-begda
    endda = pn-endda
    IMPORTING
    SUBRC = SUBRC_RTA
    tables
    absences = absences_01
    org_fields = orgs
    emp_fields = empl
    REFTAB =
    APLTAB =
    awart_sel_p = awart_s[]
    awart_sel_a = awart_s[]
    abstp_sel = abstp_s[]
    i0000 = p0000
    i0001 = p0001
    i0002 = p0002
    i0007 = p0007
    i2001 = p2001
    i2002 = p2002
    i2003 = p2003.
    Thanks & Regards
    Reddy

    guessing will not help you much, check with SE30 to get a better insight
    SE30
    The ABAP Runtime Trace (SE30) -  Quick and Easy
    what is the total time, what are the Top 10 in the hitlist.
    Siegfried

  • How to check for a function module with its description and functionality

    Hi all,
    How to check for a function module,with its description and its functionality,in detail how can I know the purpose of a particular function module,how to search for a function module which suits my requirement .

    Hi,
    You can search a FM of your requirement by putting in the Key words and searching for a FM. Like * KEYWORD * and then pressing F4.
    Say for example you need to search something regarding converstion.
    Search for * CONVERT * and press F4.
    If there is something specfic like converting date to something you can give
    DATE * CONVERT *
    OR
    CONVERT * DATE *  and press F4.
    Once you narrow down your search you will have a Function module documentation inside the Function module. Please note that all the FMs willl not have documentation.
    Regards,
    Pramod

  • Required to get class Charateristics and values for an functional location

    Hi ,
       As per the requirement ,i have to read the class characteristics and the corresponding values for an function location.I have functional location number ,and the various class names associated with fn.location. Any pointers would be helpful
    Regards
    Arun T

    FM BAPI_OBJCL_GETDETAIL
    OBJECTKEY                       ?0100000000000011643
    OBJECTTABLE                     IFLOT              
    CLASSNUM                        ZPMI_BLDG          
    CLASSTYPE                       003                
    KEYDATE                         29.07.2009         
    UNVALUATED_CHARS                                   
    LANGUAGE                        EN                 
    Cheers!

  • How to register a jsp page for a function

    Hi,
    Im new to OA Framework. I have to load a custom jsp page on clicking a function under a responsibility. I logged into "System Administrator" resposibility -->Application --> function. Searched for the function and in the Web HTML set the value as "/OA_HTML/testPage.jsp" (I tried "testPage.jsp" also)
    I have created the testPage under WebContent directory(in JDeveloper), where all the other jsp pages like, OA.jsp, RF.jsp are found. When i run the test_fwktutorial.jsp and click the function, it gets forwarded to Login Page.
    Whr am i going wrong..any ideas.
    Thanks,
    Vishnupriya

    OAJSPHelper class is a helper class which contain lot of static methods to get context related data, this class should would have values after webappscontext is initialized,ie. you are moving from a OAF page to a jsp page.
    If you wanna open your jsp directly and create apps session, you need to hard code values of password, username ,responsibility bkey etc to create webappscontext. In case of fwktutorial jsp from where you might have picked this code, these properties are picked from text file in OA_html folder in jdev.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Trying to create a Histogram type/object for aggregate functions

    Hi,
    I am trying to create an aggregate function that will return a histogram
    type.
    It doesn't have to be an object that is returned, I don't mind returning
    a string but I would like to keep the associative array (or something
    else indexed by varchar2) as a static variable between iterations.
    I started out with the SecondMax example in
    http://www.csis.gvsu.edu/GeneralInfo/Oracle/appdev.920/a96595/dci11agg.htm#1004821
    But even seems that even a simpler aggregate function like one strCat
    below (which works) has problems because I get multiple permutations for
    every combination. The natural way to solve this would be to create an
    associative array as a static variable as part of the Histogram (see
    code below). However, apparently Oracle refuses to accept associate
    arrays in this context (PLS-00355 use of pl/sql table not allowed in
    this context).
    If there is no easy way to do the histogram quickly can we at least get
    something like strCat to work in a specific order with a "partition by
    ... order by clause"? It seems that even with "PARALLEL_ENABLE"
    commented out strCat still calls merge for function calls like:
    select hr,qtr, count(tzrwy) rwys,
    noam.strCat(cnt) rwycnt,
    noam.strCat(tzrwy) config,
    sum(cnt) cnt, min(minscore) minscore, max(maxscore) maxscore from
    ordrwys group by hr,qtr
    Not only does this create duplicate entries in the query result like
    "A,B,C" and "A,C,B" it seems that the order in rwycnt and config are not
    always the same so a user can not match the results based on their
    order.
    The difference between my functions and functions like sum and the
    secondMax demonstrated in the documentation is that secondMax does not
    care about the order in which it gets its arguments and does not need to
    maintain an ordered set in order to return the correct results. A good
    example of a built in oracle function that does care about all its
    arguments and probably has to maintain a similar data structure to the
    one I want is the PERCTILE_DISC function. If you can find the code for
    that function (or something like it) and forward a reference to me that
    in itself would be very helpful.
    Thanks,
    K.Dingle
    CREATE OR REPLACE type Histogram as object
    -- TYPE Hist10 IS TABLE OF pls_integer INDEX BY varchar2(10),
    -- retval hist10;
    -- retval number,
    retval noam.const.hist10,
    static function ODCIAggregateInitialize (sctx IN OUT Histogram)
    return number,
    member function ODCIAggregateIterate (self IN OUT Histogram,
    value IN varchar2) return number,
    member function ODCIAggregateTerminate (self IN Histogram,
    returnValue OUT varchar2,
    flags IN number) return number,
    member function ODCIAggregateMerge (self IN OUT Histogram,
    ctx2 IN Histogram) return number
    CREATE OR REPLACE type body Histogram is
    static function ODCIAggregateInitialize(sctx IN OUT Histogram) return
    number is
    begin
    sctx := const.Hist10();
    return ODCIConst.Success;
    end;
    member function ODCIAggregateIterate(self IN OUT Histogram, value IN
    varchar2)
    return number is
    begin
    if self.retval.exist(value)
    then self.retval(value):=self.retval(value)+1;
    else self.retval(value):=1;
    end if;
    return ODCIConst.Success;
    end;
    member function ODCIAggregateTerminate(self IN Histogram,
    returnValue OUT varchar2,
    flags IN number)
    return number is
    begin
    returnValue := self.retval;
    return ODCIConst.Success;
    end;
    member function ODCIAggregateMerge(self IN OUT Histogram,
    ctx2 IN Histogram) return number is
    begin
    i := ctx2.FIRST; -- get subscript of first element
    WHILE i IS NOT NULL LOOP
    if self.retval.exist(ctx2(i))
    then self.retval(i):=self.retval(i)+ctx2.retval(i);
    else self.retval(value):=ctx2.retval(i);
    end if;
    i := ctx2.NEXT(i); -- get subscript of next element
    END LOOP;
    return ODCIConst.Success;
    end;
    end;
    CREATE OR REPLACE type stringCat as object
    retval varchar2(16383), -- concat of all value to now varchar2, --
    highest value seen so far
    static function ODCIAggregateInitialize (sctx IN OUT stringCat)
    return number,
    member function ODCIAggregateIterate (self IN OUT stringCat,
    value IN varchar2) return number,
    member function ODCIAggregateTerminate (self IN stringCat,
    returnValue OUT varchar2,
    flags IN number) return number,
    member function ODCIAggregateMerge (self IN OUT stringCat,
    ctx2 IN stringCat) return number
    CREATE OR REPLACE type body stringCat is
    static function ODCIAggregateInitialize(sctx IN OUT stringCat) return
    number is
    begin
    sctx := stringCat('');
    return ODCIConst.Success;
    end;
    member function ODCIAggregateIterate(self IN OUT stringCat, value IN
    varchar2)
    return number is
    begin
    if self.retval is null
    then self.retval:=value;
    else self.retval:=self.retval || ',' || value;
    end if;
    return ODCIConst.Success;
    end;
    member function ODCIAggregateTerminate(self IN stringCat,
    returnValue OUT varchar2,
    flags IN number)
    return number is
    begin
    returnValue := self.retval;
    return ODCIConst.Success;
    end;
    member function ODCIAggregateMerge(self IN OUT stringCat,
    ctx2 IN stringCat) return number is
    begin
    self.retval := self.retval || ctx2.retval;
    return ODCIConst.Success;
    end;
    end;
    CREATE OR REPLACE FUNCTION StrCat (input varchar2) RETURN varchar2
    -- PARALLEL_ENABLE
    AGGREGATE USING StringCat;

    GraphicsConfiguration is an abstract class. You would need to subclass it. From the line of code you posted, it seems like you are going about things the wrong way. What are you trying to accomplish? Shouldn't this question be posted in the Swing or AWT forum?

Maybe you are looking for

  • MSI Big Bang Marshal - Questions

    Hello all I am new here and I have been doing research on components for a new computer I am making a shopping list for. I have a few questions I have not been able to find any information online. Here goes 1. Anything specific I should know about th

  • CIF of transaction data from ECC to APO

    Hi, I wanted to know where we maintain the configuration for real time transfer of transaction from ECC to APO. I know for master data we have an option in CFC9 for real time/periodic transfer. Is there any similar config for transaction data too lik

  • Recurring kernel panics for the past 6 months - help!

    HI all, So I purchased a non-manufacturer refurbished mid-2010 MBP about 6 months ago. It came with a 1TB hybrid SS/SATA drive and way more software than I will ever use(i.e. entire Adobe suite) but basically since I got it it's been restarting inter

  • Placing ActionScript

    Basically I'm trying to make back and forwards buttons in my flash document. I've gotten to the part of writing the actionscripting and for some reason I'm having problems placing the code on the individual frames. What happens is say I go to frame o

  • Multiple operation using the same port does not work

    I am trying to have multiple operations on both ports here is my wsdl snapshot      <portType name="CommonAlerter">           <operation name="initiate">                <input message="client:CommonAlerterRequestInitMessage"/>           </operation>