Help in the below  scenario

Hi,
I have a table with a column called "DESC".
My requirement is ,if the input is "abc",then the output should be [a][c] .
The datatype of the column is varchar(10).
Please help me in this.
Thanks
Thanks,
Pandeeswaran
Edited by: Pandeesh on Jan 2, 2012 10:16 AM

Use REGEXP_REPLACE:
with tbl as (select 'abc' descr from dual)
select  descr,
        regexp_replace(descr,'(.)','[\1]') new_descr
  from  tbl
DES NEW_DESCR
abc [a][c]
SQL>
SY.                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to deal with BRS for the below scenario?

    Hi,
    I would like to know the solution for the below scenario for BRS:
    I have a customer who was maintaining their accounts with Tally software for their previous Financial Year. This year they have shifted to SAP B1 2005B. They have issued few cheques for their vendors in the month of march 2008 which has been realised in the month of April 2008. As per Tally, the closing balance of their bank is 8 Lakh but as per the bank statement, their closing balance is 23 Lakhs. In SAP, the opening Balance for the bank is considered as 23 Lakhs. Now there are 15 Lakh worth cheques which were not realised for the month of March 2008.
    Example:
    abc a/c - 3Lakh
    def a/c - 5lakh
    xyz a/c - 7 lakh
    How do i reconcile for this scenario and what procedures do i follow in SAP?
    Thanks and Regards,
    Kaushal

    Hi Kamlesh,
    Thanks for your response.
    Actually, In the "Process External Bank Statement" window, i see that there are few entries which is for the previous year and which has not been reconciled. I have never worked practically on BRS and hence, i am scared to make any changes in the clients database without being confident on what i am doing. I need to reconcile for one of their Bank a/c for the month of April '08. I have the copy of the statements for the month ending 31st Mar 08 and 30th Apr 08. The closing balances are as below:
    31/03/08 - 2300000.00
    30/04/08 - 3100000.00
    Now my OB for Bank a/c for April '08 in SAP is 2300000.00 Dr.
    When i go to External Bank Reconciliation - Selection Criteria Screen (Manual Reconciliation), here are the detail that i enter:
    Last Balance: INR -7,000,000.00000 (Grayed out by the system)
    Ending Balance: INR -3,100,000.00000 (Entered by me)
    End Date: 30/04/08 (Entered by me)
    "Reconciliation Bank Statement" Screen opens up and shows the below balances in the screen:
    Cleared Book Balance: INR -7,000,000.00000
    Statement Ending Balance: INR -3,100,000.00000
    Difference: INR 3,800,000.00000
    As per the Bank statement, i have found all the transactions listed out here for the month of Apr '08 but, i also found that the open transactions for the previous month from April '08 have been lying in "Process External Bank Statement" window.
    Could you please help me solve my issue as to what needs to be done or could you also get me some links from where i can get few documents for processing External Bank Reconciliations?
    That will be of a great help for me. I need steps as to what needs to be done first and then the next so that i can arrive at the correct closing balance for the month April '08.
    Thanks in Advance....
    Regards,
    Kaushal

  • How will the system handle delta in the below scenario

    How will the system handle delta in the below scenario
    Day 1
    DS--->DSO
    PSA
    Document Number| Customer | sales value
    1001| RAMLAL | 10000
    Your change log for DSO will read
    Req1| 1001|RAMLAL|10000|N
    DSO(overwrite)
    1001|RAMLAL|10000|
    Day 1
    DSO--->Cube
    Req1| 1001|RAMLAL|10000|
    Day2
    DS--->DSO
    PSA
    Document Number| Customer | sales value
    1001| RAMLAL | 30000
    Your change log for DSO will read
    Req2 | 1001 | RAMLAL | -10000 | X
    Req2 | 1001 | RAMLAL | 30000
    DSO(Overwrite)
    1001 | RAMLAL | 30000
    Day 2
    DSO--->Cube
    Req1|1001|RAMLAL|10000|
    Req2|1001|RAMLAL|20000|
    Please explain with example
    Scenario 1: Req1 & Req2 are deleted ONLY from change log on Day 3
    On Day 4:
    DS--->DSO
    Document Number| Customer | sales value|STOR_NO(ROCANCEL)
    1001| RAMLAL | 10000|C
    What will happen to the Sales Value in the cube?
    What will happen to the Req1&Req2 in the cube?
    Thanks
    Tanya

    Tanya,
    Please explain with example
    Scenario 1: Req1 & Req2 are deleted ONLY from change log on Day 3
    On Day 4:
    DS--->DSO
    Document Number| Customer | sales value|STOR_NO(ROCANCEL)
    1001| RAMLAL | 10000|C
    What will happen to the Sales Value in the cube?
    What will happen to the Req1&Req2 in the cube?
    Document Number| Customer | sales value|STOR_NO(ROCANCEL)
    1001| RAMLAL | 10000 |C
    --> Here 1000 is not correct value, as 1000 is change to 3000. It should be 3000. record should be as below.
    Document Number| Customer | sales value|STOR_NO(ROCANCEL)
    1001| RAMLAL | 30000 |C
    --> As this data related to sales, and i hope you are using standard ABR extractors(Business Content).
    ABR datasources delivers before and after images.
    Before image:
    Document Number| Customer | sales value|STOR_NO(ROCANCEL)
    1001| RAMLAL | -3000 |C
    Before image:
    Document Number| Customer | sales value|STOR_NO(ROCANCEL)
    1001| RAMLAL | 0 |C --> value changed from 3000 to Zero.
    If you are loading in additive or Overwrite into an ODS total sales for 1001 at end of day 4 will be Zero.
    Hope it helps
    Srini

  • Need help on the below query or Pl-SQL

    Hello Every one,
    Please let me know if some one can help me out with the below scenario either in pl-sql or sql.
    Source Data:
    0000253800     0.25          0845A     0900A
    0000253800     1          0900A     1000A
    0000253800     1          1300P     1400P
    0000253800     1          1500P     1600P
    0000253800     1          1600P     1700P
    Output needed:
    0000253800     1.25          0845A     1000A
    0000253800     1          1300P     1400P
    0000253800     2          1500P     1700P
    Thanks in Advance....
    Edited by: user12564103 on Dec 11, 2011 5:54 PM

    Hi,
    Welcome to the forum!
    Depending on your data and your requirements:
    WITH     got_times     AS
         SELECT     column_1, column_2, column_3, column_4
         ,     TO_DATE ( substr (column_3, 1, 4)
                   , 'HH24MI'
                   )     AS time_3
         ,     TO_DATE ( SUBSTR (column_4, 1, 4)
                   , 'HH24MI'
                   )     AS time_4
         FROM     table_x
    ,     got_grp_id     AS
         SELECT     column_1, column_2, column_3, column_4
         ,     time_3, time_4
         ,     time_4 - SUM (time_4 - time_3) OVER ( PARTITION BY  column_1
                                        ORDER BY         time_3
                                      )     AS grp_id
         FROM     got_times
    SELECT       column_1
    ,       SUM (column_2)     AS sum_2
    ,       MIN (column_3) KEEP (DENSE_RANK FIRST ORDER BY time_3)
                        AS min_3
    ,       MAX (column_4) KEEP (DENSE_RANK LAST  ORDER BY time_4)
                        AS max_4
    FROM       got_grp_id
    GROUP BY  column_1
    ,       grp_id
    ORDER BY  column_1
    ,       grp_id
    ;Whenever you have a problem, please post CREATE TABLE and INSERT statements for your sample data, as well as the results you want from that data. Explain, with specific examples, how you get the results you want from that data.
    Always say which version of Oracle you're using. The query above will work in Oracle 9.1 (and higher).
    Since this is your first thread, I'll do this for you:
    CREATE TABLE     table_x
    (     column_1     NUMBER
    ,     column_2     NUMBER
    ,     column_3     VARCHAR2 (5)
    ,     column_4     VARCHAR2 (5)
    INSERT INTO table_x (column_1, column_2, column_3, column_4) VALUES (253800, .25, '0845A', '0900A');
    INSERT INTO table_x (column_1, column_2, column_3, column_4) VALUES (253800, 1,   '0900A', '1000A');
    INSERT INTO table_x (column_1, column_2, column_3, column_4) VALUES (253800, 1,   '1300P', '1400P');
    INSERT INTO table_x (column_1, column_2, column_3, column_4) VALUES (253800, 1,   '1500P', '1600P');
    INSERT INTO table_x (column_1, column_2, column_3, column_4) VALUES (253800, 1,   '1600P', '1700P');Column_1 identifes a day.
    Column_2 is an amount that I need to total.
    Column_3 and column_4 are starting and ending times. We can assume that they are all valid times (in 'HH24MI' format, plus a redundant 'A' or 'P') on the same day, column_3 is always less than column_4, and that the range of two rows for the same value of column_1 never overlap. Column_4 of one row may be equal to column_3 of another rows with the same column_1, but it will never be greater.
    Each row of the output represent a contiguous group of rows (each ending exactly when the next one begins) with the same column_1, with the common column_1, the total of column_2, and the range of the group.
    For example, the first two rows for a single group, because they have the same value for column_1, and one ends exactly when the other begins (at 9:00 AM). This group represents day 253800, from 8:45 AM to 10:00 AM. The totla of column_2 fro this group is .25 + 1 = 1.25.
    The next row (from 1:00 PM to 2:00 PM) is a group all by itself, because there is a gap one either side of it separating it from its nearest neighbor on the same day."
    Of course, I'm guessing at lots of things.
    Edited by: Frank Kulash on Dec 11, 2011 9:44 PM
    Changed TO_DATE calls.
    Edited by: Frank Kulash on Dec 11, 2011 9:52 PM
    Added sample question.

  • Need help in the below command excution

    Hi Champs,
    Can any one help with the below command, It is not working.
    Get-CsUser | Where-Object {$_.dialplan -eq "USDAL"} | Grant-CsLocationPolicy -PolicyName "Dallas Location Policy"
    Regards
    Vijendhar

    You could try something like: 
    $userlist = Get-CsUser -ResultSize Unlimited
    foreach ($user in $userlist)
    if ($user.dialplan -eq $Null)
    $pool = (Get-csdialplan | Where-Object {$_.Identity -like ("*" + $user.RegistrarPool)})
    if ($pool.length -ge "1") {write-host ("Pool simple name: " + $pool.simplename + ", Identity: " + $pool.identity)}
    if (($pool.simplename -eq "USDal") -or ($pool.identity -eq "USDal"))
    Write-host "Please Grant location policy to: $user.Displayname"
    # Get-csuser $user.identity | Grant-CsLocationPolicy -PolicyName "Dallas Location Policy"
    $pool = $Null
    Use at your own risk as I haven't had a chance to test, I have commented out the grant so you can test prior to changes.
    Please mark posts as answers/helpful if it answers your question.
    Blog
    Lync Validator - Used to assist in the validation and documentation of Lync Server 2013.

  • Need help on the below query.

    Hi All,
    I've a query given below..
    SELECT W.WONUM,
         W.STATUS,
         WS.CHANGEDATE,
         EH.OLD_RATE
         FROM
         WORKORDER W,
         WOSTATUS WS,
         ESTIMATE_HEADER@GQMFOF EH
    WHERE WS.CHANGEDATE BETWEEN '01-Oct-2009' AND '1-Nov-2009'
    AND W.WONUM = WS.WONUM
    AND EH.OLD_RATE = 'N'
    AND WS.WOSTATUS = 'CLOSE';
    I would like to get All the data which status =closed in the month of Oct for Old rate,
    So for this i am writing the query above. But not getting the o/p.
    It is giving me that " Table/View doesn't exist.
    There 2 schemas MAXIMO,GQMMGR..
    DBlinks are GQMFOF,MAXFOFNC..
    Can anyone help me while writing the above query...
    Regards,
    gr.

    A question was asked in your other thread. But the problem was you dint care to give an answer.
    Dont open duplicate post.
    I need help on the below problem..

  • I need help on the below problem..

    Hi All,
    I need help on the below problem..
    I've 2 Schemas called
         1. MAXIMO and DBLink is GQMFOF
         2. GQMMGR adn DBLink is MAXFOFNC
    Now i would likw to retrive the data from both the schemas,
    i.e some columns from WORKORDER table of maximo schema and some columns from ESTIMATE_HEADER table
    of GQMMGR schema..
    I'm trying to get the data using DB links, but it is giving TABLE/VIEW doesn't exist.
    Please help me on this.
    Regards,
    gr.

    Does your user has the SELECT privelage granted for accessing those tables?

  • Help in the below code

    I want to run the below code for zone_id 1 to 12. How will I do that ?
    Kindly help me on this.
    DECLARE
      CURSOR c1 IS SELECT item FROM [email protected];
      CURSOR c2(tmp_item VARCHAR2) IS
        SELECT location FROM rpm_zone_location WHERE zone_id = 1
        MINUS
        SELECT DISTINCT location from rpm_clearance WHERE item = tmp_item AND reset_ind = 1 and location in
          (select location from rpm_zone_location where zone_id=1);
    BEGIN
      FOR i IN c1
      LOOP
        FOR j IN c2 (i.item)
        LOOP
          INSERT INTO RMS12.RPM_CLEARANCE
    (CLEARANCE_ID,
    CLEARANCE_DISPLAY_ID,
    STATE,
    REASON_CODE,
    LOC_EXCEPTION_PARENT_ID,
    PARENT_EXCEPTION_PARENT_ID,
    CLEARANCE_RESET_ID,
    RESET_IND,
    ITEM,
    DIFF_ID,
    ZONE_ID,
    LOCATION,
    ZONE_NODE_TYPE,
    EFFECTIVE_DATE,
    OUT_OF_STOCK_DATE,
    RESET_DATE,
    CHANGE_TYPE,
    CHANGE_AMOUNT,
    CHANGE_CURRENCY,
    CHANGE_PERCENT,
    CHANGE_SELLING_UOM,
    PRICE_GUIDE_ID,
    VENDOR_FUNDED_IND,
    FUNDING_TYPE,
    FUNDING_AMOUNT,
    FUNDING_AMOUNT_CURRENCY,
    FUNDING_PERCENT,
    SUPPLIER,
    DEAL_ID,
    DEAL_DETAIL_ID,
    PARTNER_TYPE,
    PARTNER_ID,
    CREATE_DATE,
    CREATE_ID,
    APPROVAL_DATE,
    APPROVAL_ID,
    LOCK_VERSION)
    SELECT
    RPM_CLEARANCE_SEQ.Nextval,
    'reset:'||CLEARANCE_DISPLAY_ID,
    'pricechange.state.approved',
    REASON_CODE,
    LOC_EXCEPTION_PARENT_ID,
    PARENT_EXCEPTION_PARENT_ID,
    CLEARANCE_RESET_ID,
    1,
    ITEM,
    DIFF_ID,
    null,
    c2.location,
    0,
    null,
    OUT_OF_STOCK_DATE,
    null,
    CHANGE_TYPE,
    CHANGE_AMOUNT,
    CHANGE_CURRENCY,
    CHANGE_PERCENT,
    CHANGE_SELLING_UOM,
    PRICE_GUIDE_ID,
    VENDOR_FUNDED_IND,
    FUNDING_TYPE,
    FUNDING_AMOUNT,
    FUNDING_AMOUNT_CURRENCY,
    FUNDING_PERCENT,
    SUPPLIER,
    DEAL_ID,
    DEAL_DETAIL_ID,
    PARTNER_TYPE,
    PARTNER_ID,
    CREATE_DATE,
    'RMS12',
    APPROVAL_DATE,
    'RMS12',
    LOCK_VERSION
    from rpm_clearance where zone_id=1 and item = j.item;
        END LOOP;
        COMMIT;
      END LOOP;
    END;

    It might be a good idea to post this again using the "code" button so that it's properly formatted. Take your time so that it's as accurate as possible. And don't forget to say at what point as the program executes this eligibility is being considered.

  • Help on the below problem..

    Hi all,
    I've a SQL query which is written to retrive the data from 3 tables & 2 views.Again the 2 views are based on 3 tables each. When i execute the query in explain plan it is giving cost = 8870. i've rebuild all the indexes which are using in where clause of all the tables.Finally i've reduced the cost to 3347.But still it is taking much time to execute.
    So any one give the complete details of "What are the steps to be taken(follow) while tuning this type of queries. What i've to do in this scenario to reduce the time taking.Indexes are there in all the tables.But 2 tables are scaning full though indexes are there.
    Using Oracle 10g ver.
    Executing in TOAD 8.1.6 ver.
    Please help me on this. And if possible send me some documents.
    Regards,
    grace

    gracy wrote:
    I've a SQL query which is written to retrive the data from 3 tables & 2 views.Again the 2 views are based on 3 tables each. When i execute the query in explain plan it is giving cost = 8870. i've rebuild all the indexes which are using in where clause of all the tables.Finally i've reduced the cost to 3347.But still it is taking much time to execute.What is the unit of cost? We know it is not US dollars.. so what is it then? And just what does a cost of 8870 mean? And how much better is that than a cost of 3347?
    Do you think that cost can be plotted on a linear scale? If so, then the cost of 3347 should be 3.7 times faster/better than the cost of 8870.
    But it is not. Why? Because of the assumption what cost mean... and not knowing what it actually means and whether or not it can be used as an effective means to determine how much better performance is, why use it?
    Surely, you need to know WHAT a number means before using that number to determine the better/faster option?
    Bottom line - do not use cost unless you are intimately familiar with exactly what you are dealing with. Rather deal with what you can see and measure effectively and understand easily. And this is I/O. How much I/O is needed using SQL A versus how much I/O is needed using SQL B.
    I/O is the most expensive operation in a database. The less I/O you do, the faster the SQL is. Which is we have features like indexes, partitions, clusters and so on - all these are methods to reduce I/O. To provide better/smaller I/O paths for the database to find the rows that we are interested in.
    And surely dealing with I/O gives you a far better understanding of the impact of a query than a cost that you do not even know the unit type of?

  • Link between EKBE and EKET for the below scenario

    Hi all
    We have a requirement to display schedule line number(eket-etenr) for purchase order and for each history of quantities in table EKBE (ekbe-ebeln ,ekbe-ebelp). Please suggest how we can link these two tables,
    As i need to display the eket-etenr upto the quantity confirmed on latest date..
    The example is below for quantity 81.
    If Purshase history is
    EKET-menge EKET- etenr
    81 --- 0001
    5 -
    0002
    10 --- 0003
    date move-typ EKBE-menge ***-sum ETENR
    01/26/2004 101 10 10 0001
    01/26/2004 101 10 20 0001
    01/27/2004 101 20 40 0001
    01/27/2004 101 20 60 0001
    01/30/2005 101 10 70 0001
    03/31/2005 101 1 71 0001
    03/31/2005 101 10 81 0001
    04/01/2005 101 9 90 0001
    11/20/2006 102 -9 81 0001
    06/04/2006 101 3 84 0002
    06/05/2006 101 1 85 0002
    06/06/2006 102 -1 -1 84 0002
    06/07/2006 101 3 87 0003
    06/08/2006 101 9 96 0003
    We need to display EKET-ETENr for each ekbe entry whenever the quantity is delivered til that line.
    Pleae suggest possible ways.
    Regards,
    Latha.

    Hi,
    Pls chk this relations-
    EKBE-> EKKO->based on EBELN
    EKKO -> EKPO based on EBELN
    EKPO->EKET based on EBELN, EBELP
    First try to get the Purchase order numbers  into EKKO from EKBE based on this get their itmes from EKPO from this we can get the EKET values based on both documnet number and theier items.
    To get the history of the PO(EBELN) check this select statement -
    SELECT
         ebeln      "Purchasing Document Number
         ebelp      "Item Number of Purchasing Document
         gjahr      "Financial year
         vgabe      "Transaction/event type, purchase order
         belnr      "Number of material document
         bwart      "Movement type
         budat      "Posting date in the document
         menge      "Quantity
         wrbtr      "Amount in document currency
         waers      "Currency Key
         matnr      "Material number
         werks      "plant
         charg      "Batch
         FROM  ekbe
         INTO  TABLE i_ekbe
         WHERE gjahr IN  s_gjahr AND
               budat IN s_budat  AND
               werks =  p_plant.
    SORT i_ekbe BY ebeln gjahr matnr vgabe bwart.
    if i_ekbe[] is not initial.
    SELECT
               ebeln    "PO
               lifnr       "VENDOR
          FROM ekko
          INTO TABLE i_ekko
          FOR ALL  ENTRIES IN i_ekbe
          WHERE ebeln = i_ekbe-ebeln.
    endif.
    SORT i_ekko BY ebeln.
    if i_ekko[] is not intitial.
    SELECT
                ebeln    "Purchasing Document Number
                ebelp    "Purchasing Document ITEM
                matnr    "Materail No.
                menge    "qty
                meins    "unit
                  umrez    "Conversion factor                 "MOD-005
                  umren    "conversion factor                 "MOD-005
            FROM ekpo
            INTO TABLE i_ekpo
                 FOR ALL ENTRIES IN i_ekko
            WHERE ebeln = i_ekko-ebeln.
    endif.
    if i_ekpo[] is not initial.
        SELECT   *
               FROM eket
               INTO TABLE i_eket
               FOR ALL ENTRIES IN i_ekpo
               WHERE ebeln = i_ekpo-ebeln
               AND   ebelp = i_ekpo-ebelp.
    endif.
    Hope this solves your issue. Chanegethe WHERE conditions wherever necessarry as per your requiremnets.
    Regards
    Lekha

  • Need help with the following scenario

    Hi guys,
    I have to implement a solution which requires me to duplicated all the rows from a table to another in reverse order. For eg. I have table1 containing the following rows:
    200, 350, 700, 90
    All these numbers are sorted according to their ROW_ID_BLOCK_NUMBER. When these rows are replicated over to another table, say table2, it should be inserted in the following order:
    90, 700, 350, 200
    I do not have another column column that stores the running identity number for each row and I don't intend to implement that right now. I was wondering if that can be implemented using the DBMS_ROWID package and if so, how? Any help is greatly appreciated here. Thanks in advance.

    In 10g, assuming you've built a table with row dependencies enabled
    SCOTT @ jcave102 Local> create table a (
      2  col1 number
      3  )
      4  rowdependencies;
    Table created.
    Elapsed: 00:00:00.04the ORA_ROWSCN pseudocolumn will tell you the SCN (system change number) of the transaction that inserted the rows
    SCOTT @ jcave102 Local> insert into a values( 1 );
    1 row created.
    Elapsed: 00:00:00.07
    SCOTT @ jcave102 Local> insert into a values( 2 );
    1 row created.
    Elapsed: 00:00:00.01
    SCOTT @ jcave102 Local> commit;
    Commit complete.
    Elapsed: 00:00:00.00
    SCOTT @ jcave102 Local> insert into a values( 3 );
    1 row created.
    Elapsed: 00:00:00.04
    SCOTT @ jcave102 Local> commit;
    Commit complete.
    Elapsed: 00:00:00.01
    SCOTT @ jcave102 Local> select ora_rowscn, col1 from a;
    ORA_ROWSCN       COL1
       6270940          1
       6270940          2
       6270944          3
    Elapsed: 00:00:00.09Sorting on that, assuming you insert the rows in the right logical order, should work (the documentation only guarantees that the SCN of the row is greater than or equal to the SCN when a row was modified, so it's not guaranteed, but I don't know of a mechanism that would cause the ORA_ROWSCN to change without DML affecting the row in this example so it's relatively safe, at least with your current Oracle version). If ROWDEPENDENCIES is not set, the default is that the SCN is tracked at the block rather than the row level.
    Justin

  • Help in the below query

    Hi ,
    I have the following string
    select '1, ,3, , , abc, ,dce,234, , , abc 1 ,1 ,4 ' from dual
    and i have translations for
    abc,dce and abc 1 respecitvely as
    X ,Y and Z
    which i strore in a table as
    1 abc X
    2 dce Y
    3 abc 1 Z
    now i want to replace these tranlations in my original string such that my spaces etc are intact ( note that i cannot use the replace function directly)
    MY final string should look like
    1, ,3, , , X, ,Y,234, , , Z ,1 ,4
    any pointers how i can achieve it.
    Thanks

    Prazy wrote:
    Aketi Jyuuzou wrote:
    I like recursive with clause B-)Yes but recursive with clause is being supported only from 11gR2 but OP is using *10gR2* B-)Hehe I was to start create SQL seeing OP's first Post only :-)
    And I prefer recursive with clause than model clause B-)
    And my prev SQL is wrong.
    with t as(
    select '1, ,3, , , abc, ,dce,234, , , abc 1 ,1 ,4 '
    as str from dual),
    repstr(ID,befo,aft) as(
    select 1,'abc','X' from dual union
    select 2,'dce','Y' from dual union
    select 3,'abc 1','Z' from dual),
    rec(str,LV) as(
    select RegExp_Replace(a.str,
           '(,|^)( *)' || b.befo || '( *)(,|$)',
           '\1\2' || b.aft || '\3\4'),1
      from t a,repstr b
    where b.ID=1
    union all
    select RegExp_Replace(a.str,
           '(,|^)( *)' || b.befo || '( *)(,|$)',
           '\1\2' || b.aft || '\3\4'),a.LV+1
      from rec a,repstr b
    where a.LV+1 = b.ID)
    select max(str) Keep(Dense_Rank Last order by LV) as str
      from rec;
    STR
    1, ,3, , , X, ,Y,234, , , Z ,1 ,4

  • Can someone help decipher the below panic error?

    Interval Since Last Panic Report:  5 sec
    Panics Since Last Report:          1
    Anonymous UUID:                    56112AF8-6418-4920-9611-83ECB5E29C19
    Sun Mar 10 09:42:04 2013
    panic(cpu 0 caller 0x2a8ac2): Kernel trap at 0x00292af7, type 14=page fault, registers:
    CR0: 0x80010033, CR2: 0x00000010, CR3: 0x37721000, CR4: 0x000006e8
    EAX: 0x0eef62b0, EBX: 0x80000000, ECX: 0x0eef62b0, EDX: 0x00000000
    CR2: 0x00000010, EBP: 0x7ddabcf8, ESI: 0x00000000, EDI: 0x00000000
    EFL: 0x00010202, EIP: 0x00292af7, CS:  0x00000008, DS:  0x00000010
    Error code: 0x00000000
    Backtrace (CPU 0), Frame : Return Address (4 potential args on stack)
    0x7ddab9f8 : 0x21b449 (0x5ce420 0x7ddaba2c 0x2238a5 0x0)
    0x7ddaba48 : 0x2a8ac2 (0x590478 0x292af7 0xe 0x590642)
    0x7ddabb28 : 0x29e9a8 (0x7ddabb40 0x76 0x7ddabcf8 0x292af7)
    0x7ddabb38 : 0x292af7 (0xe 0x48 0x10 0x10)
    0x7ddabcf8 : 0x2936d6 (0xeef62b8 0x10000000 0x1 0x1042000)
    0x7ddabd68 : 0x260897 (0xeef62b8 0xff8d000 0x1 0x1098d000)
    0x7ddabe98 : 0x260e32 (0x1098d000 0x1 0x0 0x0)
    0x7ddabed8 : 0x281fb3 (0xffdc854 0xff8d000 0x1 0x1098d000)
    0x7ddabf38 : 0x479c06 (0xffdc854 0xff8d000 0x1 0xa00000)
    0x7ddabf78 : 0x4ecbb9 (0xfff57e0 0xeeff048 0xf53b684 0x1)
    0x7ddabfc8 : 0x29f43d (0xeeff044 0x0 0x10 0x0)
    BSD process name corresponding to current thread: mds
    Mac OS version:
    10D575
    Kernel version:
    Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386
    System model name: MacPro4,1 (Mac-F221BEC8)
    System uptime in nanoseconds: 895007347562
    unloaded kexts:
    com.apple.filesystems.msdosfs          1.6.1 (addr 0x7d5d1000, size 0x53248) - last unloaded 373865381269
    loaded kexts:
    com.highpoint-tech.kext.HighPointRR          1.0.0
    com.apple.driver.AppleHWSensor          1.9.3d0
    com.apple.driver.AppleTyMCEDriver          1.0.1d8
    com.apple.driver.AGPM          100.10.21
    com.apple.driver.AudioAUUC          1.4
    com.apple.driver.AppleMikeyHIDDriver          1.2.0
    com.apple.driver.AppleUpstreamUserClient          3.3.2
    com.apple.Dont_Steal_Mac_OS_X          7.0.0
    com.apple.driver.AppleMikeyDriver          1.8.4fc3
    com.apple.GeForce          6.1.0
    com.apple.driver.Intel82574L          1.0.4b1
    com.apple.driver.AppleIntelNehalemProfile          11
    com.apple.driver.AudioIPCDriver          1.1.2
    com.apple.driver.AppleHDA          1.8.4fc3
    com.apple.driver.AppleUSBDisplays          251
    com.apple.driver.AirPortBrcm43xx          422.91.27
    com.apple.driver.ACPI_SMC_PlatformPlugin          4.1.1d0
    com.apple.driver.AppleLPC          1.4.11
    com.apple.filesystems.autofs          2.1.0
    com.apple.iokit.IOAHCIBlockStorage          1.6.1
    com.apple.iokit.SCSITaskUserClient          2.6.2
    com.apple.BootCache          31
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib          1.0.0d1
    com.apple.driver.AppleUSBHub          3.9.6
    com.apple.driver.AppleFWOHCI          4.5.7
    com.apple.driver.AppleUSBEHCI          3.9.6
    com.apple.driver.AppleAHCIPort          2.1.1
    com.apple.driver.AppleUSBUHCI          3.9.6
    com.apple.driver.AppleEFINVRAM          1.3.0
    com.apple.driver.AppleRTC          1.3.1
    com.apple.driver.AppleHPET          1.5
    com.apple.driver.AppleACPIButtons          1.3.2
    com.apple.driver.AppleSMBIOS          1.5
    com.apple.driver.AppleACPIEC          1.3.2
    com.apple.driver.AppleAPIC          1.4
    com.apple.security.sandbox          0
    com.apple.security.quarantine          0
    com.apple.nke.applicationfirewall          2.1.11
    com.apple.driver.AppleIntelCPUPowerManagementClient          104.3.0
    com.apple.driver.AppleIntelCPUPowerManagement          104.3.0
    com.apple.iokit.IOSCSIBlockCommandsDevice          2.6.2 - last loaded 890932740795
    com.apple.driver.AppleProfileReadCounterAction          17
    com.apple.driver.AppleProfileTimestampAction          10
    com.apple.driver.AppleProfileThreadInfoAction          14
    com.apple.driver.AppleProfileRegisterStateAction          10
    com.apple.driver.AppleProfileKEventAction          10
    com.apple.driver.AppleProfileCallstackAction          20
    com.apple.iokit.IOSurface          74.0
    com.apple.iokit.IOBluetoothSerialManager          2.3.1f4
    com.apple.iokit.IOSerialFamily          10.0.3
    com.apple.driver.DspFuncLib          1.8.4fc3
    com.apple.iokit.IOAudioFamily          1.7.6fc2
    com.apple.kext.OSvKernDSPLib          1.3
    com.apple.driver.AppleSMBusController          1.0.8d0
    com.apple.nvidia.nv50hal          6.1.0
    com.apple.NVDAResman          6.1.0
    com.apple.iokit.IONDRVSupport          2.1
    com.apple.iokit.IOFireWireIP          2.0.3
    com.apple.iokit.IO80211Family          310.6
    com.apple.iokit.IONetworkingFamily          1.9
    com.apple.iokit.AppleProfileFamily          41
    com.apple.driver.AppleHDAController          1.8.4fc3
    com.apple.iokit.IOGraphicsFamily          2.1
    com.apple.iokit.IOHDAFamily          1.8.4fc3
    com.apple.driver.AppleSMC          3.0.1d2
    com.apple.driver.IOPlatformPluginFamily          4.1.1d0
    com.apple.driver.AppleSMBusPCI          1.0.8d0
    com.apple.driver.XsanFilter          402.1
    com.apple.driver.AppleUSBHIDKeyboard          1.2.0a3
    com.apple.driver.AppleHIDKeyboard          1.2.0a3
    com.apple.driver.BroadcomUSBBluetoothHCIController          2.3.1f4
    com.apple.driver.AppleUSBBluetoothHCIController          2.3.1f4
    com.apple.iokit.IOBluetoothFamily          2.3.1f4
    com.apple.driver.AppleUSBMergeNub          3.9.6
    com.apple.iokit.IOUSBHIDDriver          3.9.6
    com.apple.driver.AppleUSBComposite          3.9.0
    com.apple.iokit.IOSCSIMultimediaCommandsDevice          2.6.2
    com.apple.iokit.IOBDStorageFamily          1.6
    com.apple.iokit.IODVDStorageFamily          1.6
    com.apple.iokit.IOCDStorageFamily          1.6
    com.apple.iokit.IOSCSIParallelFamily          2.0.0
    com.apple.iokit.IOFireWireFamily          4.2.6
    com.apple.iokit.IOUSBUserClient          3.9.6
    com.apple.iokit.IOAHCISerialATAPI          1.2.3
    com.apple.iokit.IOSCSIArchitectureModelFamily          2.6.2
    com.apple.iokit.IOAHCIFamily          2.0.3
    com.apple.iokit.IOUSBFamily          3.9.6
    com.apple.driver.AppleEFIRuntime          1.3.0
    com.apple.iokit.IOHIDFamily          1.6.2
    com.apple.iokit.IOSMBusFamily          1.1
    com.apple.security.TMSafetyNet          6
    com.apple.kext.AppleMatch          1.0.0d1
    com.apple.driver.DiskImages          283
    com.apple.iokit.IOStorageFamily          1.6
    com.apple.driver.AppleACPIPlatform          1.3.2
    com.apple.iokit.IOPCIFamily          2.6
    com.apple.iokit.IOACPIFamily          1.3.0
    Model: MacPro4,1, BootROM MP41.0081.B07, 8 processors, Quad-Core Intel Xeon, 2.26 GHz, 10 GB, SMC 1.39f5
    Graphics: NVIDIA GeForce GT 120, NVIDIA GeForce GT 120, PCIe, 512 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x88), Broadcom BCM43xx 1.0 (5.10.91.27)
    Bluetooth: Version 2.3.1f4, 2 service, 19 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en2
    PCI Card: scsi, sppci_scsi_bus, Slot-3
    PCI Card: pci-bridge, sppci_pci2pcibridge, Slot-4
    PCI Card: pci-bridge, sppci_pci2pcibridge, Slot-4
    PCI Card: pcibdbd,a10c, sppci_video, Slot-4@5,1,0
    PCI Card: NVIDIA GeForce GT 120, Display, Slot-1
    Serial ATA Device: HL-DT-ST DVD-RW GH41N
    Serial ATA Device: PIONEER BD-RW   BDR-206
    Serial ATA Device: WDC WD6400AAKS-41H2B0, 596.17 GB
    SCSI Device: SCSI Target Device @ 16
    USB Device: Hub, 0x05ac  (Apple Inc.), 0x9122, 0xfd300000
    USB Device: Keyboard Hub, 0x05ac  (Apple Inc.), 0x1006, 0xfd310000
    USB Device: Kensington Expert Mouse, 0x047d  (Kensington), 0x1020, 0xfd313000
    USB Device: Apple Keyboard, 0x05ac  (Apple Inc.), 0x0220, 0xfd312000
    USB Device: Apple Cinema HD Display, 0x05ac  (Apple Inc.), 0x921e, 0xfd320000
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x5a100000
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8215, 0x5a110000
    FireWire Device: built-in_hub, Up to 800 Mb/sec
    FireWire Device: unknown_device, Unknown

    Boot into Safe Mode. If there are no more panics then uninstall your HighPoint RAID software. See if the panics cease. If they do contact HighPoint for a newer driver.
    You can also try removing the Kensington mouse and using the mouse that came with the computer.
    The affected thread was Spotlight indexing.

  • Pls. is the below scenario is possible in SAP?

    Hello,
    We are from bulk sale industry, our customers are individual store operators. We want to provide a Adobe Interactive Form in our portal to these customers so that they will enter material data submits the form to the workflow/system.
    Pls. note users does NOT have SAP access
    Just they hv our company's Portal access
    1) Customers are individual store operators
    2) We want to place a Adobe Interactive Form for our customers in our portal
    3) So that customers will open the portal and then opens the AIF and enters the input data
    4) Finally, they will submit the form for workflow
    Then, it should save into SAP system after proper workflow process is done
    Pls. let us know the feasibility, concerns, approach, thoughts, pro & cons
    Thank you

    Hi,
    until such time SAP delivers Adobe Document Services in Hana Cloud, in case you don't have it available somwehere in your landscape yet, you'd need to install ADS on SAP Netweaver usage type AS Java. The use of Interactive Forms can unter certain circumstances be subject to additional Adobe licence costs.
    cheers,
    Janis

  • Need Help with the below query

    Hi All,
    I'm working on Oracle HRMS tables which have date tracking facility.
    I'm working on Oracle 10G.
    I have a table per_all_assignments_f(seeded) which contains the employee related information.
    It has normal hours and the assignment_id(primary key) in the table
    The data is something like
    assignment_id     
    123                   30                   01-Jan-2000               31-dec-2009
    123                    32                 01-Jan-2010               31-dec-2012
    123                  
    assignment_id
    Normal_hours
    Effective_start_Date
    Effective_end_Date
    123    
    30
    01-Jan-2000
    31-dec-2009
    123
    32
    01-Jan-2010
    31-dec-2012
    123
    40
    01-Jan-20103
    40                  01-jan-2013               31-dec-4712
    Now I'd like to pass the latest date(sysdate) to a function which should give me the
    last changed normal hours as on today. In this case 32.
    select normal_hours from per_all_assignments_f where
    assignment_id=123
    and trunc(latest_date) between effective_start_date and effective_end_date
    This will give me the latest normal hours of 40 but I want the last changed hours irrespective of how many ever be the changes.
    hope I'm clear in specifying my requirement.
    Appreciate your time
    Thanks,
    AJ

    877722 wrote:
    It has normal hours and the assignment_id(primary key) in the table
    How PK value is repeating in your sample data!
    877722 wrote:
    This will give me the latest normal hours of 40 but I want the last changed hours irrespective of how many ever be the changes.
    hope I'm clear in specifying my requirement.
    Nope. What is "changed hours"? Not able to break your source code!  a tough one, I say.
    By the way, follow the link shared by Karthick and will be easy to answer for anyone.
    Thanks!

