How to create a command line user

I have a *.sql file. The content of this file is as follows:

create user newuser identified by eu1;
grant resources, connect to newuser;
commit;

I want that user that can key in user name entry and password in the command line. How to do this?

If I want to put this *.sql who can read the content of another text file. For example, the text file has following: tracking, webUserPassword
How to change the *.sql?

1. no need to hire some DDL statements.
2. use &, for example:

create user & username identified by & password;

Or look for the "accept" in the SQL command * over the reference of the user.

http://download.Oracle.com/docs/CD/B19306_01/server.102/b14357/TOC.htm

Tags: Database

Similar Questions

  • How to create a 'command-line interface' for a game?

    Hey people,

    For a game that I have to make a similar command-line interface where the user has at least 3 options to respond with, anyone know how to on this subject?

    I hope someone here can help me out!

    Kind regards

    Angela

    I don't know what part of it, you are having trouble with. Imagine for a moment that instead of asking for your end user typing something into a text input field and monitor what they type (maybe), who instead of you provide 3 buttons on your stage. Answering a press of button in this scenario as respondent to typed user input - your film something is based on the interaction of the user. Enter the user entered text scenario, a text or field sprite can detect the key ENTER and examine the string that the user entered, something like:

    on keyDown me
      if _key.keyCode = 36 then
        stopEvent
        sText = sprite(me.spriteNum).member.text
        case sText of
          "hack": -- do whatever you need to here
          "research":
          "wait":
          otherwise:
        end case
      else
        pass
      end if
    end
    
  • How to create a horizontal line in the region of html

    Hello

    How can I create the html elements, including a horizontal line in an html area filled with items. I want to use this horizontal line to part elements optically. Moreover, my solution for now is to group the elements belonging together in a separate html area. So I have now 3 parts of html, each filled with 5 columns of elements. Is it possible to align the elements in the 3 regions (together)? Cause at the present time, only the items in each region are aligned.

    I use oracle 11 g 2 with apex 4.1

    wucis wrote:

    Apex version is 4.1

    Theme: Sapphire 17

    Page: Two level Tabs - right Sidebar (optional / based on a table)

    The region is HTML

    Main question is, how to create a horizontal line as visible separator between items.

    My personal preference would be to group the items according to the needs in the subregions and use CSS to display the Visual borders and uniform spacing of control over formatting tables.

    If however you want using HTML single region, is to create elements of the only view to the agenda of the positions of the sequence in the region where you want the jumps to appear, with the following parameters:

    Name: PX_HR_1 / / substitute suffix number and an increment of page as required

    Display in the form: Display only

    Save Session State: NO.

    Start on a new line: Yes

    Start the new field: Yes

    ColSpan: number of columns in your layout

    Label: leave blank

    Horizontal/Vertical alignment: Above

    Model: --choose a model--

    Type of source: Static assignment

    Source of value or expression:

  • How to create a black line around a photo in a slideshow?

    How to create a black line around a photo in a slideshow? For this photo I made in Photoshop, but is there a way to do it in Muse so I didn't need to adapt to all images?

    Hello

    You can select the Image of hero and apply the stroke to the toolbar, as shown in the screenshot below.

    Please let me know if you are talking about something else.

    Concerning

    Vivek

  • How to use the command line in w/Merge Vista?-need to cut password expires...

    I use Vista Home Basic by Fusion on a Mac Intel. The instructions to stop Vista expire a password is to use the command-line under Vista. I already know these instructions, so my question is:

    How to use the command line inside Vista, on a virtual machine?

    Thanks for your help in advance, I don't want to mess something else.

    Jacob.

    With assistance from the command-line on Vista is no different if it is to be run on a virtual machine or on a physical machine, so just like you would on any physical machine.

  • How to create a new LINE

    Hello

    How to create a new line in the view object to programmatically support (without using the create operation).
    give some ideas

    Kind regards
    Rami

    That help you

    ViewObject vo = findViewObject("YourViewObject");
    ViewObjectImpl viewObject = (ViewObjectImpl)vo;
    Row newRow = viewObject.createRow();
    // set your attribute for the new created row
    
    //...................
    viewObject.insertRow(newRow);
    
  • How to create the new line in actionscript 3

    I have this simple script that is supposed to take a comma to separate values from xml and transform into something similar to an unordered list if only I could get a '\n' to work. Here is my script.

    var dont_forget:Array = myXML... dont_forget [n]. Split(",");

    var d: Number = dont_forget.length;

    While (d-) {}

    detailsMovieClip_mc.dont_forget.text = ">" + dont_forget [i] + "\n\r";

    trace (dont_forget [d]);

    }

    When the trace is running it shows me the values so I know they are there. However, I see that the last value. How to create a new line as a 3?

    Use the appendText method.  By assigning the text using "=" you're crushing on each pass through the loop.

    detailsMovieClip_mc.dont_forget.appendText (' > '+ dont_forget [d] + "\n\r" ');

  • How to run the command-line IDC services

    Hey guys,.
    is it possible that we can run IDC Services from the command prompt.
    all your pointers will be greatly appreciated.

    Kind regards
    Sicard

    Published by: stephane on March 9, 2009 07:26

    Hey sapan,.

    You can use IdcCommand to perform the services from the command line. The procedure is the following:

    1 create a text file with service calls, you want to do, the definitions are had in format:

    LocalData @Properties
    IdcService = UPDATE_DOCINFO
    dID = 1
    dDocName = 000001
    dDocType = MyType
    dSecurityGroup = Public
    dRevLabel = 1
    dDocAuthor = sysadmin
    dDocTitle = my title
    @end
    >

    (Note: for multiple entries in the file > is very important)

    2. run IdcCommand from the directory "/ bin" of :

    IdcCommand f image_update.hda u-l c:\idccommand.log sysadmin

    Options:
    f = with service definitions
    u = user to run as
    -l (lowercase L) = location for execution log

    There is more detailed documentation in the presentation of the Idc (idc_command_reference_10en.pdf) commands.

    Hope that helps,

    Andy Weaver - Software Consultant
    Fishbowl Solutions< http://www.fishbowlsolutions.com?wt.mc_id="L_Oracle_Consulting_amw">

  • How to stop the command line defragmentation Vista 64?

    I started "defrag - v w" command line 15 hours ago and I think she's still going because I do not have a command line prompt and the hard drive light flashes quickly (and somewhat randomly).  Anyone know how to stop the defrag process command line without altering anything?

    Key does nothing and the Task Manager shows that defragmentation is running.

    The f

    CTRL-c should stop.

  • Configuration of the Simulator. How to change default command line?

    Hello

    BlackBerry Java plug-in
    Version: 1.1.2.201004161203 - 16

    Windows XP

    How can I change default command-line for the Simulator?

    I want to delete/keep-lcd-on = true parameter because he throws:

    Internal error - BlackBerry Smartphone Simulator
    ------------------------------------------------
    (Class fledge::Exception) unhandled C++ exceptions:
    Unknown option LcdCollection:keep - lcd-on screen in the command - line.conf

    Thanks to advice.

    This parameter is no longer supported by the BlackBerry smartphone Simulator.

  • How to start a command-line in synchronous mode LoadPlan

    I want to start a LoadPlan for command line by an external programmer. This external Scheduler is the return code of the execution of the LoadPlan. However, the LoadPlan is executed asynchronously. For running a scenario there is an option to specify (a) synchronous execution, but this option does not exist for the execution of a LoadPlan. How can I solve this?

    I finally found it. It is a bug in the documentation. The startloadplan.sh script is able to start a loadplan synchronousloy, by using the parameter-SYNC =(no|yes).

  • How to create a virtual multi-user computer

    Our company has installed a new VDI and I'll put up the new virtual machine for our staff. I ran into a problem where I don't know how to create a virtual machine that will allow several people to connect. I have created several dedicated vm up to this point, but he must now create one where a user can walk up to the virtual machine, choose the journal and then to connect under a different. Any advice on how to implement and what type of pool is necessary are appreciated.

    Thank you

    Create a floating office pool with your desktop into it.  Then when the user disconnects.  User B can connect to the same workstation.  It is about the only way to do it with to a Terminal Server.

  • Create a command-line script VM install

    I was looking for a way to the creation of vm of the script command line.  Our environment is mostly RedHat 5.4 and esx 4.0.  We wanted to be able to spin off the virtual machine from the command line, and then deploy the operating system with kickstart.  I came across the following script, but still get this error when I try to run it:

    vmodl.fault.InvalidArgument: a specific parameter was not correct.

    Is it still possible to do so or if orders have been deprecated?  Thanks in advance for any help that anyone can provide.  Also, if I placed this question in the wrong place please advise and I will pass it to the appropriate place.

            1. VM creation script #.

    #Script version 1.1

    #Author David E. Hart

    #Date 10-05-06

    #

    #--------+

    1. Goal |

    #------+---------------------------------------------------

    1. This script will create a virtual machine with the following attributes:

    2. Virtual Machine Name = ScriptedVM

    3. Location of the Virtual Machine/VMFS/volumes/storage1/ScriptedVM =

    4. Virtual machine Type = 'Microsoft Windows 2003 Standard '.

    5. Virtual memory allocation Machine = 256 meg

    #

    #----------------------------------------+

    #Custom variable section for editing.

    #--------------------------------------+-------------------

    #NVM is the virtual machine (NVM) name. No spaces allowed in the name

    #NVMDIR is the directory that contains all the files of the virtual machine

    #NVMOS specifies the VM operating system

    #NVMSIZE is the size of the virtual disk to create

    #--------------------------------------------------------------

    ###############################################################

        1. Variable parameters by default - change that to your preferences

    NVM = "ScriptedVM" # name of Virtual Machine

    NVMDIR = "ScriptedVM" # specify only the name of the folder must be created; NOT the

    full path

    NVMOS = "winnetstandard" # Type of operating system for the Virtual Machine

    NVMSIZE = '4g' # Virtual Machine disk size

    VMMEMSIZE = default memory size # "256".

        1. End Variable Declaration

    mkdir/vmfs/volumes/storage1 / $ directory to create NVMDIR #.

    exec 6 > & 1 # Sets up writing to file

    Exec 1 > open the file # /vmfs/volumes/storage1/$NVMDIR/$NVM.vmx

    1. write configuration

    config.version = "" "6" "" ECHO # for ESX 3.x, the value is 8

    virtualHW.version = "" "3" "" ECHO # for ESX 3.x, the value is 4

    echo memsize = "" «$VMMEMSIZE»»»

    echo floppy0.present = "" ' TRUE' "' # VM installation with diskette

    echo displayName = "" "$NVM" "" # name of virtual machine

    echo guestOS = "" «$NVMOS»»»

    ECHO

    echo ide0:0.present = "" «TRUE»»»

    echo ide0:0.deviceType = "" "cdrom-raw»»"

    echo ide: 0.startConnected = "" "false" "" # CDROM active

    echo floppy0.startConnected = "" «FALSE»»»

    echo floppy0.fileName = "" ' / dev/fd0»»»

    echo Ethernet0.present = "" «TRUE»»»

    Ethernet0.networkName = "" "VM" "" echo # default network

    echo Ethernet0.addressType = "" «vpx»»»

    ECHO

    echo scsi0.present = "" «true»»»

    echo scsi0.sharedBus = "" «none»»»

    echo scsi0.virtualDev = "" «free»»»

    echo scsi0:0.present = "" ' true' "' # virtual disk parameters

    echo scsi0:0.fileName = "" "$NVM.vmdk»»»

    echo scsi0:0.deviceType = "" 'scsi-hard drive»»'

    ECHO

    1. Close the file

    Exec 1 > & -.

    1. stdout of the make a copy of FD 6 (reset stdout) and close fd6

    Exec 1 > & 6

    exec 6 > & -.

    1. Change the permissions on the file so it can be run by anyone

    chmod 755 /vmfs/volumes/storage1/$NVMDIR/$NVM.vmx

    #Creates 4 GB virtual disk

    CD/vmfs/volumes/storage1 / $ NVMDIR #change for the directory of the virtual machine

    vmkfstools - c $NVMSIZE $NVM.vmdk - a free

    #Register VM

    VMware-cmd - s register /vmfs/volumes/storage1/$NVMDIR/$NVM.vmx

    >

    In the attachment, you can find a version renewed your script (create - vm.sh), you must set the following variables for your environment:

    NVM="ScriptedVM" # Name of Virtual Machine
    NVMDIR="ScriptedVM" # Specify only the folder name to be created; NOT the
    complete path
    NVMOS="winnetstandard" # Type of OS for Virtual Machine
    NVMSIZE="4g" # Size of Virtual Machine Disk
    VMMEMSIZE="256" # Default Memory Size
    STORAGEDIR="/vmfs/volumes/datastore1"
    

    This script worked in my environment ESX4, but the resulting virtual machine has hardware version 4 (by default for ESX4 7)

    If you have found this or other useful information, please consider awarding points to 'Correct' or 'useful '.

  • How to create table selectable line or not based on the value of the line

    Hello.

    JDeveloper 11.1.1.2

    Is it possible to make a selectable table row or not based on a value in the line.

    That is to say. lets say that the row contains a Boolean LOCKED = TRUE.
    This line should not be selectable.

    A line whose value LOCKED = FALSE should be selectable.

    / Erik

    Erik,

    No particular reason to disable a selection of lines for a particular line? If I'm an end user, I would be clicking on the same line of thought again and again my mouse does not ;) (call me dumb :)). How do you differentiate this line (using inlineStyle / styleClass) based on the value of line? In addition, you can disable the other buttons when a row with a particular value is selected (so that the user knows that the selected line is not treatable).

    Arun-

  • How to use the command-line ADT to build an app, iOS, including the ActionScript native extension file

    Hi all

    I have packaged ANE files in my iOS app. I can export their version don't build via FB, no problem.

    But how can I include these DONKEY by ADT command line files? I do like the other files in the library?

    Thanks in advance for any help.

    I was stupid who did not find the proper syntax.

    extdir - extensionsDir will do the trick.

Maybe you are looking for