Run sql script

Hi,
run sql script through command line(CMD). IS it possiple.
Thanks.

user638559,
Do I miss something else ? Are you the OP ?
Nicolas.
And also, it's a dup thread
run sql script
Message was edited by:
N. Gasparotto

Similar Messages

  • Where to running SQL Scripts after install of ODAC for Oracle Client?

    I just installed ODAC for Oracle Client on a windows server, that runs a sql server database, for developers to connect a web app to an Oracle/Unix database. The install states to run SQL scripts located in the $ORACLE_HOME\ASP.NET\SQL directory after the install. I'm not sure where to run them? On the ORACLE DB on the Unix server? If someone could bring me up to speed I would appreciate it. Thanks.

    If I do run the scripts, do you know what user they should be run as? The developer are using ASP.NET for connectivity.
    Why there is no Oracle Expert answer this simple question? ?
    After ODAC 11.1.0.7.20 installation completed, there is a message in the last screen:
    *"Run the SQL script located in c:\app\Administrator\product\11.1.0\client_1\ASP.NET\SQL directory for a new installation or an upgrade of Oracle Providers for ASP.NET"*
    The question is: How to run these 9 SQL scripts ?
    In SQL*Plus, which oracle user should I connect to in order to run these 9 scrips, including:
    InstallAllOracleASPNETProviders.sql
    InstallOracleASPNETCommon.sql
    InstallOracleMembership.sql
    InstallOraclePersonalization.sql
    InstallOracleProfile.sql
    InstallOracleRoles.sql
    InstallOracleSessionState.sql
    InstallOracleSiteMap.sql
    InstallOracleWebEvents.sql

  • Is it Possible to Run SQL Script from Java prog

    Hello
    Is there any API by which we can run SQl Script file ,
    Just by giving database configration parameters and SQL Script file Path ,it will execute that script automatically

    You can excute SQL statemetns throught JDBC, but that doesn't have a facility to read those statements from a file. You'd have to write code to read the file and create and execute statements through JDBC. That should be pretty straightforward though.
    It's conceivable that there's a third party library out there that does it, if you know what to look for.
    If you're not familiar with JDBC, check out http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/

  • Clearing sequences, running sql script

    Hi,
    I'm using OWB 10.1.0.4.0 and I use a sequence to create a surrogate key in my tables. For the tabels that are deleted during the proces I want these sequences set to 1 again.
    Is there a possibility to run a sql script in a mapping or in the proces flow (with a drop, create, grant statement for the sequence) ?
    Thanks in advance,
    Arjan

    Thx, I'll try that on monday. If I'm correct I can import a .sql in a custom procedure?
    I'll update the thread on monday.

  • Running sql script from pl/sql

    Is there any standard way to run an external sql script from pl/sql
    I really appreciate any assistance.

    If you want, I did start writing a function reading and executing statements out of sql script with utl_file.
    can I issue this command in PL/SQL: EXECUTE IMMEDIATE '@filename.sql';
    the function could be extended for DDL, session setting, etc...
    Regards
    Laurent

  • How to run sql scripts using batch file for a web dynpro data dictionary

    Hi,
    I want to develop a sql script to be executed on the server alongwith the installation of a product to pre-populate web dynpro data dictionary tables required for the application.
    I further require to make the scripts independent of the database name,so that it can be run at any client environment.
    Your help will be appreciated and rewarded.

    See shoblock's answer
    call sql script from unix
    masterfile.sql:
    @file1 &1
    @file2 &2
    @file3 &3
    @file4 &4
    then just call the master script:
    sqlplus userid/password @masterfile <p1> <p2> <p3> <p4>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Jdeveloper-Running SQL Script Problem

    Hi
    Iam new bee to Jdeveloper.
    I have developed sample datbase application in jdeveloper;
    Can any one explain me how to excute Sql script??
    Thanx in advance
    smile

    Ziqew,
    you configure a database connection in JDeveloper where you specify the database connect information in the non-tnsnames form of server, port and SID.
    Running a scritp against SWL*Plus, you select the SQL script in JDeveloper and choose SQL*PLus from teh context menu. I am doing this all the time and don't get problems.
    Maybe your misunderstanding is that you add TNS names to where database SID is expected
    Frank

  • Running SQL script at a certain time

    Please suggest in application express what I need to do to run a sql script say 6.00 AM every day

    Hello,
    Take a look at DBMS_SCHEDULER, here's a good link with more information -
    http://www.oracle-base.com/articles/10g/Scheduler10g.php
    John.
    http://jes.blogs.shellprompt.net
    http://apex-evangelists.com

  • Running  sql scripts from different directory

    Hi
    I have sql scripts in different directories as follows:
    D:\myapp\sql
    - load.sql
    - init.sql
    D:\myapp\sql\schema
    -users.sql
    -structure.sql
    D:\myapp\sql\populate\
    - data1.sql
    - data2/sql
    load.sql call all the other scripts as below:
    @init.sql
    @schema\users.sql
    @schema\structure.sql
    @populate\data1.sql
    @populate\data2.sql
    All my scripts run correctly when I run load.sql from D:\myapp\sql on comand prompt.
    I need a way to run this script from a different directory say D:\ or C:\
    I am writing a installer which will execute from a different directory.
    Right now I get a file not found error for scripts within schema an populate folder.
    Please let me know how can I make this work from a different directory.
    Thanks
    kelvin

    Hi peter. i think you cannot run files spread across different locations.
    --the method which u specified always looks to the defined path                                                                                                                                                                                                                                                                                       

  • Run SQL script in JDeveloper 11g

    HI! I create Offline and Online DB Diagrams for my DB in JDeveloper 11g. Then I sync these diagrams and et SQL script.
    1. Can I run it in JDeveloper or I need to use SQLDeveloper?
    2. And can I alter table with this script, if I had values in alter columns?
    Best regards!

    Debuger,
    1. Yes, you can run it in JDev; JDev has a lot of the SQL Developer functionality built in.
    2. Thats really a question of what the DB supports. For example, altering a column to make it bigger - fine; altering a nullable column to make it not null when there are null values - will fail.
    John

  • Cannot run SQL script on Oracle Database 10g Express Edition

    I'm trying to upload a script, and the file is being uploaded fine, but in the Script Editor window where I'm going to actually run the script, the entire file content is shown on one line and the whole edit area is in red. I'm not being able to run that script. Also if I create a new script from the editor, the edit area is again in red and I'm not able to save it. Please help me understand what's to be done so that I can run my SQL scripts.

    I'd bet the database is down.
    Try a login through sqlplus ("Run SQL Command Line" in the Oracle Express Edition 'Start' menu).
    Do a CONN / AS SYSDBA
    If you get a message about database or memory area not available, try STARTUP.
    If that doesn't work, you are best off in the General Database forum or the Express Edition forum.
    You'll probably get the most expert response in General Database, but the Express Edition forum can be gentler on newbies (as it is more accepted that questioners are not and do not have access to full-time DBAs).

  • Auto run sql script when DB opens

    Is it possible to configure a DB so a given SQL script is run each time the database opens?
    Thanks a lot in advance.

    rafadc wrote:
    Is it possible to configure a DB so a given SQL script is run each time the database opens?
    Thanks a lot in advance.Either include the script in a startup script for the database, dbstart on *nix you'd need to write your own on windows, or else move the code into a startup trigger.
    Niall Litchfield
    http://www.orawin.info/

  • Timer - Run .sql Script automatically

    How do I setup an .sql script setup in SQL Developer to run automatically as a scheduled task?
    thanks

    Hello,
    welcome to the forum.
    SQL Developer is not a tool that can be automated. When you need to execute a script automatically, then you have several options.
    - Execute the script via SQL*PLUS, scheduled from OS
    - Use the db scheduler to execute a procedure
    - Call a OS script from a db job.
    For further information about these options go to {forum:id=193}, {forum:id=144} or {forum:id=75}.
    Regards
    Marcus

  • Run SQL Script from a a Batch File

    I'm trying to schedulling a SQL Script by Windows Scheduler:
    START 
    "C:\Program Files\Microsoft SQL Server\100\DTS\Binn\dtexec.exe" /FILE "C:\Users\tstjs\TESTESTESTES.sql" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF  /REPORTING EWCDI
    PAUSE
    However, when I run the batch file it giving the error below:
    ...sql" due to error 0xC00CE556 "Invalid at the top level of the document. Line 1, Column 1". This happens when loading a package and the file cannot be opened o r loaded correctly into an XML document. This can be the result of either provid
    ing an incorrect file name to the LoadPackage method or the XML file specified h aving an incorrect format. End Error
    How can I solve that problem?
    Thanks!

    Hi SaQvl,
    As Scott metioned, you shall use sqlcmd to execute a tsql script. You can reference the below link
    Use the sqlcmd Utility
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Trouble running sql scripts

    I just installed Oracle 10g Express on my laptop running Vista home premium.
    I can not open the accompanying sql scripts, nor can I access the users table if I type the sql commands in the SQL editor on the home page, I get object does not exist. But I can pull up the users using the administration icon.
    any ideas as to the issue?

    What do you mean by "opening the scripts"? Can you log in using sqlplus? Eg.
    sqlplus / as sysdba
    Try viewing the alert log to see if the database is started normally.

Maybe you are looking for

  • How do I convert multiple pages into one for printing?

    I have a folder with a bunch of certificates, (different names) I would like to make into one file for printing.. how do I do that?

  • Binary addition,subtraction and modulo operations.

    Query: Take two 512 bit numbers passed as strings. don't use biginteger! convert them to binary without using parseInt or toString functions.! you may use char array and byte arrays. then add these two binary numbers using binary addition logic. disp

  • Non-printing Text?

    I have a form I need to create that includes information I do not want to have printed on paper. In MS Word I can just set the the selected text to "hidden" and it can be seen on the computer screen but wont print. Is there a way to do this in Pages?

  • Audi Music Interface, iOS 6 and iTunes Match

    Hello, I have trouble finding out which songs are shown on on the Audi Music Interface when iTunes Match is being used. The phone has been restored from backup, and previously did not use iTunes Match, so most of the songs that are shown in my Menu a

  • Stuck at startup and can't log in with valid password

    Hi, I have a MBP late 2011 and can't get past the startup screen with my valid password. After inputting my password the screen flashes and prompts me to input my password again (the password bar does not shake). If I go into safe mode, the same thin