Generation of a random not as - string for example

Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

Hello

I want to generate randomly, a string of tank that is not like a tank.

Select str of (select DBMS_RANDOM. String('U',1) double str) where str! = « A » ;

a few times I get NULL. How can I get a tank all the time? I want to create a function using this logic. can someone help me reach this goal?

Thank you

SG

Yet another way!

SUBSTR (REPLACE ('ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'X'), SELECT

DBMS_RANDOM. VALUE (1: 25),

(1) str

FROM DUAL;

See you soon,.

Manik.

Tags: Database

Similar Questions

  • Watch does not recognize the weight class as exercise-how can you add the duration of activity manually because none of the presets eg elliptical etc. is appropriate. Also does not count calories for example 35 when the rest of the group is around 500

    Look does not recognize the weight class as exercise-how can you add the duration of activity manually because none of the presets etc for example elliptical is appropriate and therefore do not count toward the daily goal. Also does not count calories for example 35 when the average of the others in the group is around 500.

    Hello

    When you use the application of the training session, choose the type of activity that best fits your business. For anything else - like weight - select the other category.

    During the follow-up of one year to the next helps:

    • Activity app will credit the ring of progress of exercise with one minute for every minute of the workout.
    • Active calories will be based on the data recorded by the heart rate sensor or a brisk walk, whichever is greater.

    Note, however, that the heart rate sensor is likely to give better results for the workouts that involve rhythmic (for example running) rather than the irregular movements.

    More information:

    Use of the workout on your Apple Watch - Apple Support

  • game-vmguestnetwork interface will not take string for dns-


    I'm tryign to form a script that will respond to differences in the number of ip of the dns and wins.  I can't pass a string to the dns - for setting the ip address.  I say $dns1, dns2 $ and it works but if I create a channel and send it there is an invalid dns error.

    Basically im import values and the wantign to check $dns1 and $dns2 and always send the $dns variable like it that my csv might have 2 dns for some servers and 1 victories for an another vs 2 both as a difficult standard.  I noticed that the cmdlet does not like spend you a varialbe $null.  any ideas, my goal is to not have a CSV with two dns and wins and let me build the logic to generate the string to the question of whether they have a value associated with them for a particular server-based dns and wins.

    $vmServers = import-csv $Import | Select name of the server, name, ip, subnet, gateway, dns1, dns2, wins1, wins2


    ($server in $vmServers){

    $computer = $server. ServerName

    $name = $Server. name

    $ip = $server. ip

    $subnet = $server. subnet

    $gateway = $server. entry gate

    $dns1 = [string]$server. DNS1

    $dns2 = [string]$server. DNS2

    $wins1 = [string]$server. WINS1

    $wins2 = [string]$server. Wins2


    #DNS to analyze how many DNS entries is required Max is two, but PowerShell will not accept a null value



    if ($dns1 -ne ""){

    $dns = $dns + $dns1

    if ($dns2 -ne ""){

    $dns = $dns1 + "," + $dns2

    Here's what im everything to get. I can't pass the $dns value if it is only one variable then it works.  Soon, as I have ip, ip and try to pass as $dns it fails.  The cmdlet says it requires a chain, but it is of course no exception.  If I type in manually from the intellectual property that it works very well the question is only forming a chain above with the dns for a particular server and if there is more than one IP so fails, even though my format is exactly the same as if I typed manually in DNS.

    game-vmguestnetworkinterface

    -GuestUser $AccountForOSAuth -GuestPassword $PasswordForOsAuth -vmguestnetworkinterface $nic -ippolicy static ip $ip -netmask $subnet -Gateway $gateway -dnspolicy static dns $dns -winspolicy static -wins $wins


    Hello, Foker-

    As this DNS setting - takes an array of one or more strings, you can append these DNS not null strings in a table and then use this table for the value of the parameter.  Thus, for the part of DNS-determination, something like:

    ## make empty array$arrDNSStrings = @()## for each potential DNS string, if not null or empty, add its value to the array of DNS strings$dns1, $dns2 | ForEach-Object {if (-not [String]::IsNullOrEmpty($_)) {$arrDNSStrings += $_}}
    
    ## then, call Set-VMGuestNetworkInterfaceSet-VMGuestNetworkInterface -GuestUser $AccountForOSAuth -GuestPassword $PasswordForOsAuth -VmGuestNetworkInterface $nic -IPPolicy Static -Ip $ip -Netmask $subnet -Gateway $gateway -DnsPolicy static -Dns $arrDNSStrings -WinsPolicy Static -Wins $wins
    

    Which means that at least one of the $dns1 and $dns2 has the value (not null).  If you say that both can be void/null, but you use another entry for everything (as indicated by the original $dns variable in your code), you could add that, "for all" DNS value in the table $arrDNSStrings to start - just add after the initialization of the $arrDNSStrings empty table.

    How does do for you?

  • My address book in v. 32.0 will not sort correctly for example by first, last, etc. ; How can I fix this?

    My address book has 106 names. I selected to sort by ascending by display name. But it will not fully sort this way; on the contrary, the names appear as lots, within each of them, sorting is (mostly) correct. When I click on the name above, sort allows to switch between ascendants and descendants, as expected, but the change occurs within each batch apparent rather than global. Also, it seems that in 1 or several lots, the display name is not what I chose, for example first, change or display.

    In other words, display is a long list of names, but it's really defined names, which are treated as such. I want to be in a 'set' and properly sorted as such.

    If I understand correctly, modules include different ways to add functionality to Thunderbird. They are Extensions, themes and Plugins. So, you could say that the lightning is a part of the extension of a wider selection of modules.

  • Why Twitter's Web site is not working properly; for example, the list drop-down settings?

    Many links on Twitter's Web site do not work in Firefox for Mac OS. For example, the 'gear' at the top of the page icon will not produce a drop-down menu so that I can disconnect. Instead, clicking on it sometimes produces basic account settings, but nothing else. The button "Compose a new Tweet" does nothing.

    I gave permission to Twitter to do anything and everything under "subject: permissions. I deleted all cookies on Twitter about the possibility that one of them has been altered. I can log into the twitter website and see other tweets.

    I'm running the most recent versions of the operating system Mac and Firefox and am not having problems with other sites I visit.

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.

    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • INSERT on X 240 key does not... for example when trying to use it with SHIFT-INSERT... why?

    The INSERT on my X 240 key does not work at all... either alone or jointly with another key like SHIFT - INSERT... Why?

    Press Fn + ESC to activate FnLock on and outside (for example make green LED come on and outside).

    As I explained previously, "Insert" is really "Fn - End" on X 240 keyboard.

    I checked it here, Shift-Insert works fine on X 240:

    • If FnLock is DISABLED, press Fn-shift-end

    • If FnLock is enabled, press SHIFT - end

    I tested in WordPad.

  • get the istaller widow does not - cannot connect for example help: photos from the camera to the windows Gallery

    problems with the pc, for example: transfer photos to pc camera, not a problem before and the messages ' windows install doesn't work do not.
    and - how do I know if I am registered with microsoft.

    Duplicate the content of the Post-
    having the same problem that below, but also not can not transfer pictures off camera to the pc and get "windows install doesn't work do not ' yet automatic updates

    can't seem to get the files without a fight and get over 'message' and when trying to install spikes "can not open format not supported or do.nt have the latest updates for windows gallery.» problem, only started recently. last photo successfully transferred a month ago

    Hello

    1 you get the error message during the installation of other programs?

    2. you have any security program installed on the computer?

    3 did you a recent software or changes to the material on the computer?

    I suggest to go through the steps from the link provided and check if it helps.

    See the issues of Windows Installer:

    http://support.Microsoft.com/kb/2438651#reso1

    What is Windows Installer?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-Windows-Installer

    See also:

    Troubleshoot camera connection

    http://Windows.Microsoft.com/en-us/Windows-Vista/Troubleshoot-camera-connection-problems

    Hope this helps and let us know if you need more assistance. We will be happy to help.

  • Certificate not found string for: RDK. RDK must refer to a valid key file...

    Hello devs

    I build a cordova app for BlackBerry 10 for a client and I wanted to sign the file bar. So in momentics I open the wizard and connected on the customers account to retrieve the bbidtoken.csk, the author.p12 and barsigner.db files. They are automatically placed in ~/Library/Research In Motion, so I guess that's right oke.

    Now when I try to compile a release it gives me the error:

    Error: Certificate chain not found for: RDK.  RDK must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.
    

    The strange thing is that if I create a new empty project in momentics and I export it as a release, I have no problem with the signature of the file bar. This error only occurs when I try to sign in via the command line via "cordova build blackberry10 - version" or via the command "blackberry-signatory".

    Any ideas on this issue?

    Thanks in advance!

    Run blackberry-signatory to the command line and look for the version at the top of the output number.  To use a BlackBerry ID token to sign you need version 3.0.9 or higher.  You have an older version in your path, which is looking for the files needed for the previous signature mode (installation of files of the LSB).

  • How to reduce the number of significant digits after the decimal point, not only displays for example, 0.12345678 convert to 0.123 in all cells

    I imported a. Table TSV having 4000 rows and 20 columns in numbers, by changing its extension .tsv in .txt. Then, drag and drop in numbers.

    The actual values have too many significant digits to be useful and may be beyond the capacity of the numbers to calculate or to find 262.825892344384

    If there is a way to have the SS (4000 x 20) 'Numbers' to reduce the values currently stored in the entire document or a particular column or row

    262.825892344384 to 262.8259 I am not interested to the value, but the value actually stored and used for calculations.

    I have a table that uses the formula of round and takes as input the data that you have imported.  Then you can select the data in the round table, copy

    then paste the data in the original table by using the menu item "Edition > paste formula results.

    Ibn chart at right

    B2 = ROUND (Original Data::B2, 3)

    It's abbreviation dethrone select cell B2 and type (or copy and paste it here) the formula:

    = ROUND(Original Data::B2, 3)

    now select cell B2, copy

    Select the cells B2 to C2, dough

    A2 = Data::A2 Original

    Select cells A2 through C2, copy

    Select cells A2 through the last cell in column C, paste

    now select the data in the table 'Data rounded' copy

    Select the corresponding cells in the original table, select the menu item "Edition > paste formula results.

  • Navigation in the web sites is not fair. For example try to log out of Facebook brings up the settings dialog box account instead. Repairable?

    Using Firefox 12. Having a progressive loss of functionality in some sites, first of all, within Facebook, CAT has stopped working. You try to publish a status results in a blank page. Now, try to disconnect displays the settings menu of the account. Also have problems with pizaa Domino online order jump to wrong pages and never fully loading.

    Two PC is involved. One with XP and one with Vista Home Edition.

    That is to say, doesn't have the same problems.

    How can I fix it? Have already tried Safe Mode, reinstall Firefox 12, back to an older version of Firefox, update of plugins, etc. etc. etc.,.

    Here is what I get if I try to do an update to Facebook via Firefox status. A white page with URL

    http://www.Facebook.com/AJAX/metacomposer/attachment/status/status.php?targetID=523696744 & xhpc = composerTourStart

    This may be related to your cookie preferences. Please see this post: https://support.mozilla.org/en-US/questions/934791?page=2#answer-360642

  • With the new update my screen is not wide enough for the format. How can I change this?

    After the new update, the display shows only 3/4 of what is presented. I reduced the size of the print and that did not help. For example, typing this, once I had as "present" the due screen move to the left to allow me to see what I was typing. It does this automatically. I don't know what caused it in the latest edition of the update, but he made me a certain number of problems by acting on the Bank of line because no moveable windows do not show enough to allow me to hit the submit button.

    I want to see the whole window when I log onto a site. When I open now Yahoo News, for example, I don't see the last of three inches. I can see them if I hover over the page, but until now, I always saw the entire page when it comes to the top without having to take any action on my part.

    Where can I or how can I do to get it to how she still worked before?

    I opened the learning system and it refers to a tool of Mozilla bar which I did not either. Don't know if it of relevant or not.

    Hello

    Firefox on Windows is now after display, scaling options that can make the biggest text on screens at high resolution. There are several ways to solve this problem. See the Web pages are broad and fuzzy after update of Firefox - how to fix article for a suggestion. Here is another possible solution:

    • Type of topic: config in the Firefox address bar and hit the Enter key.
    • If the warning that this might void your warranty , click I'll be careful, I promised.
    • Search for layout.css.devPixelsPerPx

    • Double-click layout.css.devPixelsPerPx to edit its value. The default value is - 1.0 in Firefox 22 and above. Change it to 1.0 to run as in previous versions of Firefox.

    If necessary, further adjust the value of 0.1 or 0.05. Values between 1.0 and around 0.5 to reduce the size of the elements. Use a value greater than 1.0 to increase the size. For example, a value of 1.25 will increase the font size of the 125% to account for the default DPI setting in Windows 8. Check the value that you enter. Definition of a value that is too small will take everything away and too high will explode things.

    If the web pages should always be adjusted so you can watch the extension Default FullZoom Level or NoSquint .

    To adjust the font size for the user interface, you can use the extension of theme font & size changer .

    This solve your problems? Please report to us!

    Thank you.

  • JDeveloper do not establish association for HR schema

    Hi, I just started learning JDeveloper and Oracle and I'm trying to follow this tutorial:

    http://docs.Oracle.com/CD/E37547_01/tutorials/tut_rich_app/tut_rich_app.html

    I got to step 19, and everything was working fine until I tried to run the AppModule. I get not all associations (for example. I do not have EmpDeptFkLink1 )

    All I have is

    AppModule

    -DepartmentsView1

    -EmployeesView1

    -JobsView1

    In my view, that ADF should automatically create associations for me based on the foreign keys of the tables, I checked to work properly.

    I looked at this thread https://community.oracle.com/thread/2411302

    but I don't think it applies to me I chose the HR schema when you move through the wizard.

    Can anyone suggest what the problem? I really want to learn this.

    Thanks for your reply. I understand that you wanted to say but as I am a total beginner even what is hard for me (tried and did not turn to the right).

    After a day scouring the Internet I thought about it so I'll post it here for others (and I'm surprised that nobody publishes this problem, happens by default when you install oracle 12 c!).

    Basically, your PDB is RESTRICTED the first time install you it. Trying to grant the user SESSION is RESTRICTED for some reason any does not have full access. Tables appear, but do not have points of view.

    To verify if your PDB (remember not CBD) is restricted or not (and make sure that you are logged on as user SYS):

    SQL > show files PDB;

    CON_ID CON_NAME RESTRICTED OPENING MODE

    ---------- ------------------------------ ---------- ----------

    2 SEEDS OF $ PDB READ ONLY NO.

    3 PDBTVTS READ WRITE YES

    As you can see, mine was. We could think about rating is a simple command that forums will tell you:

    SQL > DISABLE THE ALTER SESSION SYSTEM RESTRICTED;

    DISABLE RESTRICTED SESSION ALTER SYSTEM

    *

    ERROR on line 1:

    ORA-65144: ALTER SYSTEM DISABLE RESTRICTED SESSION is not allowed

    Took me hours before I realized there's no point to find a way to get this command works. Then I saw that you can start an instance using the RESTRICTED, then why not start up * without * this mode.

    To put it simply, stop the instance and start it again.

    SQL > shutdown immediate

    Connectable to closed database.

    (don't care which change the order now while the instance is closed.) I tried, still did not haha)

    SQL > startup

    Connectable to open database.

    SQL > show PDB files

    CON_ID CON_NAME RESTRICTED OPENING MODE

    ---------- ------------------------------ ---------- ----------

    2 SEEDS OF $ PDB READ ONLY NO.

    PDBTVTS READING ENTRY NO. 3

    And now it works! My God, so difficult just start learning with a tutorial. Basically the tutorial currently works perfectly. Auto-created associations.

  • What is the correct syntax to reference a page point (P23_ID, for example) in a process of PL/SQL page after submit?

    What is the correct syntax to reference a page point (P23_ID, for example) in a process of PL/SQL page after submit?

    TexasApexDeveloper wrote:

    Variable binding is preferred: P23_ID you can also use & P23_ID. (variable substitution notation).

    Bind variable and static text substitution references are not interchangeable. For example, static text substitution references cannot be used in allocation targets:

    :P23_ID  := 'foo';  -- valid
    &P23_ID. := 'bar'; -- syntax error (or something weird or sinister due to SQL injection)
    

    Substituting static text references should be avoided in SQL and PL/SQL code because of the risk of behavior topic SQL injection and / odd error because of values containing quotes, etc.

  • On my iPod Nano 7th generation, there are some artists who are not listed, although their songs are on the iPod. For example, I have two Blue Oyster Cult songs on the iPod and they show, but Blue Oyster Cult is not listed under "artists".

    On my iPod nano, 7th generation, there are artists who are not in the list of "artists". For example, I have two Blue Oyster Cult songs appearing under "Songs", but Blue Oyster Cult is not indicated under "artists". Is it possible to have the COB and other artists who do not appear to show up under the "artists"?

    See Missing artist or Album not with others by the same artist.

    TT2

  • convert XML to a random string for text fields

    Hello

    I'm now trying tolearn XML as a way to solve a word game project and I can see why it was suggested as a good direction to go.

    Currently, I sketched this little code just to see how it would work.

    Each text box receives another word is the word game / the other is a hint.

    I was hoping to get a new one appear each time I tested the movie but I can't seem to get it.

    Any suggestions to get me going in the right direction?

    Thank you

    import flash.net.URLLoader;

    import flash.events.Event;

    var allWords:Array;

    var thisWord:String;

    var gameWordsXML:XML;

    var xmlLoader:URLLoader = new URLLoader();

    xmlLoader.addEventListener (Event.COMPLETE, xmlLoaded);

    xmlLoader.load (new URLRequest ("words.xml"));

    function xmlLoaded(event:Event):void

    {

    gameWordsXML = new XML (event.target.data);

    / * gameWordsXML:String = event.target.data;

    allWords = gameWordsXML.split(","); * /

    gameWordsXML [Math.floor (Math.random () * gameWordsXML.length ())];

    for (var i: int; i < gameWordsXML.length (); i ++)

    {

    text_boxA.text = gameWordsXML.word [i]. @ val.

    text_boxB.text = gameWordsXML.word [i]. @ allusion;

    }

    }

    using

    
        
        
        
        
        
        
    
    

    use

    private function xmlLoaded(event:Event):void
    {
        gameWordsXML = new XML(event.target.data);
    
        var words:XMLList = gameWordsXML.elements("word");
        var randomIndex:int = Math.random() * words.length();
    
        text_boxA.text = gameWordsXML.word[randomIndex].@ val;
        text_boxB.text = gameWordsXML.word[randomIndex].@ hint;
    }
    

    method length() of an XML object always returns 1

    You must get the XMLList of the nodes that you are interested in and then call length() on it

Maybe you are looking for