Add sql files in sql developer

Hi. I am new at sql developer. My teacher gave me two files both sql file format, and told that i should make a new user in sql developer and add this files to make new tables and then he gave me some exercises to do on this tables. I made new user but i don't know how to use this 2 sql files and how to make tables using them. here you can see that files: http://www.2shared.com/file/BTxqsts0/scott.html . please help
Edited by: Mateo Falcone on Mar 3, 2011 3:33 AM

Didn't they teach you how to use this program?
I suggest you go through the tutorials inside sqldev's help first.
Basically, you can just open them through File - Open, or through Windows' Explorer. Then assign the connection in the upper right corner, and Run Script (F5).
Have fun,
K.

Similar Messages

  • Double click to open .sql files with sql developer on mac osx

    hi,
    I am trying to double click a .sql file and open it with SQL Developer on Mac OSX lion. I have associated .sql files to SQL Developer. On clicking the file it opens the SQL developer application but does not open the actual .sql file. Any ideas?
    Thanks

    Hello,
    Did you find any solution to your problem ? My SQL Developer worked fine and could open additional SQL files. Now it only opens the first one when starting SQL Developer. Additionnal files cannot be opened. Even running sqldeveloper.exe from command line with a SQL file as parameter doesn't help.
    I'm on Windows 7, 64 bit, but the environment may not necessarily be the cause.
    Regards
    -- Alwin

  • How to run the .sql file in sql prompt?

    i want to run the .sql file in sql prompt

    Hi,
    You can navigate to the directory where the .sql files is stored and launch the SQL Prompt.
    After you login, you can run your script like this :
    SQL>@my_script.sql;
    Regards,
    Sandeep

  • Add member in Distribution List from Sql file or Sql Server

    Hi 
    I want to add member in Distribution List in MS Exchange 2010 using MS Sql Database file
    How to create connectivity between MS SQL file and MS Exchange 2010 ?
    and manage DL also add and remove member from DL?

    The answer to your question depends on the version of SQL Server and Exchange you are running.  If you have Exchange 2007 or higher, and if you have SQL Server 2010 or higher, you can load support for both in a PowerShell session.  Otherwise, you
    will need to write an application to join the two.  It may be simplest to schedule a flat-file dump from your SQL Server database, and use that to pull DL membership into Exchange - I know several third party corporations that have done this for their
    Exchange 2003 (and earlier) management add-ons.
    And before you ask, it would take too much time for me to explain how you would need to connect to and interact with the SQL Server database using PowerShell (or how to dump a flat-file from it, for that matter) for me to do it here.  I suggest you
    search the web for SQL Server PowerShell or SQL Server export
    for that information.
    Once you have the information from SQL Server, it's a simple task to run Add-DistributionGroupMember to add members and Remove-DistributionGroupMember for DL membership management.  I'll caution you, though - if you are going to do massive updates to
    a large distribution group, it would probably be faster to use DL management in AD.  The reason for this is that you can add or remove several group members at once using the AD toolset, but you can only work with individual members with the above Exchange
    commands.  And working with individual members means enumerating the entire group membership for each update - and with large groups, this takes a lot of time.

  • Problem when importing a SQL file into Forms

    Hello friends at www.oracle.com ,
    I have a Forms program which has to open a SQL external file, read each SQL instruction into a variable, execute it and read the next one, as in the example (for illustration purposes) below.
    create table ...
    insert into log_table ...
    delete from table ...
    So, whenever Forms finds the slash, it will execute the instruction via FORMS_DDL built-in.
    The problem is that we have a SQL instruction that can't be executed via Forms. The reasons:
    - It is a SQL that creates a package body
    - The SQL that creates the package code is very big (more than 32 kb), and this leads to the problem below
    - The 32 kb SQL code is sent to a Forms variable, and a FORMS_DDL should execute it, but FORMS_DDL has a limitation: the maximum that FORMS_DDL can read is 32 kb
    - I can't find a way for me to break the package code into two or more codes because I cannot alter a package to add procedures or functions
    Could you please tell me what should I do? If the text above is not clear, please ask me more details.
    Best regards,

    Hello Francois,
    Why don't you run your SQL file with Sql*Plus ?sincere thanks for your answer.
    Your idea would be the ideal solution, but the package needs to be created via Forms only, for maintenance purposes. A Forms program needs to handle everything that comes from this SQL external file.
    Another way could be creating the package inside Forms, but the idea is to send all SQL instructions to an external file, for the same reason as above (that is, maintenance).
    Best regards,

  • Can't run SQL files

    I have a Windows XP system and I'm running Sql Developer version 1.0.0.15.
    I open a sql file in Oracle Developer and choose Run SQLFile.sql from the Run menu and it gives and error that it can't be started because it isn't a runnable target. However, if I just copy out the text and paste it into a worksheet it runs fine.
    Why can't you run SQL when it is opened from a file?

    You need to associate it with a connection.
    There is drop down list of connections at the top right of each sql window. Pick a connection from there and the run action should be enabled.

  • Error while executing Multiple Stored Procedure through .sql file

    Hi Guru's.
    I am new to ORACLE. I am facing problem while creating Stored Procedure through .sql file.
    I have one test.sql file with Stored Procedure is like,
    CREATE OR REPLACE PROCEDURE skeleton1
    AS
    BEGIN
         DBMS_Output.Put_Line('skeleton1');
    END skeleton1;
    CREATE OR REPLACE PROCEDURE skeleton2
    AS
    BEGIN
         DBMS_Output.Put_Line('skeleton2');
    END skeleton2;
    Now when i try to execute this test.sql file through SQL PLUS it gives me Error like this
    I am opening test.sql file from SQL PLUS,
    SQL>
    1 CREATE OR REPLACE PROCEDURE skeleton1
    2 AS
    3 BEGIN
    4 DBMS_Output.Put_Line('skeleton1');
    5 END skeleton1;
    6 /
    7 CREATE OR REPLACE PROCEDURE skeleton2
    8 AS
    9 BEGIN
    10 DBMS_Output.Put_Line('skeleton2');
    11* END skeleton2;
    SQL> /
    Warning: Procedure created with compilation errors.
    SQL> show errors;
    Errors for PROCEDURE SKELETON1:
    LINE/COL ERROR
    6/1 PLS-00103: Encountered the symbol "/"
    SQL>
    Please suggest how to create multiple CREATE PROCEDURE using single .sql script file....
    Regards,
    Shatrughan

    Hi,
    Try this
    CREATE OR REPLACE PROCEDURE skeleton1
    AS
    BEGIN
    DBMS_Output.Put_Line('skeleton1');
    END ;
    CREATE OR REPLACE PROCEDURE skeleton2
    AS
    BEGIN
    DBMS_Output.Put_Line('skeleton2');
    END;
    /Save the file and call it.
    Regards,
    Bhushan

  • How to get the SQL file name in SQL*plus

    hi all,
         I have created two sql file at C drive as "c:\Createtable.sql" and "c:\Deletetable.sql"
    afterwards i open
    C:\>sqlplus
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jan 30 11:37:10 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Enter user-name: scott/tiger
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> @C:\Createtable.sql'
    Table created.
    SQL> @'C:\Deletetable.sql'
    Table dropped.
    SQL>My problem is to get the name of the file as "c:\createtable.sql" and "C:\Deletetable.sql" in sql*plus enviornment.
    Thanks & Regards
    Singh

    Dear Damorgan,
         >>your version number to three decimal places
         My Oracle DB Version i have already stated in my previous post is 10.2.0.1.0
    Actually my problem is to get the sql files name we run in sqlplus enviornment with @ symbol. like
    i have created one sql file in c drive as
    "C:\Createtable.sql"
    afterwords i have connected to sqlplus as
    sql> conn scott/tiger
    sql>@c:\createtable.sql
    Now i want some query to get the name of the file which is run.
    In actual my problem is as
    i have suppose 10 or more SQL files in some folder ( sql1.sql, sql2.sql, sql3.sql ....).
    i created one file to call all the 10 sql files (main.sql)
    i have also one track_table which will keep track that which sql file is runned.
    I want some automated script which will insert the record in that track_table....... for that i need the name of sql file which is runned.
    Hope this will help you.
    Thanks & Regards
    Singh

  • Completion lost while using .sql file

    Hello,
    When i connect to a db server, i open a spreadsheet
    write this line :
    select 1 from dual;
    the completion is ok
    Save this spreadsheet to a sql file :"untitled.sql"
    open it
    the completion is no more available
    any ideas ?
    thanks
    Oracle IDE     2.1.0.63.41
    Plate-forme Java(TM)     1.6.0_11
    Prise en charge de la gestion des versions     2.1.0.63.41

    Hi,
    Completion for me means :
    when you write select * from myschema.mytable1
    a pop up window appears behind the "." of "myschema" showing all the myschema tables.
    just like IntelliSense would do.
    thanks

  • Invoking .SQL file from JAVA

    Hi All,
    Anyway of calling .SQL files from JAVA ??
    thanks in advance..

    What do you mean by calling?
    Are you talking about a stored procedure? Then yes.typo !!
    i meant invoking .SQL script only...
    No not stored procedure..i mean running or invoking a sql file containing sql statements(inserts etc)

  • Search for a word in an sql file

    HI
       I have an sql file aswathy.sql in one path.I need to find out the existence of a particular wordfor eg:DUMMY in teh sql file through sql plus
    Please help me
    Regards
    Aswathy

    Use an external table, and simply query the file for the particular word.
    ORACLE-BASE - External Tables: Querying Data From Flat Files in Oracle

  • How to execute PL/SQL file (*.sql) ?

    In SQL*plus, I use edit command to input a sample PL/SQL program into a foo.sql, but now I don't know how to execute this PL/SQL file in SQL*plus. Who can help me ?

    In sql plus, issue the following command (for purposes of this example, I am assuming that foo.sql is in the c:\temp directory.
    @c:\temp\foo.sql
    The "@" can also be written as
    start c:\temp\foo.sql

  • How to execute sql file from servlet

    Hi,
    I am using JSP, Servlets and Oracle 8i in my application. I want to execute .sql file from java code. Is it possible to do that,
    as we execute .sql file from sql plus prompt.
    Suppose I have abc.sql file and I want to execute it from java code.
    If any body have the solution then pl. reply with sample code.
    Thanks,
    Rajesh

    If any body have the solution then pl. reply with
    sample code.No, no, dec - s/he doesn't want the actual solution, but the full code!
    /k1

  • How to execute .sql file

    hi,
    i want to execute .sql files in sql plus from a fixed location whether it may be network location or from system drive. so that i can use it from other computers when i will be working on different pc.
    so please tell me for network location solution and from drive. by default it fetch from BIN directory
    i am using oracle 10g.
    thanks

    Hi FRNzzz!! wrote:
    if the .sql files are placed on some network place then also i just need to put the path of that directory ? Sure. You can either set up a desktop shortcut for SQL*Plus using the remote folder as the "Start in" location, or (what I usually do) drag the script file into your SQL*Plus window.
    Edited by: William Robertson on Feb 26, 2011 2:21 PM

  • Need command to run sql script from sql prompt

    Hi,
    I am beginner in sql i need a command to run sql file from sql prompt.In notepad i have write 10 to 15 tables creation and saved as .sql i want to run this file from sql promp pls some one help.I am very great full to all users in this forum.

    You can also use the 'start' command.
    You may also want to look in the SQLPlus User Guide and Reference (for your release) at the set command for commands to set the number of lines per page, turn headings on or off, and so on:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10823/toc.htm
    HTH -- Mark D Powell --

Maybe you are looking for

  • Print Booklet fails to create PDF

    Greetings all, I've encountered a frustrating glitch in Print Booklet that doesn't seem to be mentioned in these forums or elsewhere on the web. I regularly use Print Booklet to create imposed PDF files with the following workflow: Click File > Print

  • Abap client problem asked in interview

    HELLO FRIENDS.       AT  THE TIME OF IMPLEMENTATION   PROJECT  FOR  A CLIENT.      IF I HAVE GENERATED A REPORT ON VENDOR MASTER.   AFTER 2 YEARS  THE CLIENT HAS FACED SOME LEGAL PROBLEM WITH THE VENDOR  AND HE HAD DELETED THE VENDOR FROM HIS DATA BA

  • Expand All and Collapse All with Data table

    Hi Guys,      I have a data table as shown in code pasted . where the first and second column have row category which gives a categorization with a twisty.      When i click on the twisty or item name the level beneath it expands. Eerything works fin

  • How Do I Edit Rectangle on Blank Canvass?

    Hi Guys, I'm having problems editing the rounded rectangle on a blank white canvass. I have drawn the rectangle onto the canvass but it keeps coming up in a black colour. How do I change it to white? When I go to "edit" then "fill" I select foregroun

  • Confirming my credit card on new laptop

    Hi All, I have a new laptop, downloaded the latest version of itunes, and tried to purchase imatch, but asked to verify my credit card as it is a new computer, but it will not allow me to confirm my security code in the box provided. Have searched hi