Take the input from command line

Hello

I have a sql file with multiple accept statements.
I would like to run this script from the DOS command line and provide the script with values for declarations to accept it.
How can I do this? (I don't want to change the sql for this file)

Kind regards
HJH

I have a sql file with multiple accept statements.
I would like to run this script from the DOS command line and provide the script with values for declarations to accept it.
How can I do this? (I don't want to change the sql for this file)

Create the text file and put a value per line in good condition. For example, you have the script following script.sql:

accept V1 char prompt 'Enter value for V1:'
accept V2 char prompt 'Enter value for V2:'

prompt Your input : &V1 &V2

exit

Text file values.txt might be the following:

ABC
DEF

Then, use the following syntax:

sqlplus.exe /nolog @script.sql < values.txt

Tags: Oracle

Similar Questions

  • W530 - activate the camera from command line?

    Hi guys,.

    I searched for a way to activate and capture and image of the camera integrated in the command line. Does anyone know how to do? I have a W530 with Windows 7 64 bit.

    Thank you!

    Lenovo is not a tool like this, but I did a quick search on google and found a few utilities in the sample and the code:

    http://batchloaf.WordPress.com/2011/04/06/Snapz-a-command-line-cam-image-grabber/

  • I need to increase the memory available to an application from command line (DOS window)

    At the cmd prompt, I perform the mem command and get the following. I have 3gig of ram but the mem says I have 0 contiguous extended memory available? Is there a way to access this memeory?

    memory 655360 bytes total conventional
    655360 bytes available in MS-DOS mode
    578240 largest executable program size

    1048576 bytes total contiguous extended memory
    0 bytes available contiguous extended memory
    941056 bytes available XMS memory
    MS-DOS resident in high memory area

    This solution does not work, thanks for the reply but. I found that Vista locks going to the Command.pif running cmd from Windows users, so even if you terminate the process cmd it active again. I also found a mistake in one of the sons were he mentions emm396.exe as a way to check the emm on Vista memory. My Home Premium installation isn't emm386.exe.

    Anyway once again don't thanks for the help no wonder that many stores do not use Vista. There are a number of development tools that run from command line.

  • How to access the disk HARD recovery from command line?

    Hello.

    I have a little trouble with my toshiba Satellite. My system crashed and I forgot to create the system recovery dvd.
    I can't access the "Toshiba HDD Recovery" when I start from another DVD Windows-7, but io accesses the recovery of HARD drive on drive D: with the command line. Is it possible to start the drive HARD recovery manually?

    Kind regards
    Marco

    I know something like this isn't possible.
    If you did not create a recovery disk and you cannot start the HDD recovery procedure, you can order the new Arvato recovery disk

  • From server managed by using the Node Manager command line

    Hello

    I have configured the Node Manager and it is connected to the administrator of the server without problem. Now, I wanted to start the server managed through the console but it is a failure and my guess is that the syntax of the command line used is not correct.

    My question is, how do I change the command line used to start the Node Manager-managed server? I try to use the configuration tab start the server and it seems that does not. I also try to update the file .properties for the managed server.

    Whenever I look at the managed server logs, it gives me this line...

    NodeManager > < start WebLogic server with command line: <>...

    The command-line in newspapers aren't what I put in the .properties file or on the Server Start tab. She is from somewhere and I don't know where. I just want to set up the command line Node Manager uses to start a managed server.

    If all goes well, I'm clear with my problem and someone might be able to help. Thank you.

    You can try to follow the Option-2) mentioned in the link below: http://jaysensharma.wordpress.com/2010/03/26/nodemanager-based-managedservers-setting-mem_args/

  • Build errors from command line in the newspaper. How can I fix it?

    Version: RH 9 (latest version)

    OS: Windows 7, 64-bit

    Output: CHM

    I have a batch file that uses features of generation of HR command line to generate our CHMS regularly.

    The command line works for my other projects. But I have a project that has three different CHMS issued, and each chm of the project always fails.

    Each three generated log file contains information to that effect.

    Adobe (R) RoboHelp version 9.0.0.228 project command line compiler

    Copyright (C) 2006-2007 Adobe Systems Incorporated and its licensors. All rights reserved.

    Project: d:\hg\pcdmisqa\pcdlrn\help\toolkitmodules\PC-DMIS Toolkit Modules.xpj

    Presentation: Toolbox Modules - various.

    Output: D:\DocProjects\Outputs\common_chm\toolkitmodules.chm.

    Scanning for the compilation project...

    Error: Impossible to analyze all project files. Please use RoboHelp to recover the project.

    Unexpected error: failed to prepare the data of the single source for RHCL. Please try to compile in RoboHTML.

    Any ideas? Moreover, these AIDS compile fine with HR itself.

    Okay, deleting the CPD and reimport the file HHP to recreate the XPJ and all other project files fixed this problem for me. They seem to be build by using the command line now.

    But he created a LOT of work: build all the page layouts should be recreated and all conditional compilation tags had to be regenerated.

    If you go this route, be sure to make a backup of your project first you may have to refer to him to get things back the way they were after the import process.

  • Windows of different sizes from command line

    Hello

    I'm running Firefox and - width - height of command line options. The problem I have is that these settings are ignored if a Firefox window is already open. In this case, all of the following windows are open with the size of the first (original) window. It does not matter what I type for width and height. These parameters are used only for the first window, when Firefox is actually started.

    I've mitigated it wrong before with javascript used in web pages to resize the window to the document load event. Now I have to upgrade to the latest version and resizeTo does not work on windows that are not open via window.open.

    What are the options I have to open multiple windows of Firefox with different sizes? They all use the same profile.

    We use a very specific environment, closed and controlled with a web server and not internet access. There was no need for update of Firefox 4. Now, we want to upgrade, but this change in functionality prevents us from the upgrade. Because the computers of our customers are on CentOS 5, we would be upgrading to Firefox 17 which is part of the standard CentOS 5 distribution.

    I wrote a bash script that made a list of the windows, firefox lance made a list once again. It then searches the differences in the lists of before and after opening firefox. In the end, the script uses wmctrl to change the size of the window which were found also recently opened. There is a small chance that some other window might appear while the opening of firefox and it will be be reduced too. However, in our case, this probability is very low and it is not worth.

    Here is the script which takes 3 parameters: width, height, URL.

    #!/bin/bash
    
    diff(){
      awk 'BEGIN{RS=ORS=" "}
           {NR==FNR?a[$0]++:a[$0]--}
           END{for(k in a)if(a[k])print k}' <(echo -n "${!1}") <(echo -n "${!2}")
    }
    
    window_count=$(wmctrl -l | wc -l)
    
    windows=()
    
    wmctrl -l > output
    
    exec 0<output 
    
    while read id type machine name
    
    do
    
      windows=("${windows[@]}" "$id")
    
    done
    
    # width and height in this call are ignored if some other firefox window is already open
    
    /usr/bin/firefox -P profile -width $1 -height $2 -new-window $3 &
    
    new_window_count=$window_count
    
    while [ "$window_count" -eq "$new_window_count" ]
    
    do
    
      #echo waiting...
    
      sleep 1
    
      new_window_count=$(wmctrl -l | wc -l)
    
    done
    
    new_windows=()
    
    wmctrl -l > output
    
    exec 0<output "$id")="" "${differences[@]}"="" $i="" -e="" -i="" -r="" 0,-1,-1,$1,$2="" <="" differences="($(diff" do="" done="" for="" i="" id="" in="" machine="" name="" new_windows="("${new_windows[@]}"" new_windows[@]))="" pre="" read="" type="" while="" windows[@]="" wmctrl="">
    
    done
    
    I had to do some tweaking in the script to fool the HTML editor. Some formatting of text is performed, that is not source friendly. That is why the script might look formatted strangely.
    
    </output>
  • How do you access iCloud drive from command line?

    I'm on OS 10.10.5.  On any Finder window, I see iCloud drive listed (with subfolders, some created by me, others not).

    How can I look at them from the point of view "unix"?  That is, from the command line.  When I do:

    $ sudo find /-name iCloud\ in car

    He finds a /System/Library/PrivateFrameworks/CloudDocsDaemon.framework/Versions/A/Resource s/iCloud Drive Drive.app/Contents/MacOS/iCloud file, which is an 'executable x86_64.  I'm afraid to run it from the command line.

    Can someone please tell me how I can watch some entries in folder under "iCloud Drive" via command line?

    Thank you.

    Tena

    I can access m iCloud drive of documents from the Terminal by entering

    CD ~/Library/Mobile\ Documents/com ~ apple ~ CloudDocs.

    This will set the current directory to the root of the drive to iCloud.

  • NIMAX generate a report from command line

    Dear users,

    I would like to generate report MAX ("MAX generate Report.vi') command line. Nimax.exe has this ability, or do I have to write a wrapper to vi?

    Kind regards.

    Hello

    It is possible to do it from the command line. You can see how to do this in the document:

    Documenting the Measurement & Automation Explorer (MAX) Configuration information

    http://digital.NI.com/public.nsf/allkb/271F252B4EF0A2E0862570E70056A1E4?OpenDocument

    Kind regards

    Dawid

  • The application's command line arguments get the path to the file in windows Explorer

    Hello

    I am trying to open a file with my labview application .exe, so I thought that windows was sending the file path double clicked in Explorer solutions in the form of argument, but all I get is the name of my exe file.

    Does anyone know how to set up windows or the application to get the double click path from the Explorer, which has the file extension has already been associated with my exe?

    Thank you!

    I'm not sure I understand, but I think you want your Labview program to open another file, as a file of perimeter?

    Have three basic choices.

    Hardcode the path with file name in your program http://zone.ni.com/reference/en-XX/help/371361K-01/glang/path_constant/

    Use the file open vi and for the user to select the file to open http://zone.ni.com/reference/en-XX/help/371361J-01/glang/file_dialog/

    Write your program to accept a http://digital.ni.com/public.nsf/allkb/17C3AD70493CE0208625666A00763364 command line argument

  • How to set address static IP for cisco APS to the controller via command line

    Hello

    in our project it 208 APS registered in a WISN-1 controller

    How do I assign a static ip address to this Aps via command line in a controller 4404

    Thanks to the Internet, it takes more time to assign the static ip address

    You don't mention what version of the code, you are on but on 7.0:

    ap static IP config activate

    You can also add

    ap static IP config add domain

    ap static IP config add nameserver

  • The file of the bar - descriptor.xml (and make the application of command line)

    I made a game with air and it is online for sale on Android and iOS. It is somewhat popular and I thought to put up on Blackberry for quite awhile now and with the Port of soon-to-start-A-Thon, this seems to be a great time to finally make it.

    BlackBerry is not very common that here where I live in Sweden, however it still looks like an interesting with a potential platform if I want to get the trip. Unfortunately I don't own a camera myself so I'll use the Simulator. With some graphic problems with the simulator when running in mode BB10DevAlpha (icons does not appear right) and the Simulator is very slow when running in mode BB10DevAlphaSafe (chart appears on the right, but it seems that updating them requires more CPU my computer are available).

    The game is built using nothing other than Adobe Flash Professional CS6 and a bunch of command line tools to build the package and sign. I've only got an old computer with Windows XP now since the death of my main PC, all at the time and since the Port-A-Thon is just a few days I do with what I got.

    Firstly I understand that only AIR 3.1 is supported by Blackberry 10, so I use the old AIR SDK 3.1 to create a SWF (flash) file.

    What I really need to do should be used in the exported SWF file of the game, then use the command line tools provided by RIM to build the package, right?

    Except that I did not count on bar - descriptor.xml to be so difficult to understand.

    I was brought to the documentation here: https://developer.blackberry.com/air/documentation/bb10/bar-descriptor_config_file.html

    It says Adobe AIR at the top, the platform selected is Blackberry 10 and the title says "bar-descriptor configuration file", so it must be in the right place!

    I start by trying the 'bar-descriptor configuration example file"on this page:

    ===========================================================



      
          None
          fake
      

     
      
       Name of the author
     
      
       gXXXxXXx ##XxXxXxxxXxXX #xxx
     
      
       Core.Games
     
      
       Icon.PNG
     
      
       HelloWorld - splash.png
     
      
       read_geolocation
       use_camera
     
      
       1

    ===========================================================

    Of course during the test I replaced a few things in the example above with the correct filenames for images etc, I just copied the example of right - off this time to you guys show what I mean.

    Firstly, I extract "blackberry-tablets-sdk - 3.0.0" in a folder on the disc, then I make sure as a full path to the "bin" in the SDK folder inside the path on the OS environment variable.

    Then I read on "Applications of Test using the command line": https://developer.blackberry.com/air/documentation/bb10/testing_your_application_cmd_ms_2010851_11.h...

    Now I run:

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf myappnameicon86.png bg splashscreen1024.png - device 192.168.8.128

    Note that "bg" is a folder with 500 images that must be accessible from the app. I hope that I can just add the folder like this and not type a path to each image file...

    What I get (in lib\adt.jar via the bat file):

    error 101: Namespace is missing
    Error: Validation of the AIR is not

    Okay, so the example did not straight on the box.

    Now, I've read all paragraphs in the first URL I linked above ("the bar-descriptor configuration file"). I start my own XML file and make sure to include everything that is marked as "necessary". That's what I'm left with:

    ===========================================================



        MyCompany
        
            
            com.mydomain.myappname
            My App name
            3.0.0
            
                splashscreen1024.PNG
            

            1.5.0
        

        run_native
        
            application
            
                bb.action.VIEW
                application/octet-stream
            

        

    ===========================================================

    I have no idea of what concerns the block whole call target, but it took, so he must be there.

    Now I launch (notice that myappnameicon86.png is gone since no icon is mentioned in the above XML code, it is not mandatory):

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf bg splashscreen1024.png - device 192.168.8.128

    Yet once, I get:

    error 101: Namespace is missing
    Error: Validation of the AIR is not

    Frustrated I get autour on the forums for answers, because the official documentation is nowhere getting me.

    I'm left with this:

    ===========================================================


    http://ns.Adobe.com/air/application/3.1">
        com.mydomain.myappname
        1.5.0
        
        My App name
        
        My App name
        
        
            myappname.swf
            standard
            fake
            true
            true
            landscape
            GPU
            fake
        

        
            myappnameicon36.PNG
            myappnameicon48.PNG
            myappnameicon72.PNG
        

        fake
        fake
        
            qnx.fuse.ui.skins.QNXDevice
            qnx.fuse.ui.skins.QNXNetwork
            qnx.fuse.ui.skins.QNXSensors

            qnx.fuse.ui.skins.QNXSkins
        

    ===========================================================

    Looks like the XML code that I use when I build for Android.

    First of all it doesn't have the tag root of qnx, but also nothing of the icons are of the required size (86 x 86). The tag required splashscreens and invoke target is also absent, to name a few. No idea of what the entire block of 'extensions' really do.

    Surely, this does not work:

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf QNXDevice.ane QNXNetwork.ane QNXSensors.ane QNXSkins.ane myappnameicon36.png myappnameicon48.png myappnameicon72.png bg-device 192.168.8.128

    Success in building the package BAR to my infinite surprise!

    He even managed to install on the Simulator. An icon for the game. However when it auto-couru the app went into landscape, thought for a second and then crashed (or you leave?) without a message.

    Perhaps because the required qnx tag was missing in the XML?
    Perhaps because images in the bg file could not be loaded?
    Perhaps because he had no permission to keep screen from dimming?

    I have no idea. I tried to add XML to qnx at the address previous to the bar - descriptor.xml, I thought that maybe he needed both the qnx block for when you run the application and the application block for when packaging. But now, he has complained of something like XML is not not clean ("' fatal error: markup in the document following the root element must be well-formed." ").

    So he came to it, I have to ask for help if I ever make the deadline of the Port-A-Thon.

    (1) how am I supposed to write the bar - descriptor.xml?
    (2) what command line starting by "blackberry - airpackager.bat" is OK to use?
    (3) all I have to do is build the SWF using Adobe Flash Professional CS6 and then pack it using the Blackberry SDK, right?

    First of all, there are two xml files that you need.

    One is called the manifesto, is to AIR and is called yourappname- app.xml. It is identical to the ones you use for Android and IOS, though some elements will be ignored. It's one you need to switch on the command line, and is probably causing the 'Namespace' missing error message. A file manifest a minimum is:

    
    http://ns.adobe.com/air/application/3.1">
    
        com.example.appname
        My Fabulous Game
        1.0.0
    
        FileNameOfYourSwfWithoutExtension
        YourCompanyName
        
            [This value will be overwritten by Flash Builder in the output app.xml]
            true
            false
            none
            cpu
            false
        
    
    

    Replace the text in red with your own stuff.

    The second xml file is called to the bar of descriptor. It is for App World and the installation process and is called bar - descriptor.xml. It contains information about signing code, icon, permissions etc. A simple bar - descriptor.xml is:

    
    
       
          none
          true
          landscape
          false
          cpu
       
    
       
       your-name-on-certificate
       your-id-on-certificate
    
       core.games
    
       
       1
    
       
       
          icon86x86.png
       
       splash-landscape.png
    
       
       2.1.0.1314
    
       
       access_shared
       access_internet
       play_audio
       set_audio_volume
    
    

    Make sure that you at least change the red dots.

  • The question of command line CAP.

    So I'm all new development of blackberry, but I found an inexhaustible amount of info (from this forum and experienced developers).  I read a lot of posts on the lines of command about the file randomly Googling rapc.exe.  My problem is that my .cod files are too big.  I understand the maximum number of bytes allowed in a .cod file is 64 KB, unfortunately my files have reached 90 KB in size.  I can't delete images and unused classes because they are all very functional and that it.

    I heard the wind of a command line that can be introduced to rapc.exe which will set - slicesize = NNNN and datafull - NNNN = as a solution to my problem.  This seems perhaps too technical for my situation, I'm not using my head today.  The problem is I'm having trouble finding how to add these command lines, or what that means yet.  My blackberry app is that several weeks of deployment AppWorld I love just to test it on my blackberry like point and click does not create the same user as on a touchscreen phone experience.

    I know there are a lot of great developers on this forum, and I understand that there are a lot of excellent programmers.  Can someone help me to conquer the sensation "noob" I'm feeling right now and guide me with a somewhat dummed down from the version of the technical explanation.

    In short, how can I add the command lines above named rapc.exe preferably with output using 3 third party programs or modifying an output by the compuler file.  I want to implement the compiler to ignore the warnings of size for the .cod files, as long as it's not a bad practice.

    Thanks in advance! -Andrew Mason

    Ok.  I was average overhtinking this, I guess it's easy to limit the size of your .cod simply by making the additional source folders.  I made two additional folders res and split my resources evenly among them.  There was a lot of workarounds that appeared to be more work than they were worth.  It's a quick and easy solution.  Thanks for the link, it helped a bunch got my brain moving.

  • Request signatures (sign your App) from command line

    Is there a way to "request for signatures" from the command line?

    I'm doing my deployment during development much easier and without having to enter my password of signature.

    java-jar "C:\Program research in Motion\BlackBerry JDE 4.6.0\bin\SignatureTool.jar" - a - c - p

    should work just fine.

  • Windows 7 Defrag from command line does not work

    We are running Windows 7 in a virtualized environment. When you run windows defrag hourly use of the command line, it does not work. The order that I will execute as administrator is

    C:\Windows\System32>defrag/c

    Microsoft Disk Defragmenter
    Copyright (c) 2007 Microsoft Corp.

    It displays the above message and leaves back to the command prompt. However if I run the defrag C: command it does not. Defragmentation from the GUI works so as long as both drives (C: and system reserved) are selected and when I click on defragment drives, works very well.

    I am concerned about defrag from the Task Scheduler with the command ' defrag/c' (self programmed to help set up the calendar... from Disk Defragmenter) does not work and the system never gets defragmented automatically.

    This only happens with some of the windows virtual machine 7 we have.

    There are no entries in the event log that point to defragmentation (using the Task Scheduler). Anything can happen on the ideas?

    Hello Sebastian,.

    Thanks for posting your question on the Forum of the Microsoft community.

    The question will be better suited to the audience of it professionals on the TechNet forums.

    I would recommend posting your query in the TechNet Forums.
     
    TechNet Forum
    http://social.technet.Microsoft.com/forums/en-us/home?category=w7itpro

    Thank you

Maybe you are looking for

  • The Finder sidebar does not shortcuts to folders

    On my MacBook Pro mid 2014 running OS X 10.11.6 El Capitan, the sidebar of the Finder displays often only "devices" and "shared". It occurs randomly, sometimes it works for a day, then all of a sudden, breaks, and it is also randomly after a reboot.

  • Problems since upgrade to El Capitan

    Hello I bought an iPhone 6s and was on my MacBook Pro (2.53 GHz Intel Core i5 memory 8 GB) happy on OSX 10.7.5 but iTunes is not sync with iPhone 6s (Thx Apple!). So I had to upgrade and did on 10.11.5. Since then, whenever I restart my computer, it

  • the installation after downloading

    I downloaded El Capitan, but did not display once the download is complete (from the App Store). I restarted the thought that might encourage a dialog box install, but it didn't.  I probably need to hold another during the restart to access the .dmg

  • Cannot open a session - serious problem

    I need real help.  I can't enter my office.  I don't remember my password and can't reset because I do not remember if I bought something by them and they cannot prove my identity.  I can't get into the area of troubleshooting, but what I'm trying to

  • Merge data Question

    I sometimes use the merge feature of Indesign data, normally for small consignments. I came across a problem that I can't figure out a way to get around. It is difficult for me to explain so I'll use an example. A customer wants a person's name follo