run a group of files sql in the background in order

Hey,.

I made a simple script tries to run a group of files sequentially, sql

It looks like


$cat run_background.sh

nohup sqlplus < user name > / < password > @ < db_name > @1.sql &
nohup sqlplus < user name > / < password > @ < db_name > @2.sql &
nohup sqlplus < user name > / < password > @ < db_name > @3.sql &

what I worry is: I don't want 1.sql, 2 sql and sql 3. run in parallel on data base.

so is this okay script to run as I want?

Thank you very much.

ground. Beach wrote:

2949037 wrote:

Hey,.

I made a simple script tries to run a group of files sequentially, sql

It looks like

$cat run_background.sh

nohup sqlplus /@ @1.sql &
nohup sqlplus /@ @2.sql &
nohup sqlplus /@ @3.sql &

what I worry is: I don't want 1.sql, 2 sql and sql 3. run in parallel on data base.

so is this okay script to run as I want?

Thank you very much.

make the file all.sql

that contains the following lines

@1.sql

@2.sql

@3.sql

output

nohup sqlplus /@ @all.sql &

You don't want the password of the user ID on the command line for safety reasons ;-)

Tags: Database

Similar Questions

  • PE4 file export giving the wrong field order

    In PE4, when I run the file - export with the following parameters:

    General/File Type: Microsoft DV AVI

    Video/compressor: DV PAL

    Key and record/field image: first high-field

    It creates AVI OK, but GSPOT watch the AVI is lower field first, not upper-field first as specified in the settings.

    Why?  Is this a bug or selecting DV force LFF (If Yes, then why isn't the UFF option grayed out in the settings?).

    What I'm trying to do is to create some small side projects as AVI, which will be finally import into a comprehensive final project.  The source files for the subprojects are mpgs from a HD camcorder, to make them high-field first (UFF), and so I use the PAL Harddisk predefined project which is expected to be the source files UFF.

    Since my final project will include UFF mpgs and these subprojects AVI, I ask to be UFF also, so that I don't have to reverse selectively field orders etc.

    Is this wrong?

    Thank you

    Dave

    Yes, Premiere Elements will take care of the order of the fields when exporting to DV - AVI format, if you use a video of the UFF in the preconfiguration of the UFF «Hard disk, Flash memory camcorder» project

  • Possible to run several simultaneous processes form the pl/sql in the background

    Hello

    We have a procedure in the package in pl/sql that spend us in the year and the month of.

    Instead of running these processese serial

    Package.Procedure (201301);

    Package.Procedure (201302);  etc.

    wish I had these running simultaneously in additional.

    What is the best way to do it.

    Only way I can think is dbms_scheduler to run once only for each job

    Using oracle 11.2.0.3

    Thank you

    Looks like dbms_scheduler way to go.

  • Is it possible to ignore white space when exporting PNG files. Not the background / work plan

    I have icons, which have white features, mask the other lines to create my icons. Instead of me will expanding the traits and then using pathfinder to create transparent traces to finally create a fill black "single", is it possible to simply export and ignore white? Is there a script that would exist? That would make my life so much easier.

    sBDN2fB.png

    Ignore the white on the smallest sprocket, but white on the cotyledon is necessary for the icon. To make this work, I would usually expand all items and use pathfinder to create my forms. It is a bit tedious doing lots of icons. I would like to know if there is an easier way to do it.

    Thank you!

    Make sure that 'White' is in the Swatch Panel, then choose white as "Transparent" and "8-bit" PNG in the color table.

    Or you can rework your works of art to be truly transparent.

    Or fix the PNG in Photoshop.

  • 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.

  • [LIKE CS5] Export a PDF file in the background

    Then CS5 has background export to PDF files. If I have a script that exports several PDFs or JPGs etc, as each page individually or several parameters in the order (or at the same time now?), how know when it is done? AppleScript normally "expects" that the process is done. But now what happens? How can I know that exporting is done and I can close the file, or PDFs are made successfully?

    In my view, that there is now a "background task" class and a command ' wait for task. Examples on how to work with who? (Sorry I have not had time to work on it right now, working on other things IDCS5/Snow Leopard yet.)

    TIA, Chris

    If your script still uses the document. exportFile(), nothing will change. For example, the following code always works:

    t = app.activeDocument.exportFile(ExportFormat.pdfType, File("~/Desktop/Test.pdf"));
    alert("Task is done")
    

    If you want to use the "background" feature, you will need to use document.asynchronousExportFile ().  AsynchronousExportFile returns a background task, which is the waitForTask() method.  You can use something like this:

    t = app.activeDocument.asynchronousExportFile(ExportFormat.pdfType, File("~/Desktop/Test.pdf"));
    t.waitForTask();
    alert("Task is done")
    

    This export your document to PDF using a background task, wait for export to fill and then displays an alert.  The problem is that you lose the benefits of a background task (that is, you can do other things while the file export in the background).

    The backgroundTask object has a status property, which returns the status of the task, including TaskState.COMPLETED.  You could probably add an event listener to check the change of State of TaskState.RUNNING to TaskState.COMPLETED.  When I get a little more time later, I'll check and try to provide a code example.

    Once again, if your concern is the behavior of scripts you already have, then nothing should change.  If you are looking to take advantage of the new substantive tasks, there is work to do.

    /Dan

  • I'd like to find which program is running in the background on my computer.

    I use windows 7 premium 64 bit on my desktop, a program starts and runs for about 4 minutes spasmodically in the background. When this happens, it slows down and sometimes even freezes the window running. How can I find out what program is running so that I can uninstall if necessary? I'm just an average guy not too tech savvy and I'm just hoping this is an easy fix without taking it to an expert. Any help would be appreciated to this annoying problem.

    Thanks Lesh1

    Hello lesh1,

    IType.exe and ipoint.exe respectively are the drivers for Microsoft Keyboard and Microsoft Mouse. They are designed especially for those who have Microsoft Devices. These drivers are usually sent through Windows Update. So, if you don't have a Microsoft Keyboard or a mouse, you can safely uninstall them. In revenge, leaving these drivers as are, would mean without damaging your system.

    Note: These drivers are likely registered as keyboard and Microsoft mouse in your control panel. You can remove the Wizard "uninstall a program".

    Hope this helps,

  • BlackBerry Smartphone Applications running in the background?

    Y at - it somewhere that I can see what applications are running on my "BOLD", and if I can close applications from one place?

    For example, I have often several open applications and press the end button or the back button without actually leaving the app.  Hours later my phone is running slowly and I forgot what apps I may have open and run in the background.

    Is it possible to see which applications are underway with/without entering each of them individually?

    Thank you!!!

    Alex

    On your home screen and more any screen, you can press Menu > Swirch Applications to display those running in the background. Close the is not necessary.

    Always running in the background will be your Homescreen, BBMessenger, Messenges, phone and browser, and maybe other third-party applications that need to run in the background in order to exploit (BBAlerts is a good example).

    Make sure that the browser is not open to an active Web page.

  • Is there a way to export the background color "paper"?

    We try to get a PDF export of our publication which has a pink background for for breast cancer awareness month. I go to shades and select a pink color. Everything is superb. When I export and open the PDF file in Acrobat, the background is white. Is there a way to export grade "paper" with the rest of the page?

    Yes, you would need two versions for this question.

  • transparent background / XML Code to change the background color

    Hello

    In a bit of a pickle here. I need a way to insert a swf file in any site of background color, so that it automatically corresponds to the top.

    Now, can we do the transparent swf files? And match the background of any background data of Web sites?

    Or can you use some kind of XML file and simply change this xml file to match the background color of the site?

    Now, what happens if the Web site uses a background pic particulare? How one would correspond to this?

    Like normal people, I'm stuck between the hammer and the anvil, so any help deeply apprecaiteed!

    Kind regards

    Boxing boom

    Yes BB you can do the 'background' transparent, publication settings, HTML, comboBox 'window mode' tab, select ' transparent windowless "." then publish again and make sure that in the HTML embed, 'wmode' is set to transparent.

  • When I try to put the background that is not color. only, I get a black screen.

    everything about the definition of the background. accept all I get is a black screen.

    Hi Troy,

    MSE affect the definition of the background or order so you can exclude as the cause.

    When did start?  If the latter, try a system restore to before it started to see if that helps. If you use Windows 7, seehttp://www.sevenforums.com/tutorials/700-system-restore.html. If you are using Vista, seehttp://www.howtogeek.com/howto/windows-vista/using-windows-vista-system-restore/. If you are using XP, seehttp://support.microsoft.com/kb/306084. Sometimes this simple process made the rounds and sometimes that doesn't help - but it is easy and worth if she has recently begun.

    If this does not work, try to update the driver, firmware, or software for your video card and monitor by checking with the manufacturer of the computer to get the latest for your specific computer model and (your preference based on the serial number), as well as your version of Windows.  Be updated via Device Manager, save the changes, reboot and see if that helps.

    If this does not work, go to control panel / customization and a more basic theme or background plus standard (and other similar adjustments) try to see if you can find one that works (or partially to work).  Then you will know that the question is somewhere in this configuration and it can take time to find something suitable for you.

    I hope this helps.

    Good luck!

    Kosh

  • After running sql of the lot, it is disconnected

    Hi all

    I wrote a batch program to run a pl/sql procedure. But after running, it disconnects.

    But I want to continue in the same session

    echo exec tracer.trace_pck.start_('alter session set sql_trace=true') | sqlplus hr/hr
    

    Output:

    Press a key to activate tracing

    SQL * more: Production of liberation 11.2.0.2.0 Thu Oct 10 15:59:56 2013

    Copyright (c) 1982, 2010, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production

    SQL >

    PL/SQL procedure successfully completed.

    SQL > disconnected from Oracle Database 11 g Express Edition Release 11.2.0.2.0.

    Production

    Trace enabled successfully. Press a key for entry you sql

    If you use a batch file, I assume you are using windows OS.

    Essentially, what you need to do is call a sql file in the batch file and then download the sql file to call all the other files.

    Batchfile test.bat file test.sql sql calls

    sqlplus /password @test.sql

    test. SQL calls test1.sql and test2.sql and stops

    @test1.sql;

    @test2.sql;

    "exit";

    test1. SQL displays the current sid and serial No. FRO our name and our session

    Select 'test1', sid, serial # in session $ v

    where audsid = userenv ('sessionid');

    test2. SQL displays the current sid and serial for our name and our session No.

    Select "test2", sid, serial # in session $ v

    where audsid = userenv ('sessionid');

    When you run this you get t output similar to the following: (your SID and serial will be different)

    ' TEST SID SERIAL #.

    ----- ---------- ----------

    771 97 Test1

    ' TEST SID SERIAL #.

    ----- ---------- ----------

    771 97 test2

    It shows two separate sql files have been called, but are always in the same session

  • Call the file sql plsql

    Hello
    I'm stuck for several days in this issue. Hope someone help me.

    I'm using Oracle 11.

    I am writing a utility to purge the data from the database based on certain criteria.
    We do not have physical (actual) the partitions present on our system (since we do not use Enterprise edition).
    We have 57 paintings representing 57 partitions. Then, we create a view of all of these 57 tables-

    CREATE or REPLACE VIEW MY_VIEW AS
    Select [column_names] from table1
    UNION ALL
    Select [column_names] in table2
    UNION ALL
    Select [column_names] in table 3
    UNION ALL
    :
    :
    :
    Select [column_names] of table57
    ;

    This superior query is saved in the 'body' of user_views.

    Now when a user wants to delete a partition-
    -I read the body of the request in the .sql file.
    -Edit the .sql file that is, remove the unwanted ' select * from many '
    -Loss of vision.
    -Recreate the view from the edited .sql file.


    The question is in the creation of the view on the fly of the procedure-
    -I'm not EXECUTE IMMEDIATE 'CREATE VIEW... ' and ' DBMS_SQL. PARSE' the request body exceeds 32,767 characters.


    So I chose the option of filing to write. In the file, I write the query VIEW and then I want to create the view from this file.

    Now, I'm not able to call the .sql that contains
    CREATE OR REPLACE VIEW MYVIEW AS
    Select...
    UNION ALL
    Select...
    :
    :
    Select...

    Length of character of this file is about 90000.



    Please guide me in this issue.
    Any new idea to manage very large display in the long term is also welcome...


    Thanks in advance
    Micheline
    ARGE view at run time is also welcome...


    Thanks in advance
    Micheline

    When you use DBMS_SQL, the declaration must not end with a semicolon, or you will get ora - 911.

    ---------
    Sybrand Bakker
    Senior Oracle DBA

  • Can generate the file TKPROF without the SQL does not finished?

    Hi all:
    I want to generate the TKPROF to the trace file file, can generate the file TKPROF without the SQL does not finished? The file TKPROF can be used? because the report is too large. My environment is ORACLE 11.5.9





    Concerning
    Terry

    Yes, you can run a tkprof on one incomplete (or currently being created) trace file.

    HTH
    Srini

  • Dialog file open Firefox "which is a:" said 'SQL file' with all the files.

    Since I installed PostgreSQL on my Windows 7 PC, all files in Firefox by default SQL or add a ".sql". For example: if I download a javascript file, the saved file is "jquery.js.sql" in the downloads directory. None of my other browsers, only firefox. I did a reset complete and uninstalled/reinstalled and this problem persists. None of my plug-ins are enabled and I only firebug as an extension. How can I solve this problem?

    Try to delete the mimeTypes.rdf file in the Firefox profile folder to reset all the actions file.

    You can use this button to go to the Firefox profile folder:

    • Help > troubleshooting information > profile directory: see file

Maybe you are looking for

  • Impossible to merge the calls FaceTime Audio

    On iOS 9.3 trying to merge with calls updated iPhone users but merge button is dimmed. Anyone could make the Conference feature work? The problem goes back to when others expected later iOS 8 updates to address the problem - but I don't find any rece

  • Satellite A100 - keeps freezing and crashing

    HelloI've got a 2.5 years old Satellite A100. He was going well until recently, when I found that the pc freezes completely - this looks only happen when I move the cursor on the screen. The only thing I can do, it's a hard re-boot.The problem has be

  • HP DV6 - 2170ee keys doesn't work does not correctly

    Hello I have HP DV6 - 2170ee Notebook PC, and the keys do not work properly for a few days. The wifi button and mute switch off automatically. Even when I am trying to turn on them they don't have may work once and they hang on for some time.Any help

  • HP laserjet 400: hp laserjet 400

    Whenever I have install new ink cartridges, he throws the alignment off the coast. It's like it prints twice, especially in color. It makes it almost impossible to read. I'm tired of paying a technician to fix this, every month. Help! HP LaserJet 400

  • Problem with starting the computer

    When I turn on my computer (vista), I received the message "CPU fan.", stopped to protect the computer But the fan works perfectly and the computer works perfectly if I hired F2 immediately to the message. What's wrong?