Creating and Managing Database Connections with DBeaver. This topic explains how to work with the DBeaver plugin to create and manage databases in Zend Studio. DBeaver supports any database which has JDBC driver, and may handle any external data source which may or may not have a JDBC driver. Valentina Studio. You can download a free version from the app. Select Oracle Database 10g Driver Defaultfrom the drop-down list of drivers. Click Edit Driver Definitiontriangular button on the right, select the Jar Listtab, then select the existing entry, and click Edit JAR/Zip. Browse to your eclipsedirectory, open the pluginsfolder, and select the oracle.eclipse.tools.database.jdbc.driver.jarfile.
DBeaver is a database management tool and SQL client that runs on Windows, Linux, OS X and UNIX (AIX, HP-UX and Solaris) platforms.
The DBeaver SQL editor has auto completion and database-specific syntax highlighting to facilitate the creation, analysis, and debugging of complex queries.
To save its users' time, DBeaver provides SQL templates, which are snippets of commonly used SQL code. To insert the contents of a template into the SQL editor, you simply type the template's name and press the TAB key.
You can use DBeaver to save tables or query results in several formats such as CSV, SQL 'Insert' statements and HTML. For example, to export your query results as web page tables, right-click on the Results view in DBeaver, select Export Resultset, and then click Export to HTML.
DBeaver can be installed either on the database server or on a remote machine. The ability to use DBeaver as a remote database manager makes it easy to administer multiple databases on multiple platforms from a single location.
Other DBeaver features include:
- The ability to browse and edit database metadata (tables, columns, keys and indexes).
- BLOB/CLOB support.
- Scrollable resultsets.
- The ability to search database objects (tables, columns, constraints and procedures).
- Entity relationship (ER) diagrams.
DBeaver is written in Java. To interact with a database, a Java application uses a JDBC driver. JDBC is a Java application programming interface (API) that connects Java to relational databases (and other tabular data, such as spreadsheets and flat files). A JDBC driver implements the JDBC API for a particular database. To access a database by using an ODBC driver, DBeaver uses a JDBC-ODBC Bridge driver to convert between ODBC and JDBC calls. For example, DBeaver can use the JDBC-ODBC Bridge that used to be included in the Java distribution. However even if you can get that combination to work (we couldn't — the connection failed either with a Java error or an ODBC Driver Manager error), there are some issues associated with the Java JDBC-ODBC Bridge. For example, it was never intended for production use and we have found that with some applications, NULLs are returned when Unicode column values are queried.
As an alternative solution, the Easysoft JDBC-ODBC Bridge is a client server product that enables a Java application such as DBeaver to access an ODBC database such as Microsoft Access. The client part of the Easysoft JDBC-ODBC Bridge is a JDBC driver. On Windows, the sever part is a Windows service that acts as an ODBC application.
The rest of this blog documents how to use the Easysoft JDBC-ODBC Bridge to access data from an ODBC database in DBeaver.
- Configure a System ODBC data source for the database that you want to connect to in DBeaver.
To do this, use the 32-bit version of ODBC Data Source Administrator on your DBeaver machine. On some versions of Windows, this is located in Control Panel > Administrative Tools. On some version of Windows, you need to search for ODBC in the taskbar search box. The 32-bit version of ODBC Data Source Administrator should be clearly labelled. If in doubt, in the Windows Run dialog box, type:
- Download the Easysoft JDBC-ODBC Bridge. (Registration required.)
- Install and license the Easysoft JDBC-ODBC Bridge on the machine where the DBeaver is installed.
For installation instructions, see the Easysoft JDBC-ODBC Bridge documentation.
Dbeaver Oracle 19c
- In DBeaver, choose Database > Driver Manager
The Driver Manager dialog box is displayed.
- Choose New
The Create new driver dialog box is displayed.
- Choose Add File.
The Open driver library dialog box is displayed.
- Browse for the Easysoft JDBC-ODBC Bridge JAR file, EJOB.jar.
EJOB.jar is installed in the following location on the machine where you installed the Easysoft JDBC-ODBC Bridge:
On 64-bit Windows, the default location for <easysoft_install> is <drive>:Program Files (x86)Easysoft LimitedEasysoft JDBC-ODBC Bridge.
On 32-bit Windows, the default location for <easysoft_install> is <drive>:Program FilesEasysoft LimitedEasysoft JDBC-ODBC Bridge.
- Complete the dialog box fields:
Finish.
- Right-click the new connection the Database Navigator pane. From the pop-up menu, choose SQL Editor.
- Type a query in the right pane. Press CTRL+ENTER to execute the query.
This topic explains how to work with the DBeaver plugin to create and manage databases in Zend Studio. DBeaver supports any database which has JDBC driver, and may handle any external data source which may or may not have a JDBC driver.
Prerequisistes
- Download and install DBeaver from http://dbeaver.jkiss.org/download/#eclipse
Connecting to a Database
This procedure explains how to establish a connection to a database using DBeaver.
To connect to a database :
- In the menu-bar, select Window | Show View | Database Navigator.
The Database Navigator view is displayed.
- In the view's toolbar, click the Select active project icon to select a project you wish to create the database connection for.
- In the view's toolbar, click the New Connection Wizard icon .
The Create new connection wizard is displayed.
- Select the database connection type, and click Next.
If the driver for the connection type you selected has not been installed, you will be prompted to install it.
- Click Yes to download and install the driver files for the selected database.
The driver is installed, and the Connection Settings dialog is displayed according to the database type you selected.
- Enter the general parameters for connecting to your database. These details may vary according to the database type, but they usually consist of the following parameters:
- JDBC URL - Database URL. This field is editable only if the database driver doesn't have sample URL. Otherwise its value will be automatically changed whene you change other connection settings.
- Host - Database host name.
- Port - Database port number. Usually this field is optional. If left blank then the default database port will be used.
- Database/Schema - Name of remote database/schema.
- Server - Name of remote server.
- User name/Password - User credentials. May be left blank for some drivers (e.g. for embedded databases).
Note:
Under the Advanced tab, you can configure advanced connections settings, e.g., Character Coding.
- Click Next.
The Finish connection creation dialog is displayed.
- To test the connection before establishing the connection, click Test Connection.
- Configure the name and type of your connection (Development, Test, Connection), and click Finish.
DBeaver establishes the new connection, which is displayed in the Database Navigator view.
- Expand the connection folders to view existing databases and tables. Generally, connections contain catalogs, catalog contains schemas, schemas contain tables, indexes, and procedures. Elements in the navigator view can be opened/edited/deleted/etc - possible additional actions are accessible through the context menu and/or toolbar.
Managing Connection Drivers
A database driver is a third-party library which provides the ability to work with specific database engines. The driver manager dialog allows you to create, delete and edit driver descriptions.
To manage your connection drivers:
- In the menu-bar, select Window | Show View | Database Navigator.
The Database Navigator view is displayed.
- In the view's toolbar, click the Driver Manager icon .
The Drive Manager dialog is displayed.
- To install a database driver, double-click a driver from the list.
If the driver for the connection type you selected has not been installed, you will be prompted to install it.
- Click Yes to download and install the selected driver.
The driver is installed, and the Edit Driver dialog is displayed.
- Edit the driver:
- Driver name - Name of driver, shown in the driver manager. May be used by DBeaver to name scripts, show tips, etc.
- Category (Optional) - Some databases have many different drivers, it is convenient to group these drivers. Category is just a name for this group. Most drivers do not have category.
- Class name - Required field. It is a name of Java class which implements the driver. You may find the class name in the driver's documentation or click on the 'Find Class' button in the 'Driver Libraries' tab and choose the class name from the list.
- Sample URL (Optional)- If this value is left blank, you will need to specify the full database URL. It is much more convenient when the sample URL is specified - in this case the connection wizard will require only valuable connection properties (host name, database name, etc).
Note:
For a full breakdown of the available driver editing options, in the Menu bar, go to Help | Help Contents | DBeaver Help | Manage Connections | Driver editor dialog.
- and click OK.
- To create a driver of your own, click New.
The Create new driver dialog is displayed.
- Edit the driver according to the parameters specified in Step 5 above.
- To remove a driver, select the driver from the list, and click Remove.
- Click Yes, when prompted to approve the action.
The driver is removed.
Working with your Database
Once you have established your connection, you can now begin to work with the data in your database using DBeaver.
Running SQL Queries and Scripts
This procedure will explain how to run SQL queries or scripts in your database using DBeaver.
To run SQL queries or scripts using DBeaver:
- In the menu-bar, select Window | Open Perspective | DBeaver.
The DBeaver perspective is displayed.
- In the Toolbar, click the Open SQL Editor icon to edit and execute SQL queries and scripts.
The SQL Editor is displayed.
- Enter SQL script, or right-click inside the editor, and select Load SQL Script to import an existing file.
- To execute, right-click inside the editor, and select Execute SQL Statement or Execute SQL Script.
You can view a history of all the commands executed in the current SQL editor in the Execution Log tab.
Note:
For more information on working with data and metadata using DBeaver, select Help | Help Contents | DBeaver Help | Work with data from the menu-bar.
Setting Active Database
Instead of manually running a 'use database' query with a database prefix for each SQL script or query you wish to run, you can define a database as being 'active' to directly run SQL scripts and queries.
To set a database as active:
- In the menu-bar, select Window | Open Perspective | DBeaver.
The DBeaver perspective is displayed.
- In the Database Navigator, right-click a database, and select Set Active.
Any SQL query or script that you execute will be run on the active database.
Dbeaver Oracle Ssl
Copyright © 2017Rogue Wave Software
Coments are closedScroll to top