Sorting in Oracle (Urgent)

Hi Experts
I need to sort multilingual values Like
COMP_NAME
Manishã
Manishñ
ManishÃ
ManishÑ
Manishâ
ManishÓ
Manishó
Manishú
ManishÚ
ManishU~
Manishu~
in below format
Manishâ
Manishã
ManishÃ
Manishñ
ManishÑ
ManishÓ
Manishó
Manishú
ManishÚ
ManishU~
Manishu~
please suggest me the solution ASAP.
Thanks in Advance
Mani

Since your post was so urgent, it appears that it was posted without specifying the version of Oracle you're using. It also appears that it is missing a description in words of the logic you're trying to implement. If you really want prompt resolutions, I'd suggest posting (at least) both of those bits of information.
If I guess at your Oracle version and at the requirements you're trying to implement, I would guess that it was related somehow to the section on [Case-Insensitive and Accent-Insensitive Linguistic Sorts|http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/ch5lingsort.htm#sthref619] in the Globalization Guide.
Justin

Similar Messages

  • Sorting in oracle

    hi!
    how do we do sorting in oracle?
    can you please explain me with an example.
    thanks in edvance.
    regards
    prasad

    sorting in sql is done by the ORDER BY clause
    eg. select * from emp order by ename asc;
    --it arranges in ascending order

  • Which sorting algorithm Oracle use?

    Hi ,
    May i know which sorting algorithm oracle use ?
    Because when i am using order by with an sorted or unsorted data it is taking same time.
    Thanks in advance

    Pradeep Dewani wrote:
    Hi ,
    But i want to know that whether oracle consider sorted and unsorted data in same way or not ?
    Please help if any body know because i cant decrease number of rows but i can sorted them in a temp table .Pradeep,
    a SORT is usually an additional operation that can be quite costly depending on the amount of data to sort and the available memory for sorting. It would show up in the execution plan as SORT operation.
    Note that the optimizer can take various shortcuts to minimize the impact of a sort operation. If you e.g. use a "top-N" query properly, it can take advantage of a "SORT ORDER BY STOPKEY" operation that only keeps the top N rows sorted in memory.
    If you have suitable indexes, the optimizer might also come to the conclusion that a SORT operation can be eliminated by traversing an index in the requested order, so you could have a query that uses an ORDER BY but the execution plan doesn't show any explicit SORT operations.
    So to answer your question: Oracle doesn't consider sorted and unsorted data in the same way. Sorting is an additional operation that needs to be handled somehow.
    If you have a query that takes the same time whether sorted or not the execution time is probably driven by other factors and the SORT operation is negligible in terms of performance.
    But there are other scenarios possible where a SORT operation takes significant time and influences the execution time. SORTs can also lead to overall changes in the execution plan that are not directly related to the SORT operation.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • INTEGER DATA TYPE and Numeric Oracle URGENT Help needed

    Hello does any body knows if i run this statement of create table in oracle 9.2
    what is maximum number of digit the test_num can stores....
    create table test
    test_num INTEGER NOT NULL
    I have to reply to my client urgently..
    Regards
    Mahesh
    Ramnarayan123

    All the Oracle reference manuals are on-line at <http://tahiti.oracle.com>. A quick search on "INTEGER" will reveal the answer (38 decimal digits).
    Justin

  • Launching Oracle (urgent !!!)

    when I installed Oracle 9i AS on my redhat 7.0, Oracle wasn't able to create a database with dbassist during the installation whereas I had run all root scripts. Now I'm trying to launch Oracle from svrmgrl with the oracle user (see RTFM)logged as member of dba group. But each time I launch svrmgrl, I got the answer end-of-file on communication channel, before doing anything. And I can(t find out why ?
    Please help (urgent)

    Linux - Redhat 7.0
    Oracle - 8.1.7.
    I have faced the same problem during my Oracle installation on Redhat 7.0. I was unable to creat database.After going through revealnet.com I found the following solution.1. Install the compat-glibc RPM for 2.1.3.x
    (This is on the Redhat 7.0 CDs)
    2. cd to the directory where compat-glibc installed the files (for me it's /usr/i386-glibc21-linux/lib).
    3. Copy the following files to $ORACLE_HOME/lib:
    libc-2.1.3.so
    libpthread.so
    libdl.so
    ld-linux.so.2
    For me, several of these are symbolic links, so you'll need to copy the target of the symbolic link and rename it to the link name when you copy it to $ORACLE_HOME/lib.
    For example, if ls -l shows:
    ld-linux.so.2 -> ld-2.1.3.so
    libc-2.1.3.so
    libdl.so -> libdl.so.2
    libpthread.so -> libpthread.so.0
    Then you will:
    cp ld-2.1.3.so $ORACLE_HOME/lib/ld-linux.so.2
    cp libc-2.1.3.so $ORACLE_HOME/lib
    cp libdl.so.2 $ORACLE_HOME/lib/libdl.so
    cp libpthread.so.0 $ORACLE_HOME/lib/libpthread.so
    4. Create a file in $ORACLE_HOME/lib called libc.so with the following contents (as a single line):
    GROUP ( /lib/libc-2.1.3.so /lib/ld-linux.so.2 /libc_nonshared.a )
    Substitute the value of $ORACLE_HOME for and the location of the compat-glibc directory for . For example:
    My $ORACLE_HOME is:
    /u01/app/oracle/product/8.1.7
    and my compat-glibc directory is:
    /usr/i386-glibc21-linux/lib
    so the GROUP line looks like this for me:
    GROUP (/u01/app/oracle/product/8.1.7/lib/libc-2.1.3.so /u01/app/oracle/product/8.1.7/lib/ld-linux.so.2 /usr/i386-glibc21-linux/lib/libc_nonshared.a)
    This is all one line.
    5. cd $ORACLE_HOME/bin
    6. Run the following command from the UNIX prompt:
    relink all
    I have used this technique for RedHat 7.0 with the 2.2.16 kernel.
    Thanks to Richard Rankin for this simple and reliable method.
    After doing this, please create your database. It will work.
    null

  • How a send a mail from  Oracle   ----- urgent

    Hi,
    I am working in oracle9i and linux 2.4. i need to a send mail from oracle .Please send the procedure to me in a detail manner.
    I am having one procedure .plz check and change if possible...
    declare
    l_maicon utl_smtp.connection;
    begin
    l_maicon :=utl_smtp.open_connection('mail.com');
    utl_smtp.helo(l_maicon,'mail.com');
    utl_smtp.mail(l_maicon,'[email protected]');
    utl_smtp.rcpt(l_maicon,'[email protected]');
    utl_smtp.data(l_maicon,'From: [email protected]' || utl_tcp.crlf||
    'To: [email protected]' || utl_tcp.crlf ||
    'Subject: database e-mail option' || utl_tcp.crlf ||
    'You have received this mail from database!');
    utl_smtp.quit(l_maicon);
    end;
    Please explain me in detail
    Gobi....

    If I do a Google search on the terms "Oracle mail", this askTom thread is the second hit
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:255615160805
    Did you already find this thread? If so, did it not answer your question sufficiently?
    Additionally, it would be quite helpful if you would post the results of running the code you posted. You've given no indication whether there is an error, what error might be generated, whether you're not seeing the expected behavior, whether the code crashes your system, etc. That leaves us to guess about what problems you might have between syntax errors, permission problems, configuration problems on the database, configuration problems on the SMTP server, operating system problems, network problems (the list goes on).
    Justin

  • Data transfer from MySQL to Oracle Urgent!

    Hi All,
    We have a table in MySQL database and we need to transfer a subset of its data over to Oracle table. The table in MySQL is big, so we created a temp table trying to do it several times. The question is, we set the the primary key column in both MySQL temp table and Oracle table ( a varchar column), when we transfered the data over using "insert into table_name select * from table_name@hsdobc", Oracle always gave the "Null value for not Null column" error, and it's only existed for one row no matter how many rows we want to transfer, but MySQL temp table has no such null value for the primary key column, it's very strange. Anyone knows what the problem might be? Thanks very much in advance.

    Hi, thanks for your answer. I checked the MySQL table again, and found that in both the original table and the temp table, there is a row with the primary key column value "null". Don't know what happened? Probably it's a MySQL bug.
    It's not Primary Key NULL value. If your new Oracle Table has ANY column defined
    NOT NULL and while inserting you have at least one value in one row of coming data is NULL - It will fail. You need either to drop NOT NULL constraint for that
    column(s), or provide value for it.
    Also you can drop that NOT NULL constraint, Insert your data as is,
    Update your data to get rid off all NULLs and put NOT NULL constraint back on.
    ALTER TABLE MY_NEW_TABLE MODIFY MY_NEW_COLUMN NULL;
    UPDATE MY_NEW_TABLE SET MY_NEW_COLUMN = 'Some_Value';
    ALTER TABLE MY_NEW_TABLE MODIFY MY_NEW_COLUMN NOT NULL;

  • Export & Import data in Oracle (Urgent)

    I just wonder whether Oracle 8i has the 'Export & Import data' feature in their DBA Administration tool.
    Inside DBA Studio, I found a option to export/import data to text file, but we must connect to Oracle Management Server (OMS) first before we can use that feature. I found the same feature available in Oracle 7.3.3 in Oracle Data Manager.
    How to make sure that I have a OMS installed on my server? (I purchase a Oracle 8i Standard Edition, does it include OMS?)
    Can we export from a table (database A) to a table in database B? Or We can only do this thru. a dump file?

    With every installation of an Oracle DB you get the exp(ort) and imp(ort) utilities. You can use them to move data from one user to another.
    Run them from the dos-prompt like:
    exp parfile=db_out.par
    imp parfile=db_in.par
    with db_out.par=
    file=db.dmp
    log= db_out.log
    userid=system/?????
    owner=???
    constraints=y
    direct=n
    buffer=0
    feedback=100
    and db_in.par=
    file=db.dmp
    log= db_in.log
    userid=system/???
    touser=??
    fromuser=???
    constraints=y
    commit=y
    feedback=100
    null

  • Query regarding spatial Oracle URGENT

    Mr. fernando.
    I am a new spatial oracle user.I am having a problem frying a query which i have pasted below along with the error message.Things are really mission critical for me.
    Please please help me if you can.
    Problem overview
    1. i have a table with spatial data
    create table loc_demo(
    ID NUMBER(10,2),
    AOI_TYPE VARCHAR2(255),
    AOI_SUBTYPE VARCHAR2(255),
    NAME VARCHAR2(255),
    DESC1 VARCHAR2(255),
    DESC2 VARCHAR2(255),
    DESC3 VARCHAR2(255),
    DESC4 VARCHAR2(255),
    MAP_NO VARCHAR2(255),
    MAP_REF VARCHAR2(255),
    SUBURB VARCHAR2(255),
    CITY VARCHAR2(255),
    POSTCODE VARCHAR2(255),
    SHAPE MDSYS.SDO_GEOMETRY
    2. I created a spatial index with setup_locator_index.
    exec geocoder_http.setup_locator_index('loc_demo','shape');
    3. I fire a query on the table
    I am getting this error when i fire the below query and don't get the one if i remove the units clause from the locator_within_distance operator.
    IT WORKS
    SELECT A.NAME,A.AOI_TYPE FROM loc_demo A
    WHERE
    LOCATOR_WITHIN_DISTANCE
    (A.shape,MDSYS.SDO_GEOMETRY(1,NULL,MDSYS.SDO_POINT_TYPE(2511209.1,4412729.6
    ,0)
    ,NULL,NULL),'distance=10') = 'TRUE'
    I suppose it works because the default units are longi. and lati.
    DOSEN'T WORK
    SELECT A.NAME,A.AOI_TYPE FROM loc_demo A
    WHERE
    LOCATOR_WITHIN_DISTANCE
    (A.shape,MDSYS.SDO_GEOMETRY(1,NULL,MDSYS.SDO_POINT_TYPE(2511209.1,4412729.6
    ,0)
    ,NULL,NULL),'distance=10 units=Mile') = 'TRUE'
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13004: the specified buffer size is invalid
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 83
    ORA-06512: at line 1
    null

    Dan,
    Thanks For entertaining , can you please elobrate your explanation.Actually i am very new to the spatial Oracle.
    Actually i know that there is a standard known as WGS84 but which are the valid values...e.g....
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by dan abugov:
    Hello Raju,
    If you want to use the units parameter, you must be in wgs84 (long/lat).
    The valid bounds for the coordinate system in long/lat are -180 to 180, and -90 to 90.
    Hope this helps,
    dan <HR></BLOCKQUOTE>
    null

  • JDBC issue while calling queries in oracle- urgent

    Hi !
    Theres a peculiar problem being faced while calling queries(SQL statements having join of more than 2 tables) in oracle database. We are using JDBC thin driver.
    We are calling SQL statements from stateless session EJBs deployed in weblogic app server and using connection pool facility to connect to oracle database.
    Now, the issue is that select queries having more then 2 tables run fine & give proper result in java but when we see trace in oracle by setting sql_trace to true.. we see some column rowid added as first column selected in such queries and oracle shows such queries to be failed.
    Can anyone tell why & how & who adds this rowid ?
    Has anyone faces such a problem ?
    regards'

    Am I right in you saying that the data is returned to the app server, but the database is saying it's not???
    Veeeeeerrrry strange.
    ...I mean, if I understand you right, then I have to ask if you're sure that's what's actually happening.
    Can anyone tell why & how & who adds this rowid?...and that you're sure you're not adding this yourself in the join?
    ...since (you imply) you're not using entities, just sql queries against the datasource connection, did you try running that query direct against the database?
    ...and... oh never mind.
    hth
    /k1

  • Java in Oracle - Urgent pls

    Hii All,
    I have a java program which runs in Oracle JVM. When I execute my program, it will write a new java file. This was working in NT server but when the same program is executed in a win2000 server (oracle 8.1.7), it is giving the following error : "java.lang.SecurityException: relative pathnames are not allowed(./Insert.java)".
    I tried hardcoding the path..say C:\Insert.java. This works..but if use the relative path name, it is giving the above mention error
    Please let me know, what all the permissions I have to grant for writing a file with a relative path.
    Hoping help at the earliest,
    Thanks and Regards,
    Narendra Krishnamurthy

    The problem above is a bug of Oracle 8.1.7 release. The BUG id is Bug:1898655.
    U can check it out there and also, there is patch which can be downloaded.

  • To JDev Team:  Sorting in oracle.dacf.control.swing.GridControl ?!!

    My customers want to get caseInsensytive sorting in
    GridControl.
    Is it possible and what should I do for it?
    Thank you.
    [email protected]

    Thank you very much for you help. But it was a litle late.
    Because yesterday I had found this way and did it myself.
    But nevertheless thank you indeed.
    And I met a litle problem wneh I tried change this method.
    I need define type of column. Because I wont make
    Caseinsensitive sort only for string fields.
    It looks like simle but I have only ScrollableRowsetAccess and
    ResultSetInfo. And they give me type only by index of field.
    I try to find index by ColumnName parameter. But its name very
    different with name of ScrollableRowsetAccess and ResultSetInfo.
    Could you give me advice for solve this problem.
    Thank you again.
    Yuri

  • Oracle 11g - Memory used for sorting

    Hi everyone,
    I would like to know how I could analyze memory used for sorting in Oracle 11g. When I run the below query, it returns 1531381.
    select value from v$sysstat where name like 'sorts (memory)';But when I check sort_area_size parameter from v$parameter, it returns 65536. Does it mean my database is using more memory for sorting than sort_area_size. Or is the way I interpret v$sysstat view and sort_area_size wrong? What is the best way to monitor the memory usage for sorting? Thanks in advance.
    Regards,
    K.H
    Edited by: K Hein on Apr 5, 2012 8:16 PM

    check the valuse of pga_aggregate_target
    http://docs.oracle.com/cd/B19306_01/server.102/b14237/initparams157.htm
    Note:
    Oracle does not recommend using the SORT_AREA_SIZE parameter unless the instance is configured with the shared server option. Oracle recommends that you enable automatic sizing of SQL working areas by setting PGA_AGGREGATE_TARGET instead. SORT_AREA_SIZE is retained for backward compatibility.
    What is the best way to monitor the memory usage for sorting? try v$sort_usage
    or v$tempseg_usage
    col sid_serial for a44
    col size for a22
    col SID_SERIAL for a22
    SELECT b.tablespace,
            ROUND(((b.blocks*p.value)/1024/1024),2)||' MB' "SIZE",
            a.sid||','||a.serial# SID_SERIAL,
            a.username,a.osuser,
            a.program
       FROM sys.v_$session a,
            sys.v_$sort_usage b,
            sys.v_$parameter p
      WHERE p.name  = 'db_block_size'
        AND a.saddr = b.session_addr
    ORDER BY b.blocks;

  • Oracle BI EE. Alternative Sorts.

    Hello!
    I have such problem.
    I have table with fild, which called "Term".
    Values:
    1 day
    1-3 years
    1-3 months
    2-7 days
    3-5 years
    3-6 months
    6-12 months
    8-30 days
    I want select this values like
    1 day
    2-7 days
    8-30 days
    1-3 months
    3-6 months
    6-12 months
    1-3 years
    3-5 years
    How can I do this?
    Does exist in Oracle BI EE such thing like "Alternative Sorts" in Oracle Discoverer?

    Could you explain the context of this field please, if your values are fixed as you describe it seems unlikely you would be able to select alternative values, in OBI it is more usual to have two date dimensions, such as start date and end date, if you want to be able to select a range.
    How is your fact table related to this date range?
    Rgds
    Ed

  • Issue with "Select Distinct" query in Oracle 10g against Oracle 9i

    Hi,
    I would appreciate if some one help me here because it is really urgent.
    We are upgrading our database from 9i to 10g.
    There are the "Select distinct" queries in the code which populated the grid on the applications screens. We found a difference in 9i and 10g the way the result is populated for these queries. If "Select Distinct" query wihtout a order by clause is executed in 9i then the result is automatically sorted. But Oracle 10g does not do this.
    We can change the queries adding order by clause but we are almost at the end of the testing and want to know if there is any way that we can do this from database settings. Would there be any impact of these settings change on overall operation of Oracle 10g?
    I would appreciate if some one can help me here.
    Thanks,
    Dinesh

    then the result is automatically sorted.No. Oracle may have done a sort operation to perform the distinct, but it still did not guarantee the order of your results.
    In 10g and in 9i, if you want your results in a certain order you must use order by.

Maybe you are looking for