Random alpha numeric generation.

i have a requiremnt where i need to generate a random alpha numeric values with the combination of
a - z (lower case)
A - Z (Upper case)
0-9
with out using the dbms_random.string
please help me to get the complete script
Prashant K

i used dbms_random.string('X',6) statement but it generates the alphanumeric with upper case. i wanted the combination of lower,upper and digits. as shown below.
e.g aB3cdFE88
to get the above i did some thing like this.
select dbms_random.string('L',4)||dbms_random.string('X',6) as rand_alphanumeric from dual
here i am concatinating the two strings.
i want to know is there any way other than this to geneate random alphanumeric values ?

Similar Messages

  • Generating Random Alpha numeric Salt String using MD5 or other algorithm

    Hello,
    I have a requirement where i need to generate a random alpha numeric salt for MD5 algorithm. Is there a best way to generate this salt ?
    The alpha numerics should confine to 5 digits with possible values for each digit being (a-z), (0-9), (A-Z).
    Any good random generator for salt would be appreciated.
    Thanks.

    Hi there,
    I think the book you read is the book "Java Security", I have that one too.
    Please read all those pages before this code.........
    In this code, it used the RSA algorithm to do the encryption and JDK DOES NOT support
    RSA algorithm....
    Beside, this line
    KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA", "BC");It implies the BouncyCastle security provider is in use.... so
    www.bouncycastle.org might be a good place to start with....
    Good luck!

  • Alpha Numeric number Ranges for Sales order Acording to sales office wise.

    Hi Experts,
             I have a Issue for genrating sales order numbers With Alpha Numeric Number Ranges for sales office wise Internaly . How can we get this is there any Userexits or badi for this . If Any one Come across this issue plz guide me.
       The Alpha characters should not change that will be sales office region code. only the Numeric numbers should change .
    Ex;   Abc-123000  to Abc-200000
    Regards,
    Ravi.

    This alpha-numeric format is not possible directly with SNRO settings.
    You need to opt for external number range, and in the exit of your respective transaction you need to takecare of this number generation explicitly by programming.
    http://www.sap-img.com/sap-sd/number-ranges-in-sales-order.htm
    any more inputs from experts are welcome..
    Hi,
    1. goto include MV45AFZZ and to user exit Save_document This form is called before COMMITand double click on FORM USEREXIT_SAVE_DOCUMENT.
    2.it will show the program MV45AF0B_BELEG_SICHERN from were this user exit is called, selcet the program and click on Display.
    3. you can use the enhancement point enhancement-point beleg_sichern_01 spots es_sapmv45a. just below the PERFORM USEREXIT_SAVE_DOCUMENT to call the badi method on_costing_component.
    regards.
    santhosh reddy
    Message was edited by:
            Santhosh Reddy
    Message was edited by:
            Santhosh Reddy

  • How to generate password alpha numeric value

    dear friends,
    i have written a simple pl/sql to generate a password.
    declare
    cursor c1 is select * from passwd;
    begin
    for I in c1
    loop
    if I.pfno < 3000 then
    update passwd set pwd=I.pfno where i.pfno=pfno;
    ELSe
    update passwd set pwd=lpad(round(I.pfno/20520),4,'0') where i.pfno=pfno;
    commit;
    end if;
    end loop;
    end;
    In this the pfno is 8 digit alpha numeric. I get password generated when it is only numeric but how could i get if pfno is like 04MAS155.
    Kindly help as i have to generate the same as early as possible. I have already been given with procedure to generate random password by our guys but still as i had already generated password to some employees in my concern based on querries like above i request your help to generate for alpha numeric 8 digit number.

    -- get a random string
        FUNCTION string (opt char, len NUMBER)
              /* "opt" specifies that the returned string may contain:
                 'u','U'  :  upper case alpha characters only
                 'l','L'  :  lower case alpha characters only
                 'a','A'  :  alpha characters only (mixed case)
                 'x','X'  :  any alpha-numeric characters (upper)
                 'p','P'  :  any printable characters
            RETURN VARCHAR2;  -- string of <len> characters (max 60)
        PRAGMA restrict_references (string, WNDS);

  • Alpha Numeric - GL account numbering

    Hi
    Our client is going for alpha numeric GL accounts. FS00 will allow creating alpha numeric GL accounts. But i wanted to what may be problem in future?
    I want to know will any account determination settings like OBYC (FI - MM Settings), VKOA (FI - SD settings), AO90 - Asset accounting GL determination or any other FI process will give problem at the time of configurations or in future?.
    Please help me on this. What can be the points on the basis of which i can tell client that they should go for NUMERIC GL accounts only and not Alpha Numeric.

    No other feedback ?
        Avoid using alpha characters – they will create problems in sequencing
    and sorting data in reports, assigning codes, using ranges, and when
    creating validation and/or security rules”
    What does security rules in this context ?

  • BEx report hangs- selecting Alpha numeric values

    I am working on the existing customer report
    customer is the selection parameter for my report.
    Issue is Customer has numerical and alpha numerical values.
    If i give parameter rangs of value is numerical
    01 - 500 query works fine
    01-50cust1
    50 cust1 - 195 cust2
    query hangs.
    Is their any way we can improve the query performance .
    for searching alphanumerica values.
    I have a workbook is built based on the query.
    morethan 6 queries attached in the sheet 1....sheet2
    each sheet has it is own query with values.
    when I refresh and execute the workbook with the customer alphanumerica values it hangs.
    Query is built based on the multiprovider.
    Please help me onthis

    Hello,
    Try exporting in the 'fully formated grids and text'. It shouldl give you the 'member alias' used in the report.
    Looks like if you export in the 'querry ready grids and text' it will show the 'member name' as in database although the report may have used the 'member alias'.
    Regards

  • TS3276 I need feedback for the following issue. When I send email from this 27 inch iMac, the computer adds a string of characters in vertical column that represents the QWERTY key board, all alpha numeric characters are included. Yahoo mail, issue only o

    Restating my issue / question...
    When I send email from this iMac, there is a string of characters assigned. The characters are all the "alpha numeric" characters on the QWERTY key board. This only occurs when email is sent from this iMac. The issue does not manifest when using any other lap top or computer.
    Hence, I have ruled out the issue is a yahoo mail matter.
    Again, I can access the Yahoo mail account form multiple devices and send email without unintended assignment of character strings, but when I send wmail using this iMac, the issue happens everytime.
    Characters are stacked verticaly in a column. It looks as if all characters (except function keys) are included in the string.
    Any ideas?
    GMc

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click the line of text below to select it:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' | open -f -a TextEdit 
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). A TextEdit window will open with the output of the command. Post the contents of that window, if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    { sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|org\.(amav|apac|cups|isc|ntp|postf|x)/{print $3}'; sudo defaults read com.apple.loginwindow LoginHook; } | open -f -a TextEdit 
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)/{print $3}' | open -f -a TextEdit 
    Step 4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null | open -f -a TextEdit  
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' | open -f -a TextEdit 
    Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values?

    How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).

    How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).

  • Unable to replicate both Numeric and alpha numeric vendors records from R3

    Dear all,
    In our ECC 5 environment, we have some vendors who master record numbers that are numeric internally assigned i.e 7000000 or 23000000 and some alphanumeric externally assigned i.e SmallBusiness1 or Grinad10. This is posible as you may know via vendor account groups.
    We have implemented a classic scenario in SRM 4, Server 5 environment, therefore we need to replicate ECC backend vendors masters. We initally set SAP's AB business Partner (vendors) number range in SRM to A  - zzzzzzzz and created numeric number ranges to match thoes set up for all our vendors in ECC.
    When we ran BBPGETVD only the alpha numeric vendors records replicated down to SRM. The numeric were ingnored. The BBPGETVD t-code was reporting that the other vendors had incorrect data.
    We then chnaged the AB Business Partner (vendor)number range to 000000001 - 999999999 and ran BBPGETVD. Only then did the numeric vendors get replicated down to SRM. But the issue is now, I cannot replicate the alpha numeric with out chaanging the number range back to A - zzzzzzzzz.
    Question,
    How can I set the Business Partner(Vendor) number range in SRM to anable the replication of both Numeric and Alpha numeric assigned vendor records down to SRM.
    Thanks,
    Grace

    Christophe,
    PLEASE HELP I HAVE AN URGENT ISSUE NOW!!!
    On the subject of setting back the internal BP number range, does SRM expect it to be set for example to:
    01  0000000001 - 0000999999?
    Should the grouping for this internal number range be also ways set to 0001. Iam refernceing the settings in our sandbox client, they seam to be set up that way.
    If its set to say 0003, will this cause a problem?
    Because we have set all our BP ranges to external, any ORG unit, USER or position that we created after we "removed" the internal number range does appear to be working.
    I have noticed this. when I login as a new user and try to create a shopping cart, tthe product category drop down does not work on the "new user".
    If I go in the BP transaction and search for this new user or new unit org units that where created after the removal of the internal number range nothing is found!. The last internal BP number is 105.
    Question.
    If I set the internal number range back to
    01 0000000001 - 0000099999 and set the current number to 106, then delete and recreate the org units, do you think this will work?
    Please help I need to get this issue sorted out because as you said no new org unit/user can be setup.
    Thanks Again.
    Grace

  • How to make the Internal numbering as Alpha-Numeric

    Hi,
    In the Document Info Record, the Internal numbering is always numeric.
    How to make it Alpha-Numeric?
    Regards,
    Shashi

    Dear Shashidhar,
    Number assignment is derived from Document Type of the DIR. You can customise the Document type settings (DC10) to make the number range as External or Mixed.
    Modify the settings in "Number Assgmt" tab as 2 for only external number assignement and 3 for mixed number assignment.
    Hope this solves your question.
    Regards,
    Sudharshan

  • Alpha Numeric Values

    Hi
    IS it supported in GL code combinations to have a alpha numeric values in key segment values .. we have a project segment in our chart of accounts and need the aplpha numeric values eg PRT001 , ADT001 etc . We do have some customizations and wondering if code combinations would have any impact
    Thanks
    Veda

    Yes you can have alpha numerics.
    Regards,
    Gareth

  • Alpha numeric numbering production orders

    Hi,
        Do we need to have external numbering turned on to have alpha numeric numbers for production orders and planned orders ? By the way is external numbering allowed for planned orders ? If yes then how would MRP create planned orders if only external numbering is allowed ?
    Thanks

    Hi,
    As per my thinking , you can try with following enhancement for getting alphanumeric numbering of production orders :
    PPCO0001  Application development: PP orders
    You need to concetanate the fix part ( alphabetical) alongwith number range maintained for production orders.
    Pls. take help of your abaper for the same.
    You can implement above as Enhancement Project in Tcode : CMOD.
    Hope this helps.
    Regards,
    Tejas

  • Validation on alpha numeric

    Hi all,
    Can anyone help me getting validation on not allowing special character on field. I need just alpha numeric to be entered in the field. I have a field with datatype varchar2, which is allowing user to add special chars also. Please let me know the validation which i can apply on that item to restrict user to not add special chars. Seek help. thanks in advance
    regards

    Hi
    you can use javascript for this, use this function and change the ascii values according to your need
    function number_chk(e) {     //only numbers
    var k;
    document.all ? k = e.keyCode : k = e.which;
    return ((k > 47 && k < 58) || (k < 96 && k > 123) || k == 8);
    This function is allowing only the Numbers to be entered in the field.
    Call this function from your textfield's HTML form element attributes like this:
    onkeypress = "return number_chk(event)"

  • Problem in the isNumeric rule in the Alpha Numeric Rule Library

    The rule isNumeric present in AlphaNumericLibrary is an out of box rule.
    I have found that this rule returns '0' for all types of inputs (numeric/alphanumeric/alphabetic).
    On further investigation I found that the "append" does not work and is just returning a null. I have pasted below a snapshot of the output of the append function.
    <append name='splitList'>
         <substr>
           <ref>testStr</ref> --> abc123def
           <ref>counter</ref> --> 8
           <i>1</i> --> 1
         </substr> --> f
       </append> --> null
    I have also pasted a snapshot of the final result I got while testing the rule.
    Configurator> rule "Alpha Numeric Rules:isNumeric" testStr 23456789 0
    Configurator> rule "Alpha Numeric Rules:isNumeric" testStr abcdefgh
    0
    Configurator> rule "Alpha Numeric Rules:isNumeric" testStr abc123def 0 Can anybody please help me in this case?

    The problem is in the StripNonAlphaNumeric Rule I believe. Instead of doing a <substr>, do a <get> of the current index on charList to produce the correct behavior.

  • Why are alpha/numeric keys inoperative on aluminum apple wireless keyboard

    This is a follow on to previous topic that i answered.
    I was able to get my wireless keyboard partially operational.
    It is paired and only partially functionall
    • Alpha numeric keys do not work
    • Delete Key (backward) and fn-Delete (forward) work
    • Arrow keys work
    • Function keys and
    • Mouse keys are working 8 (up), k (down), u (left), o (right), 7 (up diagonal left), l (down diagonal right), j (down diagonal left, 9 (up diagonal right). i is the mouse click.
    i am leaving this up for the benefit of other Wireless Keyboard users.
    THE APPARENT PROBLEM IS IN THE UNIVERSAL ACCESS PREFERENCES.
    I just hit Opt key five times and now the Wireless Keyboard is working very well. The mouse keys are now normal keys for Alpha Numerics. Note i am typing 8, k, u, o, 7, l, j, 9, i. . Now do Opt five times.
    (typed on my USB keyboard) There is a alarm sound when the change over occurs. Now the Alpha Numerics are inoperative and the mouse keys work. Remember that the wireless keyboard does not have a number pad. Therefore; when mouse keys are activated the above alphanumeric keys take the place of number pad 8, 2. 4. 6, 7, 3, 1, 9, and 5.
    Now back to the wireless keyboard. From top to bottom, left to right lower case keys:
    zxcvbnm,./ asdfghjkl;', qwertyuiop[]\ `1234567890-=
    From top to bottom, left to UPPER CASE keys:
    ZXCVBNM,./ ASDFGHJKL:" QWERTYUIOP{}| ~!@#$%^&*()_+
    So i answered my question and leave it for your benefit. One other comment:
    When i first set up the keyboard and spent half a day yesterday thinking i was getting nowhere because the green ON light was out. Chalk that up to what i consider poor documentation which didn't describe normal operating conditions.
    It isn't supposed to light except during initial setup when it flashes. The caps lock key lights when it is pressed SO THAT IS A GOOD INDICATION THE KEYBOARD IS ACTIVE.
    Regards: The General

    General, you are a genius. This happened to me just last week. I racked my brain trying to figure it out. Apple Care had no idea and recommended I exchange my keyboard for a new one, which I did. The problem still persisted. I tried deleting my bluetooth plist and using a USB keyboard which resulted in disaster when I used the number pad and suddenly my mouse no longer worked.
    I scoured the literature looking for some sort of key-lock function and found zip. Apple Care told me to take in the entire CPU. Unsatisfied with that, I researched further and found your thread. I told Apple Care they need to tell Apple to make a note of this in their literature!
    Thanks again!

Maybe you are looking for

  • [Hyper-V] Too Much Hardware Resources?

    Hello, I have a Small Business Server 2008 standard (SBS2008) install that is virtualized. The virtual was installed and set up on Hyper-V Server 2008 originally 5 years ago. I simply copied the virtual server from 2008 to a new set of hardware runni

  • Photoshop desaturating but lightroom is not (same file)

    I'm sure this has been asked a million times before but.. Basically, I designed an ad for a client on my Macbook Pro (I usually design on my PC). Using my Mac: 1. I saved the image using Save For Web in Photoshop CS4 (with Convert to sRGB), and it sl

  • IPhoto events duplicate my pictures and use up my space

    When I organize my pictures in iPhoto events, pictures duplicate and use up my space/memory, what can I do? I have a MacBook Air and I have used up all my free space because I tried to organize my pictures. I will rather have my pictures organized by

  • Purchase Order - Version

    Hi SRM Gurus, After Ordering a Purchase Order, if we come out of the Process PO screen and after some time if again go and display the PO, System is showing second version. Due to which, in the Print out it is being displayed as Version 2, even thoug

  • Replacement forms in R12.1.3

    Hi, We have upgraded to R12.1.3 from 11.5.10.2 would like to know the replacement forms for the below forms. CSFCMPAR CSFCMQRY CSFCMWFM CSFCMWFT CSFCTMAI Thanks Mayank