ssr1251983 Posted April 8, 2009 Share Posted April 8, 2009 Dear TeamI am new user to Jasper server trying to evaluate this for the research work. I would lilke to know if any one can help me to connect the jasper server to oracle database.I have oracle 9i client installed in my desktop. the input is asking for Driver and URL details. By default, it is showing for MYSQL. Where can i get these details for oracle. This sounds to be very simple question, but i am a entry level programer and this information will be handy to me Thanks & RegardsSreekanth Reddy Link to comment Share on other sites More sharing options...
ibrahimhamza Posted April 8, 2009 Share Posted April 8, 2009 Dear ssr1251983If you want to make reports for oracle using the default installationyou should have jdbc for oracle databasefrom choose your databasehttp://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.htmldownload the jar file and put it into apache-tomcatcommonlibmake new datasourcethen choose Data Source Type as JDBC Data SourceDriver oracle.jdbc.driver.OracleDriverURL jdbc:oracle:thin:@localhost:1521:xeUse ireport to make reports and upload it to server Link to comment Share on other sites More sharing options...
ssr1251983 Posted April 9, 2009 Author Share Posted April 9, 2009 HiThanks for the help...Still i am getting the error as test connection failed.I gave the URL as jdbc:oracle:thin:@localhost:1521:databasenamewhere databasename is my database...As per my readings, is that i need to change the context file and other details to make the connection of jasper to oracle. Here is th broader outline of my problemI have a oracle server and have oracle client installed in my desktop. I need to use jasper to generate simple two dimensional report ThanksSreekanth Link to comment Share on other sites More sharing options...
ibrahimhamza Posted April 9, 2009 Share Posted April 9, 2009 Dear SreekanthCould you give more details?exception if found can you connect to the server using ireport or not ? Link to comment Share on other sites More sharing options...
anandharaj Posted April 10, 2009 Share Posted April 10, 2009 ssr1251983, if you JasperServer metadata database is Oracle, then you need to edit the META-INF/Context.xml file Link to comment Share on other sites More sharing options...
ibrahimhamza Posted April 10, 2009 Share Posted April 10, 2009 Dear ssr1251983if you want to install jasperserver in oraclefollow the steps inhttp://jasperforge.org/plugins/espforum/view.php?group_id=112&forumid=102&topicid=54994if you wish only to make new report that make connection to oraclemake sure to put the oracle jdbc driver and make the right connection string Link to comment Share on other sites More sharing options...
baggypants Posted April 10, 2009 Share Posted April 10, 2009 ssr1251983Wrote: Hi Thanks for the help... Still i am getting the error as test connection failed. I gave the URL as jdbc:oracle:thin:@localhost:1521:databasename where databasename is my database ...As per my readings, is that i need to change the context file and other details to make the connection of jasper to oracle. Here is th broader outline of my problem I have a oracle server and have oracle client installed in my desktop. I need to use jasper to generate simple two dimensional report Thanks Sreekanth I have this setup and the info looks ok for me, although I'm using 10g. check you're using ojdbc14.jar.for the driver. Also check the database name, you can find this in tnsnames.ora, its not necessarily the same as the tablespace name and is generally ORCL in my experience. Post Edited by Leon Robinson at 04/10/09 18:48 Link to comment Share on other sites More sharing options...
b09715 Posted December 17, 2009 Share Posted December 17, 2009 Hi,>> I gave the URL as jdbc:oracle:thin:@localhost:1521:databasenameI think you are trying to connect to a remote DB.. so your URL should bejdbc:oracle:thin:@<host>:<dbport>:databasenameThanks,Sathish Link to comment Share on other sites More sharing options...
yaya99 Posted March 25, 2011 Share Posted March 25, 2011 reports work OK with Ireport with oracle database JDBC connection but with jasperserver problem connecting to same oracle database Link to comment Share on other sites More sharing options...
yaya99 Posted September 13, 2011 Share Posted September 13, 2011 how come the connection to my oracle database is OK with iReport but not with jasperserver (REPORTS) ??please Help me Link to comment Share on other sites More sharing options...
gtipton Posted November 19, 2012 Share Posted November 19, 2012 These instructions are out o date, there is no common folder in the apache-tomcat jasper installation. Link to comment Share on other sites More sharing options...
mr.biswas Posted June 11, 2020 Share Posted June 11, 2020 Hi, I gave the URL as jdbc:oracle:thin:@localhost:1521:databasenameI think you are trying to connect to a remote DB.. so your URL should bejdbc:oracle:thin:@<host>:<dbport>:databasename [where host should be like 192.168....]Thanks,Jeet Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now