- Open Eclipse, either using the start menu or desktop shortcut.
- Make sure your in the DBeaver perspective
- Window → Perspective → Open Perspective → Other
- Pick DBeaver from the list and click open.
- Window → Perspective → Open Perspective → Other
- Make sure you have a project in your workspace, these appear in the projects pane on the left hand side. Only if you don't already have a project, create one:
- File → New → Project
- Pick a type of 'Project' under 'General', click next
- Give it a name, and click next.
- File → New → Project
- Create a connection
- Expand your project using the arrow to the left of its name, right click on the connections heading and pick 'Create a new connection'
- Pick 'DB2 LUW' from the list of connection types and then click next.
- Enter the host and database names, also enter your username and if you wish password. Click Finish.
The host and database should be set to:
Host: db2.database.ukserp.ac.uk
Database: pr_sail
- Expand your project using the arrow to the left of its name, right click on the connections heading and pick 'Create a new connection'
- Run a query against the data
- Either open an existing SQL file from your existing project or create a new one by right clicking within your project and choosing 'Create SQL script'.
- Use the yellow arrow to the left hand side of the SQL editor to run your query. The results will show in the pane at the bottom of the screen.
- Either open an existing SQL file from your existing project or create a new one by right clicking within your project and choosing 'Create SQL script'.
Note
~You will have to repeat step 4 for every project in your workspace as the connections settings are stored within a projects settings.
~If after using Windows 10 SAIL and you have moved your Workspace between Windows 7 and Windows 10, you may need to reset your pr_sail connection.
~If you are being prompted to install a driver, you may need to update the drivers.xml file. Please ensure you are running Eclipse from the desktop shortcut, or if your workspace is not called 'workspace' as set by default but is 'Win10_Workspace' for example then you will need to navigate to R:\Templates\Eclipse\db2-driver and copy the drivers.xml file, to replace the one found in your workspace at: P:\USERNAME\workspacename\.metadata\.plugins\org.jkiss.dbeaver.core\
~Delete all Eclipse shortcuts on your desktop, run DEM User Environment Refresh to replace this. If when you run Eclipse you are using 2020-09, please restart your desktop and log back in. You will then be using 2020-03 as is with Windows 7 SAIL. If the pr_sail does not connect, follow the steps above ensuring 4.b/c settings are correct.
.