Script Sql to run in the background

Hi guys,.

I will carry out two unix machine sql scripts by connecting through sqlplus in two sessions of PuTTY, I need to run the scripts background is there a way to run outside the sh script execution.

SQL > @test.sql

.

.

.

Another session

SQL > @test1.sql

.

.

.

actutally I need to run the sql in the background scripts so that my putty session will not cut

Assuming that this is really what you want to do, use screen sessions.

This puts the interactive session of ATS in the background, allowing you to reconnect to the it (another putty session, or of the same) to a later date to check the results manually intervene, etc.

Install the screen on the server as root:

yum-y install screen

As the launch of PuTTY user session screen:

screen

Then start your session of sqlplus, script execution, etc.-, then press ALT-D to disconnect from the session.

Start at any number of additional screen sessions.

To list the sessions:

Screen - ls

To join your putty for a screen session session:

session - dr

Lose your PuTTY connection does not screen sessions you started. You can go home, in the Office VPN, mastic fire upwards and reconnect to sessions of your screen.

Tags: Database

Similar Questions

  • Script SQL Developer runs all the lines

    I have a group of scripts that I want to execute in the order since a main script.  I created a file referencing these scripts as follows below.  My problem is that when I run this script (via F5 or another script referencing it), it runs only the first line and stops.  I have excluded questions with my references to file by changing the order - always the first runs and stops.  I have tried such as displayed below and with a semicolon; to separate each command.  I have scoured the web and can not find any reason why it does not work.  Each of the scripts listed below contains multiple statements separated by a; that wraps a file to a NAS where he is picked up by our external file transfer program.  It all works properly - the only thing that I have problems with using 1 script to call several files and run them in order.

    Any help is greatly appreciated!

    @EMSTATUS.sql

    @EMPLOYEE.sql

    @HREMPUSF.sql

    @HRHISTORY.sql

    @HRSUPER.sql

    @JOBCLASS.sql

    @JOBCODE.sql

    @PAACTREAS.sql

    @PAEMPLOYEE.sql

    @PAEMPPOS.sql

    @PCODES.sql

    @PCODESDTL.sql

    @PERSACTHST.sql

    @PRDISTRIB.sql

    @PRPAYCODE.sql

    @PSGRELATE.sql

    @REVIEW.sql

    Hello

    Note You can place in the path: Tools-> preferences-> database-> spreadsheet-> "path select default to search scripts"


    I tried the following:

    c:\tmp\calltwoscripts. SQL

    set echo on

    @zone.sql

    @ztwo.sql

    Select 'done' double.

    c:\tmp\zone. SQL:

    Select 'one' double;

    c:\tmp\ztwo. SQL:

    Select 'two' SQL;

    executed in a worksheet:

    @c:/tmp/calltwoscripts.sql

    Output:

    > @zone.sql

    > select "one" of the double

    'A '.

    -----

    one

    > @ztwo.sql

    > Select "both" of the double

    "TWO".

    -----

    two

    > select 'done' double

    'DONE '.

    ----------

    Finish

    The things that could go wrong:

    Your scripts could end with "quit".

    Paths can mingle: try (not @) and full of paths.

    You could hit a code issue, the spreadsheet does not recover-in which case you should get the output on the command line and or Page logging of messages in the view.

    Turloch

    SQLDeveloper - team

    http://www.thatjeffsmith.com/archive/2012/06/how-to-collect-Debug-Info-for-Oracle-SQL-Developer/

    http://totierne.blogspot.co.UK/2013/07/user-check-on-sqldeveloper-worksheet.html

  • cursor flashing; script tries to run in the background; reinstalled Firefox, still problem

    blinking cursor and slow/unusable super search. window opens that a script tries to run, but can not. Completely remove the Firefox and reinstalled. Problem still exists. Another search engine is not serious.

    Hello jfrancis0525, a reinstall won't help in most cases - please try resetting firefox and see if that can solve the problem...

  • How to find scripts that run in the background

    Hey

    I'm looking for which scripts to run in the background

    Thank you

    Open the Task Manager and go to the Details tab. If a VBScript or JScript is running the wscript.exe or cscript.exe process appear in the list.

    Right-click on the column header and select 'Command Line'. That should tell you what script file is running.

  • ""script is running in the background.

    When I use the internet, I'm getting boxes pop up indicating a script runs in the background and it gives me the opportunity to continue or stop. I chose to stop the script but it keeps popping up, so when I try to close a message appears stating "invisible" programs are still open, so I have to force them nearby to proceed. Please explain what is the cause. I am not tech savvy at all in plain English please.

    Hi Betty,.

    1. what browser you use to access the internet?

    2. don't you make changes to the computer before the show?

    3. what version of Internet Explorer is installed on the computer?

    If you are facing this problem with Internet Explorer, you can follow these methods to solve the problem:

    Method 1:

    I suggest you to run the Microsoft Safety Scanner and check:

    Reference:

    Microsoft safety scanner

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Method 2:

    To disable notification of every script error in Internet Explorer, follow these steps:

    a. on the Tools menu, click Internet Options.

    b. on the Advanced tab, clear the show a notification of every script error box and then click on OK.

    Method 3:

    I suggest for the link and follow the steps in the article:

    How to troubleshoot script errors in Internet Explorer

    http://support.Microsoft.com/kb/308260

    Hope this solves the problem. If the problem persists, you can write to us and we will be happy to help you further.

  • How to check if a shutdown.exe command runs in the background?

    Hi all

    I recently did a nice, small and useful for my pc application plan a stop. (using c# in visual studio 2012)
    I used the shutdown.exe command (with he different tags for different uses).
    What I can't find, and I have looked throughout the web and the msdn help files, is a script to run to see if such a command is already running in the background.
    Is it possible that this command didn't exist and we are condemned to use tag - one each time and then restart the command to know that, indeed, the computer has a planned shutdown?
    If the control option it does not exist, how can I call it?
    Thank you
    Maor

    Hello

    The Microsoft Answers community focuses on the context of use. Please reach out to the business community of COMPUTING in the TechNet forum below:

    http://social.technet.Microsoft.com/forums/en-us/category/w7itpro

  • Activity monitor close unexpectedly when running in the background on the left

    Recently upgraded to Mac OS Sierra and Activity Monitor to close unexpectedly when running back plan left (do not smoke and open the activity monitor window) to a blank desktop when you use an application in another office. Clean install I tried but the activity monitor would still be down at random times when left running in the background to another empty office. Someone at - there experience this problem? For most browsing on the web using Safari on another desktop computer when Activity Monitor quit unexpectedly.

    Activity monitor also using a lot of energy since the upgrade?

    Any help would be appreciated. Thank you.

    Model: MacBook Pro (retina, 13 inches, early 2015)

    OS: macOS Sierra: 10.12 (installed via the upgrade, own installed after this problem).

    Do not forget that you are using the activity monitor version which was installed when you upgraded to Sierra. Activity monitor located in the your Mac utilities folder.

    If you have moved a previous version to a different location, it will not work.

    If you are using the correct version, post crash report. Error reports lies in the application of the Console under System reports or reports from usersand end in the suffix .crash. If you choose to do so, omit or hide any information that you consider personal.

  • When I close thunderbird is still running in the background and always using data?

    I'm with an internet provider that has limited use of data per month. If I close Thunderbird when done using it it is still running in the background and using the data or is it closed here for not to retrieve messages or using the data?

    When you close Thunderbird, it cannot check or retrieve new messages.
    Not sure what you mean with "always running in the background.
    When you close Thunderbird is closed. Period.

  • Cannot download photos from canon powershot HS 110.  Says another cannon is already running in the background

    I'm in Yosemite and all of a sudden I can't download photos from my canon powershot HS 110.  Message said there is already a gun running in the background.  It worked a few months previously.  Rebooting did not help.

    What is the exact message?

    Try using a card reader

    LN

  • I want that thunderbird to run in the background when I call the default mail client

    I have a software which sends emails for reports. The software calls the default mail client (Thunderbird) and sends the e-mail. However, this open Thunderbird and gets in the way. Is there anyway this could send the email without opening Thunderbird? Can it run in the background like outlook express? It should be closed after the e-mail was sent.

    http://KB.mozillazine.org/Thunderbird_3.0_-_New_Features_and_Changes#Send_in_Background

    Open Tools(or AppMenu/Options)/Options/Advanced/general/Config. Editor, paste mailnews.sendInBackground into the search box, and then double-click the preference to set it to true.

  • Firefox does not start because he says that it's another instance that runs in the background, but I checked and it is not a!

    Firefox does not start because he says that it's another instance that runs in the background, but I checked and it is not a! I have Linux Fedora 15 and I'm not the root. I spoke to the Manager and he said I should delete a file in the folder where firefox is installed and which can solve the problem. Can you help me?

    Thanks, Marius
    

    Upgrade your browser Firefox 8 and check

  • Skype is running in the background, but does not open on the screen

    Skype is running in the background, but does not open on the screen

    Uninstall ArcSoft software. This application adds a filter cell of webcam and is originally Skype crashing.

    Stack: \Driver\,ArcSoftKsUFilter, \Driver\ksthunk,\Driver\usbvideo,\Driver\usbccgp

  • Google Hangouts running in the background

    Hi all

    I've had my 6 s more for about 10 days now and as I'm sure all do you when you get a new iOS device, I've been obsessed with using the battery, especially to see how much better the news is on the former.  Keep an eye on its use, I noticed one thing is how much Google Hangouts runs in the background even with background App update off.  This is the main way that communicate with one of my best friends (he lives in Cali, I live in Missouri), but it is really the only one I chat with over there, everyone I have message with iMessage.  I have notifications because he lit (since it's a messaging application), but once again no background app refresh and today the stats look like this:

    • 14 minutes on screen
    • 1.6 hrs history
    • total energy consumption by 11% over the last 24 hours
    • Time since the last full charge: 15h30m Standby; Use of 5h11m, 65% remaining battery.

    I checked to make sure, and I'm running the latest update of the application (6.1.0, released 11/30).  Does anyone have any ideas or advice?  Did you have similar problems?  I just suck?

    Thank you!

    -Rob

    11% for 24 hours is not uncommon. I had a similar conversation with another user today; Background App refresh is not the same answer that Push notifications, which are technically not updating in the background. Hangouts receiving push notifications and their treatment.

    I'm jealous of your consumption; 65% after 15 1/2 hours is incredibly good battery life. The best practice is to charge your phone overnight, every night, with iCloud active backup. In this way that the phone will save automatically every night, so the most you can lose if you need to restore it's a day data value. And you will have a fully charged phone every morning.

  • Programs that run in the background

    I am using windows 7 Home Premium 64-bit. on a Compaq Presario. There is constantly something running in the background and is very slow. I have reset to factory, but he always does.  Has anyone experienced this and fixed it, please.

    Seems to have settled. He had some quiet time so time will tell. Yes. I did all that you suggested and the Mallard quarantined. Thank you very much. Will close this nw

  • How do I know what process should run in the background of a HP Pavilion a1020n desktop computer

    There are a lot of processes running in the background of my office, and the amount of memory used varies from 0% to 100%.  Seriously, this affects the performance of my pc, especially if I'm trying to run multiple applications at the same time.  Is there a list of the process 'default' which must be running, and if so, where can I find such a list?

    As I do, that's if you close all the programs that you know how to close there should be only 50-60 process depending on the operating system that you do not specify.

    From there on, organize the task by using the memory manager. Can google those using memory that you want to disable or learn more about.

