DEFAULT option of ACCEPT command doesn't work

Hello,
I'm using the ACCEPT command to prompt for input for substitution variables. The ACCEPT command has a DEFAULT option that lets you specify a default value so the user doesn't have to enter one every time. Here's the syntax of the ACCEPT command:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12005.htm#sthref1778
ACC[EPT] variable [NUM[BER] | CHAR | DATE | BINARY_FLOAT | BINARY_DOUBLE] [FOR[MAT] format] [DEF[AULT] default] [PROMPT text|NOPR[OMPT]] [HIDE]
According to the SQL Developer User's Guide, the ACCEPT command is supported.
http://download.oracle.com/docs/cd/E12151_01/doc.150/e12152/intro.htm#CHDJBBIH
However, I can't get the DEFAULT option to work. Here's my SQL code:
ACCEPT tmp_var1 CHAR DEFAULT 'ABC' PROMPT 'Give me a value'
DEFINE tmp_var1
ACCEPT tmp_var2 CHAR DEFAULT "ABC" PROMPT 'Give me a value'
DEFINE tmp_var2
ACCEPT tmp_var3 CHAR DEFAULT ABC PROMPT 'Give me a value'
DEFINE tmp_var3
ACCEPT tmp_var4 NUMBER DEFAULT 123 PROMPT 'Give me a value'
DEFINE tmp_var4
ACCEPT tmp_var5 NUMBER DEFAULT '123' PROMPT 'Give me a value'
DEFINE tmp_var5
ACCEPT tmp_var6 NUMBER DEFAULT "123" PROMPT 'Give me a value'
DEFINE tmp_var6
I've tried this using F5 to run it and I've also used the "Run Script" toolbar button. If I enter values in the "Enter Value" window, they are displayed properly. If I don't enter values, the default values I've specified are never used. Here's the output when I enter values in each dialog window that appears:
DEFINE TMP_VAR1 = "a"
DEFINE TMP_VAR2 = "b"
DEFINE TMP_VAR3 = "c"
DEFINE TMP_VAR4 = "1"
DEFINE TMP_VAR5 = "2"
DEFINE TMP_VAR6 = "3"
Here's the output when I enter nothing in each dialog and click "OK" each time:
DEFINE TMP_VAR1 = ""
DEFINE TMP_VAR2 = ""
DEFINE TMP_VAR3 = ""
DEFINE TMP_VAR4 = ""
DEFINE TMP_VAR5 = ""
DEFINE TMP_VAR6 = ""
I get the same output if I click "Cancel" instead, or if I click the 'X' to close the dialog, or if I hit ESC to close the dialog. No matter what I do, I can't force the default values to be used.
I had this issue in SQL Developer 1.2 so I downloaded SQL Developer 1.5.1 today and I still have the same problem. Here's the info from the "About" screen:
Java - 1.5.0_06
SQL Developer - 1.5.1.54.40
My database is Oracle 10.2.0.2.0.
Thank you for any help you can offer,
Brian

Brian,
Thank you for the bug report.
Bug no 7251045 OTNFORUMS: ACCEPT DEFAULT OPTION DOES NOT WORK IN WORKSHEET
logged
-Turloch

