Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Setting Up Liferay 7.4 CE with MariaDB and Connector to External Oracle DB
Hi All,
We have been struggling for a couple weeks trying to set up Liferay 7.4 CE with a default connection into MariaDB and a secondary external connection into Oracle DB. We have exhausted our the resources provided to us and are in need of some direction. Some of the resources include:
-
pkg:maven/it.dontesta.labs.liferay.portal.db/liferay-portal-database-all-in-one-support@1.2.3
-
https://sourceforge.net/p/lportal/news/2021/10/connect-to-external-database-via-service-builder/
We have gotten to the point where we have completed the context switching as we are using the tomcat context and server xmls to provide our connection strings. However, we are running into a wall when trying to connect as we get the following error: Cannot load JDBC driver class 'oracle.jdbc.OracleDriver' java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver cannot be found
The ojdbc8.jar file is located in the shielded-container-lib as well.
Please advise.
Version of Liferay: liferay-ce-portal-7.4.3.100-ga100
To me, it would be infinitely more helpful if you mentioned what you specifically have done, and what the message was.
Right now, you're listing a lot of resources, that would take me a couple of hours to follow - and then I might do something differently than you and succeed, which would give neither of us some insight.
Ideally, please provide a (minimal) code example, that clarifies what you're trying to do - e.g. are you trying to connect ServiceBuilder to a secondary datasource? (likely: Won't work within CE, unless you specifically install custom Oracle Support)
Powered by Liferay™