How do I queue where to start location script file

I am writing a script to sqlplus, for example. runMe.sql, that will run in the client env, will generate data for example files. result.csv.

Specify by place as 'reel /certain/path/on/disk/result.csv', I can spool to any way I want. However, my concern is less to:

1. we get many customers and the script can be run under different location.

2. I do not know where the customer would save the script, in addition, I'm not a customer instead of entry manually every time.

3. as a general rule, client script would go something like "sqlplus username/password@sid @/ certain/path/on/disk/runMe.sql". They will not pass any parameter running.

4. I want a hold file ' / some/path/on/disc "automatically, as a result, result.csv file appear under the same path with runMe.sql.

5. I tried "spool. "/ result.csv" but it navigate where sqlplus session is running.

6. also tried & 0 etc, but have no meaning.

Can someone tell me how to get start to run the script file path in sqlplus script (runMe.sql)? So access the parameters of the command in Linux.

$0 is the name of the command

first parameter $1

second parameter $2

third parameter $3 etc etc.

$# total number of parameters

$@ all parameters will be listed


Thanks in advance.

One way would be to ask the customer to CD to the directory where is the script and then run "sqlplus username@sid @runMe.sql.  Some clients may frown on the password being included in a text file, so you can leave it turned off and they will ask for a password.

Tags: Database

