Several Windows local sql scripts to run automatically.

Hi Experts, here's my dillemma.

Oracle DB version: 10G

Installed in: Sun solaris Sparc Unix machine.

Customer used in local machine: PLSQL developer version 10

I'm going to get a set of .sql files every week on my local machine to windows 7 especially recreate tables, insert data, and perform other actions of DB.

Our project aims to automate the process of sql executions.

Whatever the State of execution of the 1 file, execution should continue with the rest of the sql files & save errors and other messages.

But the problem here is

(1) we don't have access to the Unix machine where DB is installed to write a shell script and run these files.

(2) we have only customer plsql developer which interfaces with DB.

My life I worked with scripts Unix & plsql, but not having don't access Unix is a newthing to me & its driving me crazy.

Please give me advice on how to approach it.

(1) can use us plsql developer for pickthe local files & run them?

(2) can write us that all back base program in order to recover and run the local sql files.

Assumptions:

I think that PLSQL programming in itself is not a way to access the files stored in the local computer (my system and not the box Pb, in that it is installed).

Thank you for your time and response.

Tip:

use customer sqlplus to connect to db. and run your scripts in the bat file

Tags: Database

Similar Questions

  • script is run automatically when you install the reader extensions

    Hello dear forum users...

    I generated a dynamic form with LiveCyle. I used a script to add instances.

    It works very well with Adobe Acrobat Pro.

    But if I want to prolong funtions in Adobe reader (so that Adobe Reader users can complete and save the form) something happens to my form automatically.

    Pages that must be dublicated by clicking a button, are multiplied in the form when you open the form with the reader.

    then the form went from 37 pages initially of 20 pages.

    I use this code for javascript:

    xfa.resolveNode("topmostSubform.Page13.matrixx").instanceManager.addInstance (true);

    the same problem with

    xfa.resolveNode("topmostSubform.Page13.matrixx").instanceManager.addInstance (1);

    Thank you for your advice...

    I just saw something similar to this last week when the form had 4 tables that had unique table names, but the structure and names under the table where exactly the same. This cause problems when the form is Reader Extended. He ended up creating a new instance for wach table that has been added. The solution was to appoint repeating subforms with unique names.

    Paul

  • keyboard no one and several windows opens automatically

    The last few days Ive seen the following problems with my laptop:

    1. on a normal startup

    several windows open automatically without prompting to the keyboard. The first window is usually the Help window, and then opens the default browser window as well. 10 - 15windows opens in a duration of one minute and continue until I manually closethem or at the end of the process in the Task Manager.

    This experience on the admin user and others

    2. Alternatively on the boot of startup window stops and asked to choose an operating system.  This machine has only win7 on it. no option cannot be selected as keyboard stubbornly inactive you.

    3.

    If by chance the machine decides to start, I can not connect to the user, because the keyboard is not responsive

    If I get the admin user for which I have no password... anything can be typed keyboard non-responsive rest like a potato.

    It seemed that the keyboard was defective, so ive got changed, but the problem persists.

    Help, please.

    Of course, it looks like infections are present.

    Run ADWcleaner https://toolslib.net/downloads/viewdownload/1-adwcleaner/ it's free and one of the only malware cleanup tools that I trust.  Malwarebytes can be used, but be careful to not take the trial or use the pro version.  Virtually all the removal tools known as maleware are in themselves of malware.

    If you are unable to get sufficient control, download ADWcleaner into the USB port on another computer.

    I assume you mean to Internet Explorer (IE)?  If you are, reset

    Tools, Internet Options, advanced.

    Multiple OS question at the start is usually someone re - install Win7, but unless you first delete the existing partition.

    Now, this is a controversial subject, but your choice of AV software may be something you want to take a 2nd look.  I suggest you visit this website to get an idea of what AV software made the best work, depending on what type of user you are: http://www.av-comparatives.org/ is a non-profit that has been around for a long time and I hope that their results.

    When you interpret these results, remember the difference between a product that detects 95% and the other 99% of infections, it is actually 5 times more likely to allow an infection.

    I care about 140 Windows PCs and I have more than 13 years.  Until last September, the only AV software that I would allow my clients to use was Norton Antivirus.  Note that this is not the same as any other product, Norton 360 or Internet Security.

    Last September, Symantec (Norton owner) decided to no longer sell such a product.  After much research, I decided on Bitdefender Antivirus 2015 +.  I installed it on more than half of these PC so far and has never been a problem.  In fact, I think it's a better product than even Norton.  One of the things I love the most about it, is the silence and discretion.  It is also cheap.

    My customers know that if they install any product of 'Internet Security', I won't work on their computers until it is deleted.  Very well, I learned the hard way that the other components of these products (other than the AV itself) IS caused more problems than any profit that they bring and work primarily by stopping the Windows component that does a very good job of this particular task still.  My problem is that when I started to work on a computer with an IS on it, I could spend hours trying to diagnose the problem, only to find out that by taking the product of the IS, the problems have become much clearer and easier to solve.  I think that the product of the IS actually hides the problem.

    As I said.  It is a controversial topic and you will find many different very strong opinions.  I know that mine is based on a fairly large sample over a long period, and are consumers of consumer type Windows.

    Another thing you need to know: you can delete not entirely of most any AV software simply by using the standard uninstallation tool Windows 7.  Most of the majors also publishes a "removal tool" that gets the rest.  If you do not completely remove it, it will cause very hard to understand and diagnose problems.

  • How to run multiple parallel sql scripts?

    I try to execute multiple sql scripts parallel to the short run of the process via sqlplus. Are there opportunities to do? LINUX ORACLE 5. XX

    I do it too via Scheduler, but now I need to do this via sqlplus or shell + sqlplus?

    How do I start using shell script several xterminals and ech session begins all the sql scripts?

    nohup./SQL1.sh &

    nohup./sql2.sh &

    nohup./SQL3.sh &

    The '&' causes the script1.sh to run in the background so that the command prompt is returned immediately.  This means that sql2.sh can start immediately and at the same time as sql1.sh.  It doesn't have to wait for sql1.sh.   This assumes that there are no dependencies between scripts!  This meets your need to run scripts in parallel.

    The nohup untie your shell script.  So, even if you disconnect, the script continues to run.  Without the nohup, if you were to close your session before the end of the scripts running, they would get fired.

    Hemant K Collette

  • Where the SQL Scripts running after the installation of the ODAC for Oracle Client?

    I just installed ODAC for Oracle Client on a windows server that runs a database of sql server, allowing developers to connect to a web application to an Oracle/Unix database. The installation States to run SQL scripts, located in the $ORACLE_HOME\ASP.NET\SQL directory after installation. I don't know where to run them? On the ORACLE DB on the Unix server? If someone could let me know, I'd appreciate it. Thank you.

    You must run on the Oracle database server, but they are necessary only if you use Oracle for ASP.NET providers.

    If you just install the software, so you can use OLEDB with SQL Server linked server, for example, you don't need them. What do you need to run although if this is the case is the oramtsadmin.sql script that creates the objects used by the Oracle MTS Recovery Service (if you do not have these objects created on the database) that SQL Server uses a distributed transaction for Oracle connections I think.

    It will be useful,
    Greg

  • Error code: 8007000D when running Windows 7 on a Lenovo 200 - Windows Update is not running automatically.

    I'm running Windows 7 on a Lenovo s 200 and Windows Update does not run automatically.  I manually installed the preparation tool to update Windows (KB947821) and KB978258 but no fix has worked.  Any help would be appreciated

    0X8007000D ERROR_INVALID_DATA

    Suggestion: 8007000D - Error_invalid_data.  Corruption in the folder C:\Windows\SoftwareDistribution.  Rename the folder % windir%/Softwaredistribution.

    TaurArian [MVP] 2005-2010 - Update Services

  • Why does'nt windows developed defender running automatically with windows 7?

    Why does'nt windows developed defender running automatically with windows 7?

    Hi GRL999,

    Welcome to the Microsoft Answers site.

    You can add, delete, enable, or disable a startup program in windows 7. Follow the steps mentioned below.

    Method 1:

    1. open the settings menu of the program.

    2. Add the program to the startup -

    Select the type option to run at startup of the program.

     

    3. to remove the startup - program

    Deselect the option type to run at startup of the program.

    Method 2:

    1. right click on the exe of the program to run at startup, or opening at startup and click create a shortcut.

    NOTE: This is the shortcut you add to the folder of boot Option one or Option two below. Skip this step if you only remove a shortcut from the startup folder.

    Single user:

    NOTE: The startup of the single (current) user folder is a hidden phone folder to the:
    C:\Users\(user-name) \AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

    2. open the Start Menu.

    3. click on all programs, right-click on the Startup folder and click Open or Explorer or in the line of the Start Menu search box, type : startup of the shell and press enter.

    4. to add a startup program or file shortcut - drag the shortcut created in step 1 in the startup folder and drop it.

    5. to remove a boot program or file shortcut - right click on the shortcut in the startup folder and click Remove.

    6. close the startup folder when finished.

     

    For all users:

    NOTE: The startup folder all users is a hidden system folder:
    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

    2. open the Start Menu.

    3. click on all programs, right-click on the Startup folder and click open all users , or to explore all users.

    4. to add a startup program or file shortcut - drag the shortcut created in step 1 in the startup folder and drop it.

    5. to remove a boot program or file shortcut - right click on the shortcut in the startup folder and click Remove.

    6. close the startup folder when finished.

    Method 3:

    1. open the Start Menu.

    (A) in the search line, type msconfig and press enter.

    or

    (B) open theControl Panel (all items view) and click the Administrative Tools icon, and then click System Configuration. Close the control panel and the windows administrative tools.

    2. If prompted, click on continue for UAC prompt or type the administrator password.

    3. click on the Startup tab.

    4. to disable a startup - program

    (A) select a listed startup program and uncheck the box.

    (B) repeat to disable more listed startup programs.

    5. to allow a startup - program

    (A) select a listed startup program and check it.

    (B) repeat to allow more listed startup programs.

    6. to turn off all startup programs listed -

    (A) click the disable all button.

    (B) proceed to step 9.

    7. to enable all startup programs listed -

    (A) click the enable all button.

    8. click on apply and OK.

    9. click on the button to restart to apply.

    Note: This will restart your computer immediately. Save and close everything you are working on the first.

    For more information about Windows Defender, see the items listed below.

    Enable or disable the Windows Defender

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-Defender-on-or-off

    Enable or disable the Windows Defender real-time protection

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-Defender-real-time-protection-on-or-off

    Schedule when Windows Defender scans your computer http://Windows.Microsoft.com/en-us/Windows-Vista/schedule-when-Windows-Defender-scans-your-computer

    Using Windows Defender

    http://Windows.Microsoft.com/en-us/Windows7/using-Windows-Defender

    Hope this information is useful.

    Thanks and regards.

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

  • Dell XPS on MS XP running several windows to include station media TV and internet games offers a pixelated display gradually and freezes

    Dell XPS on MS XP running several windows to include station media TV and internet games offers a pixelated display gradually and freezes. restart clears but reproduces

    I love my Dell and use media station to watch cable TV while playing games on the internet (pogo.com) sometimes I play solitaire spider OEM.  I think that, especially in the afternoon, my image of the desktop will get pixelated (small hyphens in contrasting colors) gradually fill in top to bottom.  Initially, I thought this might be the steganography, but found no references.  then I noticed that the pixelation in contrasting colors began to appear on the screen of the media station into strips about 6-8 rows of red, green and blue and pulsed in time for audio.  do not have audio video storage but this started to happen when Comcast went digital, so there may be a link?  spoke and troubleshoot-done with the line paid expert who suggested Speedfan as a diagnosis for my GPU graphics processing unit.  When I reboot, everything is fine so it happens with increasing frequency.

    Here is a link to the Dell site where you can get a manual that has a few general cleaning instructions as... eliminate dust, etc.
    http://support.Dell.com/support/downloads/index.aspx?c=us&CS=19&l=en&s=DHS

    Here is a link to some general purpose cleaning of ideas to make sure your system is found good circulation:

    http://www.bleepingcomputer.com/tutorials/tutorial118.html

    Even if your system is physically disconnected from the power supply and clean, if you can remove your slot NVIDIA card and reinsert the card safely in the same dwelling, which will ensure that you don't have a loose connection.  Which may require a screwdriver, so if you're not uncomfortable with it, maybe you can find someone to help you.

    Your display NVIDIA GeForce 7300 driver has also passed HIM.

    Your msinfo32/video info says that currently, you have this:

    6.14.12.6658 driver version (it's NVIDIA version 266.58)

    The current version of the driver for the GeForce 7300 is 270.61

    The best way to reinstall the NVIDIA software is to visit NVIDIA support web page and let your system and recommend the best software for your system or that you get the right version of the software on their web page and download the latest package of video driver for your system software and install it yourself.

    It is recommended to run the scan NVIDIA with Internet Explorer.

    Here is the link to the support page NVIDIA for the scan:

    http://www.nvidia.com/download/Prescan.aspx?lang=en-us

    Read the instructions, and then click the GRAPHICS DRIVERS button to start the scan.

    Let online to take a look at your video system scanner them and see what he suggests for drivers and consider their analysis if they offer a new pilot.

    Download and install the recommended driver and reboot your system and check the version of the driver installed again.

    If you post the msinfo32/video info once again, we can help you to ensure that the new driver is installed.

    Is not not a audio/videophile, I'm not sure if your codecs required to make day or no MS maybe someone else can help you with this part, but should your video driver update.

  • When I run IE9, trying to open several windows, but never accually do open. No acually Web site is in place.

    When I tried to open IE9 several Windows IE tried to launch. More than 2-14 windows all at once. She is never resolved and no window opens in fact. But it tops out at all my memory and locks every thing upwards. Even try to use to close the Task Manager does not always work. The last appearance was I downloaded a zip file to open it in Internet Explorer, and when I clicked it several windows attempted to open at the same time. I did a scan for viruses with Avira and it was clean except for a single file that had a warning could not open. the file is "iw91POnz.exe". and was located in the: C:\users\Rick\AppData\Local\Temp\iw91POnz.exe. (This is defined as a "file ROOM" - size 8.57 MB. No idea where it came from or what it's attached too.) I deleted the my laptop OK boot file and everything seems to work OK.
    Any thoughts on this is appreciated.
    Rick

    Hello

    Reset the Internet Explorer settings and check:

    http://Windows.Microsoft.com/en-us/Windows7/reset-Internet-Explorer-settings-in-Internet-Explorer-9

    Let us know.

  • can the run/run .sql script in another application?

    Hello..

    I have a problem to run my .sql script (for example: @c:\Users\test.sql) in my netbeans application. There is no problem when I want to run/run my sql query (for example: "select * from...").

    But when I want to run my script, no presentation of the result. my script content my query to export to the csv file.

    script: @c:\Users\test.sql

    in the script:

    coil c:\Users\test.csv;

    ' Select ' ' ' | LOT_NUMBER | « «, » » || DEVICENUMBER | « «, » » || DEVICENAME | « «, » » || STEP_NAME | « «, » » || INSERT_DATE | « «, » » || STATUS | « «, » » || DISPOSEDBY | « «, » » || ACCEPTBY | « «, » » || AVAILABLE | « «, » » || GENDISPOSITION | » » »

    of RF_LOT_ON_HOLD_LIST;

    spool off;

    Thank you.

    bunch

    Yes, we know what talking about your question.

    a .sql script is just a plain text file containing everything you want.  The code in it can be a pure SQL statements, it may contain of the PL/SQL code, and it can also include SQL * more specific orders (keep in mind SQL * more is a tool, not a language, so that these commands are specific to this tool and other tools which can also interpret the same commands).

    Not quite sure how your question relates to this blog, as this blog is showing the code that gets the data in JSON format in a jqGrid (jQuery grid?) and then exports the data in an Excel file.

    What you're trying to do is to take a series of SQL * Plus and SQL statements in a text file and generate a CSV file from them.

    As already mentioned, SPOOL is a SQL * more order, specific to SQL * more command line tool.  The database itself has no idea what "spool" means, while passing to the database somehow does not work.  I also doubt that netbeans knows what that means, either.

    So, in short, how you try to do, not you cannot.

  • Running SQL scripts on different databases

    Hello!

    At my work we have many databases on a server. I have to make a request so that users can run the application on a selected database SQL scripts.

    So my question may be separated into 2 sections:

    1 - is possible to let users SQL scripts run directly from the application?

    I think a database to create a page that displays the list of all the SQL scripts, that we want to use, and when you click on a specific script name in the list, it asks something like "Where the database you want to run the script?", and then, as confirmed by the user, it would show results running the script on a different page.

    is 2 - possible to let users choose what database to run these scripts?

    Any information would be helpful, I'm at the beginning of the project and am not sure at all about how to proceed, or if it is at all possible.

    Thank you!

    Fallen_Kaede wrote:

    Thanks for the quick response. I confirm that we are talking about databases on a server.

    The request is to "debug" to other databases. For example, be run scripts to the locks on the list, to show the different indexes on a table, etc. to help diagnose problems.

    It looks like the 'users' are DBA who should use OEM/Grid Control to do so.

    1 - is possible to let users SQL scripts run directly from the application?

    Lol the only way to run scripts in the APEX is the use of the SQL Scripts for SQL workshop component.

    The key word in your question is 'application '. SQL * more and Developer SQL are applications that allow users to run SQL scripts on the desktop. Scripts SQL is an APEX integrated application that allows developers to run SQL scripts on the web. However, there is no documented way supported for end users to run SQL scripts in a custom of APEX application that you created. Therefore, rethink your approach. Rather than create an application APEX runs scripts, you must convert the scripts in PL/SQL, APEX packages, pages, components and applications leverage features of the APEX and reports, graphics and interactivity (e.g. exploration links; timed refreshes etc.). This will give you a user experience improved, beyond what is possible using static SQL scripts.

    is 2 - possible to let users choose what database to run these scripts?

    The APEX applications would exist on an instance of the APEX in a database and access other databases using the database links (which can have a performance impact). It would be possible to create a LOV based on the view of the USER_DB_LINKS dictionary and use in a selection set to a global page list to provide a control to set the current context of the database. Region data sources will have to be generated dynamically in the packages of PL/SQL use the links from relevant database based on this value LOV.

  • Running PL/SQL scripts...

    Hello:

    I'm new to PL/SQL and am learning by writing that a few basic Queries.I using TOAD as a tool to write queries I got stuck in this query I posted below.

    Here I have a table with data.

    EMPLOYEE_ID SALARY BONUS

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

    90-1000

    100 2000

    110 1890

    130 2132

    120 1255

    I wrote a query which take the value from the table (of particular employee_id) salary and multi with 0.01 and once again will store in the variable bonus (so far everything works fine).

    but when I execute the script with the function to update its time consuming process (ends without result).

    DECLARE

    bonus NUMBER (8.2);

    emp_id NUMBER (6): = 100;

    BEGIN

    SELECT salary * 0.10 IN bonus

    Employees

    WHERE employee_id = emp_id;

    dbms_output.put_line (bonus);

    update set employees.bonus = bonus employees where employee_id = emp_id;

    END;

    I tried the same thing through the sql-plus tool.


    I stored the file above in note ++ (.sql extension) and through sql-plus I tried to run

    SQL > @[path] [file]


    but this does not work please help me in this. Please help me solve both ways...



    See you soon...

    It shouldn't take long at all.

    SQL > create table emp2 in select * from emp;

    Table created.

    SQL > ed c:\give_bonus.sql

    In my case, I have...

    >
    declare
    number of bonuses;
    emp_id number: = 7788;
    Start
    Select sal * 1.1
    as a bonus
    from emp2
    where empno = emp_id;

    dbms_output.put_line ('Sal with bonus: ' | bonus);

    Update emp2
    Sal value = give_bonus.bonus
    where empno = emp_id;

    commit;
    end;
    /

    And then again in SQL * more I call it...

    SQL > set timing on
    SQL > @c:\give_bonus.sql
    SAL with bonus: 3300

    PL/SQL procedure successfully completed.

    Elapsed time: 00:00:00.03

    Very fast.

    Perhaps you lack the ' / ' the end of your script that tells SQL * Plus to run the code?  And he's sitting there waiting for input?

  • script to run several queries to find/replace

    Working on a big book of ID document (* .indb), I saved dozens of queries to search/replace (named "col01', 'col02' etc.) that I run on 'all documents '. For some reason, I have to run these queries several times a day.

    So I'm wondering if he has, or if someone out there will write: a script that runs these queries one after another. Given the size of the book, it may be necessary to provide the script to pause after each query (before it turns on with the next), but I'm just guessing.

    Any help is very appreciated!

  • How to view and current directory to run an SQL script

    Hello
    Questions about a few simple things in sql command line plusent, but they are really hard to find in the documentation:

    1. is there an easy way to set an environment variable changing a working directory where a script is running?
    2. How can I view path environment?

    Kind regards
    Valerie

    SQLPATH? Example:

    C:\>type \tmp\test.sql
    select 1 from dual;
    
    C:\>sqlplus test/test
    
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Aug 28 11:47:56 2009
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    
    SQL> @test
    SP2-0310: unable to open file "test.sql"
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    
    C:\>set SQLPATH=c:\tmp
    
    C:\>sqlplus test/test
    
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Aug 28 11:48:19 2009
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    
    SQL> @test
    
             1
    ----------
             1
    
    SQL>
    
  • How to run SQL scripts using OWB process flows?

    Hello
    I have a few SQL Scripts. I run them using process flow OWB.

    Can I get a document or a link that helps me to achieve this?

    Thanks in advance,
    SriGP

    Hi SriGP,

    You can call SQLPLUS using the external process activity.

    Order: Give the full path of the SQLPLUS executable
    Script: specify what you want to do in SQLPLUS

    Thank you
    Fati

Maybe you are looking for

  • Tecra S5: Which driver Lan Wireless necessary

    Hello I have an S5 and receive information from a wireless Lan driver. Excellent service. But what is used? I follow the link for downloads and offers me different drivers. So I try to establish that you choose and that's where my problem begins. On

  • Slow startup of Vista on Satellite U300 14 K

    I recently bought this Satellite U300, but it takes about 3 1/2 minutes by pressing the button, until I see the desktop and the sidebar Windows. I already turned off non-essential processes in Windows Defender and msconfig.exe, tried to have the radi

  • IDE #1 error when changing from my dvd on the Satellite 2450-401

    HelloI just bought a Toshiba sd-r6472 dvd - rw to replace my old Teac on my Satellite 2450-401 dvd\cdrw. When I restart my computer, I get the error ide #1 and after loading the system (Windows and Linux) my new DVD - RW disc is not seen. I tried to

  • Link network lost on a NV +.

    I had a NV + runnning with my iMac for several years. I used it to contain all my iTunes files, since I have a lot of digitized movies. Noticed it "disappeared" from the finder. Restarted it and now it gives a "link no network" on the display screen,

  • Called Labview VI cannot find its controls or subvi

    My application consists of: A standalone .exe that calls graphic VI containing generic and VI controls. My app works very well in the development environment, but when I deploy the secondary can't find it's the generic controls or vi (he uses the pat