Similar Messages

  • Visually handicap, needs to increase font size in logic pro, Command  doesn't work

    Hi,
         I'm visually handicapped, and new to logic-pro.  I'm having a miserable time reading the internal logic-pro fonts.  Command + doesn't work, and I can't find any preferrence or settings options that affect the default font sizes, any ideas?

    Unfortunately you cannot change the font size of the main fonts in Logic...
    However, there are a couple of other settings you may not be aware of...
    1) Under Logic Pro's preferences... go to Display
    Now you can change the size of the playhead and Local Windows under the General Tab
    You can increase the size of the Logic plugin windows/fonts sizes under the Mixer Tab (I have mine set to 200%)
    Note: This setting does not apply to 3rd party plugins.. only Logic's own plugins...
    Under the Piano Roll tab you can change the size of Bar/Beats/Division Lines...
    2) Using the screen zoom command... Hold down control and scroll on your mouse... will zoom in the screen...
    Note: as you are using Mountain Lion there is also a new setting under System Preferences/Accessability
    Choose Zoom on the left hand side
    Now choose Zoom Style/Picture in Picture and instead of a full screen zoom it provides you with a magnifying glass of sorts to just magnify the area arund your mouse pointer. I find this setting very useful....
    Hope this helps...

  • Bash command doesn't work after update

    I just ran pacman -Syu as normal, but some got many errors like below:
    ( 3/11) upgrading binutils
    error: command failed to execute correctly
    and every package except kernel-headers got a error message like that. and then i found most of my bash command doesn't work any more, just like ls and vim. However, some others like pwd and cd still work correctly.
    Any one any ideal?
    Last edited by ranjiao (2009-11-12 13:26:01)

    ranjiao wrote:I removed /lib64 and make a soft link from /lib64 to /lib, as Matlab09 requires a /lib64 containing crt libs.
    is this the cause?
    Yes.
    I've done that before and got into the same problem when updating glibc, the lesson here, don't mess with the default directory structure.

  • HT1338 Safari Hide command doesn't work

    Now my Safari 6.0 "Hide Safari" command doesn't work (whether clicking the command-H or going up under the Safari menu and down to the Hide Safari command.
    Any suggestions anyone? I am about one more issue away from abandoning Safari altogether and just using Chrome and Firefox.

    I've made a number of iWeb websites. I notice that I can't "Command +" the text larger or smaller. Is this a function of an iWeb site .. or is there something I'm missing?
    What browser are you talking about? If Safari, is it the same with the other major browsers (Firefox and Opera)? Could you provide the url of an example?

  • Unhide library command doesn't work

    Unhide library command doesn't work in terminal

    Open the Terminal application in your Utilities and paste the following at the prompt:
    sudo chflags nohidden ~/Library
    Press RETURN. Enter your admin password when prompted. It will not be echoed.
    The "sudo" may not even be required, but if it is and you don't use it, then you'll get an error message. Just try again using the above command.

  • Safari 6.0 command- doesn't work

    Command+ works fine but command- doesn't work. I'm running 10.7.5

    Just add the following to the file com.apple.WebProcess.sb.
    Please add it below the Basic system paths and above the FIXME: or System and user preferences:
    ;; Plugins
    (subpath "/Library/Internet Plug-Ins")
    (home-subpath "/Library/Internet Plug-Ins")
    And it's fixed!

  • I have a few desktop icons that won't allow me to move them to trash or relocate them on desktop.  A PDF, a DOCX and a PART.  Not locked under get info or get info command doesn't work. Suggestions?

    I have a few desktop icons that won't allow me to move them to trash or relocate them on desktop.  A PDF, a DOCX and a PART.  Not locked under get info or get info command doesn't work. Suggestions?

    This any help?
    http://support.apple.com/kb/HT1526

  • Tabsontop console command doesn't work any more since v29.0.1

    I used to be able to put the tabs on the bottom where they belong using the console, and now this command doesn't do anything. I don't want to use Chrome, I want to use Firefox, just make it a default option instead of making me root around in console settings that don't even work any more.

    You do not need to install the Stylish extension to be able to do this.
    You can easily create a chrome folder in the Firefox profile folder and a userChrome.css file in this folder with the code.
    Note that you may need a higher number (CTR uses #TabsToolbar {-moz-box-ordinal-group: 100} and Tab on Bottom uses: #TabsToolbar {-moz-box-ordinal-group: 10000 !important;}) as there may still be toolbars around that use a higher value for this property.
    See also:
    *[[/questions/996959]]
    *[[/questions/997335]]
    Add code to the <b>userChrome.css</b> file below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #TabsToolbar {-moz-box-ordinal-group: 10000 !important;}
    </nowiki></pre>
    The customization files userChrome.css (user interface) and userContent.css (websites) are located in the <b>chrome</b> folder in the Firefox profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)

  • Priority class command doesn't work with a certain program

    Hello folks,
    I'm trying to automatize the priority class setting of a program named FreeTrack through a command written in the shortcut. Hence in its "target" I've written this (I'm using Windows 7 x64):
    C:\Windows\System32\cmd.exe /c start /REALTIME /AFFINITY 8 "" "E:\Program Files (x86)\FreeTrack\FreeTrack.exe"
    As you can see I also wanted the affinity mask of the program to be set automatically upon launch, and it works fine. The issue is that the priority class remains unchanged to normal.
    I've tried removing the "affinity" command but it didn't work.
    The priority command does its job on another program (for the attempt I used Firefox).
    Is there any explanation for this anomalous behaviour? And, most importantly, is there a solution (which preferably doesn't involve installing additional programs) ?
    Thank you and regards

    All right, I've found a solution; I'll post it for anyone in need. It's not particularly elegant but still functional.
    First of all I've created a .cmd file in the folder where is located the executable of my interest.
    In it, using notepad, I've written as following:
    start /affinity 8 FreeTrack.exe
    ping 1.1.1.1 -n 1 -w 2000 > nul
    wmic process where name="FreeTrack.exe" CALL setpriority 256
    Note that the /affinity command is optional and not required (however, I needed it). Replace "FreeTrack.exe" with the name of your executable.
    The ping part pings a fake IP once and then waits 2000 milliseconds (set a higher waiting time if this one doesn't work).
    The third line changes the priority for all the processes under the name of "FreeTrack.exe" to, in my case, realtime.
    Priority legend:
    Low: 64 Below Normal: 16384 Normal: 32 Above Normal: 32768 High: 128 Realtime: 256
    Since the command prompt window appears for 2 seconds and I don't like that, I've created a .vbs file in the same folder of the .cmd file and executable. This hides the cmd window.
    I've put the following into the .vbs file (edited with notepad):
    Set WshShell = CreateObject("WScript.Shell" )
    WshShell.Run chr(34) & "FreeTrack.cmd" & Chr(34), 0
    Set WshShell = Nothing
    Replace "FreeTrack.cmd" with your .cmd file name.
    I've then created a shortcut on the desktop to the .vbs file and changed the icon to the one of the executable.
    Surely this solution won't work if the program keeps reverting back its priority while running.

  • Unix Command doesn't work in Tiger

    Hi,
    I've got labs of eMacs that I'm finally upgrading to Tiger. My image seems to work fine, but I'm running into a weird quirk with my "Send Unix" commands via ARD. We're doing NWEA testing and LOVE the unix commands because we can login to machines, turn on TestTaker, login to TestTaker, and select the correct test (math or reading) and the right version of the test.
    The script below works fine on a panther eMac.
    osascript
    tell application "System Events"
    keystroke "1" using command down
    delay 3.0
    keystroke ASCII character 31
    delay 2.0
    keystroke return
    keystroke "n" using command down
    end tell
    On my Tiger machines, the command stops on the:
    "Keystroke ASCII character 31" line (this should arrow down to next test version).
    A report window comes up in ARD with this error message:
    86:104: execution error: System Events got an error: 31 doesn't understand the ASCII character message. (-1708)
    This used to work perfectly, but now I can't get ASCII 31 (or arrow down to work). The real killer is that other techs in my school district have eMacs running tiger with same commands that work (some have to arrow down 16 times to get to correct test version). The other commands (like command 1 and returns, command n) all work fine! Hate to have to touch 80 machines each day to select proper test version when we log in.
    Any Suggestions????

    Try this form of the line:
    keystroke (ASCII character of 31)
    That's worked for some people. Hope it works for you. If it doesn't work as given, try without the parentheses.
    Regards.

  • Restart command doesn't work

    I believe the following problem began when I updated to 10.4.9. I can't be absolutely sure but the timing seems about right. I've since updated to 10.4.10 in an effort to fix it, but haven't succeeded.
    The problem is that when I select the Restart command in the Apple menu the computer will begin the process, all open apps will be quit, the finder will quit, my desktop will go to blue to a few seconds. Then the monitor will go blank. Then nothing after that. I DO NOT get the startup chime. The machine is still powered on, the light above the power button is still lit. If I leave the machine for any length of time the fans will start speeding up gradually until they're at full tilt. After 4 or 5 minutes it becomes obvious that nothing is going to happen, so I need to manually shutdown via the power button.
    Does anyone know what logs I can post here to help in the diagnosis? This also happens if any installer application needs to perform a restart, ie Software Update.
    Thanks,
    Chris

    Hi chris catalano-
    I have had updates make my machine do some crazy stuff just as you describe. I would actually let it go for 15 or 20 minutes before declaring it a no-go.
    If that doesn't work, try resetting the SMU and see if that helps: How to reset the SMU on a Power Mac G5 (Late 2004) or Power Mac G5 (Late 2005)
    Luck-
    -DaddyPaycheck

  • Find command doesn't work

    The find command F or just Find doesn't work any ideas on fixes? I tried trashing kybrd and finder prefs. This is on a G3 running 9.2
    Thanks

    Hi, Bookalaka -
    If Sherlock, or an alias to it, is not in the Apple Menu Items folder (in System Folder), then the Find function (Command-F) will not work. If that is the case, replace that item - move either Sherlock itself, or place an alias to it, into the Apple Menu Items folder.
    Note - if you use Internet Explorer, and want to be able to use the supplemental toolbar icon for Sherlock, then Sherlock itself must be placed in the Apple Menu Items folder (IE does not recognize an alias to it).
    If for some reason you are missing Sherlock completely, you can replace it fairly easily. Look in the System Folder on any OS 9.1 or later Install CD; you'll find it in the Apple Menu Items folder. Just copy it to your hard drive.

  • Trim command doesn't work fix

    I downloaded PE 11 and PE12 and my trim command will not work for me at all. I use this so much and can't even use either one. I had 12 and went back to 11 and it still doesn't work. It is so hard to get help now from Adobe. I need this command to work. Is there a fix I can download

    Nancy K Lindway wrote:
    I downloaded PE 11 and PE12 and my trim command will not work for me at all. I use this so much and can't even use either one. I had 12 and went back to 11 and it still doesn't work. It is so hard to get help now from Adobe. I need this command to work. Is there a fix I can download
    Have you tried to reset the tools to see if corrects itself?  To do this, launch a blank image in Editor under Expert mode tab.  then at the bottom look for something like this (you will need to click on the image to magnify it):
    The reset button is at the red box shown on the right-side of the picture.  You need to click on the arrow icon to reach it.  You can reset all tools or reset only the selected tool.  I would reset all tools and done with it.
    This might or might not fix it but worth a try.
    Good luck.

  • "Force Quit" command doesn't work

    Apple-Option-Esc, or Command-Alt-Escape, or whatever you'd like to call it.
    It stopped working.
    I'm on an early 2011 MacBook Pro, 10.8.2. I can't find anything from other people having this problem. I can force quit applications that are already open with the Apple-Q command, but the Force Quit window no longer opens. It hasn't for a long time now.

    It is possible that you (or some software) has changed the keyboard shortcut. 
    Does Force Quit still appear/work from the Apple Menu?
    Does Force Quit still appear/work when you option click and hold on a dock icon?
    Does the keyboard shortcut work for a different user, e.g., Guest?
    Does the keyobard shortcut work when you have started up in Safe Mode?
    charlie

  • EA2 : describe command doesn't work

    Hello,
    The command describe (F4 ou right click + describe) doesn't work with the sql developer ea2 version.

    Note that there is a difference between v$session and v_$session.
    Running as a user with DBA role against 9.2.0.8,10.1.0.5 and 10.2.0.2 gives identical results
    F4 on v$session gives empty results. The results windows is headed v_$session.
    F4 on v_$session gives No object found: v_$session.
    F4 on sys.v_$session gives No object found: sys.v_$session.
    desc v$session in a worksheet gives a full listing
    desc v_$session in a worksheet gives ERROR: object v_$session doesn not exist.
    desc sys.v_$session gives a full listing.
    Using SQL Plus gives the same results as the worksheet desc. This is correct. There is no synonym for v_$session so you can't see it without a schema qualifier.
    Message was edited by:
    smitjb

Maybe you are looking for