Need help with ora-hash function

I am doing a insert operation..in the actual view i came up with this expression ORA_HASH(c.cpt_code_grp_dscrptn
||c.cpt_code_grp_id) AS bwrse_link_idntfr
i was given to insert browse_link_idntfr value as 2910441270
how to proceed with the insertion in the actual table for those two columns?

964145 wrote:
I am doing a insert operation..in the actual view i came up with this expression ORA_HASH(c.cpt_code_grp_dscrptn
||c.cpt_code_grp_id) AS bwrse_link_idntfr
i was given to insert browse_link_idntfr value as 2910441270
how to proceed with the insertion in the actual table for those two columns?HUH?
How do I ask a question on the forums?
SQL and PL/SQL FAQ

Similar Messages

  • Need help with user defined function

    Hello SDN,
    I need some help with a user-defined function. My source message contains multiple
    generic records (1000 char string), and my target message is 1 header record,
    then multiple generic records.  See description of source and target messages below:
    Source:
      GenericRecordTable 1..unbounded
        Row (1000 char string)
    Target:
      Field1 (char5)
      Field2 (char5)
      Field3 (char5)
      IT_Data
        GenericRecordTable 1..unbounded
          Row (1000 char string)
    Basically, what I need to do in my user defined funtion is to map the first record
    in my source record to the 3 header fields, then map all of the rest of the records
    (starting from line 2) into the GenericRecordTable.
    Can someone please help me with the code for the user defined function(s) for this
    mapping?
    Thank you.

    hi,
    Activities
    1. To create a new user-defined function, in the data-flow editor, choose Create New Function (This
    graphic is explained in the accompanying text), which is located on the lower left-hand side of the
    screen. In the menu, choose Simple Function or Advanced Function.
    2. In the window that appears, specify the attributes of the new function:
    Name
    Technical name of the function. The name is displayed in the function chooser and on the data-flow
    object.
    Description
    Description of how the function is used.
    Cache
    Function type (see above)
    Argument Count
    In this table, you specify the number of input values the function can process, and name them. All
    functions are of type String.
    3. In the window that appears, you can create Java source code:
    a. You can import Java packages to your methods from the Imports input field, by specifying them
    separated by a comma or semi-colon:
    You do not need to import the packages java.lang., java.util., java.io., and java.lang.reflect. since
    all message mappings require these packages and therefore import them. You should be able to
    access standard JDK and J2EE packages of the SAP Web Application Server by simply specifying the
    package under Import. In other words, you do not have to import it as an archive into the Integration
    Repository. You can also access classes of the SAP XML Toolkit, the SAP Java Connector, and the
    SAP Logging Service (see also: Runtime Environment (Java-Mappings)).
    In addition to the standard packages, you can also specify Java packages that you have imported as
    archives and that are located in the same, or in an underlying software component version as the
    message mapping.
    b. Create your Java source text in the editor window or copy source text from another editor.
    4. Confirm with Save and Close.
    5. User-defined functions are limited to the message mapping in which you created the function. To
    save the new function, save the message mapping.
    6. To test the function, use the test environment.
    The new function is now visible in the User-Defined function category. When you select this category,
    a corresponding button is displayed in the function chooser pushbutton bar. To edit, delete, or add the
    function to the data-flow editor, choose the arrow next to the button and select from the list box
    displayed.
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/718e40496f6f1de10000000a1550b0/content.htm
    http://java.sun.com/j2se/1.5.0/docs/api/
    /people/krishna.moorthyp/blog/2006/07/29/documentation-html-editor-in-xi
    /people/sap.user72/blog/2006/02/06/xi-mapping-tool-exports
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    UDF -
    http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm
    Regards

  • Need Help with ORA-00604 - ORA-01219

    Hey i'm having a hard to understand the error messages generated by our Oracle database server. i'm in charge of the development of a .NET apps with an Oracle DB underneath.
    i tried to change the parameter values ( the java pool and the shared pool) and when i tried to apply the change from Enterprise manager the shutdown process didn't complete, the parameters values are all gone and i'm trying to log on thru SQL* Plus i'm getting the following errors
    ORA-00604 error occured at recusive SQL Level 1
    ORA-01219 database not open: queries allowed on fixed tables/views only
    is there a way to recover or to reload the previous parameters values? . i really need some help on this
    thanks in advance

    Take a look in the alert log for the database to see why the database did not open. The alert log can be found in ORACLE_BASE/admin/<dbsid>/bdump/alert_<dbsid>.log .
    You can try to open the database with the following:
    set ORACLE_SID=<dbsid>
    sqlplus /nolog
    connect / as sysdba
    alter database open;
    It is possible that the above will not open the database if there is something preventing the opening of the database. That information can be found in the alert log mentioned above.

  • Need Help With Save As function Very Important

    i working on a project and i have to create a Save As function for it. When you click on Save As its supposed to open a dialog window where u can choose the where you would like to save the file and what you would like to name it. I know there is alot wrong with my code but i'm not sure on how to fix it so any and all help is greatly appreciated
    private void doSaveAs(){
              //display file dialog
              FileDialog fDialog2 = new FileDialog (this, "Save As...", FileDialog.SAVE);
              fDialog2.setVisible(true);
              //Set the file name chosen by user
              String name = fDialog2.getFile();
              // user canceled file selection, return without doing anything.
              if(name == null)
                   return;
              fileName = fDialog2.getDirectory() + name;
              // Try to create a file writer
              FileWriter writer = null;
              try{
                   writer = new FileWriter(fileName);
              } catch (IOException ioe){
                   MessageDialog dialog = new MessageDialog (this, "Error Message",
                             "Error writing the file: "+ioe.toString());
                   dialog.setVisible(true);
                   return;
              BufferedWriter bWriter = new BufferedWriter(writer);
              //Try to write the file
              StringBuffer textBuffer = new StringBuffer();
              try {
                   String textLine = bWriter.write(2);
                   while (textLine != null) {
                        textBuffer.append(textLine + '\n');
                        textLine = bWriter.write(name);
                   bWriter.close();
                   writer.close();
              } catch (IOException ioe){
                   MessageDialog dialog = new MessageDialog (this, "Error Message", "Error writing file: "+ioe.toString());
                   dialog.setVisible(true);
                   return;
         setTitle("JavaEdit " +name);     // reset frame title
         text.setText(textBuffer.toString());
    null

    And again with indentation
       private void doSaveAs(){
       //display file dialog
       FileDialog fDialog2 = new FileDialog (this, "Save As...",     
       FileDialog.SAVE);
          fDialog2.setVisible(true);
       //Set the file name chosen by user
       String name = fDialog2.getFile();
       // user canceled file selection, return without doing anything.
       if(name == null)
          return;
       fileName = fDialog2.getDirectory() + name;
       // Try to create a file writer
       FileWriter writer = null;
          try{
             writer = new FileWriter(fileName);
          } catch (IOException ioe){
          MessageDialog dialog = new MessageDialog (this, "Error Message", "Error writing the file: "+ioe.toString());
                dialog.setVisible(true);
                return;
       BufferedWriter bWriter = new BufferedWriter(writer);
       //Try to write the file
       StringBuffer textBuffer = new StringBuffer();
       try {
          String textLine = bWriter.write(2);
          while (textLine != null) {
             textBuffer.append(textLine + '\n');
             textLine = bWriter.write(name);
          bWriter.close();
          writer.close();
       } catch (IOException ioe){
          MessageDialog dialog = new MessageDialog (this, "Error Message", "Error writing file: "+ioe.toString());
          dialog.setVisible(true);
          return;
       setTitle("JavaEdit " +name); // reset frame title
       text.setText(textBuffer.toString());
    }

  • Need help with ora-01036  illegal variable name/number

    Can you help me fix the following problem.
    I'm getting an oracle exceptioin while running the following.
    OracleParameter[] myParameters = new OracleParameter[] { new OracleParameter("SELECTEDREGIONS", OracleDbType.RefCursor, ParameterDirection.Output) };
    XmlReader xRdr = oraclehelper.ExecuteXmlReader(myConnection,CommandType.StoredProcedure,"TEST_TESTPACKAGE.TEST_GETREGIONS_SP",myParameters);
    the oracle helper function is
    public XmlReader ExecuteXmlReader(OracleConnection inConnection,
    CommandType inCommandType,
    string inCommandText,
    params OracleParameter[] inCommandParameters)
    //create a command and prepare it for execution
    OracleCommand cmd = new OracleCommand(inCommandText,inConnection);
    cmd.CommandType = inCommandType;
    if (inCommandParameters != null)
    foreach (OracleParameter op in inCommandParameters)
    cmd.Parameters.Add(op);
    cmd.BindByName = true;
    cmd.XmlCommandType = OracleXmlCommandType.Query;
    cmd.XmlQueryProperties.RootTag = "Result";
    cmd.XmlQueryProperties.RowTag = "Row";
    if (cmd.Connection.State != ConnectionState.Open) cmd.Connection.Open();
    XmlReader retval = null;
    //create the DataAdapter & DataSet
    retval = cmd.ExecuteXmlReader();
    // detach the OracleParameters from the command object, so they can be used again.
    cmd.Parameters.Clear();
    return retval;
    The stored proc is:
    CREATE OR REPLACE package GJUTRAS.test_TestPackage AS
    type sregions is REF CURSOR;
    procedure test_GetRegions_sp
    selectedregions out sregions
    procedure test_GetRegByDescrip_sp
    descript in varchar2,
    selectedregions out sregions
    end test_TestPackage;
    CREATE OR REPLACE package body GJUTRAS.test_TestPackage AS
    procedure test_GetRegions_sp
    selectedregions out sregions
    is
    begin
    open selectedregions for
    select * from ods.region;
    end test_GetRegions_sp;
    procedure test_GetRegByDescrip_sp
    descript in varchar2,
    selectedregions out sregions
    is
    begin
    open selectedregions for
    select * from ods.region where description = descript;
    end test_GetRegByDescrip_sp;
    end test_TestPackage;
    /

    The versions of the function that use text "select * from ods.region" work fine. It's using a stored procedure with ExecuteXmlReader that I can't seem to get working. The table is
    CREATE TABLE REGION (
    ID NUMBER(10) NOT NULL,
    CODE VARCHAR2(100 BYTE),
    ABBREV VARCHAR2(100 BYTE),
    NAME VARCHAR2(500 BYTE),
    EXTRA_FIELDS_ID NUMBER(10) NOT NULL,
    ACTIVE_FLAG VARCHAR2(1 BYTE) NOT NULL,
    DESCRIPTION VARCHAR2(4000 BYTE),
    COMMENTS VARCHAR2(4000 BYTE),
    KEYWORDS VARCHAR2(4000 BYTE),
    CHNG_REASON_TYPE_ID NUMBER(10),
    CHNG_REASON_CMNT VARCHAR2(4000 BYTE),
    BEG_DATE DATE NOT NULL,
    BEG_USER_ID NUMBER(10) NOT NULL,
    CREATOR_ID NUMBER(10) NOT NULL,
    CREATION_DATE DATE NOT NULL )

  • Need help with an array function

    I'm using the array index function and i would like to be able to control what elements go out on it.  For example, if i wanted only the first element to go out, i don't want the second element to send out zero.  Is there any way i can control what elements leave the array index function.  I also don't understand what the index inputs do on that function either.  If anyone has any advice on the application or can modify it in any way, please help.
    Attachments:
    Array and for loop.vi ‏1190 KB

    The index inputs determine what elements are retrieved. For example of you would wire a 10 and a 20 to your two index inputs, you would bet element #10 and element #20 of your array. You can resize it to get any desired number of elements.
    If you don't wire the index inputs, you'll get the first two elements.
    If you only wire the top index input (e.g a 10), you'll get element #10 and #11.
    LabVIEW Champion . Do more with less code and in less time .

  • Need help with PL/SQL functions

    Hi,
    Is there a way to compare if a set of elements is present in another set using some function?
    Example: Is it possible to find out if all words present in 'BANQUE SAFRA SA' is present in 'BANQUE JACOB SAFRA (SUISSE) SA' using some function in Oracle 9i?
    Any suggestion would be appreciated.
    Thank you,
    Anushree

    Boneist,
    your solution would giv "false positives":
    SQL&gt; with my_tab as (select 'BANQUE JACOB SAFRA (SUISSE) SA' col1 from dual union all
      2                  select 'BANQUE SAFRA (SUISSE) SB' col1 from dual union all
      3                  select 'BANQUE SAFRA SA' col1 from dual union all
      4                  select 'BANQUE SAFRANE SA' col1 from dual)
      5  -- end of mimicking your data. USE SQL below!
      6  select * from my_tab
      7  where col1 like replace('BANQUE SAFRA SA', ' ', '%');
    COL1
    BANQUE JACOB SAFRA (SUISSE) SA
    BANQUE SAFRA SA
    BANQUE SAFRANE SA  Here is a PL/SQL funcion that does not expect the words in the specific order:
    SQL> DECLARE
      2     FUNCTION strInStr(
      3        a   IN   VARCHAR2,
      4        b   IN   VARCHAR2)
      5        RETURN VARCHAR2
      6     IS
      7        i          PLS_INTEGER;
      8        startpos   PLS_INTEGER;
      9        endpos     PLS_INTEGER;
    10        word       VARCHAR2(4000);
    11     BEGIN
    12        FOR i IN 1 .. LENGTH(a) - LENGTH(REPLACE(a, ' ')) + 1 LOOP
    13           startpos := INSTR(' ' || a, ' ', 1, i);
    14           endpos := INSTR(a || ' ', ' ', 1, i);
    15           word := SUBSTR(a, startpos, endpos - startpos);
    16
    17           IF ' ' || b || ' ' NOT LIKE '% ' || word || ' %' THEN
    18              RETURN 'N';
    19           END IF;
    20        END LOOP;
    21
    22        RETURN 'Y';
    23     END;
    24  BEGIN
    25     DBMS_OUTPUT.put_line(strInStr('BANQUE SAFRA SA', 'BANQUE JACOB SAFRA (SUISSE) SA'));
    26     DBMS_OUTPUT.put_line(strInStr('SAFRA BANQUE SA', 'BANQUE JACOB SAFRA (SUISSE) SA'));
    27     DBMS_OUTPUT.put_line(strInStr('BANQUE SAFRA FRANCE', 'BANQUE JACOB SAFRA (SUISSE) SA'));
    28     DBMS_OUTPUT.put_line(strInStr('QUE SAFRA SA', 'BANQUE JACOB SAFRA (SUISSE) SA'));
    29  END;
    30  /
    Y
    Y
    N
    N

  • Need help with an analytic function I think

    I have a table as such:
    BID, POSITIONDATE
    1 3/10/2009
    1 3/11/2009
    1 3/12/2009
    1 3/13/2009
    1 3/13/2009
    1 3/13/2009
    1 3/14/2009
    I need to select a count(*) from this table for EACH day in MARCH, but the table is missing the days of 3/1 - 3/9
    I need my result set to be:
    BID, POSITIONDATE, COUNT(*)
    1 3/1/2009 0
    1 3/2/2009 0
    1 3/3/2009 0
    1 3/10/2009 1
    1 3/11/2009 1
    1 3/12/2009 1
    1 3/13/2009 3
    1 3/14/2009 1
    I thought LAG would do it but I cannot figure out how to get it to "make up the dates of 3/1-3/9 since those dates aren't actually in the table)
    I also tried creating a "FAKE" table (T1) with the dates of 3/1 -> 3/31 and outer joining to it, but that didn't seem to work either.
    Any tips/suggestions??
    Chris

    with t1
    as
    select to_date('03/01/2009','MM/DD/YYYY')-1 + level as Date1
    from dual
    where (to_date('03/01/2009','MM/DD/YYYY')-1+level) <= last_day(to_date('03/01/2009','MM/DD/YYYY'))
    connect by level<=31
    select * from t1
    DATE1
    3/1/2009     
    3/2/2009     
    3/3/2009     
    3/4/2009     
    3/5/2009     
    3/6/2009     
    3/7/2009     
    3/8/2009     
    3/9/2009     
    3/10/2009     
    3/11/2009     
    3/12/2009     
    3/13/2009     
    3/14/2009     
    3/15/2009     
    3/16/2009     
    3/17/2009     
    3/18/2009     
    3/19/2009     
    3/20/2009     
    3/21/2009     
    3/22/2009     
    3/23/2009     
    3/24/2009     
    3/25/2009     
    3/26/2009     
    3/27/2009     
    3/28/2009     
    3/29/2009     
    3/30/2009     
    3/31/2009     
    31 Rows Selected
    with t1
    as
    select to_date('02/01/2009','MM/DD/YYYY')-1 + level as Date1
    from dual
    where (to_date('02/01/2009','MM/DD/YYYY')-1+level) <= last_day(to_date('02/01/2009','MM/DD/YYYY'))
    connect by level<=31
    select * from t1
    DATE1
    2/1/2009     
    2/2/2009     
    2/3/2009     
    2/4/2009     
    2/5/2009     
    2/6/2009     
    2/7/2009     
    2/8/2009     
    2/9/2009     
    2/10/2009     
    2/11/2009     
    2/12/2009     
    2/13/2009     
    2/14/2009     
    2/15/2009     
    2/16/2009     
    2/17/2009     
    2/18/2009     
    2/19/2009     
    2/20/2009     
    2/21/2009     
    2/22/2009     
    2/23/2009     
    2/24/2009     
    2/25/2009     
    2/26/2009     
    2/27/2009     
    2/28/2009     
    28 Rows Selected
    I probably should change the variable to MM/YYYY and leave out day I guess, because if they put a day larger than 1, then I would end up with less than a full month.

  • Need help with "ORA-00902: invalid datatype"  while creating a view

    I am using Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options.....
    when I try ti create a view, I am getting ORA-00902 error.
    SQL> create view sales_view as
    2 select *
    3 from table(OLAP_TABLE('global DURATION session',
    4 'sales_type_table',
    5 '',
    6 'DIMENSION time_id FROM time
    7 DIMENSION channel_id FROM channel
    8 DIMENSION product_id FROM product
    9 DIMENSION customer_id FROM customer
    10 MEASURE sales FROM sales
    11 MEASURE units FROM units
    12 MEASURE extended_cost FROM extended_cost
    13 MEASURE forecast_sales FROM fcast_sales
    14 ROW2CELL olap_calc'));
    create view sales_view as
    ERROR at line 1:
    ORA-00902: invalid datatype
    ORA-06512: at "SYS.OLAPIMPL_T", line 23
    ORA-06512: at "SYS.OLAPIMPL_T", line 17
    ORA-06512: at line 4
    I am new to Oracle.... using document "40261_leveragingtools.pdf" as a guide against a cube created using "Global_AWM10g_Handson.doc".
    AWM displays data from cube without a problem.
    I would welcome any assistance.

    Can you provide the definition of sales_type_table? Also, Are all of the dimensions you have created of type TEXT?
    Swapan.

  • Need help with oscillating grow function in effects

    I am using the grow effect on a mouse over instead of a
    click. I used the same code that was used in the example
    distributed with the Spry 1.6 release. In the example it used an
    onmouseclick. I am using an onmouseover and onmouseout to grow and
    shrink the images.
    At first I used one function and just called the same
    function for onmouseover and onmouseout and specified the toggle
    option. The problem with this, is that the image can get "stuck"
    into the reverse state, and as you mouseover it shinks and
    onmouseout it grows.
    So I used two different functions for onmouseover and
    onmouseout. One grows and the other shrinks. This works ok if you
    use the toggle option set to true on at least one of the two
    functions. The problem is that you can still get one of the images
    stuck in the wrong size and it toggles the wrong way. If you set
    them both to false, the image oscillates between the two states as
    you mouseout. I assumed that setting toggle to false for both the
    grow and shrink would avoid images stuck in the wrong direction,
    but it is causing this strange oscillation. Am I using this option
    wrong?
    Thank you in advance for any clues you can provide....
    Here are my code snippets:
    on the Page:
    <div class="thumbnails"><div><img height="24"
    alt="your friend's icon" onmouseover="toggleThumbU(this)"
    onmouseout="toggleThumbD(this)" id="img${status.index}"
    style="padding:2px;" src="${contact.imageUrl}"
    /></div></div>
    In my Javascript code:
    var effects = [];
    function toggleThumbU(targetElement)
    if (typeof effects[targetElement.id] == 'undefined')
    effects[targetElement.id] = new
    Spry.Effect.Grow(targetElement, {duration: 200, from: '100%', to:
    '340%', toggle: false, setup:setzindex, finish:resetzindex});
    effects[targetElement.id].start();
    function toggleThumbD(targetElement)
    if (typeof effects[targetElement.id] == 'undefined')
    effects[targetElement.id] = new
    Spry.Effect.Grow(targetElement, {duration: 200, from: '340%', to:
    '100%', toggle: false, setup:setzindex, finish:resetzindex});
    effects[targetElement.id].start();

    I have the same issue, anyone know a way around this? I have
    a image i wish to grow onmouse over, then using the same behavior
    but shrink with mouseout, it gets some wierd issues, like if you
    put the mouse in between it oscillates back and forth, its not
    smooth.

  • Need help with User Response function

    I have the following formula:
    =UserResponse(DataProvider([Segment Name]);"Effective Date")
    The user response is a date which is displayed like this:
    M/dd/yyyy h:mm:ss a
    I would like to display the date as Mmm-dd-yyyy with no time at the end. 
    When I tried this formula:
    =FormatDate(UserResponse(DataProvider([Segment Name]);"Effective Date");"Mmm-dd-yyyy")
    I get the "invalid data type" message.  I think I understand why (UserResponse isn't a date function), but I'm unable to come up with another formula that will do what I require.
    When I tried this formula:
    =ToDate((UserResponse(DataProvider([Segment Name]);"Effective Date"));"Mmm-dd-yyyy")
    I get #ERROR in the cell. 
    I also tried formatting the cell to no effect.

    Hi Ellen,
    You have to use the format that the user is inputing in, and then format it as you would like it
    so this should work.
    FormatDate(ToDate((UserResponse(DataProvider(Segment Name);"Effective Date"));"M/dd/yyyy h:mm:ss a");"Mmm-dd-yyyy")
    Regards
    Alan

  • Need help with ORA-00936: missing expression

    11.2.0.3
    desc killsessionlog
    Name                                                  Null?    Type
    KILLTIME                                              NOT NULL DATE
    USERNAME                                              NOT NULL VARCHAR2(30)
    SID                                                   NOT NULL NUMBER
    SERIAL#                                               NOT NULL NUMBER
    CTIME                                                 NOT NULL NUMBER
    MACHINE                                                        VARCHAR2(64)
    TERMINAL                                                       VARCHAR2(30)
    PROGRAM                                                        VARCHAR2(48)
    ACTION                                                         VARCHAR2(64)
    MODULE                                                         VARCHAR2(64)want to test the code to kill the blocker
    SQL> create or replace procedure killblocker
      2  is
      3  stmt varchar2(1000);
      4  cursor c1 is
      5  select  s1.SQL_EXEC_START+l1.ctime killtime, s1.username,s1.sid,s1.serial#,l1.ctime ,s1.machine
    ,s1.TERMINAL, s1.PROGRAM,s1.ACTION,s1.MODULE
      6      from v$lock l1, v$session s1, v$lock l2, v$session s2
      7      where s1.sid=l1.sid and s2.sid=l2.sid
      8      and l1.BLOCK=1 and l2.request > 0
      9      and l1.id1 = l2.id1
    10      and l2.id2 = l2.id2
    11      and l1.ctime >0;
    12  begin
    13  for i in c1 loop
    14  EXECUTE IMMEDIATE 'ALTER SYSTEM KILL SESSION ''' || i.sid || ',' || i.serial# || '''';
    15  stmt := 'insert into killsessionlog values ('||i.killtime||','|| i.username||','||i.sid||','||i
    .serial#||','||i.ctime||','||i.machine||','||i.TERMINAL||','|| i.PROGRAM||','||i.ACTION||','||i.MODU
    LE||')'
    16  ;
    17  EXECUTE IMMEDIATE stmt;
    18  dbms_output.put_line('SID '||i.sid ||' with serial# '||i.serial#||' was killed');
    19    END LOOP;
    20  END;
    21  /
    Procedure created.created the blocker and blocked sessions.
    SQL> exec killblocker
    BEGIN killblocker; END;
    ERROR at line 1:
    ORA-00936: missing expression
    ORA-06512: at "NN.KILLBLOCKER", line 17
    ORA-06512: at line 1the first EXECUTE IMMEDIATE for killing the session worked, but the 2nd EXECUTE IMMEDIATE for the insert failed as above. Not able to figure the problem.
    TIA

    SQL> create or replace procedure killblocker
      2  is
      3  stmt varchar2(1000);
      4  cursor c1 is
      5  select  s1.SQL_EXEC_START+l1.ctime killtime, s1.username,s1.sid,s1.serial#,l1.ctime ,s1.machine
    ,s1.TERMINAL, s1.PROGRAM,s1.ACTION,s1.MODULE
      6      from v$lock l1, v$session s1, v$lock l2, v$session s2
      7      where s1.sid=l1.sid and s2.sid=l2.sid
      8      and l1.BLOCK=1 and l2.request > 0
      9      and l1.id1 = l2.id1
    10      and l2.id2 = l2.id2
    11      and l1.ctime >0;
    12  begin
    13  for i in c1 loop
    14  EXECUTE IMMEDIATE 'ALTER SYSTEM KILL SESSION ''' || i.sid || ',' || i.serial# || '''';
    15  stmt := 'insert into killsessionlog values (:killtime, :username, :sid, :serial#, :ctime, :machine, :TERMINAL, :PROGRAM, :ACTION, :MODULE)'
    16  ;
    17  EXECUTE IMMEDIATE stmt using i.killtime, i.username, i.sid, i.serial#, i.ctime, i.machine, i.TERMINAL, i.PROGRAM, i.ACTION, i.MODULE;
    18  dbms_output.put_line('SID '||i.sid ||' with serial# '||i.serial#||' was killed');
    19    END LOOP;
    20  END;
    21  / Gerard

  • I need help with ORA-07445

    Hi all!
    I was executing every day one workflow which contains some mappings. This worked fine but one day it started crashing. The error I get is:
    ERROR ORA-03113: end-of-file on communication channel
    We traced the session and we saw that it also produced this error:
    ORA-07445: exception encountered: core dump [slmecpy()+96] [SIGSEGV] [Address not mapped to object] [0x000000000] [] []
    Does anyone know what can be happening??
    Thanks in advance
    Edited by: Julius84 on 18-may-2010 3:55

    Thanks, but I had tried doing it. I had regenerated the mapping and it doesn´t work.
    I have read in internet that it's a bug, but i don't understand: i haven't changed anything.
    Thanks again

  • Need Help with Connect by  function oracle 10g

    Hi all.
    I've a recursive table containing follow data:
    ID ParentID PARENT_NAME PAGE_NAME
    1363416     1     Central de Relacionamento     Back Office
    1363416     1     Central de Relacionamento     Campanhas da Central de Relacionamento
    1363416     1     Central de Relacionamento     Cartas de Cobrança
    1363416     1     Central de Relacionamento     Cartão Pernambucanas
    1363416     1     Central de Relacionamento     Comunicados
    1363416     1     Central de Relacionamento     Localização
    1363416     1     Central de Relacionamento     Lojas
    1363416     1     Central de Relacionamento     Monitoria Qualidade
    1363416     1     Central de Relacionamento     PDD - Provisão para Devedores Duvidosos
    1363416     1     Central de Relacionamento     Pessoas
    1363416     1     Central de Relacionamento     Tabela de desconto para repactuação
    1363416     1     Central de Relacionamento     Telefones Úteis
    1363416     1     Central de Relacionamento     Voip
    1363416     1     Central de Relacionamento     Últimas Notícias
    2554644     1363416     Telefones Úteis     Escritorios de Cobrança
    2554644     1363416     Telefones Úteis     Ramais dos Supervisores
    2554644     1363416     Telefones Úteis     Telefone das Seguradoras
    2554661     1363416     Monitoria Qualidade     Check list
    2554661     1363416     Monitoria Qualidade     Circularização
    2554661     1363416     Monitoria Qualidade     Destaques em Qualidade
    2554661     1363416     Monitoria Qualidade     Dicas
    2554661     1363416     Monitoria Qualidade     Elogios
    2554661     1363416     Monitoria Qualidade     Estratégia da Monitoria
    2554661     1363416     Monitoria Qualidade     Etapas do Atendimento
    2554661     1363416     Monitoria Qualidade     O presente
    2554661     1363416     Monitoria Qualidade     Pontuação
    2554661     1363416     Monitoria Qualidade     Premiação
    2554661     1363416     Monitoria Qualidade     Quadro de Reclamações
    2554661     1363416     Monitoria Qualidade     Reciclagem 2008
    2554661     1363416     Monitoria Qualidade     Sugestão de frases para atendimento
    2920342     18955293     Aniversariantes do Mês     Escala de festa de aniversariantes do mês
    2925074     18955293     Treinamento Inicial     Projeto Tutor
    2925111     68690269     Cartão Pernambucanas      Anuidade
    2925111     68690269     Cartão Pernambucanas      Atendimento ao Cliente
    2925111     68690269     Cartão Pernambucanas      Bloqueio do Cartão
    2925111     68690269     Cartão Pernambucanas      Limite do cliente e Composição do Minimo
    2925111     68690269     Cartão Pernambucanas      Pagamentos
    2925111     68690269     Cartão Pernambucanas      Produtos Financeiros
    2925111     68690269     Cartão Pernambucanas      Repactuação
    2925111     68690269     Cartão Pernambucanas Tarifas e Taxas
    2927101     2925111     Pagamentos     Dúvidas sobre pagamento não baixado
    5429937     1363416     Cartas de Cobrança     Modelo de carta que pode ser utilizada pela loja
    5429937     1363416     Cartas de Cobrança     Regua de Cobrança CRP
    5431168     17275745     Cartas de Cobrança - 10 dias em atraso     Cliente Alto ticket - 10 dias
    5431168     17275745     Cartas de Cobrança - 10 dias em atraso     Cliente Antigo - 10 dias
    5431168     17275745     Cartas de Cobrança - 10 dias em atraso     Cliente Novo com PPA
    5431168     17275745     Cartas de Cobrança - 10 dias em atraso     Cliente Padrão - 10 dias
    5431251     17275745     Carta de Cobrança - 50 dias em atraso     Cliente Alto ticket- 50 dias
    5431251     17275745     Carta de Cobrança - 50 dias em atraso     Cliente Antigo - 50 dias
    5431251     17275745     Carta de Cobrança - 50 dias em atraso     Cliente Padrão- 50 dias
    5431251     17275745     Carta de Cobrança - 50 dias em atraso     Cliente novo com PPA - 50 dias
    5431521     17275745     Carta de Cobrança - 75 dias     Cliente Alto ticket -75 dias
    5431521     17275745     Carta de Cobrança - 75 dias     Cliente Antigo - 75 dias
    5431521     17275745     Carta de Cobrança - 75 dias     Cliente Padrão - 75 dias
    5431521     17275745     Carta de Cobrança - 75 dias     Cliente novo com PPA - 75 dias
    5431575     17275745     Carta de Cobrança - 90 dias     Cliente Alto Ticket - 90 dias
    5431575     17275745     Carta de Cobrança - 90 dias     Cliente Antigo - 90 dias
    5431575     17275745     Carta de Cobrança - 90 dias     Cliente Padrão - 90 dias
    5431575     17275745     Carta de Cobrança - 90 dias     Cliente novo com PPA - 90 dias
    9484330     1363416     Últimas Notícias     Ura Ativa
    11350383     1363416     Campanhas da Central de Relacionamento     Campanha de Incentivo 2009
    11350383     1363416     Campanhas da Central de Relacionamento     Result campanha de arrecadação Brinquedos
    17275745     5429937     Regua de Cobrança CRP     Carta de Cobrança - 50 dias em atraso
    17275745     5429937     Regua de Cobrança CRP     Carta de Cobrança - 75 dias
    17275745     5429937     Regua de Cobrança CRP     Carta de Cobrança - 90 dias
    17275745     5429937     Regua de Cobrança CRP     Carta de cobrança de 90 a 120 dias - Reforço
    17275745     5429937     Regua de Cobrança CRP     Cartas de Cobrança - 10 dias em atraso
    18955293     1363416     Pessoas     Aniversariantes do Mês
    18955293     1363416     Pessoas     Critérios para participação no processo
    18955293     1363416     Pessoas     Serviço de fonoaudiologia
    18955293     1363416     Pessoas     Treinamento Inicial
    18955293     1363416     Pessoas     Troca de turno
    19652362     1363416     Comunicados     AcordoReacordo
    19652362     1363416     Comunicados     Assessoria Externa
    19652362     1363416     Comunicados     Atendimento
    19652362     1363416     Comunicados     Etapas do atendimento
    19652362     1363416     Comunicados     FaturasBoletos
    19652362     1363416     Comunicados     Mastercard
    19652362     1363416     Comunicados     Procedimentos Internos da Central de Relacionamento
    19652362     1363416     Comunicados     Produtos Financeiros
    19652362     1363416     Comunicados     Recado
    19652362     1363416     Comunicados     Rediscagem
    19652362     1363416     Comunicados     Result
    19652362     1363416     Comunicados     Rotativo
    19652362     1363416     Comunicados     Todos os Comunicados
    19657794     19652362     AcordoReacordo     036 - Procedimentos para acordos - repactuação
    19657881     19652362     Assessoria Externa     009 - Cobrança Externa
    19657881     19652362     Assessoria Externa     025 - Bloqueio telefones – Envio Escritórios
    19657881     19652362 Assessoria Externa     CI 01409 - Opção de envio de Boleto Bradesco pelos Escrit
    19658018     19652362     Etapas do atendimento     01407 - Etapas de atendimento - fechamento
    19658018     19652362     Etapas do atendimento     01707 - Etapas do Atendimento- Negociação
    19658018     19652362     Etapas do atendimento     04706 - Etapas de atendimento - Identificação
    19658018     19652362     Etapas do atendimento     04806 - Etapas de atendimento - Fundamentação
    19658018     19652362     Etapas do atendimento     05906 - Argumentação utilizada para pag da dívida
    19658123     19652362     Atendimento     00408 - Consulta contrato - Artigos
    19658123     19652362     Atendimento     00709 - Abordagem de Cliente em Dia
    19658123     19652362     Atendimento     00907 - Informações sobre limite de crédito - análise.
    19658123     19652362     Atendimento     00908 - Cartas de Cobrança enviada com menos de 10 dias
    19658123     19652362     Atendimento     01107- Cobrança de Funcionários
    19658123     19652362     Atendimento     01306 - Procedimento para cliente falecido
    19658123     19652362     Atendimento     01508 - Script de encerramento do atendimento
    19658123     19652362     Atendimento     01806 - Reclamações e Faltas Graves
    19658123     19652362     Atendimento     02207 - Erro no Tempo de atraso do Cartão Pernambucanas Ma1
    19658123     19652362     Atendimento     02207 - Erro no Tempo de atraso do Cartão Pernambucanas Mas
    19658123     19652362     Atendimento     02606 - Fluxo de reclamações
    19658123     19652362     Atendimento     03506 - Transferência para CCPE
    19658123     19652362     Atendimento     03707 - Plano de crédito - 100 dias para pagar
    19658123     19652362     Atendimento     03806 - Agendamento no prazo de bloqueio
    19658123     19652362     Atendimento     03906 - Informações sobre Ação Judicial
    19658123     19652362     Atendimento     06206 - Acionamento de cadastro - Blended
    19658123     19652362     Atendimento     06306 - Espera de cliente em linha
    19658123     19652362     Atendimento     CI 00409 - Fluxo de depósito identificado
    19658123     19652362     Atendimento     CI 00809 - Notificação Extrajudicial
    19658123     19652362     Atendimento     CI 02708 - Novas regras para SACs (CCPE)
    19658123     19652362     Atendimento     Procedimento para alteração desbloqueio e inclusão de tel
    19658123     19652362     Atendimento     Queda de ligaçãoTel mudo
    19658192     19652362     FaturasBoletos     CI 00609 - Boleto Bancário
    19658192     19652362     FaturasBoletos     CI 01109 - Projeto Boleto
    19658253     19652362     Mastercard     00309 - Cobrança do cartão Pernambucanas Mastercard
    19658253     19652362     Mastercard     00807 -Telas para consulta do cartão Pernambucanas masterca
    19658253     19652362     Mastercard     01808 - Problemas Mastercard
    19658253     19652362     Mastercard     02808 - Pagamento do cartão Mastercard enquadrado
    19658253     19652362     Mastercard     03607- Atraso na Baixa de pagamento Mastercard
    19658253     19652362     Mastercard     05407 -Piloto Cartão de Crédito
    19658308     19652362     Procedimentos Internos da Central de Relacionamento     006 - 08 Alteração conduta
    19658308     19652362     Procedimentos Internos da Central de Relacionamento     01906 - Contato com terceiros
    19658308     19652362     Procedimentos Internos da Central de Relacionamento     01907 - Novos números 0800
    19658308     19652362     Procedimentos Internos da Central de Relacionamento     022-08 - Proc concessão de des
    19658308     19652362     Procedimentos Internos da Central de Relacionamento     02507 - Políticas de cobrança
    19658308     19652362     Procedimentos Internos da Central de Relacionamento     03206 - Segmen de cobrança
    19658308     19652362     Procedimentos Internos da Central de Relacionamento     06407 - GAB -Gestão das
    19658308     19652362     Procedimentos Internos da Central de Relacionamento     CI 00105 - Orientação do uso
    19658308     19652362     Procedimentos Internos da Central de Relacionamento     CI 00909 - Saldo Residual no
    19658308     19652362     Procedimentos Internos da Central de Relacionamento     CI 01108 - Alteração da taxa de
    19658308     19652362     Procedimentos Internos da Central de Relacionamento     CI 01509 - Mensagem (Ura
    19658308     19652362     Procedimentos Internos da Central de Relacionamento     CI 01609 - Envio de SMS
    19658308     19652362     Procedimentos Internos da Central de Relacionamento     CI 01709 - Procedimento para
    19658308     19652362     Procedimentos Internos da Central de Relacionamento     CI 02308 - Cobrança G30
    19658308     19652362     Procedimentos Internos da Central de Relacionamento     CI 02408 - Tarifa de Cobrança
    19658308     19652362     Procedimentos Internos da Central de Relacionamento     CI 02508 - URA ativa
    19658308     19652362     Procedimentos Internos da Central de Relacionamento     Custo Efetivo Total - CET
    19658364     19652362     Produtos Financeiros     012 - Informações sobre seguro
    19658364     19652362     Produtos Financeiros     01208 - Seguro de Acidentes Pessoais
    19658364     19652362     Produtos Financeiros     01807 - Cobrança de Seguro
    19658364     19652362     Produtos Financeiros     02707 - Procedimentos para clientes que possuem seguro
    19658364     19652362     Produtos Financeiros     028 - Roteiro cobrança
    19658364     19652362     Produtos Financeiros     03107 - Garantia estendida por telemarketing
    19658364     19652362     Produtos Financeiros     060 - Plano odontológico (OdontoPrev)
    19658364     19652362     Produtos Financeiros     CI 01608 - Auto Crédito Fácil Pernambucanas
    19658428     19652362     Recado     CI 00707- Abordagem no telefone de referência
    19658428     19652362     Recado     CI 01406 - Recados (complemento V)
    19658428     19652362     Recado     CI 02008 - Recados acima de 90 em atraso
    19658428     19652362     Recado     CI 04006 - Recados em caixa postal - Inclusão de telefones
    19658461     19652362     Rediscagem     CI 00106 - Rediscagem
    19658461     19652362     Rediscagem     CI 02306 - Rediscagem Estado do Mato Grosso
    19658502     19652362     Result     CI 00108 - Cobrança Suspensa – Alteração de result
    19658502     19652362     Result     CI 00208 - Registro das negociações
    19658502     19652362     Result     CI 00607 - Adequação de result (sem contato com o cliente
    19658502     19652362     Result     CI 01307 - Novo Detalhe (Hospitalizado_Detido_Incapacitado)
    19658502     19652362     Result     CI 03306 - Result - Acima de 3 Recados
    19658502     19652362     Result     CI 04506 - Rotinas Internas - Limpeza da base
    19658502     19652362     Result     CI 05206 - Circularização – Novo result
    19658502     19652362 Result     CI 05806 - Result Chamada Consulta
    19658729     19652362     Rotativo     CI 00406 - Rotativo e parcelado
    19658729     19652362     Rotativo     CI 00508 - Cobrança do Rotativo - Consulta extrato
    19658729     19652362     Rotativo     CI 00606 - Cobrança Saldo Rotativo
    19658729     19652362     Rotativo     CI 02607 - Despesa financeira indevida - rotativo
    19658729     19652362     Rotativo     CI00308 - Alteração na data de corte do Rotativo (Dezembro
    19786821     18955293     Serviço de fonoaudiologia     Dia Mundial da Voz
    19786821     18955293     Serviço de fonoaudiologia     Uso consciente do headset
    43616876     2554661     Elogios     Alexandre Porfírio da Costa
    43616876     2554661     Elogios     Edson Oliveira Carvalho
    43616876     2554661     Elogios     Ludmila Balbino
    43616876     2554661     Elogios     Maria de Nazaré Castro
    49660886     18955293     Critérios para participação no processo     Processo Seletivo Interno - (Blended)
    63947787     11350383     Campanha de Incentivo 2009     Ganhadores de Junho - 07 a 60 Manhã
    63947787     11350383     Campanha de Incentivo 2009     Ganhadores de Junho - 07 a 60 Tarde
    63947787     11350383     Campanha de Incentivo 2009     Ganhadores de Junho - Blended Manhã
    63947787     11350383     Campanha de Incentivo 2009     Ganhadores de Junho - Blended Tarde
    68690269     1363416     Cartão Pernambucanas     Cartão Pernambucanas Mastercard
    68690269     1363416     Cartão Pernambucanas     Plano Parcelado
    68690269     1363416     Cartão Pernambucanas     Plano Rotativo
    68692287     68690269     Plano Rotativo     Extrato Rotativo
    68692287     68690269     Plano Rotativo     Tabela de vencimento e data de corte
    68692287     68690269     Plano Rotativo     Taxas do Rotativo
    69758205     1363416     Localização     Procedimentos
    69758205     1363416     Localização     Result's e Gab
    69758205     1363416     Localização     Sites para consulta de telefone
    72482521     1363416     Lojas     Abertura de Lojas - Feriado 02.11.09
    72482521     1363416     Lojas     Abertura de Lojas 01.11.2009

    ok and what do you want us to do?
    Even before you complete your questin please make sure we have
    create/inserts
    actual o/p expected o/p
    Thanks,
    Bhushan

  • Need help with a sql function...

    Hi.
    I have a year '2004' stored in a variable and I want to be able to add the rest of the date before this. How would I go about adding
    01-APR to the front of this year and then put it in a variable...
    thanks in advance.

    var number := 2004;
    dat date := to_date('01-APR-'||var, 'DD-MON-YYYY');

Maybe you are looking for

  • Have a problem in using Interpretation algorithm 15 in EBS configurations

    Experts, I have configured Interpretation algorithm 15 in EBS settings for my client. And in that process, the system picks the reference field data and updates the same in Assignment field. But the data which is getting updated in assignment field i

  • How to include an ASP page from JSP?

    I had a working ASP page to be repeated on each page of the web site as an navigation bar updated from a single SiteMap.xml. Anyone knew how to include the ASP page from the JSP app? Thanks

  • Change data transfer rate ?

    Hi there, I have installed a new WD 1tb internal hard drive in my late 2006 iMac . I've managed to get over a problem I posted about earlier namely getting the Snow Leopard disc out and using my original Tiger 10.4 discs. Trouble now is despite follo

  • BDC session : Error records

    I used a Bapi function module. In that i handled the error message and display as output in alv format but they changed the requirement like it has to create a session with those error recrods. is it possible? Please help Thank you

  • Changing a BOM Item several times

    Hi, Programmatically, I want to update a BOM several times. I want to update its valid_from and valid_to date several times.For this, I am using CSAP_MAT_BOM_MAINTAIN function module.The problem is I am only able to change the valid_from / valid_to d