How to configure SQuirreL for DB2 access.
In SQuirreL I do see two DB2 drivers. But they are both marked with an red X.
I checked with Start Page but did not find an easy solution :/
Download the DB2 Driver from the IBM Website and extract the ZIP archive.
Optionally you may want to copy it from the DB2 Server installation path:
/opt/ibm/db2/V11.1/java/db2jcc4.jar
Use db2jcc4.jar and copy it into the squirrel folder e.g. plugins/db2
In der Driver in the tab "Extra Class Path" add the db2jcc4.jar file
Change the class name to com.ibm.db2.jcc.DB2Driver
Related
I am trying to connect Razor SQL to a database at https://github.com/dalers/mywind
The instructions to do this say I should to set the driver location property in RazorSQL to the path to the lib subfolder in the installation directory. Is the installation directory on my machine? I can't find it in file explorer. Any guidance would be appreciated. Thank you.
I am using MAC OS. SQL Developer is not installed. Only zip file is in apolication folder. And when I click on the zip file, it extracts only one file - SQLDevelopr.exe. No others files or folders. Where do I find .conf file? And add my timezone?
I have an existing Wildfly installation containing other apps. Besides that I want to deploy Kie Workbench too. Here I do not want to use the demo installation using Ant, which starts downloading and installing JBoss afresh.
My existing environment is below.
OS: Windows Server
Database: Postgres 9.6.1
JDBC: postgresql-42.1.4.jar
App Server: wildfly-10.1.0.Final
BPM/Drools App: kie-wb-7.2.0.Final-wildfly10.war
I deployed the Kie Workbench by downloading the war file from here:
https://repo1.maven.org/maven2/org/kie/kie-wb/
Now I would like to change the default H2 database driver with Postgresql 9.6.
Prior to this I created users and datasources already and had a workable kie-wb site, but only problem is: it is running on H2.
Any help appreciated in replacing H2 with Postgresql driver.
This post explains how to use Postresql with Wildfly 10.
According to this page you can just drop the Kies application to the deployments directory. This means probably that it uses the "default" H2 data source. Hence you must change jndi-name and pool-name of the newly added Postgresql in step 1 to those of the H2 and comment the H2 data source.
I performed the below steps. But somewhere I went wrong, not sure where. I am unable to login to the kie workbench.
JBPM App Server Configuration for PostgreSQL
Uncompress the zip file: jbpm-installer-full-7.2.0.Final build.properties file
Update release.version=7.2.0.Final in
Remove references of H2 in build.properties file
Add postgresql references in build.properties file including jdbc driver details and download url
Change H2 hibernate dialect to that of PostgreSQLDialect in jbpm-persistence-JPA2.xml file
Change all H2 reference and replace with PostgreSQL in standalone-wildfly-10.1.0.Final.xml, standalone-full-wildfly-10.1.0.Final.xml files
Change default datasource to jBPMDS in those two files:
Upload Postgres Driver and create module.xml file with the postgresql driver using JBOSS-CLI commands.
Issue the below ant commands from the directory of the expanded zip files:
ant clean.generated.ddl
ant download.ddl.dependencies
ant install.jboss
ant install.jBPM-console.into.jboss
Make sure standalone.xml and standalone-full.xml are being copied into the Wildfly configuration directory correctly.
Move the wildfly directory to the location of the JBOSS_HOME, or create environment variable pointing to the same.
Create the directory modules\org\postgresql\main in JBOSS_HOME home and copy files: module.xml, postgresql-42.1.4.jar
Add admin user in the Management Realm: admin
Add JBPM users with roles in braces in Application Realm: kieserver(kie-server), workbench(admin,kie-server)
Run the sql scripts from ddl_dependency folder as the ant script is failing.
Issue standalone -b 0.0.0.0 -c standalone-full.xml command
Bing! you are done!
I am facing issue while creating oracle_fdw.
I have copied oracle_fdw.dll to postgres lib folder *
both .sql file and control file to shrared/extension
now when I connect to psql with superadmin user & make an query
create extension oracle_fdw;
I am getting response
ERROR: could not load library "D:/postgresdb/lib/oracle_fdw.dll": The specified procedure could not be found.
From the error it seems that the oracle_fdw library is not available in the lib folder of postGreSQL installation directory.
You may download the Oracle fdw extension/or library file from https://github.com/laurenz/oracle_fdw/releases/ - please download the one suitable to your system environment(eg : 32bit windows/64bit).
Extract the downloaded .zip file.
copy the oracle_fdw.dll from \oracle_fdw-1.4.0-pg95-win64\lib folder to \Program Files\PostgreSQL\9.5\lib dir
&
2.copy all the files from oracle_fdw-1.4.0-pg95-win64\share\extension to \Program Files\PostgreSQL\9.5\share\extension
Now restart postGreSQL server and try.
Note : Always download and use compatible version of library; e.g.: PostgreSQL 9.5 version you should download same version of oracle_fdw zip.
Just had the same problem so this is what i did to resolve it. Not sure if all steps are needed since i was trying untill it worked.
Downloaded:
Instant Client Package
Instant Client Package - SQL*Plus
Instant Client Package - ODBC
From oracle (http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html)
Unzipped everything to one folder (c:\oracle)
Ran odbc_install in that folder
Added folder to PATH variable (System properties - Environment variables)
Restarted postgresql server
After that it worked. Also notice that you need the same version as your server (x86, x64).
Hope this helps.
I got the following problem
In Eclipse, in the Report Design Perspective , when I try to preview I get the following error:
Chart NewChart:
+ An exception occurred during processing. Please see the following message for details:
Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc.
org.eclipse.birt.report.data.oda.jdbc.JDBCException: Cannot load JDBC Driver class: com.mysql.jdbc.Driver.
I also checked in Eclipse in the folder org.eclipse.birt.report.data.oda.jdbc/drivers and it was empty. Should it be?
I checked the externalLibs directory, and there I have mysql-connector.jar and I do not know what to check for next.
Do one thing MARA, go to the Data Source option. Select JDBC Connection over there do Next. You will find an Manage Drivers button in the left-bottom of the window. Select it, a new console window named Manage JDBC Drivers will evolve. There you will find two tabs Jar Files and Driver. Now select Jar Files and add a newly created .jar file (know how to create a .jar file it's quite easy, google it). Click Ok. You are done.
Now whenever you will go the data source and select Driver Class = com.microsoft.sqlserver.jdbc.SQLServerDriver.(Or you may see its turned to com.microsoft.sqlserver.jdbc.SQLServerDriver(com.microsoft.sqlserver.jdbc.SQLServerDriver (v4.0) v4.0)) just write the connection string on the Base url. (Don't forget to open a port from the server side you are using).
Hope it works.
Your JDBC driver must be copied to that directory, see also http://www.eclipse.org/birt/phoenix/deploy/viewerSetup.php#install_jdbc
This worked for me
Download mysql-connector-java-5.1.44-bin.jar file from google
Paste the jar file to location: Eclipse/Contents/Eclipse/plugins/org.eclipse.birt.report.data.oda.jdbc_.../drivers* folder
or
paste "mysql-connector-java-5.0.8-bin.jar" jar file to
location: WEB-INF\platform\plugins\org.eclipse.birt.report.data.oda.jdbc_INSTALLED_VERSION\drivers folder
Go to manage drivers, under jar files section use add option and select the mysql-connector-java-5.1.44-bin.jar file from any location from your local machine and then Test Connection
Connection Successful