Default Connection for SQL scripts

Hi everybody.
Can somebody tell me if there is a way to set a "default connection" in SQL Developer?
What I want to achieve: When I'm opening an SQL script with the SQL Developer it should already be chosen a defined connection, so that I only have to run the script.
Normally after opening a script I have to choose manually a connection before running it. That's very annoying, if you have to run more than 100 scripts.
Thanks in advance,

A popular request. I suggest you vote on the various requests for this at the SQL Developer Exchange, to add weight for possible future implementation.
Have fun,

Similar Messages

  • Default directory for sql script in iSqlplus 10g

    I want to run an sql file from the url as "http://machine_name.domain:5560/isqlplus/dynamic?script=http://machine_name2.domain/myscript.sql
    ". What is the default directory to place the file myscript.sql in? Do I need to create a DAD for specifying a different directory?
    Am using Oracle 10g.

    Hi Alison,
    I tried putting the sql script on different directories on the Oracle server but the url doesnt seem to find the script at all. It gives an error "Cannot find sql script".
    I have not installed Oracle Application server 10g yet. Am only running Oracle Database 10g with iSqlplus and PL/SQL.

  • Does SQL Developer support a default Path to SQL scripts

    Just started using SQL Developer.
    In the past, I created shortcuts on my PC desktop to run SQLPLUS to the different
    instances as follows:
    1. Create a shortcut to PLUS80W.exe
    2. Set the property "Start in" to a directory where the SQL scripts are located.
    3. Add the login/[email protected] to the end of the shortcut.
    In this way, ypu only needed to click on the shortcut to log into SQLPLUS and run your
    scripts via @script.sql etc.
    Can you setup a default path to SQL scripts SQL Developer so that it can locate
    the scripts on your PC ?

    I did notice in version 13.43 that if you close SQL Developer with a SQL script open in the SQL Worksheet, when you startup SQL Developer the next time it automatically opens the file in the SQL Worksheet with no database connection. It also sets the default path for SQL scripts to be the directory where your open SQL file resides. If you right-click in the SQL Workshop and then click on "Open File" the directory defaults to the directory of the SQL file that is open.

  • Setting up default connection for accessing emails...

    I had a quick look and found similar problems on here, but none that I thought were the same.
    I've been able to set up Gmail to be received through my 'Messaging' on my N96. Turns out its quite a handy function. Also figured out that you can get it to automatically check you mail at regular intervals. I want to use this, but I don't want to have to select the connection every time the phone wants to check for new mail. So I need to set up a preferred connection. That's no problem...
    The problem occurs when I try to select my WLAN as default. However, every time I select it, the phone freezes up. Not completely, as I can change programs and even exit the messaging settings via the hang up key, but if I do that, it doesn't make any changes.
    I have deleted and restored the WLAN connection, I have accessed my inbox manually, so it isn't a problem on Google's end, and I have checked the various connection options to no avail.
    So, does anyone know why it my phone would freeze when trying to set up my WLAN connection as the default connection for accessing my e-mails? Any questions about my situation, just ask and I will gladly supply whatever you ask for.
    Message Edited by jarvis187 on 15-Jan-2009 01:24 AM

    No help available out there? If you need it explained clearer just say so and I'll do so. Thanks in advance.

  • How to set default directory for SQL LOADER

    hi all,
    i wanted to know how can we setup a default directory for SQL LOADER if at all we can. i connot place my control and data files in local system and use them at command prompt. rather i wanted to know if we can set default directory that the loader can use. this requirement is basically to enable all the clients to upload the data placed on the server and use the loader utility.
    thanks in advance,

    You don't say which version of SQL Developer you are using via Citrix, but just setting the SQLDEVELOPER_USER_DIR hasn't worked for a long time (see Re: SQLDEVELOPER_USER_DIR does not function anymore). Also, since version 1.5, the default for the user directory (now set via ide.user.dir as shown below) is under the user profile area (relative to %APPDATA%), which you should be able to write to, even on Citrix.
    Assuming that neither of those help, you will need to get whoever installed SQL Developer on the Citrix C: drive to modify the sqldeveloper.conf to have a line like, where the path exists for everyone who will be using the shared SQL Developer (assumes everyone has a H: drive):
    AddVMOption -Dide.user.dir=H:\sqldeveloperAn alternative (depending on how you start SQL Developer via Citrix), is to create your own shortcut to start SQL Developer with something like:
    sqldeveloper -J-Dide.user.dir="%SQLDEVELOPER_USER_DIR%"theFurryOne

  • Escape code for sql scripts

    I have a sql script with an insert statement with the character '&' in the values clause, but it always prompts me for a value.
    Does exist an escape character for the '&'?

    in the begining of the SQL script.

  • In preferences default location for .sql files doesn't work I go into preferences and set the default location to look for .sql files but when I click the open button it uses the sqldeveloper install directory and I have to browse for my folder. This is only on start up, once I have browsed to it one time it holds the location.

    There is an (accepted) feature request at asking for this shortcut. Please vote for it to add weight and see it implemented sooner.

  • Env. variable for sqlPlus to search for sql scripts?

    On Oracle 11.2, on win / (or Win 2008 64bit) I would like to start sqlPlus and call some package scripts wich are in $ORACLE_HOME\rdbms\admin folder..
    but I would not like to move to that folder or to call scripts with full filename..
    so, is there some environment variable wich tells sqlPlus in wich folder to search for .sql (.plb & other) scripts?
    EDIT: I think it should be something like ORACLE_PATH
    Edited by: 846417 on Jul 19, 2011 5:34 AM


  • Log file for sql script

    Hi all,
    i ran a sql script to create indexes. it finishedits job. Now if I want to have the log of that what should have I added to the script.
    (The sql script is nothing but a bunch of create index statements)

    Use SPOOL.
    spool c:\test.log
    select * from dba_users;
    spool offMore info here:

  • Job Scheduling for SQL Script procedure

    I am trying to activate an xsjob file with below format . But i am getting invalid file content error. Not sure where is the mistake. Unable to activate this xsjob file from my project explorer. Any inputs?
    My SQL Script procedure is in package JobScheduler which is again in package opint. REF_INQTOORD is the name of the procedure.
    "description": "Run OPI Jobs at regular intervals",
    "action": "opint.JobScheduler::REF_INQTOORD",
    "schedules": [
    "description": "Run OPI Jobs at regular intervals",
    "xscron": "* * * * * * 59",
    Deepthi lakshmi.A

    Thanks Thomas.
    I was facing the same issue and removing the extra comma fixed it.
    However the extra comma is brought in with the template code that is provided in the Studio. Might be something to check and get removed from the template.

  • JDBC connection for SQL Server 2000

    How to connect SQL Server 2000 from java?
    If i can get any sites where i can get examples also fine.
    Thanks in advance

    Developer's Daily  Java Education 
      front page | java | perl | unix | DevDirectory 
      Front Page
    Pure Java
    JDBC 101: How to connect to an SQL database with JDBC
    If you're interested in connecting your Java applets and applications to standard SQL databases like Oracle, Informix, Sybase, and others, JDBC is your ticket to paradise.  The combination of Java's JDBC and standard SQL makes a simple and powerful database solution. JDBC makes the simple things easy -- without making the complex tasks too difficult either.
    In this first article in our series, we'll show you step-by-step how to establish a connection from your Java programs to an SQL database using JDBC. In the process we'll show you how to connect to two different databases -- Mini SQL (mSQL), and Interbase -- just so you can see how the code changes when you switch from one database to another.
    Obtaining the JDBC driver
    Before you start working with JDBC, you'll need a copy of the Java JDK. If you don't have it already, you can get the JDK for free at Sun's Java web site, or it will also be included with many IDE's that you can purchase, such as JBuilder or Visual Cafe.
    Once you have the JDK, the next thing you need to do is to get the correct JDBC driver for your database. In most cases the JDBC driver will be provided by your database vendor. For instance, if you purchase the Interbase database, the driver will be provided with the software, or you can obtain the most recent version at
    (An exception to this rule is Mini SQL, or mSQL. Because it's a very low-cost database, the JDBC driver has actually been developed by a separate group of people, led by George Reese at You can download the mSQL JDBC driver from the web site.)
    Once you have the correct JDBC driver for your database, install it according to the instructions that came with it. Installation instructions will vary somewhat for each vendor.
    Establishing a connection is a two-step process
    Once you have the correct JDBC driver installed, establishing a connection from your Java programs to your SQL database is pretty easy.
    Regardless of whether you're trying to connect to Oracle, Sybase, Informix, mSQL, or Interbase (or any other JDBC data source), establishing a connection to an SQL database with Java JDBC is a simple two-step process:
    Load the JDBC driver.
    Establish the connection.
    We'll show you two examples just so you can see how easy it is, and how little the code changes when you migrate from one database server to another.
    A Mini SQL Example
    Listing 1 provides the full source code required to establish a connection to a mSQL database on a server named "".
      //  Establish a connection to a mSQL database using JDBC. 
    import java.sql.*; 
    class JdbcTest1 { 
        public static void main (String[] args) { 
            try { 
                // Step 1: Load the JDBC driver. 
                // Step 2: Establish the connection to the database. 
                String url = "jdbc:msql://"; 
                Connection conn = DriverManager.getConnection(url,"user1","password");  
            } catch (Exception e) { 
                System.err.println("Got an exception! "); 
      Listing 1: This source code example shows the two steps required to establish a connection to a Mini SQL (mSQL) database using JDBC. 
    An Interbase Example
    Listing 2 provides the full source code required to establish a connection to an Interbase database. In this example, we're connecting to a local Interbase server (i.e., the server is running on the same PC that we're running the Java code on).
      //  Establish a connection to an Interbase database using JDBC. 
    import java.sql.*; 
    class JdbcTest1 { 
        public static void main (String[] args) { 
            try { 
                // Step 1: Load the JDBC driver. 
                // Step 2: Establish the connection to the database. 
                String url = "jdbc:odbc:contact_mgr"; 
                Connection conn = DriverManager.getConnection(url,"user1","password");  
            } catch (Exception e) { 
                System.err.println("Got an exception! "); 
      Listing 2: This source code example shows the two steps required to establish a connection to an Interbase database using JDBC. 
    What's the difference?
    The difference between the two source code listings is very small, so we highlighted them in a dark blue color. The only difference between connecting to the two databases is:
    The name of the JDBC driver.
    The URL used to connect to the database.
    Everything else in the two source code listings -- except for the comment at the top -- is identical. Here's a slightly more detailed discussion of the two differences:
    1. The JDBC Driver
    The name of the JDBC driver will be supplied to you by your database vendor. As you can see in the class.forName() statements, these names will vary. In the first case we're using the mSQL-JDBC driver. In the second case we're using the JDBC-ODBC Bridge driver supplied with the Interbase server.
    2. The URL
    The syntax of the DriverManager.getConnection() method is:
    DriverManager.getConnection(String url, String username, String password);
    The username and password are the normal names you use to log into your database. The URL you use will again vary with the database you use. In both examples shown, we're establishing a connection to a database named contact_mgr. (We'll use this database for all of our examples in this series of JDBC articles.)
    If you stick with standard SQL commands, it can be very easy to switch from one database server to another. In fact, I've heard from several developers who are using mSQL to prototype their software (because it's so inexpensive), and then switching to another commercial vendor when it's time to take their product "live".
    Establishing a connection to an SQL database with Java JDBC is a simple, two-step process. The process is nearly identical for all SQL databases, and the only real differences are (a) the driver name, and (b) the URL used to connect to the database. Your database vendor will provide this information in their documentation.
    Resources mentioned in this article
    Here are a few links to resources we mentioned in this article:
    The Mini SQL (mSQL) database
    The mSQL-JDBC driver at
      [an error occurred while processing this directive]

  • Setting a default value for SQL based LOV

    Hi There,
    Is there a way to set the default value in an LOV. Like lets say the LOV gets distinct to_Char(date_field,'YYYY') from a table. I want that the highest year is the default value. Currently, since I have the null option also, when the page loads, the lov is always null. I need to change it manually.

    You can easily set the dynamic item defaults
    for example select the default type as PL/SQL Function Body and enter the following code
    v_return date;
    select max(date_field) into v_return from your_table;
    return to_Char(v_return,'YYYY');
    exception when others then
    return null;

  • DB Connect for SQL on Unix Platform for BI 7.0

    Hi All,
           My requirement is to extarct the data from MS SQL to BI on HP-UNIX server with Oracle data base. I have seen in lots of posts that we need have atleast one  Windows App.server to install DBSL and DB client on BI. But I have checked the BI System configurations in some fo the my previous clients, they have exact same config. as mine. They are using DB Connect without any issues. My basis team says that its not possible. Would anyone please update me on that. I have checked the system config. in system menu-->status. BI sytem config. of mine are:
    OS: HP-UX,
    DB: Oracle,
    BI 2004s,
    Patch 14,
    External DB: MS SQL.
      I apprecaite your answers with points, thanks in advance.

    but what more than the help from SAP (<a href="">Transferring Data Using DB Connect</a>) do your basis group need?
    Just ask them install the DBSL on the application server, of course in developpment....
    the "DBSL installation" is nothing else than "uncaring" a file to a specific folder...
    In my case, I didn't even had to restart the SAP instance, it worked properly as soon as the file was in the folder.
    Of course you need to stop and restart the SAP instance to ensure everything is working fine...
    hope this helps...

  • Using DB COnnect for SQL to BW interface

    Hi All,
    When we are connecting an Oracle DB to BW using DB Connect we need the following parameters
    1) Oracle DB SID to connect
    2) Host Name
    3) Listener Port
    4) User id /password
    What parameters do we need to a SQL to BW DB Connection.

    Check this doc.

  • Nokia N86 Default Connection for Email

    Hi all,
    I'm not sure if this has been addressed before, I did a search and didn't find anything.
    With my N95 I could choose which connection to use for checking my emails.
    But in the N86, there is no option, and it always chooses to use the Optus Internet connection.
    Is there any way of changing this so it asks for which connection to use?
    Under Settings, Connections, Destinations, and Access points, I have my WIFI as Priority 1, and Optus Internet as Priority 2.
    Any help would be appreciated.

    I think I have a solution for your problem
    1-First, you must delete all access points form tools---settings---cnnection---destinations
    and also delete your email accounts and any bookmarks saved by your network operator
    2-Second create your email accounts using wi-fi conncetions and check the settings of your
    email account if it has two choices (global settings & mailbox settings) only then you're on 
    the right way , if else go back to step 1
    3-you will find in advanced mailb. settings -------incoming & outgoing options ,
    now you can change the access points of each choice to (Always ask)
    4-If the phone asks you every hour to choose connection then you must go 
    to email settings----mailbox settings----when to sync---update interval ---- choose "Manual"
    hope that I helped you:manvery-happy:

Maybe you are looking for