Connecting to a Pointbase Database
See Also
The Pointbase database was the sample database bundled with Sun Java System Application Server 8.1.
When you install the Sun Java System Application Server 8.1, the Pointbase database JDBC
drivers are installed and the Pointbase Database Server is installed into
the Sun/AppServer/pointbase directory. The following sample databases
are installed with the Pointbase installation:
- sample
- sun-appserv-samples
When you register an instance of Sun Java System Application Server 8.1 in the IDE,
the sample databases are registered in the Services window and the
Pointbase Database menu appears in the Tools menu. You can use the commands in the
Pointbase Database menu to start and stop the Pointbase database.
To connect to the Pointbase sample database:
- Make sure the Pointbase Database Server is running. You can start the database server by choosing
Tools > Pointbase Database > Start Local Pointbase Database.
A message appears in the Output window confirming that the Pointbase server has started and
which port the server is listening on.
- In the Services window, expand the Databases node and the Drivers node.
- Right-click the Pointbase driver node and choose Connect Using.
- In the New Database Connection dialog box, ensure that Pointbase is selected as the name in the drop-down menu and that the Driver field contains the
Pointbase driver:
com.pointbase.jdbc.jdbcUniversalDriver.
- Enter the URL of the Pointbase database. The URL format is given in the textbox:
jdbc:pointbase://<HOST>[:<PORT>]/<DB>
To connect to the sample Pointbase database bundled with the default Sun Java System Application Server installation,
the URL should look like this:
jdbc:pointbase://localhost:9092/sample
- Enter the User name and Password. The username / password for the sample database is
pbpublic / pbpublic.
- Click OK.
Notes:
- Selecting Remember password will store the password for the current IDE session.
If left unselected, a dialog box appears prompting you for the password every time you
connect to the database.
- If the Pointbase Server is not available, make sure that your Sun Java System Application
Server is listed in the Services window in the Servers node. For more, see
Registering a Java System Application Server Instance
- You cannot create a new database on the Pointbase Database server from within the IDE.
- See Also
- Connecting to a Database
Legal Notices