Defining Database Connections

To define a new database connection:

  1. From the main menu, choose File | N ew, or right-click and choose New . The New Gallery opens.
  2. In the Categories list, expand General and select Connections.
  3. In the Items list, double-click Database Connection to open the Create Connection wizard.
  4. On the Type page, enter a name for the connection and select a type from the dropdown list. The type you select here determines the information you'll enter later.
  5. Click Next.
  6. On the Authentication page, enter a user name, a password, and, optionally, a role. Remember that this user must have sufficient privileges to perform the tasks you wish to perform against the online database, including creating, editing, or dropping tables, views, and other objects. Be sure to provide a user name with sufficient privileges.
  7. Click Next.
  8. On the Connection page, enter the connection details as requested, which vary depending upon the connection type. Note that when you are working with third-party JDBC drivers, you can register a new driver directly from this page.
  9. Click Next.
  10. On the Test page, click Test Connection . JDeveloper checks the connection using the information you provided. If the test succeeds, a success message appears in the status text area. If the test does not succeed, an error appears. Click Back and change any previously entered information as needed to correct the error, or check the error content to determine other possible sources of the error.

    The T est Connection button becomes the C ancel Test button during testing. Click Cancel Test to cancel the connection test if necessary.
  11. When the test succeeds, click Finish . The Create Connection wizard closes. The new connection name appears under the Database node in the Connection Navigator. Alternately, to bypass the New Gallery, select View | Connection Navigator, right-click Database , and choose New Connection.

Note: Database connections provide access to online database objects. If you wish to view, create, or change offline database definitions, see Working with Offline Database Definitions.


Configuring Database Connections
Editing Database Connections
Importing Database Connections
Exporting Database Connections
Opening and Closing Database Connections
Deleting Database Connections

About Database Connections
Launching SQL*Plus

 

Copyright © 1997, 2004, Oracle. All rights reserved.