Is Java right for my needs?

I have put more hours than I care to think about into building an app for one of my clients, using MS Visual Basic 6. Recently there have been some changes in the company that may require starting the project back at square one. The app was built for a single office running on Windows XP. Now the company has hired people that work remotely, and some use Macs. The software is of little value to them and therefore to the company.
We utilize a MySQL database. My initial research on Java shows that should be compatible, but I have a lot of questions due to the rather specialized nature of some of the functions this software performs.
Also, the server host we use says that "JSP and Servlets are not supported" but that Java Applets are OK. I am not familiar with the differences between these 3 items. If we need to use a web app instead of client-based apps, this may be a concern.
In a nutshell, my needs are to build a large application with multiple functions - and will continue to be added to for years - that will operate on both Mac and Windows.
If I understand correctly I can build client-side apps that could still access the remote database (?) This would probably be fine and in some ways preferable to web apps that would be accessed through a browser since security concerns would be less - no way to access the system just by hacking someone's login.
Here is a list of some of the functions that currently exist in the VB6 app. Can Java handle these tasks?
1. Display contents of any web page in the app window (VB6 has a web browser control I use)
2. Extract the plain text from a web page, copy to a text field
3. Process large blocks of text and count instances of a specified text string
4. Search a large block of text for keywords that exist in a list, and change text formatting of each instance of each keyword.
5. Search/replace in a long text string, case sensitive; including special characters such as tab and paragraph
6. Load SQL query results into a variable array, not a bound control
7. Show a visual comparison of 2 versions of a text document to see deletions, additions, edits. Currently, my program links to MS Word's Compare Versions command to accomplish this.
8. Spellcheck a block of text.
9. Resize and save JPEG or TIFF image; perform this action on all files in a directory as a batch
Any guidance you can provide as I try to decide how to take on this project will be much appreciated.
Thank you.
Paul

Paul,
I have put more hours than I care to think about into
building an app for one of my clients, using MS
Visual Basic 6. Recently there have been some
changes in the company that may require starting the
project back at square one. Oops!
The app was built for a
single office running on Windows XP. Now the company
has hired people that work remotely, and some use
Macs. The software is of little value to them and
therefore to the company.google "windows virtual machine for mac"
We utilize a MySQL database. good choice
My initial research on
Java shows that should be compatible, but I have a
lot of questions due to the rather specialized nature
of some of the functions this software performs.specialized nature? like ICBM guidance systems or something? Try J2ME:-)
Also, the server host we use says that "JSP and
Servlets are not supported" but that Java Applets are
OK. server host? which one? can you change server apps? if you're talking IIS then think ASP... which implies a MySQL to Sequel migration, and licenceCost*=100;
I am not familiar with the differences between
these 3 items. * JSP = Java Server Pages = open standard industry supported equivalent++ of ASP... A JSP page is compiled automatically into a Servlet
* Servlet = a compiled Java class which runs inside the web container (on your web host).
* Aplet = a clunky jaba application imbedded in a clunky browser, mainly useful for games, online gambling, and other things that crash a lot. IMHO Swing still sux.
If we need to use a web app instead
of client-based apps, this may be a concern.Ummm... Yep, I suppose so.
In a nutshell, my needs are to build a large
application with multiple functions - and will
continue to be added to for years - that will
operate on both Mac and Windows. Which, as you have rightly identified, has "WebApp" written on the cover in large friendly letters.
If I understand correctly I can build client-side
apps that could still access the remote database (?)Not generally regarded as a "solid architecture"... more useful for intranet connections. Security is (still) a major concern.
This would probably be fine and in some ways
preferable to web apps that would be accessed through
a browser since security concerns would be less WRONG !!!
J2EE provides "out of the box" mechanisms for secured, controlled, administered, audited, & extensible access to server resources.
Sticking JDBC passwords in a fat-client property file or a webapps-cookies (even encrypted) is not secure. Why did the NSA make it illegal to export 256 bit encryption algorithms from the good 'ole US of A?
no way to access the system just by hacking someone's login.REALLY REALLY WRONG !!! !!! !!!
"QUT to NASA, We are go for Launch!"... that was a JDBC connection string (a URL with encrypted password) written on the inside front cover of a professors diary, and left on the desk after class.
Here is a list of some of the functions that
currently exist in the VB6 app. Can Java handle these
tasks?
1. Display contents of any web page in the app window
(VB6 has a web browser control I use)Why not just let them loose in another browser window? It's a porkchop requirement.
2. Extract the plain text from a web page, copy to a
text fieldYep... that's not rocket surgery.
3. Process large blocks of text and count instances
of a specified text stringYep... regex was a unix invention... Java inherited (belatedly) from Perl.
4. Search a large block of text for keywords that
exist in a list, and change text formatting of each
instance of each keyword.Yep... (as above)
5. Search/replace in a long text string, case
sensitive; including special characters such as tab
and paragraphLarge? Are we talking bigger than a meg, 10meg, 100meg, a terabyte?
Stay away from the DOM... it's a performance anti-pattern... worthy of the MS "engineers" who invented it.
6. Load SQL query results into a variable array, not
a bound controlWhat? What's a "bound control"
7. Show a visual comparison of 2 versions of a text
document to see deletions, additions, edits.
Currently, my program links to MS Word's Compare
Versions command to accomplish this.Yep.
8. Spellcheck a block of text. Yep. Did you spellcheck your post?
9. Resize and save JPEG or TIFF image; perform this
action on all files in a directory as a batchYep, though you do loose a lot of clarify with the standard API's. They're working on it.
Any guidance you can provide as I try to decide how
to take on this project will be much appreciated.
Thank you.
Paul1. google "windows virtual machine for mac"
Maybe that'll save you from this walking nightmare.
2. think J2EE web app, using Sun's Server PE 9, BEA's Weblogic Server, or the venerable free Apache Tomcat (in which case look at the JBoss stack).
3. Applets are an absolute first class pain the proverbial. Every new browser version breaks them. Every third browser patch breaks them. Every new Java version breaks them. Yuchh! may as well go Lotus notes.

