To add a new connection, go to "Add Connections" under "Connections" and select "New Connection.." at the top. The other method is to right click a white space on the Database Tree and select "New Connection" under "Add Connections". Both ways open up this dialog:
You must know which JDBC driver to use before you can connect to a database. When you have selected the JDBC Driver, the Connect Options will change to allow you to enter the particular parameters that the given database driver needs. If you are using one of the fully-supported drivers, then as you enter these parameters, they will be added into the "JDBC URL" field in the order that the Java driver expects to see them (this string is sometimes called a "db URL" in Java terminology). In the example below, we've selected the PostgreSQL driver and entered the hostname and database name (the "port number" was already filled in; do not change this unless the database server software has been reconfigured to use a different value).
When you are finished, press the OK button. Any new connection will automatically be added in the user-preference.
Note: if you have too many connections (more than the height of the Architect window), the Architect does not have the ability to show all of them.
Right click on empty space in the Database Tree and go to "Add Connection", there it shows all databases that were previously stored on the Architect
Select the database connection you wish to change and go to "Connections" and select the option "Connection Properties..", this leads you to the Connection Setting dialog. An alternate solution is to right click on the database and select "Connection Properties..." option.
Select the database connection you wish to change and go to "Connections" and select the option "Remove Connection..". Right clicking on the database connection and selecting "Remove Connection.." will perform the same action.
The project database can be set to an existing
database connection or the user can create a new
connection for it as well. Setting the project
database can be achieved in one of several ways. The
first method is to right click on any empty space on
the Playpen and go to "Set Target Database". Another
option is to right-click on the Target Database (the
target database can always be identified by this
icon: ) and choose "Set Target Database" from there.
The Database Tree works like a tree-dropdown model. Clicking on any item will cause the component to expand display the items under that specific component. Each item will have an unique icon beside its name to identify the type of object it is. The table below shows what each icon means:
Table 3.1. Database Tree Icons
Icon | Representation |
---|---|
![]() | Database |
![]() | Catalog |
![]() | Schema |
![]() | Owner |
![]() | Table |
![]() | Exported Key |
![]() | Imported Key |