Mysql database with oracle reports
hey guys
Can I use report triggers applying pl/sql editor to access mysql database? or is there another way to use report triggers to use mysql database?
Thanks
You need to install the mysql connector odbc and then create an ODBC dns for your database.
control panel, administrative, odbc
Similar Messages
-
Connect to a mysql database with Oracle 9i
Hello,
how can I connect to a non_oracle-database in "Oracle 9i".
I created a ODBC data source. In Oracle8 I needed OCA. But in 9i I believe the OCA is replaced by another thing.
I wanted to connect in SQL*PLUS with:
username/password@odbc:mysql
But I get the error: ora-03121 "no interface driver connected - function not performed".
How can I connect to another database?I've solved the DW problem by changing the site folders from
'db' to 'wwwroot' e.g. 'C:\CFusionMX\db\' is now
'C:\CFusionMX\wwwroot\
However I'm now back to my original problem. I've lost my
mqysql connection in CF Adminstrator. Before I made these changes I
could connect to my mysql databases using the following settings:
JDBC URL: jdbc:mysql://localhost:3306/test
Driver Name: MySQL Connector J
using the following Java path and file:
C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.17-ga-bin.jar
Now these settings give me the following error:
"Connection verification failed for data source: javaserver
[]java.sql.SQLException: SQLException occurred in JDBCPool
while attempting to connect, please check your username, password,
URL, and other connectivity info.
The root cause was that: java.sql.SQLException: SQLException
occurred in JDBCPool while attempting to connect, please check your
username, password, URL, and other connectivity info"
Any suggestions on this would also be welcome.
Thanks again to everyone for their help.
Sincerely,
Graham A. Kerby -
DB2 OS400 Connection with Oracle Reports
Dear My Friends
I want to prepare report by DB2 OS AS400 on Oracle report how i Connecte DB2 Database with Oracle Report.
TahirHello,
To access "non oracle DB" :
Reports 6i : OCA + ODBC driver
http://www.oracle.com/technology/products/forms/pdf/275201.pdf
Using Oracle® Forms Developer, Oracle® Reports Developer and the Oracle Open Client Adapter to access ODBC Data sources
Reports 9.0.x / 10.1.2 : JDBC
http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_jdbcpds.htm
Oracle® Application Server Reports Services Publishing Reports to the Web
10g Release 2 (10.1.2)
B14048-02
9 Configuring and Using the JDBC PDS
Regards -
CONNECTING ORACLE 9I OR 10G DATABASE WITH ORACLE 10G FORMS AND REPORTS
pls tell how to connect oracle 9i or 10g database with oracle developer suite 10g . though the forms are getting connected but not running with error as
FRM-10142 the HTTP listner is not running on pls start the listner or check your runtime preferences.
now pls tell how to start listner and how to chage runtime preferences.
though i have worked with oracle 9i and forms 6i where we used to copy the tnsnames.ora from network/admin of oracle to forms 6i tnsnames.ora.
thank you, you may be thinking such a long question.....sir
By server i mean the computer where oc4j and backend database are running is one one of the client pc not a dedicated server..., these database and 10g dev suite are installed in one of the client machine,
all the clients are using same internet explorer as browser.
no message is being displyed on some of the client machine where these forms are not being uploaded on browser instead it displays as done in status bar without actually showing anything at all...
sir so far as jinitiator or JRE is concered i have seen on the client machine (where my forms are running on internet explorer) a pop up is displyed telling one activex control is required to run this program and click to install it..
after clicking it download jinitiator from server and after installing jinitiator my forms are loaded and start functioning...
what i feel is as i said this machine where oc4j and database is running is one of the client machine so some other clients do not have acess to this machine, so this might be the reason why those clints are not able to run the said forms on the internet explorer.... can it be so... kindly tell..
thank you for your patience for reading the question -
Accessing mysql database from oracle using dg4odbc
I've been trying to create a database link from a MySQL database to Oracle using the Oracle dg4odbc gateway. I downloaded and installed DataDirect's ODBC package which includes mysql ODBC library (ddmysql24.so) and a generic ODBC libary (libodbc.so). After creating the DSN in odbc.ini, I tested it and it can connect to the mysql database. Then I created the init{SID}.ora file in hs/admin directory, added dg4odbc lines in the listener.ora, and added lines in tnsnames.ora. Then I tnspinged the new SID with success. Finally, I created the database link. However, when I tried to access the database link using the commands "select * from mdl_user@moodle;", I got the ORA-28500 error like the following:
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[DataDirect][ODBC 20101 driver][20101]You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right
syntax to use near '"mdl_user"' at line 1
ORA-02063: preceding 2 lines from MOODLE
My mysql database is utf8 by default. Do I have to use latin1?
It seems to me that the dg4odbc translates the sql commands incorrectly (having double quotes around the selected table).
Any help is greatly appreciated.
JeffreyThe syntax error occures for example when MySQL isn't running in ANSI mode and thus does not allow double quotes around the objects. DG4ODBC 11.1.0.6 by default always adds double quotes to table/column/view names.
A quick test to check if you hit the double quote issue would be to set the MySQL DB into ANSI mode:
- Open SQL*Plus
- execute:
DECLARE
ret integer;
c integer;
BEGIN
c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@moodle;
DBMS_HS_PASSTHROUGH.PARSE@moodle(c, 'SET SESSION SQL_MODE=''ANSI_QUOTES'';');
ret := DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@moodle(c);
dbms_output.put_line(ret ||' passthrough output');
DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@moodle(c);
END;
- Now run your select statement
=> if it now works, you can permanently change the MySQL config to be ANSI compliant or you can apply the 11.1.0.7 patchset to DG4ODBC. -
Crystal Reports 2008 Server and MySQL DataBase source for reports
Hello,
I am having an issue with crystal reports server 2008. I have created a report on my local machine with crystal reports and the datasource is a ODBC connection to a MySQL database.
The report works fine on my local. if i publish to the Crystal Reports Server, i get an error when i try and run the report.
"error Failed to open the connection. "
I have gone into the database connections for this report and put in the connection details. I have also created a ODBC connection on the server in windows to the actual database (installed both the 32bit and 64bit ODBC drivers, both Test succesfully). But when i go into crystal no matter what settings i try it will not work.
anyone have any ideas?
kthank youI have solved the issues. This may be usefull for anyone ...
1. Make sure on the developer machine you have your ODBC connection setup under the System DNS setting in windows.
2. On the Crystal Report Server, the exact same setup must be done under System DNS, same name, etc
Once this was done, everything was fixed. -
How to conncet mysql database and oracle database 11g2 on linux 5.4
Hi,
Can anyone help me to connect mysql server database to Oracle
database on Linux OS?
I have done all things, but I am getting a problem in installing dg4odbc
driver on Oracle database. In a simple word, I don't know how to create
listener between mysql database and Oracle database.
If anyone knows that please help me in configuring dg4odbc for Oracle. OS
-Linux 5.4 and refer any doc or link.
oracle 11g2 11.2.0.1
i follow the metalink id - 466228.1 ( but cant successed).
Thanks and regards,
pritesh ranjanhi pl z clear me it is required to install manully the dg4odbc driver for oracle to connect MySQL server database. because in my $ORACLE_HOME/hs/admin/initdg4odbc.ora is present automatically.
details of the initdg4odbc.ora
# This is a sample agent init file that contains the HS parameters that are
# needed for the Database Gateway for ODBC
# HS init parameters
HS_FDS_CONNECT_INFO = mysql_odbc
HS_FDS_TRACE_LEVEL = off
HS_FDS_SHAREABLE_NAME = /usr/lib/libmyodbc5w.so
# ODBC specific environment variables
set ODBCINI=/etc/odbc.ini
set LD_LIBRARY_PATH=/usr/lib
# Environment variables required for the non-Oracle system
#set HOME=/home/oracle
~
~
~
"initdg4odbc.ora" 20L, 437C
details of the listener.ora file
DG4ODBC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA=(SID=dg4odbc))
(HS=OK)
SID_LIST_ORCL =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = ORCL)
ADR_BASE_DG4ODBC = /u01/app/oracle
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = pritesh11gprim.oracle.com)(PORT = 1521))
ADR_BASE_ORCL = /u01/app/oracle
"listener.ora" [readonly] 37L, 779C 35,0-1 85%
details of tnsname.ora file
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.132)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
DG4ODBC =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
(CONNECT_DATA=(SID=DG4ODBC))
(HS=OK)
MYSQL =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
(CONNECT_DATA=(SID=MYSQL))
(HS=OK)
when i m going to start the listener it could not be started..
details of the mysql server database
[root@pritesh11gprim ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.10 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
mysql> show databases;
| Database |
| information_schema |
| demo |
| mysql |
| performance_schema |
| pritesh |
| test |
6 rows in set (0.01 sec)
if any where i m wrong then plz suggest me......
thanks & regards
pritesh ranjan -
How Migrate MySql Database to Oracle
Hi...
I like Migrate MySql Database to Oracle, can help me?
AlexandreI am trying to migrate a MySql to an Oracle database. I have not had any problem setting up the migration workbench.
What I am having a problem with is copying the source database to the Oracle DB - I have verified that the host name is correct - and the MySql is at the default 3306 port number.
What my problem is that the root user on the Linux server is not the user with DBA priviliges - instead a user called admin is the user on the linux box that has DBA priviliges.
Is my only way around trying to get the root user assigned DBA priviliges in order for this extract to succesfully happen - and if so, how do I go about assigining DBA priviliges on the MySql database to the root user?
Any help will be appreciated.
Thanks -
Urgent - Is it possible with Oracle Reports
Hi Friends,
I want to generate a report with multiple databases.
I have some part of data in oracle data base and some in sql server.
How can I generate a report with oracle data and sql server data at a time ?
How can I connect to both the dB's simultaneously ?
Is it possible with oracle reports ?
If not what is the other tool in oracle products ?
thanks for your help.
Have a good day.
sriniYou should use a dblink or the heterogenous connection
-
Is it possible to insert data into a MySQL database with Java?
Hello everyone!
I would like to know, if it's possible to insert data into a MySQL database, with a JFrame inside a servlet?
When the JFrame is first created it calls this method:
* Connects the servlet with the MySQL database.
private void connect(){
try{
Class.forName("com.mysql.jdbc.Driver");
connection = DriverManager.getConnection(
"jdbc:mysql://localhost:3306/data", "root", "omfg123");
}catch(ClassNotFoundException cnfe){
cnfe.printStackTrace();
}catch(SQLException sqle){
sqle.printStackTrace();
}Then, when you click the "Add" button, it executes this code:
add.addActionListener(new ActionListener(){
@Override
public void actionPerformed(ActionEvent ae){
String employee = employeeName.getText();
String[] args = employee.split(" ");
firstName = args[0];
lastName = args[1];
execute();
});And this is my "execute()" method:
* Connects the servlet with the MySQL database.
* - And executes the SQL queries.
private void execute(){
try{
PreparedStatement statement = connection.prepareStatement("insert" +
" into employees values(" + firstName + ", " + lastName
+ ")");
ResultSet result = statement.executeQuery();
String fullName = firstName + " " + lastName;
printer.write("Employee " + fullName + " added.</br>");
}catch(SQLException sqle){
sqle.printStackTrace();
}But when I click the "Add" button, nothing happens.This is what I use to insert into mysql. It works on windows.
try {
Class.forName("com.mysql.jdbc.Driver");
String connectionUrl = "jdbc:mysql://" + loadip + "/custsig?" +
"user=root&password=";
Connection con = DriverManager.getConnection(connectionUrl);
newproc = jTextField1.getText();
newsoft = jTextField2.getText();
newdeb = jTextField3.getText();
newcust = jTextField4.getText();
if (newcust.equals("")) {
errorsig12 = 1;
jLabel1.setForeground(new java.awt.Color(255, 0, 0));
} else if (newsoft.equals("")) {
errorsig12 = 1;
jLabel2.setForeground(new java.awt.Color(0, 0, 0));
} else if (newproc.equals("")) {
errorsig12 = 1;
jLabel3.setForeground(new java.awt.Color(0, 0, 0));
} else if (newdeb.equals("")) {
errorsig12 = 1;
jLabel4.setForeground(new java.awt.Color(0, 0, 0));
if (errorsig12 == 0) {
PreparedStatement ps = con.prepareStatement("insert into customer set cust_name = ?, software = ?, processor = ?, debit = ?");
ps.setString(4, newdeb);
ps.setString(3, newproc);
ps.setString(2, newsoft);
ps.setString(1, newcust);
int rs = ps.executeUpdate();
} catch (SQLException eg) {
System.out.println("SQL Exception: " + eg.toString());
} catch (ClassNotFoundException cE) {
System.out.println("Class Not Found Exception: " + cE.toString());
} -
How to CREATE a DATABASE with ORACLE?
Hello
Can somebody please just tell me, how do i create a Database with Oracle 10g(Express Edition)? I find it very disturbing that not in one of the dozen Orcale books i have, they explain to you on how to create a DATABASE. They begin with how to create Table, can a table exist without a database?
I have tried the command line, but it tells me im not connected or some kind of error. I have tried SQL Commands and then it gives me this Error:*ORA-01501: CREATE DATABASE failed*
ORA-01100: database already mounted
How come Oracle dont have just a simple button:CREATE DATABASE?
Somebody please help!Duplicate thread ?
Creating a DATABASE with ORACLE!
Srini -
Generation of pdf forms with Oracle Report
I would like to generate editable pdf with Oracle Reports. That means I need clickable check boxes in the output.
Any suggestions or hints?
Thanks in advance.
UweHi Uwe
Reports does not currently have the capability to create PDF files with form fields.
Regards
The Oracle Reports Team -
Try to use Mysql database with forte
Dear All:
As title said, I try to use Mysql database with forte.
I read the manual , it said I have to put the database jdbc driver in
the Forte for Java lib/ext directory.
I did it and then add a new Driver in the Runtime tab in the Explorer
window .
But when I try to test this new driver(by Right-clicking on the driver
or connection in the Explorer and select Test Driver from the context
menu),it said "cannot find driver class: check your CLASSPATH or
\lib\ext direectory".
I am sure I'hve put the driver class(with the whole directory structure)
in that folder.
Does anyone what I may go wrong ?
Could you please give me some advices that I can fix this problem ?
Thanks in advance.
Ken @ Taipei , Taiwan , AsiaYou should have put the jar file that contains the driver into that directory. If you unpacked the jar file and put the individual classes into that directory, it will not work.
-
Requirement with Oracle report builder
Hi All,,
I had a requirement like this...i am very new to Oracle report builder tool and Oracle APPS
i need to develop a sample report in this format.......please help me
which tables i need to use??
i know how to create user parameters,field columns...etc i have 50% knowledge on Oracle report builderYou can make start with
Oracle Reports Tutorial...
Here few link...
1. Tutorial 1
2. Basic--[2] Oracle Reports 10g Tutorials
3. About Oracle Report 10g: Triggers in Report Data Source and Report Style
Hope this helps
hamid -
Hi
I am working on sql server reporting services with oracle 10g DB.I would like to learn oracle reports.I have just got it installed in my vista PC
Ps guide me with links/docs so that i can get started with oracle reports.
at the outset i would like to know the bleow
can i use a procedure returning a refcursor to run a report?
if so how?
Regards,Hello,
You'll find many doc, examples, demos ... on OTN :
http://www.oracle.com/technology/products/reports/index.html
http://www.oracle.com/technology/documentation/reports.html
http://www.oracle.com/technology/products/reports/htdocs/search.html?cat=ALP&col=ALC&submit=Search
For the Ref Cursors :
Oracle® Reports Building Reports
10g Release 2 (10.1.2)
B13895-01
40 Building a Paper Report with REF CURSORs
Regards
Maybe you are looking for
-
Do I take my 5 phones and go else where???? Family dealing with live threatening illness has caused delay in staying on phone with Verizon to clear this up. I've been with Verizon since 2001 and I have 5 phones with them. I had unlimited data on 2 ph
-
Why i cant imessage using my ipad
-
How to create a 20 step Stack Sequence
I am working on my GUI interface for a 20 step temp profile. I am using the flat sequence logic. But I see a flaw in my logic. I am passing the temperature to all sequences at the same time. How can I run step 1,2,3?? I have developed a senior momen
-
Requirement of files for a oracle starter
Sir, Please guide me to select the minimum requirement of files to be downloaded for an oracle beginner such that one can create databases/tables/users and queries through PL/SQLs. satya
-
HT4009 in app purchase did not download
I purchased an in app item and was told there was an error and that it didn't work so I trid it again and the second time it did. I was charged for both downloads but have only received one. How do I get A refund?