Similar Messages

  • Is Captivate / E-learning suite right for my needs?

    Is Captivate / E-learning suite right for my needs?
    Having been on hold for over 90 minutes to Adobe yesterday, and searching Adobe.com and You tube for info I am throwing my request for information at your collective feet.
    The organisation I work for needs to deliver some e-learning modules, these are informing on non-software based actions and information.
    We have had modules professionally designed for us in the past (almost certainly in DW or flash) – the number that we need for the next 12 months has grown, although each individual module is smaller – so professional design is less attractive due to minimum costs per module.
    Content at the moment is delivered as a page or frame of text, with still pictures, video, and audio content. Roll over information, and links through to supporting documents and web sites. The user then clicks on through the pages as they demand. Finishing with a quiz and a certificate of pass mark.
    The core of any information I have found about Captivate 4 represents it primarily as screen recorder. I need to build a module outside of screen recordings.
    Is captivate the product to do what I need?
    I can’t find any in-depth information beyond “it’s a great screen recorder and software demo tool”.
    There doesn’t seem to be any supporting documents, books, videos that could be used as a platform for training users how to work with Captivate 4 – and I can find no face to face trainers in Australia.
    If anyone to shed some light on what captivate is capable of doing beyond screen recording, and if there is any training available online / from books / or face to face in Australia I would be very happy to hear from them.
    The available delivery formats that Captivate can output would be very helpful too – as a government organisation we have a limited amount of software / updates we must work with.
    Many Thanks
    Gav

    Hi there
    Iconlogic is one of many companies providing Adobe Certified Captivate instruction. Many companies are using the curriculum they wrote. Note that their curriculum is designed for two uses. Learn it on your own with no instructor present and as a companion for an Instructor Led class.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • What Photoshop version or Product is right for my needs.

    I run a Non-Profit organization, we started as a Off-Road Club, that wanted to start doing charity events and Off-Road type search and rescue. Basically we do events that take people into the middle of nowhere and teach safety and survival tips and training, and we do charity type events for taking challenged or under-privileged family and people out to teach off-roading and or camping also.
    One of the biggest things we do is search and rescue in areas that normal rescue and law enforcement teams and vehicles cant access due to terrain and conditions like weather or no roads, most of us run highly modified 4x4 vehicles that can access any area, no matter the conditions or weather, a lot of the work relates to helping stranded people, hunters, hikers, campers, or people that try and take a stock luxury Suv on roads that they don't belong on in that type of vehicle, or during tornados, blizzards, or floods in Northern Wisconsin and Upper peninsula Michigan. What I would need the software for as the president and owner, is for photo evidence of conditions during rescues, and photos of rescues, and photos of charity events, I also make up mail-out bulletins to get new members and or volunteers, also packets with photos are used for getting supporters and donations.
    So I don't need professional editing of photos, but I do need editing that looks good and makes us look professional, I do know my way around a computer, but I am not a expert.
    So my questions stands with asking, what Photoshop software is right for my needs, because I don't want to spend money on software I don't need???
    Any help would greatly be appreciated.

    I recommend Photoshop Elements, as that is designed for beginners and hobbiest in mind. In a sense, it holds your hand until you feel comfortable. I don't use that app, so I can not say on how much it holds your hand. I can only resite, what I have read.
    That being said, I also do not know how much vector tools are in that app. Vector tool will help tremendously as they can make quick work out of doing flow chart type graphics, as in outline of bodies, arrows pointing to the location, lines showing paths or roads, and other hand made graphics that describe the area.
    The reason for vector graphics, is they are scalable and do not take up as much ram or drive space. Don't get me wrong, raster tools (paint type tools) can be useful in doing the same thing, but they are a bit harder to alter, scale(especially larger), etc.
    Therefore, Elements is great for learning, but professionally, Photoshop, illustrator and lightroom. So keep that in mind, when the time comes.

  • Is FMS right for my needs?

    I work with a Public Television station that currently
    streams or displays video on our server to a viewer on our site.
    I'm looking for a service or a product that First, takes our
    existing library of WMV files and either converts it to FLV or
    allows it to be played through a viewer, on our web site, or
    branded to our site.
    Also, I need this product or service to constantly
    automatically look for new WMVs being uploaded to our server, and
    then encodes it to FLV for viewing on our site. All on either our
    server or elsewhere.
    Is FMS right for me? Can anyone recommend a service that does
    that, and does not involve advertising?

    http://www.adobe.com/products/flashmediaencoding/

  • Is Java right for me

    I am looking to make a Database application. I would like a GUI. I want the user to be able to enter data into, and access a database. I want it to have an easy look and feel. Is Java for me, or should I be looking at another language. Thanks.

    Java is competence to your project I think, it is haleness ,security and more important convenience .

  • Is FlashPaper right for my needs?

    I have a CD-ROM menu I've built in Flash, which is compiled
    into an application with MDM's Zinc. In the menu, there's several
    links to separate legal documents in PDF format. You click the
    link, the PDF opens from the disk. Easy.
    Recently, there was a federal rule change and my client can
    no longer have separate documents on this disk and everything must
    now be in one PDF document. That creates a problem for me because
    they want the menu to now link to specific pages within the large
    PDF document. There is a way of doing this through Zinc but it's
    been very inconsistent when I've tested it. An associate
    recommended FlashPaper as a solution and thought I would be able to
    click a link in my menu and go to a specific page within the
    document.
    So, would FlashPaper be able to do what I need it to? Has
    anyone had any issues working with a compiler like Zinc? I see that
    FlashPaper is for PC only, will that be a problem for the menu
    since I developed it on a Mac?

    http://www.adobe.com/products/flashmediaencoding/

  • Is FCE right for my needs

    Hello my fellow posters and thank you in advance for your help.
    I have a recent Intel based I MAC on current version of Tiger.
    I recently bought a Casio EX-F1 camera.
    http://www.benseese.com/CasioEX-F1_UserManual.pdf
    Photos are great but I want to enter the world of hi-def video.
    This camera can do 720 in what they call HD or 1080i in FHD (Full hi def)
    I have used Nero and Ulead in the windows world.
    The camera records using MOV H.264/AVC
    I am an advanced beginner but dont mind investing some time to learn.
    I use I-Movie is standard def but it is quite limited and does not seem to be able to play back even 720 movies I have taken this far.
    I did download the quicktime AVC decoder:
    http://www.apple.com/downloads/macosx/video/avc1decoder.html
    But I am still unable to view the video. Only green screen appears.
    Is it time for me to buy FCE? For simple capture and edit call I-Movie do the job?
    Message was edited by: kierans
    Message was edited by: kierans

    hey there kierans,
    if you have iLife 06, you may need to upgrade to iLife 08. what version of iLife/iMovie do you have? the download appears to be made to work w/ Quick Time Pro. sometimes movies from still cams show as .avi in iPhoto, are they available there? sorry to have more questions than answers.
    Message was edited by: Donna Jones1

  • Is the ATV right for my needs in home theatre

    Ok, I am considering the ATV to go with a home theatre set up.
    But, I have questions that I can't seem to find here.
    The Tv networks, that ATV support, is lacking. Will there be more in the line-up in the future? I enjoy TLC, Military channel, History channel, Discovery etc.... I did not see them listed. Did I miss something?
    If I don't need the Tv shows, rent/buy movies options, which don't seem to work very well by the looks of all the troubleshooting posts, will the airport express fulfill my music and photos streaming needs by using Front Row? Or is there more to the ATV that I am not seeing?
    Also, is it better to hook the ATV to a receiver via HDMI or Digital optical-then HDMI from the receiver to the HDTV-thus letting the receiver do all the work versus going straight to the tv. Does one produce better sound and picture?
    Cheers
    Message was edited by: JAY39
    Message was edited by: JAY39

    JAY39 wrote:
    Jolly Giant,
    That comparison was extremely helpful. I have heard and read on many forums about the Mac Mini. I have read that the built in DVD player in the Mac, supports 1080P and 24 fps. So, by using the Mac Mini option, you don't necessarily need a blue ray player thus achieving the same results.
    true. keep in mind, though, that you will need a keyboard and mouse to some extent to operate the mini. consider if you want those gadgets in your living room.
    But, then I would have to run an ethernet cable internally from my computer to the tv, which is not a problem.
    take a look @ powerline adaptors such as these.
    With the ATV, I am concerned that the airport/wifi option will result in slow service. Is this true? I have Time Capsule as my router-which runs on N and not G band.
    ATV is wireless n capable (so is the mini) and that should provide enough bandwidth to view HD content. both ATV and mini also have gigabit ethernet ports.
    also, in my experience the difference between 720p and 1080p is hardly discernible for the average eye and it would take a real good TV set to be able to tell them apart.
    personally, i like the mini to be my central media server because, once set up, i can put it somewhere in the house (don't even need a monitor attached - just use screen sharing) but i'd opt for the ATV in my living room every time.
    so, it comes down to your preferences. ask ten people and you will probably get ten different answers.
    whichever way you choose, you can't go wrong and that's the main thing.
    enjoy ...

  • Is Acrobat Pro right for us. We have an Employee Handbook that needs editing. Some is current pdf, some from an older version. Want to get all into one handbook, have the table of contents automatically adjust and link to specific pages from the ToC.

    Is Acrobat Pro right for us. We have an Employee Handbook that needs editing. Some is current pdf, some from an older version. Want to get all into one handbook, have the table of contents automatically adjust and link to specific pages from the ToC.

    You can download the trial version (http://helpx.adobe.com/acrobat/kb/acrobat-downloads.html) to convert the PDF back to WORD if you do not have the original. The conversion may not be perfect, but it is typically better than starting from scratch. You may be lucky and get a good result. You might check the settings (in the save screen) to try retain format versus retain text flow. The format version can be a pain to edit since it creates a bunch of text boxes. The flow version may require you to reformat in WORD, but you likely would want to do that anyway.

  • Do I need to have a JAVA Stack for normal ECC 6.0 ?

    Hi together,
    we want upgrade our R/3 4.7 to ECC 6.0.
    Do I need JAVA deployment on my ERP system as part of the upgrade?
    What funktions are in the JAVA Stack for ECC?
    best regards,
    Carsten Schulz

    Just as advise:
    I would highly avoid any dual stack installations nowadays. You can install the J2EE engine on the same host but use a different SID so you have two separate instances.
    Markus

  • I Need Java code for following Algorithm

    * I Need Java code for following algorithm. Kindly any one help.
    1. Read the contents (ideas and its corresponding scores) from two files named as 'a' and 'b'.
    2. Stored the file 'a' contents in array a[].
    3. Stored the file 'b' contents in array b[].
    4. compare both files like
    if(a.equals(b[j])
    Writing the common idea and add the score from file 'a' and 'b'.
    else
    write the uncommon idea and its score..
    For example :
    Form Agents.txt
    action,65
    architecture,85
    eco-,15
    essay,30
    form,85
    form,85
    link,40
    tangent,25
    Form Agents1.txt
    Black holes,69
    essay,78
    Herewith i have above mentioned two files named as Form Agents and Form Agents1.
    Form Agents has eight fields
    Form Agents1 has two fields
    --> 'essay' is common in two files, so store the idea 'essay' and add the score from Form Agents score is '30' and Form Agents1 has 78 (essay 108).
    Finally it stores idea in another file with uncommon fields also.
    Please help us.

    We have tried with following code.
    But we cant add the scores.
    For Example:
    Form Agents.txt --> has "essay,30"
    Form Agents1.txt --> has "essay,78"
    Result is: essay,108
    Finally it stores idea in another file with uncommon fields also.
    So Any one pls correct the following code.
    try
    DataOutputStream o1=new DataOutputStream(new
    FileOutputStream("C:\\Interfaces\\interfaces\\temp\\BlackBoard\\My Design
    World\\Project\\Material\\art\\System Agents\\Form Agents\\CandidateResponses\\Form
    Agents.txt"));
    //Reading the contents of the files
    BufferedReader br= new BufferedReader(new InputStreamReader(new
    FileInputStream("C:\\Interfaces\\interfaces\\temp\\BlackBoard\\My Design
    World\\Project\\Material\\art\\System Agents\\Form Agents\\Ideological\\Form
    Agents.txt")));
    BufferedReader br1= new BufferedReader(new InputStreamReader(new
    FileInputStream("C:\\Interfaces\\interfaces\\temp\\BlackBoard\\My Design
    World\\Project\\Material\\art\\System Agents\\Form Agents\\Related\\Form
    Agents.txt")));
    while((s=br.readLine())!=null)
    s1+=s+"\n";
    while((s2=br1.readLine())!=null)
    s3+=s2+"\n";
    int numTokens = 0;
    StringTokenizer st = new StringTokenizer(s1);
    String[] a = new String[10000];
    String[] br_n=new String[10000];
    int i=0;
    while (st.hasMoreTokens())
    s2 = st.nextToken();
    a=s2.substring(0,s2.length()-3);
    s6=s2.substring(s2.length()-2);
    br_n[i]=s6;
    i++;
    numTokens++;
    int numTokens1 = 0;
    StringTokenizer st1 = new StringTokenizer (s3);
    String[] b = new String[10000];
    String[] br1_n=new String[1000];
    int j=0;
    while (st1.hasMoreTokens())
    s4 = st1.nextToken();
    b[j]=s4.substring(0,s4.length()-3);
    s7=s4.substring(s4.length()-2);
    br1_n[j]=s7;
    j++;
    numTokens1++;
    int x=0;
    for(int m=0;m<a.length;m++)
    for(int n=0;n<b.length;n++)
    if(a[m].equalsIgnoreCase(b[n])){
    int sc=Integer.parseInt(br_n[m]);
         int sc1=Integer.parseInt(br1_n[n]);
    int score=sc+sc1;
         o.writeBytes(a[m]+","+score+"\n");
    break;
    else
    o.writeBytes(a[m]+","+br_n[m]+"\n");
    break;
    }catch(Exception e){}

  • Is Oracle Text the right solution for this need of a specific search!

    Hi ,
    We are on Oracle 11.2.0.2 on Solaris 10. We have the need to be able to do search on data that are having diacritical marks and we should be able to do the serach ignoring this diacritical marks. That is the requirement. Now I got to hear that Oracle Text has a preference called BASIC_LEXER which can bypass the diacritical marks and so solely due to this feature I implemented Oracle Text and just for this diacritical search and no other need.
    I mean I set up preference like this:
      ctxsys.ctx_ddl.create_preference ('cust_lexer', 'BASIC_LEXER');
      ctxsys.ctx_ddl.set_attribute ('cust_lexer', 'base_letter', 'YES'); -- removes diacritics
    With this I set up like this:
    CREATE TABLE TEXT_TEST
      NAME  VARCHAR2(255 BYTE)
    --created Oracle Text index
    CREATE INDEX TEXT_TEST_IDX1 ON TEXT_TEST
    (NAME)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('LEXER cust_lexer WORDLIST cust_wl SYNC (ON COMMIT)');
    --sample data to illustrate the problem
    Insert into TEXT_TEST
       (NAME)
    Values
       ('muller');
    Insert into TEXT_TEST
       (NAME)
    Values
       ('müller');
    Insert into TEXT_TEST
       (NAME)
    Values
       ('MULLER');
    Insert into TEXT_TEST
       (NAME)
    Values
       ('MÜLLER');
    Insert into TEXT_TEST
       (NAME)
    Values
       ('PAUL HERNANDEZ');
    Insert into TEXT_TEST
       (NAME)
    Values
       ('CHRISTOPHER Phil');
    COMMIT;
    --Now there is an alternative solution that is there,  instead of thee Oracle Text which is just a plain function given below (and it seems to work neat for my simple need of removing diacritical characters effect in search)
    --I need to evaluate which is better given my specific needs -the function below or Oracle Text.
    CREATE OR REPLACE FUNCTION remove_dia(p_value IN VARCHAR2, p_doUpper IN VARCHAR2 := 'Y')
    RETURN VARCHAR2 DETERMINISTIC
    IS
    OUTPUT_STR VARCHAR2(4000);
    begin
    IF (p_doUpper = 'Y') THEN
       OUTPUT_STR := UPPER(p_value);
    ELSE
       OUTPUT_STR := p_value;
    END IF;
    OUTPUT_STR := TRANSLATE(OUTPUT_STR,'ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝàáâãäåçèéêëìíîïñòóôõöøùúûüýÿ', 'AAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy');
    RETURN (OUTPUT_STR);
    end;
    --now I query for which name stats with  a P%:
    --Below query gets me unexpected result of one row as I am using Oracle Text where each word is parsed for search using CONTAINS...
    SQL> select * from text_test where contains(name,'P%')>0;
    NAME
    PAUL HERNANDEZ
    CHRISTOPHER Phil
    --Below query gets me the right and expected result of one row...
    SQL> select * from text_test where name like 'P%';
    NAME
    PAUL HERNANDEZ
    --Below query gets me the right and expected result of one row...
    SQL>  select * from text_test where remove_dia(name) like remove_dia('P%');
    NAME
    PAUL HERNANDEZMy entire need was only to be able to do a search that bypasses diacritical characters. To implement Oracle Text for that reason, I am wondering if that was the right choice! More so when I am now finding that the functionality of LIKE is not available in Oracle Text - the Oracle text search are based on tokens or words and they are different from output of the LIKE operator. So may be should I have just used a simple function like below and used that for my purpose instead of using Oracle Text:
    This function (remove_dia) just removes the diacritical characters and may be for my need this is all that is needed. Can someone help to review that given my need I am better of not using Oracle Text? I need to continue using the functionality of Like operator and also need to bypass diacritical characters so the simple function that I have meets my need whereas Oracle Text causes a change in behaviour of search queries.
    Thanks,
    OrauserN

    If all you need is LIKE functionality and you do not need any of the complex search capabilities of Oracle Text, then I would not use Oracle Text. I would create a function-based index on your name column that uses your function that removes the diacritical marks, so that your searches will be faster. Please see the demonstration below.
    SCOTT@orcl_11gR2> CREATE TABLE TEXT_TEST
      2    (NAME  VARCHAR2(255 BYTE))
      3  /
    Table created.
    SCOTT@orcl_11gR2> Insert all
      2  into TEXT_TEST (NAME) Values ('muller')
      3  into TEXT_TEST (NAME) Values ('müller')
      4  into TEXT_TEST (NAME) Values ('MULLER')
      5  into TEXT_TEST (NAME) Values ('MÜLLER')
      6  into TEXT_TEST (NAME) Values ('PAUL HERNANDEZ')
      7  into TEXT_TEST (NAME) Values ('CHRISTOPHER Phil')
      8  select * from dual
      9  /
    6 rows created.
    SCOTT@orcl_11gR2> CREATE OR REPLACE FUNCTION remove_dia
      2    (p_value   IN VARCHAR2,
      3       p_doUpper IN VARCHAR2 := 'Y')
      4    RETURN VARCHAR2 DETERMINISTIC
      5  IS
      6    OUTPUT_STR VARCHAR2(4000);
      7  begin
      8    IF (p_doUpper = 'Y') THEN
      9        OUTPUT_STR := UPPER(p_value);
    10    ELSE
    11        OUTPUT_STR := p_value;
    12    END IF;
    13    RETURN
    14        TRANSLATE
    15          (OUTPUT_STR,
    16           'ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝàáâãäåçèéêëìíîïñòóôõöøùúûüýÿ',
    17           'AAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy');
    18  end;
    19  /
    Function created.
    SCOTT@orcl_11gR2> show errors
    No errors.
    SCOTT@orcl_11gR2> CREATE INDEX text_test_remove_dia_name
      2  ON text_test (remove_dia (name))
      3  /
    Index created.
    SCOTT@orcl_11gR2> set autotrace on explain
    SCOTT@orcl_11gR2> select * from text_test
      2  where  remove_dia (name) like remove_dia ('mü%')
      3  /
    NAME
    muller
    müller
    MULLER
    MÜLLER
    4 rows selected.
    Execution Plan
    Plan hash value: 3139591283
    | Id  | Operation                   | Name                      | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |                           |     1 |  2131 |     2   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| TEXT_TEST                 |     1 |  2131 |     2   (0)| 00:00:01 |
    |*  2 |   INDEX RANGE SCAN          | TEXT_TEST_REMOVE_DIA_NAME |     1 |       |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("SCOTT"."REMOVE_DIA"("NAME") LIKE "REMOVE_DIA"('mü%'))
           filter("SCOTT"."REMOVE_DIA"("NAME") LIKE "REMOVE_DIA"('mü%'))
    Note
       - dynamic sampling used for this statement (level=2)
    SCOTT@orcl_11gR2> select * from text_test
      2  where  remove_dia (name) like remove_dia ('P%')
      3  /
    NAME
    PAUL HERNANDEZ
    1 row selected.
    Execution Plan
    Plan hash value: 3139591283
    | Id  | Operation                   | Name                      | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |                           |     1 |  2131 |     2   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| TEXT_TEST                 |     1 |  2131 |     2   (0)| 00:00:01 |
    |*  2 |   INDEX RANGE SCAN          | TEXT_TEST_REMOVE_DIA_NAME |     1 |       |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("SCOTT"."REMOVE_DIA"("NAME") LIKE "REMOVE_DIA"('P%'))
           filter("SCOTT"."REMOVE_DIA"("NAME") LIKE "REMOVE_DIA"('P%'))
    Note
       - dynamic sampling used for this statement (level=2)
    SCOTT@orcl_11gR2>

  • Need java 8 for OS X for applications like PS5 to work

    need java 8 for OS X for applications like PS5 to work

    You need to go to Oracle's Java website.

  • I need java decompiler for multiple class

    Hello, i need a java decompiler for multiple class.
    avoiding of decompile one to one.
    Thanks

    Use JAD it has recursive decompiles.

  • I need java firefox for my mobile samsung 7722

    i need java firefox for my mobile samsung 7722

    Sorry but Firefox is not available for your phone. Firefox mobile requires a phone that runs the Android operating system and a ARM CPU that supports the ARMv7 instruction set.

Maybe you are looking for

  • Driver Pack No Longer Being Applied During Task Sequence

    Hi all, So... this week a really strange issue manifested itself. I've been trawling through logs for the last day and I don't seem to be getting anywhere. A task sequence, which has been working for months and hasn't been changed, all of a sudden de

  • How to control number of open sessions on Portal

    We recently release our Portal production environment  and we have been told that there are some users capable to open up to more than 100 sessions. Is there a way to control this on Portal, let's says, to allow only up to 4 sessions per user? Thanks

  • Pandora battery drain after ios 8.1

    I've been using Pandora for quite a long time. I usually leave 1 earbud in and stream music all during my work day. This has historically used 30-50% of my battery during a 9.5 hour shift. Since IOS 8.1, Pandora has gotten insanely battery hungry.  S

  • IDOC to EDI Conversion

    Hi, I am New to EDI-IDocs,We have a requirement over here to send the iDocs from SAP to Non-SAP sys(JCAPS). Need step-by-step details to convert the iDoc to  EDI format. Helpfull Answers will b Rewarded. Regards Giridhar Reddy

  • Crashes with Snow Leopard when opening TIFF files.

    There seems to be a general problem with opening certain TIFF files in 10.6.1. Preview, Quicklook, even Get Info in the Finder cause app crashes (and Finder restarts). It seems to affect almost all apps (but not, interestingly, Photoshop CS3). It onl