Maybe you are looking for

  • 2 Smartband does not connect after the software update

    Hello So I upgraded my Xperia Z5 yesterday and now my Smartband connects. I've seen some other posts on this topic and I've tried everything mentioned there, but it still does not work. I tried to activate my Bluetooth and NFC and turn it on again an

  • Several crashes on Win 7 Ultimate 64 bit

    I have a problem... win 7 ultimate 64-bit hangs unexpectedly and at random. at the start, normal operations, start repair, safemode etc... None of the codes of error, bsod, event logs (except the one that says windows has not been closed properly). W

  • What SSD to buy for Premiere Pro + a lot of Red Giant effects

    I have a Dell XPS 8700. I732 GB of RamGeForce 960.But 1 HDD base that came with it all running. I have a lot of WD Backup MesLivres that are 4-6 toI am looking for 3 SSD Drives to install. This seems to be a good idea. Looking at1. 250 GB for OS and

  • The printer refuses to mix 2 cartridges to print photo (color + black)

    Hello. I have printer HP Officejet 4500 Wireless. It works fine, but at the last moment, there is a problem. When I want to print a photo to the printer refuses to mix cartridges (black + color) in the field of photography. For example if I want to p

  • vCenter WebClient does not not error RSL # 2046

    Hi allI can't access vsphere web client after an RSL error,Below is a screenshot of my question.Can you please help?Thanks in advance