Similar Questions

  • How to add programs to the start of the file using Vista

    How to add programs to the start of the file using Vista

    Hi Harry,.

    Oddly enough, you can actually do it in msconfig except if it is already there and simply not checked as opposed to not being do not at all (although you would think that they would understand this option).

    The easiest way is to add the program (or a shortcut to the program) in the folder all Menu Programs Startup.   Here is the procedure: http://www.ehow.com/how_5098465_add-startup-programs.html.  Remember, to do this, you must either a shortcut existing (perhaps on the desktop or elsewhere in the menu all programs) or you need to find the source file (probably somewhere in C:\Program Files depending on what you want to add) and either copy it and add it to the startup folder or right-click on it and create a shortcut to copy into the startup folder.  Once you reboot, this program starts during the initial commissioning process and you will now be able to control using msconfig.exe, if you wish.

    Another option is to do this by using the registry editor.  If you decide to try this, first create a restore AND system restoration point backup of the registry before you begin.  Here is the procedure: http://www.ehow.com/how_7304438_add-program-msconfig-regedit.html.  I recommend to use this ONLY if the previous procedure does not work for some reason any as long as that the procedure is simpler and safer.

    If you want a simpler way to manage and control startup programs, you can try it free WinPatrol http://www.winpatrol.com/download.html that change monitors for startup programs if you set it to run in real-time so that you know when to try new programs are added to your Start menu and, for the purposes of this question includes an Add button which opens a link to a window of Windows Explorer where you can browse the program you want to add, click open to select and then add it directly to the commissioning.  If you prefer it does not work all the time, you can simply uncheck the box which includes this program and it will work only when you choose to run (but at the start, will work as an indication otherwise or configured).  It will appear not in the start menu in all programs (Finally, WinPatrol is, but not programs, it adds to the start), but it will appear in WinPatrol (which also lets you manage what you want or not start with checkboxes as in msconfig) and sure in msconfig - but only after a reboot is complete the process of adding.

    I hope this helps.  Personally, I use WinPatrol myself and let it run in real time.  Since I do a lot of installations, it helped me often prevent the addition of a startup item I haven't really need and reduces how many times I actually need to check what is happening out there.

    If this answers your question without the need to repost in another forum, please mark it as an answer.  If this isn't the case, then of course you must republish as suggested above.

    Good luck!

  • Manager Microsoft Access in the auditing keeps popping up for a password when I try to access any program - how to turn off this feature - where is it located?

    Manager Microsoft Access in the auditing keeps popping up for a password when I try to access any program - how to turn off this feature - where is it located?

    Hi Peggy Gore,.

    Welcome to Windows Vista answers Forums!

    Access Manager is a tool to control the types of content that your computer can access on the Internet. After Content Advisor activated, we can consider only rated content that meets or exceeds your criteria. You can adjust the settings according to your preferences.

    If you have set a password and you have forgotten your password, you may need to contact Microsoft Customer service to reset the password.

    For more information, please see the following links to Access Manager:

    Internet Explorer Content Advisor: Frequently asked questions.

    http://Windows.Microsoft.com/en-us/Windows-Vista/Internet-Explorer-Content-Advisor-frequently-asked-questions

    Using Content Advisor to block inappropriate web content.

    http://Windows.Microsoft.com/en-us/Windows-Vista/using-Content-Advisor-to-help-block-inappropriate-Web-content

    Hope this information is useful.

    Jeremy K

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How use/start this script?

    Hello

    Maybe a stupid question:

    I ve got the following from Hal Rottenberg script. It named s detailed - VMReport.ps1. I Don t know how to start it :-)

    Begin {}
    # For custom objects propertynames collection
    $PropertyCol = @)
    'Name', 'IP address', 'OS',' home', 'CPU (number)", '(MB) of memory', 'Drive (Count) hard',"HD capacity (Total KB)","Floppy drive (County)","CD player (number)","NIC (number)', 'NIC1 MAC address', 'NIC1 Net name.
    )
    }
    {In process
    If ($_ - isnot [VMWare.VimAutomation.Client20.VirtualMachineImpl]) {continue}
    $Process = "" | Select-Object - property $PropertyCol
    $Process.Name = $_. Name
    $Process. "" IP address "= $_. Guest.IPAddress [0]
    $Process.OS = $_. Guest.OSFullname
    $Process.Host = $_. $host.name
    $Process. "" CPU (County) ' = $_. NumCpu
    $Process. "" memory (MB) ' = $_. MemoryMB
    $Process. "' Hard drive (County) ' = $_. HardDisks.Length
    $process. "" Capacity HD (Total KB) "= '($_.) Hard drives | Measure-Object-CapacityKB of the sum). Sum '
    $process. "" Floppy drive (County) ' = $_. FloppyDrives.Length
    $process. "" CD drive (County) ' = $_. CDDrives.Length
    $process. "" NIC (County) ' = $_.NetworkAdapters.Length
    $process. "' NIC1 MAC Address" = $_.NetworkAdapters [0]. MacAdress
    $process. "' NIC1 Net Name ' = $_.NetworkAdapters [0]. NetworkName
    Write-Output $process
    }

    Any idea?

    THX

    Chakoe

    I get the same error when I type the name of the script file.

    You can try typing the name and then hit .

    Completion of the order should provide the full name, if the file is located in the folder where you are.

  • How will I know where to find an object?

    When there is already an object placed on the block diagram, how will I know where to find it in the hierarchy of the functions Palette?

    (Specifically VI Scripting - crosses, in this case.)

    You can find a range where it is enabled by get the context menu drop down for the item (right-click if you use Windows). In the second section of the menu the first element (in most cases) will be the palette that contains the object.  For the crossbar for GObjects.vi the first item in menu in the second section is VI Scripting palette. For a larger? the first item on the menu is the comparison. A primitive as array to build, you go down to the first element "pellets" in the menu. It is still in the second part, but is not the first item.

    You can also select Replace in this context menu. The first enumerated palette will be the one that contains the item. However, it takes two clicks compared to the other to the above method.

    The Palette list detailed help files have on the line under the name of VI. You can access this by clicking on the link detailed help at the bottom of the window context ehlp.

    If the object is a VI, Show VI hierarchy include VI selected lib and see the full path in the labels of VI will show the location on the disc, but which does not correspond exactly with the paddles.

    Lynn

  • How do I know how is Administrator and where should I put the password to?

    My computer keeps asking for a password
    I have 3 standard users on my computer & no one is assigned to be administrator
    Cannot install updates because do not know or do not have a password
    How do I know how is Administrator and where should I put the password to?

    Hello

    The manual installation of the operating system on the Microsoft Update Web site updates requires the Office of the operating system to run with administrative rights.

    Please follow the steps mentioned below.

    a. click the Start button.

    (b) in the search box of start, type user accounts and click on user account.

    c. click on Manage.

    d. check which account is designated as administrator account.

    Also check out the links below.

    Why use a standard account instead of an administrator account?

    http://Windows.Microsoft.com/en-us/Windows-Vista/why-use-a-standard-user-account-instead-of-an-administrator-account

    What is an administrator account?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-an-administrator-account

    Change the type of user account

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-a-users-account-type

    Install Windows updates

    http://Windows.Microsoft.com/en-us/Windows-Vista/install-Windows-updates

    Updates: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/updates-frequently-asked-questions

  • How can I change the programs 'start' in windows.

    I did a search and he was told to open Windows Defender and click Tools... etc. and change it there, however, I am running Windows Security Essentials, which automatically turn off Windows Defender... so I can't do it this way. Can anyone help?

    Thank you

    Hello

    If you must change the startup programs read this information on the other methods of doing it without using defender

    using msconfig read this tutorial;

    How to use MSCONFIG in Windows Vista

    Here's how to use MSCONFIG in Windows Vista to disable some unnecessary programs that load automatically at startup

    http://netsquirrel.com/Msconfig/msconfig_vista.html

    and also try this program;

    This utility, which has a knowledge of auto-starting locations of any startup monitor, shows you what programs configured to run at system startup or login and that the entries in the order of processing windows. These programs include those in your startup folder, Run, RunOnce, and other registry keys. You can configure Autoruns to show other locations, including Explorer shell, toolbar extensions, helper objects to the browser, Winlogon notifications, auto and many start-up services more

    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902

  • where to start with loging in an application

    Hello. Creating a safe space for a BB app being created using SDK5. Very simple with just a user name and the password required. At the login screen and the other screen. Don't check as empty fields etc. But I don't know where to start with the actual coding. More precisely:

    1. where should I store the username and password - what is best practice? Is - XML, databases, persistent storage file?

    2. in what format should I keep it should for example the details be encrypted plain text etc?

    3 - How can I verify that the information entered is asme as whats been stored?

    4 - How can I signout so that details must be entered again again?

    Any help / pointers / links to examples would be appreciated. See you soon

    Welcome on the support forums.

    1 I store small amounts of data in the persistent store, it is the easiest way.

    2 feel free to encrypt, but unless someone knows the key to your persistent store only you can read. If you use a custom object, another application will not be able to open it, but usually I decide by the desire to have data survive an update (custom objects are removed on uninstallation)

    3 is equal to

    4 remove the persistent store, for example

  • How can I change my Windows backup location?

    I use Win7 Home Premium.

    And you want to change the location of my backup.
    How can I do this?

    Hello

    Try this link:
  • Where is the location of the file Outlook.pst in Windows 7, the AppData folder does not appear in the user specific folder?

    original title: where is the location of the Outlook.pst file in Windows 7?

    I want to copy my Outlook.pst to my desktop (Windows XP Pro) data to my laptop.  Outlook displays the outlook.pst file which will be located in the "C:\Users\Specific User\AppData\Local\Microsoft\Outlook" folder on my laptop.  However, when I try to access this folder in Windows Explorer, the AppData folder does not appear in the user specific folder.  I find in my office because Windows XP does not hide it, but he must hide in the Windows 7 operating system on my laptop.  How can I get it so that I can copy the file outlook.pst from my desktop to my laptop?  If the file is hidden, is there an easier way to copy outlook data from one computer to another?

    Chris

    To see AppData, enable the display of hidden files and folders in the Control Panel > Folder Options > view .

  • How to reset the computer to start the boot minimum troubleshooting.

    I posted this screenshot because I have no idea what can be the maximum size of a question and I thought I have copy paste this but I to Sir's life saw the question so I did this. Additional information that could help. This is my task manager open resource monitor and windows firewall not wanting to tk starts. And I have windows updates where I chose to update (I try to deny each update.) And so far I've checked that I have 482,5 MB of updates of windows that say I should put to date. (apperently 130 important and 10 optional) in addition apperently my computer don't think that I am administrator I do not understand when I'm the only profile on the computer.

    Hello

    In response to the information provided by you, please try to follow the methods and check them off below if this can help,

    Step 1: Scan of Sfc.

    System File Checker is a Windows utility that allows users to find corruptions in Windows system files and restore the damaged files.

    Follow the steps below to perform a scan of the SFC.

    1. press the Windows key + X key.

    2. Select prompt (admin).

    3 type the following command:

    Sfc/scannow

    Step 2: Clean boot.

    Make your systemclean boot State helps determine if third-party applications or startup items are causing the problem. You must follow the steps in the article mentioned below to perform a clean boot.

    https://support.Microsoft.com/en-us/KB/929135

     

    WARNING: After troubleshooting, refer to the section «How to reset the computer to start normally after a boot minimum troubleshooting»

    Please let us know if the problem is resolved or you need additional assistance.

    Thank you.

  • RECENTLY I bought the subscription for the month, but then canceled (I think?) because I'm frustrated. I've been using bridge and photoshop cs6 for 4 years. I've never understood light room and where it is located. I've dabbled with it and I could not

    RECENTLY I bought the subscription for the month, but then canceled (I think?) because I'm frustrated. I've been using bridge and photoshop cs6 for 4 years. I've never understood light room and where it is located. I've dabbled with it and I couldn't find out how to save my images in my workflow of currengt, or how to resize and put a border around my images. How to save for web and as TIFF, as I did for all my files for four years. LR seems to be taking pictures of my Iphoto folder and I don't use that. I tried to cancel the cc of photoshop and lightroom cc and cc bridge but I don't know if I did. I am really confused, and I have work to do. What can I do, do I do, help me! @@ !

    Cancel see answer #1 in https://forums.adobe.com/thread/2023066 - includes a link to Chat from Monday to Friday

    Your subscription to cloud or serial number to show on your account page?

    https://Accounts.adobe.com/ , then click on Plans & products top

    Cloud of reading takes up https://forums.adobe.com/thread/2089127 for some ideas

  • Where to start with Web Services

    We run an ESXi 5 environment with a server for vSphere and are eager to develop a system to be able to create virtual machines.

    I came across the site of the developers of VMware and was very happy to find the vSphere Web Services SDK and wanted to know where to start?

    Y at - it software or settings that must be enabled on the vSphere server or ESXi hosts to allow the use of the SDK?  I downloaded the SDK and trying to connect and have had no success yet, and here the possibility that something is not missing on the server.

    Will there be sites level introduction, articles or tutorials on how to start using the SDK?

    I'd appreciate any help that anyone can provide.

    Thank you

    Matt

    Hi Matt,

    Everything you need to start is available here: http://www.vmware.com/support/developer/vc-sdk/

    It has links to:

    1. the developer's Guide

    2. the Program Guide

    3. the online API reference

    4. the download of the software development kit (if you have not already had it)

    The configuration guide for developers gives you all the steps to configure your system, and how to compile the examples. I suggest you review this first and get to the point where you can run the basic example of program that connects to the ESXi host and gets a few values.

    The configuration guide for developers is divided into separate sections for Java and c#. I'm using c# and the guide was in all on-site.

    The following document to read is the vSphere Web Services SDK Programming Guide - it will help you understand all of the concepts you need for programming with the SDK. The information is presented in a generic way, but samples lean towards Java. But not to worry because the SDK c# samples are many and it is easy to cross things between the Programming Guide and a reference sampling program. This guide is very large ~ 250 pages, but you don't need to read all this, chapters 2 to 5 are what I'm focused on - they are the absolute must know things for relying on web services SDK. What follows I'd say depends on what you need to do with the SDK. A very useful reference when reading the chapters 2 to 5 is the managed object (MOB) on your ESXi host browser. It is accessible at https://your-host-url/mob. You can search the managed objects and explore their hierarchy here.

    Once you understand, I dare say that you are able to start your own program with the help of the API reference of course. In fact you may have already tried poking around with a few lines of code by reading the guide just because it is useful to understand the concepts by testing them with code.

    Also nothing should be done on the server to start to use web services SDK.

  • I have some adobe products, I need to move from a dead computer, they have not been disabled on the old computer. Where to start and what to do?

    I have Adobe Suite Web Premium 4.0, Adobe Suite Standard 4.0 and 12 elements of Photoshop.

    Computers with Standard 4.0 just died, cannot boot and I need to move it to another computer.

    The computer with Web Premium 4.0 is very obsolete and alive, hit and Miss to start the system.

    Photoshop Elements is on my current computer.

    I need to pass all the older machines products, (not disabled) and the 12 elements of PS to my laptop.

    Don't know even where to start...

    4.0 standard is currently on 2 computers, one at work and one at home (dead).

    Web Premium 4.0 is currently on 2 computers, one at work and one at home (alive)

    Photoshop elements 12 is on my current home machine only.

    How can I go on turn off old machines and reinstallation and activation on newer computers?

    Kind regards

    The Turner

    < deleted by the moderator >

    Hi Jeff,

    To make a long story short

    I managed to get access to the limited WARRANTY statement today after a long session with the customer. Confusion with the login resulted from the long period of time since the purchases and long-lost information. I was trying to login to LWS with my own personal login and not the original credentials are most well-known. When I logged on adobe.com with my personal login, he showed the 2 products saved on my account, so the confusion as to why I could not access the LWS. The products were actually recorded under the account of the company under the long-lost login that I managed to pick it up today.

    However, there was always a hurdle. Because we asked digital media with the initial purchase (DVD set), I was told that we don't have access to download the content. At the purchase we thought that we had to pay extra for the DVD media as an additional layer of protection against future problems), certainly never well that pay extra for disks, would be to ban content from Adobe downloads. Uh, won't make this mistake again.

    So, with the discs original picked up from the office, I managed to install the Design Premium on my new computer. It seems that the only downside of the installation from the original disks vs download since the LWS is it seems I can't update anything, if I try to update just said that there are no updates available at this time. I guess that updates are no longer available, where to download the LWS is probably completely up to date with some bugs came after the media.

    That said, we decided to improve the Design Premium to CS6 and I expect an answer by e-mail on their part so I can complete the transaction.

    Thanks so much for your help in this matter, because without it, I would probably be laying on the ground, screaming and pulling my hair out now!

    Kind regards

    Them

  • Where to start with e-Commerce

    I am trying to build my first ecommerce site, and I'm having a very difficult time to find where to start. I've been building sites in the Muse and the download of Go Daddy to the FTP host. I want to be able to add products and have a shopping cart, and I'll have the moment the more difficult to find where to start with this. I found a lot of resources in way later down the line. I need the beginners crash course on how to start from scratch. Something will help you! Thank you!

    Hello

    Can you please refer to these forum posts: -.

    Re: How to create a shop online by using Muse?

    Re: adding a shopping cart for muse

    Re: How to create a shop online by using Muse?

    Let me know if you need anything else

    Kind regards

    Rohit Nair

Maybe you are looking for

  • Apple Watch died after the load.

    My Apple Watch does not work after charging.  Nothing comes on the screen.

  • MacBook Pro with the water damage...

    So my best friend brought the computer geek, a year 2011? (do not know exactly what year, unibody) MacBook Pro 13 inches. He had a kind of drink spilled on it and now refuses to start. This isn't the only thing however. I managed to clean the corrosi

  • Previewer of Outlook 2007 Powerpoint is not installed

    Hello The viewer of Powerpoint in Outlook 2007 is not installed, because any attempt to preview in the preview pane displays the message "previewer not installed." I tried a system restore which did not work.  I tried a repair of third party system t

  • Ears replacement blackBerry Smartphones HS700 gels

    I just lost my HS700 gel and would like to know where to get a new. Any help would be great.Thank you

  • Timecode in fullscreen

    I pressed Ctrl + ~ (tilde) and the timeline is FULL screen, how to get the timecode to show while the monitor is in full screen mode?Thank you.