How to run the .sql file

Hello
I want to execute .sql files in sql, as well as a fixed location, it may be the network location or to the system drive. so that I can use it on other computers when I'll work on another pc.

so please tell me for the localization of network and disk solution. by default it look in the BIN directory

I use oracle 10g.
Thank you

Apart from William Robertson's response:
I'll make sure that I put it for everyone on a network share and map their in their connection to this directory, so it can be accessed as g: or letter that everything that you want. That would keep things manageable.

For the question of privilege, please set up a separate thread.

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

Tags: Database

Similar Questions

  • How to import the .sql file in oracle apex?

    I am new to oracle apex...

    How to import the .sql file in oracle apex?

    I have to import a table in apex...

    This script I have to write in the .sql file...

    pls help...

    Published by: 794244 on January 31, 2011 21:31

    Hi Manu

    You can import and browse workshop SQL, SQL Scripts .sql files. If you have multiple SQL statements in your script, make sure that they are separated by the / character

    Andy

  • Run the .sql file error

    Hello
    Every time when I run the below plsql, it's keep lance the error as show below output, this product even when I manually create the trigger before you run the file .sql of all the below statements, can you please correct me what I'm doing wrong here. Thank you.
    DROP TABLE FCSDWH.REF_DATA_MASTER;
    
    CREATE TABLE FCSDWH.REF_DATA_MASTER
    (
    REF_DATA_MASTER_ID                      NUMBER PRIMARY KEY,
    DESCRIPTION                                     VARCHAR2(255 CHAR),
    CREATE_ID                                       VARCHAR2(10 CHAR),
    CREATE_DT                                       DATE,
    LST_UPD_ID                                      VARCHAR2(10 CHAR),
    LST_UPD_DT                                      DATE,
    ACT_STRT_DT                                     DATE,
    ACT_END_DT                                      DATE
    )
    TABLESPACE FCSDWH
    STORAGE(INITIAL 50K);
    
    DROP SEQUENCE FCSDWH.REF_DATA_MASTER_SEQ;
    
    CREATE SEQUENCE FCSDWH.REF_DATA_MASTER_SEQ START WITH 1 INCREMENT BY 1;
    
    DROP TRIGGER "FCSDWH.REF_DATA_MASTER_TRG";
    
    CREATE OR REPLACE TRIGGER FCSDWH.REF_DATA_MASTER_TRG
    BEFORE INSERT ON FCSDWH.REF_DATA_MASTER
    FOR EACH ROW
    BEGIN
    SELECT FCSDWH.REF_DATA_MASTER_SEQ.NEXTVAL INTO :NEW.REF_DATA_MASTER_ID FROM DUAL;
    END;
    /
    Output:
    SQL> @/home/smadala/REF_DATA_MASTER.SQL
    
    Table dropped.
    
    
    Table created.
    
    
    Sequence dropped.
    
    
    Sequence created.
    
    DROP TRIGGER "FCSDWH.REF_DATA_MASTER_TRG"
    *
    ERROR at line 1:
    ORA-04080: trigger 'FCSDWH.REF_DATA_MASTER_TRG' does not exist
    
    
    
    Trigger created.
    
    SQL>

    Relaxation is "attached" to the table when you delete the table the trigger is going as well.

    John

  • How to run the SQL...

    Hello
    It's embarrassing... I've been around my old files post v2 migration SQL encoding problems... but now the statements will not work! In fact I don't get the run option in the spreadsheet at all. With this newly created net of such statements will run. The options at the top of the tab are grayed out. I tried to highlight the SQL, the F9 shortcut block, pull down menus, etc.. No luck.

    Any comment appreciated... Please be kind :-)

    A

    It is something that they went out in 2.1 and there is now an enhancement request to add it to (see Re: 2.1EA2: dialog box connection select is no longer used if no connection).

    theFurryOne

  • Apex - javascript - how to run the exe file

    I tried like this:


    IN THE TEXT OF THE HEADER:

    + < script language = "JavaScript1.1" type = "text/javascript" > +.
    function runFile()
    +{+
    Alert ("' the fucntion works!");
    File = "cmd.exe";
    WSH = new ActiveXObject ("WScript.Shell");
    WSH.run (File);
    +}+
    + < /script > +.


    BUTTON, URL REDIRECTION:

    Target URL: javascript:runFile();

    Its market if I test it in a normal .html, but not in the apex (only warning message is displayed and the error on the page...).
    Is there another way to run a client apex Palm application?

    Thanks for any help.

    Kind regards
    Kristjan

    Your solution works because you launch in your browser from a local file. As soon as you accelerate the same file from a web server, it must be rejected.

    Some of the other posters explained, the best workaround is a signed Java applet. You can find an example here:

    http://techinitiatives.blogspot.com/2007/01/signed-applet-to-launch-local.html

    We have successfully adapted for ourselves.

    Another option is to write a local listener that queries the database or your APEX web app. In Unix, Linux or Mac OS / X, it's easy, but in Windows, you cannot start applications leading to a service.

    I just went through the whole circus, so if you have any specific questions, leave me an email.

    See you soon,.

    Thomas

  • How to run the zipx files in Windows 8 without having Winzip

    Cannot run a zipx file in Windows 8.

    I found a Windows 8 Metro WinZip application.

    Thanks for responding.

  • How to run the SWF file when I click on a button

    Dear friends!

    I did three and kept SWF files in a folder, how do I make a flash 8 project to execute when I click on a button. I'm going to make buttons for each SWF file

    Please help me

    use loadMovie to load in your main swf (with button).

  • How to execute the sql statement in the file beats?

    I want to execute after the statement
    C:\ > sqlplus/nolog
    SQL > conn scott/tiger
    SQL > select * from tab;

    I know I can achieve it following test.bat and testdb.sql file
    test.bat is:
    sqlplus/nolog @testdb.sql

    TestDB.SQL is:
    Conn scott/tiger
    Select * from tab;

    Now I don't want to use the sql file, I want only use bat file, as follows:
    test.bat is:
    sqlplus/nolog
    Conn scott/tiger
    Select * from tab;

    When I run test.bat, I find only one sqlplus /nolog execute statement, do not execute other statements.
    (1) I want to know if there is a method to run the SQL file by fighting without a sql file? How to make it happen?
    (2) if I call the sql file, how to hide the password of user? Because I don't want other people to know scott password, if I use conn scott/tiger in testdb.sql, other person can see testdb.sql and the password. Is there a good way to avoid?

    Thank you!

    It works a bit different in Windows. Create a file is like this:

    (
      echo conn scott/tiger@orcl
      echo spool c:\temp\list.txt
      echo select sysdate from dual;
      echo spool off
      echo exit
    ) | sqlplus -s -l /nolog
    
  • How do I run the .srt files in wmp 12

    original title: How do I run the .srt files this subtitle files in wmp 12 s? I downloaded directvobsub... but it isn't working...

    I bought a sony vaio e series laptop computer... I downloaded movies to watch and I'm interested to watch in vlc or other players, so I need to know how to watch movies with subtitles... Please help me

    my laptop i5 processor and it is x 64 bit...

    Hello, Sathyasheelan,

    HOW to: Watch movies and TV shows with subtitles

    http://hellboundbloggers.com/2010/06/03/watch-movies-and-TV-series-with-subtitles/

  • How can I save xml file n, run the xml file? Please help me

    How can I save xml file n, run the xml file? Please help me

    Hello

    The question you have posted will be well suited in the MSDN forum. Click on the link below.

    http://social.msdn.Microsoft.com/forums/en/categories/

    In the meantime, I suggest you to return the item mentioned below.

    How to use XML Notepad to create an XML document

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

  • How to create the .cod file to run on the Simulator BB9900

    Hi, I already from the zip package in order to use the bbwp command to create the .cod file and be able to run on the simulator of BB9900, but when I run this command as described in: https://developer.blackberry.com/html5/documentation/compile_ww_app_for_smartphones_1873321_11.html

    It creates two files, each with a .bar file, this type of file, I can't run it on the 9900 Simulator but a .cod file is required to run applications on the sim card.

    I don't know how to create the .cod file.

    Thank you

    Have you used Blackberry Webworks SDK for smartphone or Tablet SDK? The .cod files should be located in the subfolder OTAInstall of your output folder if you are using the Webworks SDK for Smartphone

  • How to run the script to EEM/TCL file

    Hello world

    I need to run the EEM script found in this link

    https://supportforums.Cisco.com/document/75806/interface-input-queue-Mon...

    Can you please point me to a HOWTO to download the file and run it under an interface?

    Thank you

    Federico

    Here is the manual how to run scripts tcl file - http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ios_tcl/configuration/1...

    In short - you download the script to switch via tftp and the tcl implementation with command tclsh interpreter. Then run the command source source

  • How to run the Extendscript .bat file?

    I have a file with some instructions .bat and I want that it runs from Extendscript.

    How to run the Extendscript .bat file?

    I tried execute(); order and it seems that .bat ran but no result, but when I double click on the .bat file all worksout very well.

    How used runtime.exec () extend the script?

    Can I communicate with Java JDK thru ExtendScript and run commands such as runtime.exec ()?

    can someone please?

    You can do it like this:

    var batFile = new File("C:\\path\\to\\my\\batfile.bat");
    batFile.execute();
    

    Note that this will only work if your system is configured in such a way that by double-clicking the .bat file runs it in reality.

    You can also use

    system.callSystem()
    

    but note that this is only available in AE.

  • [CS4:JS] How to run the file ".sh" via Javascript

    Dear all,

    How to run the file ".sh" through Adobe InDesign Javascript, I used the code below:

    //================== Code =============================//

    var myFile = File("xxx/xxx/xxx/Test.sh");

    var Exec = "sh" + "" + "\""+myFile+"\;"

    Leader (exec). Execute();

    //================== End =========================//

    codes above does not work, I checked before without the "sh" in addition, it does not work.

    Please can someone give me the solutions and the suggestion, and I'd appreciate it.

    Thanks and greetings

    SudhaN T.R.Harihara.,.

    Have your IDMLExportparse.sh file runs permission set?

    If you open Terminal.app and type

    /Applications/MacXinPro/IDMLExportparse.sh

    It work? Or do you need to run "sh"? If so, either adjust the

    permissions with

    chmod a + x /Applications/MacXinPro/IDMLExportparse.sh

    or modify the JavaScript code for:

    shell("sh "+myFile);
    
  • How to generate the CSV file by coil

    Hello
    While running the script file Unix spool, it will show the output in Unix.
    And the file is created with query results from nd.
    I don't want the result expected in CSV file.

    set pagesize 10000
    the value of colsep «»
    Set feedback off
    set the position
    trigger the echo
    coil /home/tata/time.csv
    Select * from emp;
    spool off
    set echo on
    topic on the value
    Set of feedback on

    Thank you
    Lony

    lony wrote:
    I tried the sub query but still, it shows the output
    How to stop the putput.

    set pagesize 10000
    the value of colsep «»
    termout off Set
    Set feedback off
    set the position
    trigger the echo

    coil /home/tata/time.csv

    spool off
    Set termout on
    set echo on
    topic on the value
    Set of feedback on

    Place these commands alongwith your query into a file and then run it from the SQLPlus command line.
    There is no way the query statement delete appear in file queued if stuck directly into the SQLplus command prompt.
    How to remove the sql statement in the output of the coil?

Maybe you are looking for

  • How / can you sum only filtered results?

    Can you summarize / adds only the numbers that are filtered / visible?

  • HP Pavilion ZX5000 recovery download

    I own a HP Pavilion ZX5000 and I want it back, but I lost the CD to do so. Y at - it a downloadable version, I could get? If so please respond with a DL link.

  • Install Rescue &amp; Recovery on Windows 7?

    X61s running Win7 beta build 7000, though. Base OS = Vista Business Last month, I have rebuilt the drive using the base image - during the rebuild, I chose not to install a Lenovo Rescue & recovery (R & R). So, I can not access the rebuild option in

  • My hotmail locked out account

    I recently sent a message to about 50 people in my address book. Since then, my account has been locked, I expect to suspicions of dissemination of spam. Following the instructions I filled in the questionnaires needed to confirm my identity and have

  • Responses of e-mail at the bottom of the page

    All of a sudden when I go to answer an email that I have originated and received a response to, the cursor is at the bottom of the page instead of the top.  Recipients of the e-mail said it is hard to follow and does not understand why it's happening