Maybe you are looking for

  • Web.show_document in Forms 11g

    Hi, I've migrating my application from forms 6i to forms 11g. In my application I use web.show_document to open some document using the http alias defined in httpd.conf under Oracle iSuites Http Server in httpd.conf I define Alias /my_document_folder

  • My account has been restricted I want to know how to contact ebay to have account restored

    My account has been restricted from selling for quite some time and I have a whole shell of items to sell and I also has been spending a lot of money from my pocket to get the items mailed to customers on time when my account was in good standard I d

  • Producer Consumer with a state machine within the consumer

        Hi All, I have been trying to develop a data acquisition system with the producer consumer architecture.  To the left of the two main loops I initialize the serial port and any constants and variables im using.  I also have an obtain queue VI nee

  • Hyperion Workforce Planning - Rules migrated in LCM not showing in Calc Mgr

    1-Having trouble with workforce rules (as well as capex and rulesets) that are not showing up in calc manager (in system view) in our QA environment after I migrate them from Dev. New rules were created by a consultant we had in dev and on migrating

  • SOLMAN 7.1 Technical Monitoring - System Monitoring - Host Grey

    Hi All, Wondering why my host monitoring in system monitoring is greyed out? I managed to get Technical Systems, Database and others work well but not Host Monitoring. I checked SAPHOSTAGENT is running fine, DAA and wily as well. Also, all updated to