How to Configure Jasper Server with Oracle Database instead of postgresql and mysql? - oracle

I am trying to connect the JasperReports-server with oracle database using docker file. but JasperReports-server has an option that by default, we can connect with MySQL and PostgreSQL databases. Now we want to connect JasperReports-server with oracle database. For that, we wrote Dockerfile and trying to build the image. we were unable to build the jasper server image and got the build failed error, because of db.template.properties file.
here is the snapshot of the error message
so, how can I get the oracle database-related configuration files as like MySQL and Postgresql?
Could anybody suggest me to resolve this error?

Related

Oracle to Databricks Connection

I'm trying to read Oracle Database data on Azure Databricks platform.
Can someone share the step to step process on how I can connect Oracle data to Databricks? I've probably searched the whole internet and read documentation but I can't find a solution that actually works. Not sure if it's because I have the incorrect driver or what.
Here's my process:
Uploaded the ojdbc8.jar file on the cluster libraries (the instant client 19
Tried to connect the data on databricks notebook and it didn't work
Can anyone share their process?
Which jar to upload in the library and where can I find this file?
How to connect? Sample code?
Any better way to do this?
To install library use
pip install cx_Oracle
Then use below code snippet to read in data from an Oracle database
CREATE TABLE oracle_table
USING org.apache.spark.sql.jdbc
OPTIONS (
dbtable 'table_name',
driver 'oracle.jdbc.driver.OracleDriver',
user 'username',
password 'pasword',
url 'jdbc:oracle:thin://#<hostname>:1521/<db>')
To read data from oracle database in pyspark you can follow this article - Reading Data From Oracle Database With Apache Spark
Refer for more information - Oracle | Databricks

Why the tables content is not updated if the aws database connection is successfull

I launched my database in EC2 and my web-service is running locally.
The cloud-watch shows a successful database connection. But the table content information is not able to retrieve properly and it doesn't show any error message.
How can I fix this?
Try to connect database from local machine with native database tool and run the sql to check if you can see the content of the table in sql prompt or how fast the data can fetch.
Thank - Tarun

Getting error while talking to remote Oracle DB using Jenkins-CI

I am trying to connect to Oracle DB using Jenkins, I am trying to use the sqlplus-script-runner-plugin. Running into below issue
ERROR: ORACLE_HOME directory [/u01/app/oracle/product/11.2.0.4/db_1] does not exist!
Sample Screenshot from Jenkins Job
I even try to add the Jenkins user to ointsall group on remote Oracle DB server. Can any one help me finding the problem here.
I've to install Oracle XE to talk to remote DB servers, it solved my problem.

Using a oracle data adapter to deploy and fill reports on jasperserver

I have a oracle dataadapter that is a datasource on jasperserver.
But when I create a report using this adapter, it does not preview or fill the report on Jaspersoft Studio and JasperReports Server. Is there anyway I can create a new oracle dataadapter for testing purposes. I have downloaded odjc7.jar. But when I create a driver path to this file. I recieve a error Reason:java.sql.SQLRecoverableException: IO Error: Unknown host specified
Any details to whether oracle datasource can fill reports would be much appreciated and any details to creating a new oracle dataadapter.
If your link is correct and already works on other pcs/servers, then the error is in the connection to the database.
Check your connection to the database. Open a SQL-Developer tool and try to connect to the database.
Check if you really did add the driver to the data adapter:
It should look like this:
If you didn't provide the right driver it will not work!
Recheck your ojdbc7.jar. Maybe download it again from an official source. Also sometimes the ojdbc7.jar leads to some unknown errors. At a Jaspersoft Roadshow they recommended to still use the ojdbc6.jar.

How to migrate sonar embedded H2 database to oracle database

I am trying to migrate sonar's H2(default database) to oracle database. For this I have edited sonar.properties file. I commented sonar URL and uncommented oracle URL(I made jdbc connection with oracle database and pasted that URL in sonar.properties). I have also changed sonar usename and password in sonar.properties. When I start sonar it gives me error and ask me to create tables in oracle database and even if I create tables in oracle it still ask me to create such more tables.
Do I need to make some more configuration/file changes? Am I missing something?
Any help would be highly appreciated.

Resources