ORDER BY issue in Oracle

Hello, all,.

I have a query that has several columns and two trade UNIONS.

In the end, if I use lname fname ASC ASC ORDERBY it works fine.

If, however, I use ORDER BY lower (lname) CSA, lower (fname) CSA it breaks.

I tried ORDER BY nlssort (lname) CSA, nlssort (fname) CSA and that crashes too.

This is the name and first name columns.  English.  The character only non-lettre which should be in each column is an apostrophe (for names like O'Brien, etc..)  Even in this case, the nlssort should work.

But in all cases where it breaks, I get a "ORA-01785: ORDER BY point must include the number of an expression in the SELECT list" error message.

I am trying to use lower() or nlssort() this is because some names were not registered in own case, and I want to sort alphabetically, not in order alphabetical superior then in alphabetical order below (as seems to be the default Oracle.)

Default:     Andy                    Needed:  Andy
             Betty                            Betty
             David                            charlie
             charlie                          David
             donald                           donald

How can I get what I want, if lower() and nlssort() do not work?

V/r,

^_^

How about you add to your SELECT statement:

Lower (lname) LIKE lname_lcase, lower (fname) AS fname_lcase

then change your ORDER BY for:

ORDER BY lname_lcase ASC, ASC fname_lcase

I'm not familiar with the Oracle's SQL language, but the error seems to indicate that you cannot sort on the result of a function inline within the ORDER BY statement.

-Carl V.

Tags: ColdFusion

Similar Questions

  • Order By issue

    Hi all

    I try to come with a request for a special order of rules, but not able to. Below is the create table and insert statements. I want a query with the results must be classified as below

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    PL/SQL Release 11.2.0.3.0 - Production

    RULES FOR ORDER OF

    ROUND OF COMMENTS REQUESTED
    1 1/8/2013-12:32:57 stuff
    1 1/8/2013-13:32:57 stuff
    1 1/8/2013 18:32:57 round 1
    2 1/8/2013 15:38:55 round 1
    2 1/8/2013-11:32:57 round 2
    2 1/8/2013 13:32:57 round 2
    2 1/8/2013 15:32:57 round 2
    2 1/8/2013 12:32:57 round 3
    2 1/8/2013-13:32:57 round 3
    2 1/8/2013-14:32:57 round 3
    2 1/8/2013-11:32:51 stuff
    2 1/8/2013-12:32:51 stuff
    2 1/8/2013 13:32:57 round-grey 1
    2 1/8/2013-14:32:58 stuff
    2 1/8/2013-15:32:58 stuff


    (1) 1 set of records - all records where round 1 = controlled requested
    (2) 2nd set of records - all records where Tower = 2 and comments = 'round 1' sorted by request.
    (3) 3rd set of records - all records where Tower = 2 and comments = "Round 2" ordered by requested
    (4) 4th Recordset - all records where Tower = 2 and comments = "round 3" ordered by requested ".
    (5) 5th Recordset - all other remaining records must be classified asked

    CREATE TABLE LEAVEREQUEST
    (
    NUMBER (12) ROUND.
    DATE REQUESTED,
    REMARKS VARCHAR2 (100)
    )
    /

    Insert into LEAVEREQUEST values (TO_DATE 2, (8 January 2013 15:38:55 ',' DD/MM/YYYY HH24:MI:SS'), 'Round 1');
    Insert into LEAVEREQUEST Values (2, TO_DATE (January 8, 2013 15:32:58 ',' DD/MM/YYYY HH24:MI:SS'), 'stuff');
    Insert into LEAVEREQUEST Values (1, TO_DATE (January 8, 2013 18:32:57 ',' DD/MM/YYYY HH24:MI:SS'), 'around 1');
    Insert into LEAVEREQUEST Values (2, TO_DATE (January 8, 2013 11:32:57 ',' DD/MM/YYYY HH24:MI:SS'), "around 2");
    Insert into LEAVEREQUEST Values (1, TO_DATE (January 8, 2013 13:32:57 ',' DD/MM/YYYY HH24:MI:SS'), 'stuff');
    Insert into LEAVEREQUEST Values (2, TO_DATE (January 8, 2013 12:32:57 ',' DD/MM/YYYY HH24:MI:SS'), "around 3");
    Insert into LEAVEREQUEST Values (2, TO_DATE (January 8, 2013 14:32:58 ',' DD/MM/YYYY HH24:MI:SS'), 'stuff');
    Insert into LEAVEREQUEST Values (2, TO_DATE (January 8, 2013 13:32:57 ',' DD/MM/YYYY HH24:MI:SS'), "around 2");
    Insert into LEAVEREQUEST Values (1, TO_DATE (January 8, 2013 12:32:57 ',' DD/MM/YYYY HH24:MI:SS'), 'stuff');
    Insert into LEAVEREQUEST Values (2, TO_DATE (January 8, 2013 15:32:57 ',' DD/MM/YYYY HH24:MI:SS'), "around 2");
    Insert into LEAVEREQUEST Values (2, TO_DATE (January 8, 2013 14:32:57 ',' DD/MM/YYYY HH24:MI:SS'), "around 3");
    Insert into LEAVEREQUEST Values (2, TO_DATE (January 8, 2013 13:32:57 ',' DD/MM/YYYY HH24:MI:SS'), "around 3");
    Insert into LEAVEREQUEST Values (2, TO_DATE (January 8, 2013 11:32:51 ',' DD/MM/YYYY HH24:MI:SS'), 'stuff');
    Insert into LEAVEREQUEST Values (2, TO_DATE (January 8, 2013 13:32:57 ',' DD/MM/YYYY HH24:MI:SS'), 'round-grey 1');
    Insert into LEAVEREQUEST Values (2, TO_DATE (January 8, 2013 12:32:51 ',' DD/MM/YYYY HH24:MI:SS'), 'stuff');

    Published by: 923063 on January 9, 2013 12:03

    Published by: 923063 on January 9, 2013 12:10

    Hello

    923063 wrote:
    Frank,

    The first order by works perfectly well, thank you very much for this.

    You mean that it works very well for the sample data that you posted, but you are concerned about other data; Isn't it?
    If so, post a few new data examples where it does what you want, and the good results you want.

    Actually the column remarks can have values ranging from 'Round 1'... until ' round 99 ", here, I gave her only sample data, sorry for not mentioning this earlier."
    Can you let me know how to handle this?

    It depends on how you want to manage. The query I posted above handles "Round 4' and"99 round;" It treats the same thing as "a few things". I guess that this is not what you want, but you never said what you want.

    Do you want all rows with the round = 2 and comments = "Round X" (where x is an unsigned integer, not necessarily a 1-digit) to be sorted in order by the numerical value of x? If so, here is one way:

    ORDER BY  CASE
               WHEN  round  = 1          THEN -1
               WHEN  NVL (round, 3) != 2     THEN NULL
               WHEN  NVL ( RTRIM (remarks, ' 0123456789')
                             , '?'
                   ) != 'Round'     THEN NULL
                                               ELSE TO_NUMBER (SUBSTR, remark, 6)
           END     NULLS LAST -- actually the default, but it doesn't hurt to say it
    ,            requested
    

    Again, it is always useful to post a small example data, the results you want from this data, as well as an explanation, with specific examples of why you want these results.

  • Issue of Oracle Wallet

    Good afternoon

    Well once more, they have me trying to understand certain issues more than oracle. To make a long story short, one of the servers that we have which is on a separate network, I had to create a portfolio of oracle to connect to our database on the server on an SSL port, out to our dev database. I could put in place using Portfolio Manager and connect to the database successfully.

    We are doing this is because we have some configuration DBlinks and we try to extract data from another schema. Well I had to create another portfolio of oracle on another server to go to our test database, but this time, this network has security quite tight, firewall on the switch, ACL on some other hardware.

    Initially, that we had to get one of the network guys to open the port to the database because when we realized a tnsping, we do not receive a response. After the change, we have received a satisfactory response, and I started to create the portfolio on the other. All was successful and I edit the sqlnet.ora file similar to the other server. I connect to the database with the schema owner we have a database and I execute a simple select statement to extract data from the other database using the DBlink. My problems is that I'm "" Error: ORA_28759: could not open the file "." Sqlnet.ora portfolio points correct and automatic connection is enabled.

    I wonder if there is another port or socket that the oracle portfolio or the DBlinks uses that network could possibly be blocking. We do not have DBA enough so we're stuck on trying to understand this.

    Sorry for the long post.

    Check the permissions on the directory where the wallet file is placed.

  • PLSQL-order by issue

    Hi all


    I have an interesting question with him below SELECT.

    His words by using the ORDER BY clause to sort. (do with a variable 'p_sortby'.)

    By order can be used by the position of the column, or column name (1, 2,... etc).
    Somehow, if I use the position in PL/SQL, it does not.
    So I have to use the name of the column that we cannot just simply pass a varchar2 string
    We need to use the actual column name. I noticed that it only applies to a column of type varchar2 well.
    It does not, for example, a column number.

    Can you all please advise me on this kind of question about how to solve.

    Am I to change the code because now the issue is very simplified as to what is the problem?
    Let’s say p_sortby = ‘memberCount’ in this case, I passed it as first argument in decode(),
    
    select distinct gl.group_id,
          decode('memberCount', 'name', gl.group_name_key,'description', gl.group_description_key, 'memberCount', gl.member_count) as p_sortby,                                     
                                                   gl.group_name,
                                                   gl.group_description,
                                                   gl.status_code,
                                                   gl.member_count,
                                                   (select grpp.group_name
                                                      from clm_test_relationship grel join clm_test grpp
                                                           on grel.parent_group_id =
                                                                grpp.group_id
                                                     where grel.child_group_id =
                                                              gl.group_id)
                                                             as parent_group_name,
                                                   gl.group_name_key,
                                                   gl.group_description_key
                                              from clm_test gl
                                             where gl.group_org_id = '3909'
                                               and (   gl.group_name_key like
                                                              '%' || 'GROUP' || '%'                                                
    )
    Order by 2;                                                
    
    It doesn’t work. 
    But if I pass ‘name’ as first argument in decode, it works.. That’s my original issue about why it doesn’t apply on memberCount. 
    Published by: user_7000011 on April 29, 2009 21:35

    user_7000011 wrote:
    ...
    A doubt, is - can you please exaplain me the way you do the function - you manage white first, followed small letters, capital letters on the right?
    Is he doing the same thing in my SELECT earlier had in the order by clause?

    The my_sort_key function returns a string that is twice as long as its argument. Each character c in the argument turned into a pair of 2 characters:
    (1) SUPERIOR (c)
    (2) '1 ' if c is a lowercase letter, 2' if it is not.
    Sort by a string of s differs from sorting in my_sort_key (s) only about letters.
    When you ORDER BY s, the sort order of the letters A, B, C,..., X, Y, Z, a, b, c,..., x, y, z.
    When you ORDER FROM my_sort_key (s), it is as if the sort order is a, A, b, B, c, C,..., x, X, y, Y, z, Z.
    Regarding space and other things that are not letters, they retain their same sort order relative to each other.
    Characters that normally come before 'A' or 'z' do it again.
    Characters (as ' \') than noramlly between captilal 'Z' and 'a' now small come after "z".

    It's the same thing you did before, but he does each letter, not only the first condition.
    For example, you had originally designed for 'other' (starting with a small 'a') to stand in front of "add" (which starts with a capital "A"), but you were only disticntion for a single character. So he would have ordered ' NAME: a different ' after ' NAME: Add "." ORDER BY my_sort_key (s) generates the order I want to these following 4 strings:

    another
    Add
    NAME: another
    NAME: Add
    

    In other words, when using ORDER BY my_sort_key for all strings s, t and u
    s< t="" if="" and="" only="">
    u | s< u="" ||="">

    also, I get an error message for the 'ACE SORT_COL' after decoding.

    It works fine if remove the 'sort_col '. Can you please tell me why is it so? And if I remove "as sort_col", it works very well.

    'parentGroupName', parent_group_name
    )as sort_col NULLS FIRST
    *
    Error at line 27
    ORA-00933: SQL command not properly ended
    

    My mistake. I copied the DECODE statement that you had in the SELECT view online data_set clause, where he needed an alias and I forgot to remove the alias when I copied it in an ORDER BY clause, where you cannot assign alias. I'm glad you figured out how to fix it.

    Published by: Frank Kulash, may 2, 2009 16:43

    Sorry, I'm not familiar with the TOAD, so I can't help you there.

  • ASA 9.1 issues with Oracle database

    Hello world

    Having a strange problem.  We have recently migrated to the FWSM to ASA-5585 X 9.1 2 current execution.  As we have done, we have problems from an application in the DMZ server - talking to a DMZ - B DB server.  The error we get in Oracle is ORA-12592: Bad Packet.  Read about it says it could be the network, and our DBA tell us that they have seen the error for the first time about 4 hours after our firewall migration.  Note, inspect SQL is DISABLED.  We did catch on each server and input and output interfaces, but I see nothing special.

    Anyone have any ideas?

    You have recovered the entrance and exit capture, please search for the TCP URGENT (wireshark filter flag

    TCP. Flags.URG == 1) and check if it is used by applications orable. The ASA by default clears this flag, so if your application uses this indicator (like many oracle applications), you must configure a tcp map to enable it.

    Kind regards.
    Meshaal previously

  • Issue of Oracle SQL Developer

    Hello

    The problem is that when I execute queries "heavy" through SQL Developer (v. 4.1.1.19 or back) the IDE does not meet any other action during the execution of the query (queries) (I can't cancel the task). I mean if want to connect to another diagram or choose an option from the menu of the IDE, then I have to open a second window of SQL Developer. Why is it so... Is this something I did wrong?

    After further investigation, I think that the following tips will help you to avoid situations where a request seems to have been cancelled but...

    1. He continues to run on the DB.

    2. subsequent attempts to use or to break this connection are blocked.

    3. another action (as if we were trying to close SQL Developer) causes the interface user to hang completely.

    Your first choice should be to install an Oracle client (full or instant) and configure SQL Developer in Tools > Preferences > Database > advanced to use the JDBC OCI/thick driver.

    If you do not want to install an Oracle client and prefer to use the JDBC Thin driver by default, then adding this to the file sqldeveloper.conf to your installation should help:

    AddVMOption - .net .disableOob Doracle = true

    The full dump thread you provide merely reflects the fact that the request does not actually get cancelled, the login is locked, and any other attempts to use it will hang. Anyway, as long as the user interface does not block, even if a request did not get cancelled at the DB level you should always be able to do things like...

    1. open an unshared connection (Ctrl + Shift + N) of the worksheet occupied this connection.

    2. create another name of the connection with the same details as the locked connection and use it.

    3. open Tools > Sessions of the monitor for a user with enough power and kill the hanging session using the menu popup kill .

    I hope this helps.

  • Update the issue in Oracle ADF in JDeveloper

    Hi all

    My ADF application is to have around 350 forms. Application size is 700 MB. I am facing a problem of refreshment in this application. whenever I'm changing all requests in the view of the objects or research it is not reflecting immediately. Say: I changed a single query. Then I deployed the application means the application takes the old query. to take the modified query, I rebuilt the view object. Whenever I am faced with this same problem. A few times in 2-3 deployments it is modified by itself (without the refurbishment) and work very well. Some time after 10 times as he takes the old query only. Whenever I have rebuilt in order to solve this problem. Please help me solve this problem. I use oralce 11g.

    Try to invoke any operation of cleaning before you deploy the application.

    In the main Menu-> build--> pure all

  • How to handle "file system almost fulll" issue in Oracle 11 g?

    Hi DBAs,

    I got a warning that the file system/u01/app/oracle/product is full of 99.99% and the storage disk is also full.

    What I'm supposed to do in such situation?

    DB environment:

    AWS

    version: 11.2.0.3

    storage type: EBS

    Kind regards

    Ritu

    Are you sure these log files are only a few kilobytes? .. or do you, wait...

    Run the following command to list all the *.log files modified in the last 7 days as well as to its current size in KB

    find/u01/app/oracle/product - iname "* .log" - mtime-7 - printf "%p %k\n.

    The mount point is/U01?... or is - this/u01/app/oracle/product?

    You can also use (and customize) the statement above to a different path, type of file, etc...

    HTH,

    Thierry

  • How does the order by clause in oracle 10G?

    Hi This is my table called Master.I want to order by sno. so I run the below mentioned query.

    SNO DESC STIME, ETIME CCODE ADD SID

    11 11 11 1 10 s11

    1 1 s1 09:00 12:00 10

    2 2 s2 06:00 07:00 9

    3        3      S3        9:00       23:00                         0

    SELECT * FROM MASTER BY SNO

    SNO DESC STIME, ETIME CCODE ADD SID

    1 1 s1 09:00 12:00 10

    11      11         s11        11             1              10

    2         2         s2           6:00        7:00           9

    3         3         S3           09:00     23:00                        0

    but I had bad results. Help kindly me.i can't understand how the order by clause is fetching the record.

    Hello

    Most probably because that SNO is not digital, but a tank.

    If it contains a number onlly, try

    SELECT * FROM MASTER BY TO_NUMBER (SNO);

  • Issue of Oracle SQL Developer when you use VPN (Cisco)

    All,

    We have a somewhat obscure issue with connectivity SQL Developer to our databases of the laptop has distance from the employee.

    The database is hosted inside our firewall and when the employee is trying to connect to the database that it receives the following error message:
    + "Encountered error: an error has occurred to perform the requested operation: the network adapter could not establish the connection." Code provider 20 "+"

    I think maybe I saw the error at some point as well...
    Status: Failure-Test failed: IO error: the network adapter could not establish the connection

    Note: It gets this error when you are connected to our VPN & so that it can connect through SQL * more on that same basis. It gets the error without worrying if he uses the option to enter tnsnames in SQL Developer or if it uses the "basic" connection type

    What is interesting, is that if he disconnects the VPN, will turn off its wireless connectivity, then hard-wire in our network, it can connect, without issue.

    The strangest part for me, is that although it cannot connect to the database using SQL Developer, it can connect through SQL * more. It can ping the IP source address very well, he can tnsping database without problem, it can connect through SQL * Plus, it just cannot connect through SQL * Developer. Since SQL * more and tnsping work, I know that it can access the db server through port 1521, so I don't think it's a problem of port.

    Another weird thing: when it connects to our network via a 'old' virtual private network (VPN open) there is no problem.

    His machine is Windoz 64 bit (HP laptop) and it uses the latest version of the SQL Developer and a JAVA virtual machine.

    Also interesting: I also have a Windoz 64 bit computer laptop (Lenovo) and I don't have the same issues, as it does. I am however running an older version of SQL Developer and probably an older JVM.

    I dug around a bit, looks like maybe it has something to do with IPv6? No idea what to do next, except have my network guy look at the logs of firewall to try to grasp where the connectivity has been ignored.

    Any ideas or suggestions would be appreciated. I tried all sorts of things (giving him my file tnsnames.ora and sqlnet.ora, manually editing these files, try IP addresses instead of host names, host names I tried with the doman.org extensions, etc.).

    Still, any suggestion would be appreciated and I thank very you much.

    Rich

    Published by: rmurnane on October 23, 2012 10:58

    If it is IPv6, you can try adding

    AddVMOption -Djava.net.preferIPv4Stack=true
    

    at \sqldeveloper\bin\sqldeveloper.con

  • Security issues in oracle ApEx

    Hi all

    I have created a process page and who is called by request = 'DELETE '.

    And I gave the permission for all schema userbased on roles.

    I opened a session with the user "XYZ" and this user donot do you have delete privileges. But what firebug fork and execute the command "doSubmit ('DELETE')", it removes record in my table. This user donot have privileges yet, we are able to do the delete operation.

    Pls help me on how to avoid this.

    Thank you
    Sudha

    Hi Balu,

    did you get your process with an authorization? It is not sufficient guarantee that the button Delete.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Issue of Oracle

    I need help

    The user enters the date of the schedule, for example 11/08/12
    start_time 1100 and number
    and start_ampm 'P '.
    and worked_hours as 8.5 and gets the format 8.50
    Now we automatically calculate end_time like 7:30 A (and next day)

    I need a function or sql to get the end_date

    If schedule_date is 11/08/12 and start_time is 1100 and worked_hours is 8.5 (8.50) then end_time must be P 730 same day
    Any help is appreciated

    user_anumoses wrote:
    I need help

    The user enters the date of the schedule, for example 11/08/12
    start_time 1100 and number
    and start_ampm 'P '.
    and worked_hours as 8.5 and gets the format 8.50
    Now we automatically calculate end_time like 7:30 A (and next day)

    I need a function or sql to get the end_date

    If schedule_date is 11/08/12 and start_time is 1100 and worked_hours is 8.5 (8.50) then end_time must be P 730 same day
    Any help is appreciated

    Use built in functionality to date oracle.

    Convert your input from the user (which I suppose is strings and numbers) in an oracle date. You do the math to add the hours worked and then with this date you can he split and display it as you see fit.

    for example

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select '08/11/12' as start_dt
      2                   ,'1100' as start_time
      3                   ,'P' as start_ampm
      4                   ,8.5 as hrs
      5             from dual)
      6  --
      7  select dt
      8        ,to_char(dt, 'MM/DD/RR') as end_dt
      9        ,to_char(dt, 'HHMI') as end_time
     10        ,decode(to_char(dt, 'AM'),'AM','A','P') as end_ampm
     11  from (
     12        select to_date(start_dt||start_time||start_ampm||'M', 'MM/DD/RRHHMIAM')+(hrs/24) as dt
     13        from t
     14*      )
    SQL> /
    
    DT                  END_DT   END_ E
    ------------------- -------- ---- -
    08/12/2012 07:30:00 08/12/12 0730 A
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select '08/11/12' as start_dt
      2                   ,'1100' as start_time
      3                   ,'A' as start_ampm
      4                   ,8.5 as hrs
      5             from dual)
      6  --
      7  select dt
      8        ,to_char(dt, 'MM/DD/RR') as end_dt
      9        ,to_char(dt, 'HHMI') as end_time
     10        ,decode(to_char(dt, 'AM'),'AM','A','P') as end_ampm
     11  from (
     12        select to_date(start_dt||start_time||start_ampm||'M', 'MM/DD/RRHHMIAM')+(hrs/24) as dt
     13        from t
     14*      )
    SQL> /
    
    DT                  END_DT   END_ E
    ------------------- -------- ---- -
    08/11/2012 19:30:00 08/11/12 0730 P
    

    Published by: BluShadow on 8 August 2012 15:29

  • Order in Pivot Table Oracle 11g

    Hello experts!

    I have an assignment to do. I make a PivotTable

    I have a dimension called indicators and I want to see this dimension in rows. There are 6 ranks (6 indicators) but I need to create calculated item and I want in fourth position.

    Then... My report has 3 rows and then my calculated item and then 3 rows more...


    How can I achieve this?

    Thank you!

    Hi Alex,

    Try to create all the 6 indicators calculated that such points, where points 1,2,3,5, 6 and 7 will have the same name as the name of the KPI. The fourth element will be your custom formula. In this way, you can control the order if the elements calculated.

    Rgds,
    DpKa

  • WOOF Application Framework install issue - for Oracle Utilities SDK 4.0

    Hello

    I hope someone can help me, I'm really confused.

    I have a working of MDM 2.1 installation and everything works.
    Now I need to install the SDK WOOF to start coding in JAVA, but since I got a new mstill to this I don't really understand where is the application server. I though that I have that installed already. But it is not found in C:\ouaf\demo.

    I have the framework installed, I do not understand why the SDK says bad file.
    Oracle Utilities Application Framework V4.1.0 multiplatform is the one that I installed it.

    Here is the doc to install:
    http://www.box.NET/shared/k86v1a4gtc793ho1zc20

    Here is the part of the doc to install:
    • Application ARF development (exploded) and 32 - bit server form. The installation will prompt you for the name of the folder where it is installed. Note the first 2 digits of the two SDK versions (for example "4.0") and application server must match.

    I found the number of patch for the SDK here: (but where can I find WOOF app server?)
    http://blogs.Oracle.com/theshortenspot/entry/new_releases_of_oracle_utiliti
    10043375 - oracle Utilities SDK 4.0.0.4 (for ARF V4.0.2 products) based.

    Published by: LodestarGuy on July 3, 2011 11:57

    Go to support.oracle.com and search article 1210804.1 knowledge base. It has links with the SDK, you must work with WOOF v4.1.

  • Issue alert Oracle

    Hello

    I have an obligation to create an Oracle alert that will send a notification e-mail contains mutiple lines. I have a sql query that returns mutiple lines. He is currently the separate e-mail for each line. Is it possible to send mutiple lines in an email. Please let me know.

    Thanks in advance.

    Yes. You can set up what is called a summary action. Summary action allows you to set a message pattern that has a header section and a detail section (where you can print your details)
    There is a seeded alert called 'Index too large or too fragmented' which has a summary action model that looks like this.

    List of indices exceeding & blocks MAXBLOCKS or & extended MAXEXTENTS:

    Blocks Extents percentage increase
    ------- -------- -------------------
    = * = Enter model below this line from the summary = * =.
    * Owner: OWNER & BLOCKS & EXTENTS & EXTPCT
    Index: & INDEX_NAME

    = * = Enter the model above this line of summary = * =.

    Make sure that you put the "= * =" line exactly as it is.

    Hope this helps,
    Sandeep Gandhi

Maybe you are looking for