how to connect to an MsAccess (accdb) in icCube? - iccube

In icCube 6.1 I want to connect to a MsAccess file stored locally on the icCube server. When I try to connect I get the error message:
Failed to establish the connection due to the error: JDBC driver class
'sun.jdbc.odbc.JdbcOdbcDriver' not found in the classpath
This is what I provide in the connection:
Name : Clients
Visibility :
Driver Type : Access (JDK JDBC/ODBC Bridge)
Server Name : localhost
Port Number :
DB Name : C:\data\Clients.accdb
User :
Password :
When I Google on this error I get the message (dated from 2015) that:
in JDK 8, jdbc odbc bridge is no longer used and thus removed from the
JDK.
Help.

As you mentioned you cannot use anymore the JDBC ODBC bridge from JRE 8.
As an alternative you can use a MS Access JDBC driver. For example: UCanAccess. To install this driver in icCube unzip the file and copy the following files into the /lib directory of the icCube install directory:
ucanaccess-4.0.2.jar
jackcess-2.1.6.jar
hsqldb.jar
Then in the builder data source, select a generic JDBC driver and configure the Server Name and DB Name as following:
> Server Name : net.ucanaccess.jdbc.UcanaccessDriver
> DB Name : jdbc:ucanaccess://c:/your-file.accdb
Hope that helps.
[edit] Depending on how icCube is started you might need to update the CLASSPATH with the three new JARs. To avoid CLASSPATH edition, you can use the following in the icCube.sh for example to start icCube using all the JARs in the /lib directory:
> $JAVA $JAVA_OPTS -cp "$ICCUBE/lib/*" crazydev.iccube.server.IcCubeServer

Related

Liquibase with Maven using Teradata

I am getting the following error, while running the command: mvn liquibase:update
liquibase.exception.databaseexception:connection could not be created to jdbc:teradata://org.sys.db.com/database=sample_DEV with driver com.teradata.jdbc.TestDriver [Teradata Database] [Terajdbc 16.20.00.00] [Error] [SQLState HY000] Logons are only enabled for user DBC.
We are using maven version:3.6.3, Liquibase version:4.3.0 and teradata ver:16.20.00.00 with dbchangelog.sql
The same code is working fine for nornal project, i mean without maven.
"com.teradata.jdbc.TestDriver" is not the class name for the Teradata JDBC Driver. The actual class name is "com.teradata.jdbc.TeraDriver".
Version 16.20.00.00 of the Teradata JDBC Driver was not released to the public. That was a pre-release build.
You can download the current supported version of the Teradata JDBC Driver from here:
https://downloads.teradata.com/download/connectivity/jdbc-driver
Here is a link to the Teradata documentation for database error 3055 "Logons are only enabled for user DBC."
https://docs.teradata.com/r/GVKfXcemJFkTJh_89R34UQ/Si5mPxDLg2vugG5MnDbBoQ

Corda Database Manager Failed to create datasource

Upgrading a Corda node from CE3.2 to CE4.0 and following these documentation steps:
Running ubuntu#ip-xyz:~$ java -jar tools-database-manager-4.0.jar dry-run -b /opt/corda/
Gives error:
Exporting the current database migrations ...
Failed to create datasource.
Please check that the correct JDBC driver is installed in one of the following folders:
- /opt/corda/drivers
- plugins
- cordapps
Caused By java.nio.file.NoSuchFileException: plugins
2019-05-23 22:24:16,284 Thread-0 WARN Unable to register Log4j shutdown hook because JVM is shutting down. Using SimpleLogger
I have all the required folders in place for drivers, plugins and cordapps and have installed MS SQL drivers mssql-jdbc-6.2.2.jre8.jar.
The "jarDirs" key in the node.conf was hiding the folders required for database migration.
By removing the following lines the database manager tool successfully completed the dry run.
"jarDirs" : [
"plugins",
"cordapps"
]

JVM not found on cloud composer webserver

We are using JDBC Connection in airflow to fetch data from a public MySQL server. The connection was setup fine and worked as expected in the local machine but I received the following error in composer.
[Errno 2] No such file or directory: '/usr/lib/jvm'
I m currently thinking if
Am I doing something wrong ?
JVM is unavailable in Composer webserver?

Error while installing informatica 8.6 with oracle 11g in window 10

I am getting below error while installing informatica 8.6:
****use the error below and catalina.out and node.log in the server/tomcat/logs directory on the current machine to get more information. Select Retry to continue the installation.
STDOUT: Installing the service '"Informatica Services 8.6.0"' on node 'node01_geettika4912'...
Using CURRENT_DIR: C:\Informatica\PowerCenter8.6.0\server\tomcat\bin
Using INFA_HOME: C:\Informatica\PowerCenter8.6.0
The service '"Informatica Services 8.6.0"' has been installed.
STDERR: The filename, directory name, or volume label syntax is incorrect.
The service name is invalid.
More help is available by typing NET HELPMSG 2185.**
EXITCODE: 2**
I am getting this error after the successful creation of domain.
Please help me in resolving this error.
Thanks!
Run services.msc to get a list of all the services.
Click properties on the service you want, there you can see the "service name" and the "display name".
The service name is what you need to use with the net command. Check if Informatica Services 8.6.0 is in the list.

Getting error ORA-12154 after installing ODP.net how to solve?

Am getting below error after installing ODP.net.
ORA-12154: TNS:could not resolve the connect identifier specified
Before installing ODP.net i was able to connect with database using plsql developer.But ODP.net is required to run .net application so i installed ODP.net.But after installing ODP.net am unable to connect with database using plsql develper and .net code. Error am getting is "
ORA-12154: TNS:could not resolve the connect identifier specified "
Let me know if anyone knows the solution for this.
When you installed the latest ODP.net the Oracle Installer may have created a new Oracle_Home. You need to find the sqlnet.ora and tnsnames.ora files from your original home and copy them to the new Oracle Home.
For example. If your first ODP.net installation was to:
C:\app\oracle\product\12.1.0\client_1
and if your second ODP.net installation was to
C:\app\oracle\product\12.1.0\client_2
then you need to copy the files from
C:\app\oracle\product\12.1.0\client_1\Network\Admin
to
C:\app\oracle\product\12.1.0\client_2\Network\Admin

Resources