Oracle 9i to access MySQL

Hello ,
I need to set up HS on Oracle 9i to access MySQL.
Could you post some link with example doing this or some material I should read ?
Both servers are linux. Is there a way to do this without unixODBC or iODBC, just direct link Oracle - MySQL ?
Thanks in advance,
Asen

First of all I would suggest to just add to an existing listener.ora file the HSODBC SID.
The listener is configured in $OH/network/admin using listener.ora.
Make sure you correct the path names and the SID section looks like:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /home/oracle/oracle/product/9i)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = mysql)
(ORACLE_HOME = /home/oracle/oracle/product/9i) (ENVS=LD_LIBRARY_PATH=/home/oracle/oracle/product/9i/lib:/home/odbc/mysql/unixODBC/lib:/home/odbc/mysql/lib)
(PROGRAM = hsodbc)
Then STOP and START the listener.
COMMENT:
LD_LIBRARY_PATH includes the $ORACLE_HOME/lib, the UnixODBC library and the MySQL library directory.
The tnsnames.ora entry is also similar to the note:
mysql =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = linux.de.oracle.com)(PORT = 1521))
(CONNECT_DATA =
(SID = mysql)
(HS=OK)
My initmysql.ora file located in $OH/hs/admin looks like:
HS_FDS_CONNECT_INFO = mysql
HS_FDS_TRACE_LEVEL = off
HS_FDS_SHAREABLE_NAME = /home/odbc/mysql/unixODBC/lib/libodbc.so
HS_FDS_CONNECT_PROPERTIES="disableExtendedFetch='true'"
set ODBCINI=/etc/odbc.ini
COMMENT:
The HS_FDS_SHAREABLE_NAME points to the unixODBC driver manager libodbc.so
So more detailed to your update:
I have the sample .ora files in $ORACLE_HOME/hs/admin but I was unable to get it working.
=> just copy the relevant SID section from my posting above or from the sample listener.ora file located in $OH/hs/admin to the listener.ora located in $OH/network/admin
Which .ora files should I edit? Those in $ORACLE_HOME/network/admin/ or to add such files in the $ORACLE_HOME/hs/admin?
The listener and tnsnames is by default located in $OH/network/admin.
Should I input the lines for the SID & LISTENER for the new HS Service in the current lists in listener.ora or I should only paste the adapted listener.ora from the manual you posted at the end of the current listener.ora?
Depends on what you prefer.
If you want a separate listener for HSODBC, then you have to define a complete new listener entry in your listener.ora file. If you prefer only one listener, then just add the SID section to the existing listener.ora
In either ways I get error. If I add the adjusted template from the manual at the end of the file, I get: TNS-01201: Listener cannot find executable …. for SID …. .
=> Post your config and I'll have a look.

Similar Messages

  • Accessing MySQL InnoDB tables via JDBC using Oracle SQL Developer

    I had posted a problem in the Oracle SQL Developer forum with how that application (v1.1) accesses MySQL InnoDB tables and someone replied that the "[data migration] team created the integration with MySQL", so I am posting here in hopes of learning more about the problem.
    Here's a summary:
    When I use Oracle SQL Developer to query MySQL InnoDB tables, I need to issue a "commit" before I do each query to ensure that I am getting current results. Otherwise, it appears to be using a snapshot as-of the last commit. Is this a problem with SQL Developer, or a JDBC configuration, or MySQL problem even?
    The full details are here:
    Re: MySQL InnoDB tables

    Hi,
    I've posted a response to your original thread.
    Regards,
    Dermot.

  • How to configure oracle and ms-access db

    Hi All,
    I have a requirement to push data from the oracle to ms access. My oracle database is on the Unix server and ms access is on my local desktop. Is there a way to configure if so how to configure both the db? Basically I am wanted to make the ms access visible to oracle so that I can use the Heterogeneous package. Please let me know if there are any different ways.
    my oracle version is
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
    ms-access 2007
    Thanks in advance.

    Hi,
    You could use the Database Gateway for ODBC (DG4ODBC) to do this. It uses a third party ODBC driver to make the connection to MS-Access so the best option would be to install it on the Windows machine where Access is running and use the Microsoft Access driver.
    Otherwise, you could install on Unix where Oracle is running but I don't think there is third party Access driver for Unix.
    The following note available in My Oracle Support describes the setup on Windows -
    Note.466225.1 How to Setup DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit
    You should install the latest 11.2 DG4ODBC and this note has pointers to the download sites -
    Note.1083703.1 Master Note for Oracle Gateway Products
    DG4ODBC can be installed standalone without an RDBMS being installed.
    Regards,
    Mike

  • Query based on Oracle and MS Access connections

    I hope this is in the correct spot.
    I am using Oracle SQL Developer to extract data from some Read Only tables in Oracle.
    What I would like to do it have a list of numbers in a MS Access database to select the same number from Oracle tables, then export the data out to Access or Excel. There may be several thousand numbers at a time.
    I asked if they would give me one table with one column in Oracle I could read/write to but the answer was no.
    I have my connection strings working to both the Oracle tables and to the Access database but i can not figure out how to build a query using both tables.
    If I build a query to the Access table can I use that query somehow in the query of the Oracle table?
    Thanks
    Steve

    Not real sure if this is doable or would help, but perhaps you can load the access table into an Oracle Global Temporary Table? See http://www.oracle-base.com/articles/8i/TemporaryTables.php (and google on it). I think I'm assuming your 11 hour query had something to do with shovelling a bucketload of data to the access side, perhaps if you could show us the plan on the Oracle side that access was generating to get the Oracle data there might be a different answer.
    Oftentimes cross-db tools won't use Oracle features like analytics, or do slow-by-slow row processing where a short procedure could do things within the Oracle sql engine and return data in larger arrays.
    Sometimes mass data cleansings benefit from using server side tools outside of the db. Do you have the data from before it was loaded to Oracle? What Oracle platform are you on?

  • Oracle Identity and Access Management Suite Plus Integration with Oracle ADF

    Hi All,
    Kindly advice if Oracle Identity and Access Management Suite Plus can be integrated with Oracle ADF based applications to manage the end-to-end lifecycle of user accounts specifically addressing to roles/priviledges and security.
    Request you to share links to documentation where I can study the steps to integrate both the frameworks.
    Looking forward to hear from you soon.
    Best Regards,
    Ankit Gupta 

    Hi Sébastien,
    I came across the below link for the required integrations -
    Oracle® Fusion Middleware Installation Guide for Oracle Identity and Access Management 11g Release 2 (11.1.2) - …
    Oracle® Fusion Middleware Enterprise Deployment Guide for Oracle Identity Management 11g Release 2 (11.1.2) - Co…
    Best Regards,
    Ankit Gupta

  • Connecting from Oracle to MS Access

    Hi,
    I've had a good search through the various topics on establishing a connection between Oracle and MS Access and have found that most center around Access initiating the connection (linked tables and the like).
    What I'd like to do is initiate the connection from Oracle.
    Some background:
    we are running Oracle 9.2.0.2 on an HP/UX 11 OS, and have a series of MS Access 2000 Databases that have identical schemas, but with totally different data content and different names (naming convention is datestamp of when Db was created).
    I would like to initiate a connection from within oracle to 'pull' the data from the Access DB's, and append the respective tables together into one lager table in oracle.
    Is there any way of doing this? Are there connection drivers that will allow oracle to create an ODBC connection to Access? and if so what must be loaded/configured within oracle on the Unix box to achieve this in an automated fashion?
    Any help most appreciated.
    Cheers,
    James

    You can do this sort of thing if you install Oracle Heterogenous Services. That lets you create a database link from an Oracle database to a non-Oracle database and issue SQL statements against the data in the non-Oracle database.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • Oracle 11g - Objects Access ?

    Oracle 11g - Objects Access ?
    =====================
    I hope this is the right forum for this issue, if not let me, where to go.
    We are using Oracle 11g (11.2.0.1.0) on (Platform : solaris[tm] oe (64-bit)), Sql Developer 3.0.04
    We have a Schema A with database objects.
    We need to provide access to another group on selective items.
    We need to provide Read access to one table (T1) of Schema A and Insert/Update access to another one (T2).
    If we create another user/schema B in our instance, they can see other than T1 and T2 of Sch A via other User Objects (via TOAD/SQL Developer etc) or using Database catalog.
    How do we hide our other objects for User/Schema B?
    Thanks in helping.

    qwe16235 wrote:
    Oracle 11g - Objects Access ?
    =====================
    I hope this is the right forum for this issue, if not let me, where to go.
    We are using Oracle 11g (11.2.0.1.0) on (Platform : solaris[tm] oe (64-bit)), Sql Developer 3.0.04
    We have a Schema A with database objects.
    We need to provide access to another group on selective items.
    We need to provide Read access to one table (T1) of Schema A and Insert/Update access to another one (T2).
    If we create another user/schema B in our instance, they can see other than T1 and T2 of Sch A via other User Objects (via TOAD/SQL Developer etc) or using Database catalog.
    How do we hide our other objects for User/Schema B?
    With Oracle everything is prohibited; except that which is explicitly GRANTed.
    simply put SCHEMA_B has privs to see objects that are owned by SCHEMA_A.

  • REPLICATION BETWEEN ORACLE 10g and postgresql/MySQL/MSSQL SERVER??

    Hi Friends.
    I want to know if there are a manner of replication between ORACLE and (postgresql or mysql or mssqlserver).
    Please, my email is [email protected]
    Thanks
    Manuel

    Sure.
    Are you talking about replicating data in one direction? If so, in which direction (Oracle to non-Oracle or non-Oracle to Oracle)? Or are you talking about bidirectional replication?
    Which database do you want to be the "master" (i.e. initiate the push or pull of data)?
    What sort of lag is acceptable? Minutes? Hours? Days?
    Justin

  • Link to download Oracle GoldenGate 11g for MySQL

    Dear All,
    I am in search of Oracle GoldenGate 11g for MySQL. Somehow could not find it download.oracle.com and edelivery.
    If someone knows how to download it please guide me.
    Thanks, Imran

    You can download from here:
    https://edelivery.oracle.com/EPD/Search/handle_go
    I used GG on windows V32424-01 with mysql and it works fine
    Cheers

  • How to convert oracle 9i database to mysql using JSP?

    Dear friends,
    I want to convert oracle 9i database to mysql using JSP technology. Does there anyone who have a hint or some web links about this task? I searched the internet and found all of them are not free and no source code. In fact, what I want to do is really simple, I just want to first, reading the oracle database table structure information and then create the exactly same table in mysql, and then copying all the data in oracle database table to mysql table. But I don�t know how to retrieve the oracle table structure using JDBC. And also I want to retrieve all the tables in the oracle database, so I can choose from them to convert to mysql. It seems that the structure in oracle usually have the tablespace information, I don�t know if I can create database in mysql using this tablespace information. And I don�t know where I can find the information about the functions in JDBC? For example, how to retrieve the table structure? Once I retrieve the table structure and create the exactly same table structure in mysql, then I can fetch all the data in oracle table to mysql table.
    Any hint will be great appreciated!
    Merry Christmas and Happy new year!
    Sammy

    Hi, beattris and rtg54,
    thank you very much for your great help!
    beattris, do you know if there is any such kind of tool free? I am a student and don't want to do commercial product, as you see, my work is very simple, in fact, just as you said, the most important of all is how to get the database structure from oracle schema? do you have any idea about this? or do you know any tool that is open source? so I can learn from it.
    rtg54, I just want to convert the database from oracle to mysql, after that, I can use mysql database as storage instead of expensive oracle database. the problem is that I have some data stored in oracle database and the application is built on oracle, after the convertion, I can use mysql to provide data to jsp or servlet application. I will great appreciate if you can contact with mysql about this problem because I don't know how to contact with them.
    thanks again and happy new year!
    Sammy

  • Problem calling Oracle function from Access 2007 / ADO

    Hopefully, I'm posting this in the correct forum. I'm also posting on an Access forum as I'm not entirely sure where the issue lies.
    I'm calling an Oracle function from Access 2007 using an ADO Command object.
    The function takes three input parameters and has a return value and an output parameter. The output parameter is a BLOB, and the return value is varchar2 (either "T" or "N") based on the outcome of the function.
    If I pass correct values to the function, I get the following error message (errs out on the command.execute line):
    Run-time error '-2147467259 (80004005)':
    [Oracle][ODBC][Ora]ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at line 1
    Here's the function:
    FUNCTION GET_ITEMREV_ATTACH(P_ORGANIZATION_ID IN NUMBER,
    P_INVENTORY_ITEM_ID IN NUMBER,
    P_REVISION IN VARCHAR2,
    X_DRAWING OUT BLOB) RETURN VARCHAR2 IS
    RESULT VARCHAR2(1);
    BEGIN
    RESULT := 'T';
    BEGIN
    SELECT L.FILE_DATA
    INTO X_DRAWING
    FROM FND_ATTACHED_DOCUMENTS AD,
    MTL_ITEM_REVISIONS_B IR,
    FND_DOCUMENTS_TL D,
    FND_LOBS L
    WHERE AD.ENTITY_NAME = 'MTL_ITEM_REVISIONS' AND
    AD.PK1_VALUE = IR.ORGANIZATION_ID AND
    AD.PK2_VALUE = IR.INVENTORY_ITEM_ID AND
    AD.PK3_VALUE = IR.REVISION_ID AND
    AD.CATEGORY_ID = 1001216 AND
    D.DOCUMENT_ID = AD.DOCUMENT_ID AND
    D.LANGUAGE = 'US' AND
    L.FILE_ID = D.MEDIA_ID AND
    IR.ORGANIZATION_ID = P_ORGANIZATION_ID AND
    IR.INVENTORY_ITEM_ID = P_INVENTORY_ITEM_ID AND
    IR.REVISION = P_REVISION;
    EXCEPTION
    WHEN OTHERS THEN
    RESULT := 'N';
    END;
    RETURN(RESULT);
    END GET_ITEMREV_ATTACH;
    Here's the VB code I'm using to call the function:
    Private Sub Command8_Click()
    Dim CMD As New ADODB.Command
    Dim conn As ADODB.Connection
    Dim Param1 As ADODB.Parameter
    Dim Param2 As ADODB.Parameter
    Dim Param3 As ADODB.Parameter
    Dim ParamBlob As ADODB.Parameter
    Dim ParamReturn As ADODB.Parameter
    Set conn = New ADODB.Connection
    With conn
    .ConnectionString = "Driver={Oracle in OraHome92};Dbq=OAPLY;UID=***;PWD=*******"
    .CursorLocation = adUseClient
    .Open
    End With
    Set CMD = New ADODB.Command
    Set CMD.ActiveConnection = conn
    CMD.CommandText = "immi_attach_pub.get_itemrev_attach"
    CMD.CommandType = adCmdStoredProc
    Set ParamReturn = CMD.CreateParameter("RESULT", adVarChar, adParamReturnValue, 1)
    CMD.Parameters.Append ParamReturn
    Set Param1 = CMD.CreateParameter("P_ORGANIZATION_ID", adInteger, adParamInput, 1, 6)
    CMD.Parameters.Append Param1
    Set Param2 = CMD.CreateParameter("P_INVENTORY_ITEM_ID", adInteger, adParamInput, 4, 5207)
    CMD.Parameters.Append Param2
    Set Param3 = CMD.CreateParameter("P_REVISION", adVarChar, adParamInput, 2, "04")
    CMD.Parameters.Append Param3
    Set ParamBlob = CMD.CreateParameter("X_DRAWING", adLongVarBinary, adParamOutput, 200000)
    CMD.Parameters.Append ParamBlob
    CMD.Execute , , adExecuteNoRecords *** this is where the error occurs
    conn.Close
    MsgBox CMD.Parameters("RESULT")
    End Sub
    I've tried using different data types for the varchar2 parameters (adVarChar, adBSTR, adChar) with no difference.
    If I pass a bogus value for Param3...."'04'"...the function returns "N" indicating that it actually executed something. But, when I pass the correct value "04", it returns the above mentioned error.
    I can execute the function in PL/SQL just fine, so I'm thinking there's something wrong with the parameters, datatype, or other definitions on the Access side.
    Does anyone have any thoughts? I'm at a dead end with this. Sorry for the long post. Thank you.

    I tried your code with 11107 ODBC/client/database (but with a NULL output blob for convenience sake) and got no errors.
    If you're using 92 ODBC/client, you may want to try upgrading to something more current, or at least getting the latest patch(9208) to see if that helps. Since it works for me I'm guessing it may be a resolved bug in that version.
    Hope it helps,
    Greg

  • Accessing MySql database in jsp

    hi everyone!!!
    i m new to java with little knowledge of jsp.
    i want to access mysql database in jsp to develop a web page.
    i have jdk and mysql installed and these are working. what are other requirements and how to do this.
    plz help.
    OS: MS Windows XP/ Fedora 10

    Learn JDBC API: [http://java.sun.com/docs/books/tutorial/jdbc/index.html]. Create a DAO class which uses JDBC to interact with Java and takes or returns the desired data in form of DTO's. Use and test it as a plain vanilla Java application with a main() method. This require a JDBC driver (a concrete implementation of the JDBC API) in the classpath. MySQL offers JDBC drivers as download at their homepage, it is called "Connector/J".
    Once you got the JDBC part to work, create a Servlet class which holds an instance of the DAO class and uses its methods to interact with the database. In the doGet() you can place logic to preload data from the DAO class for display. In the doPost() you can place logic to process data for create, update or delete using the DAO class. Finally let it forward the request to a JSP.
    In the JSP you can use JSTL/EL to display data. For tabular view you may find the JSTL c:forEach useful. For plain display, just use EL the usual way.

  • Can APEX/ORACLE connect to a mysql database?

    Hi
    Just wondered whether APEX and ORACLE could connect to mysql database. I may have a requirement to link to a mysql database and retrieve the data and wondered if APEX could do this.
    Thanks

    Hi
    Apex sits within the Oracle database. Oracle can connect to a mysql database via a database link so yes this is certainly possible. We connect extensively to an Informix database here actually. This is really an oracle question though so you just need to look in the documentation for the CREATE DATABASE LINK command and for setting up the actual connection.
    If you need more help let me know.
    Cheers
    Ben

  • Can I use Oracle app server with mysql

    Can I use Oracle app server with mysql. I seem to have the following error when trying to create a datastore. I have mysql.jar in my classpath. Can any one tell me what's wrong.
    Error initializing data-source 'jdbc/topup': DriverManagerDataSource driver 'org.gjt.mm.mysql.Driver' not found

    Yes you can forward requests from your own apache to the iAS. This can be done using mod_proxy. Some hints about how to do this are availlable on this forum.
    mod_oc4j is not a standard apache module, and therefore is not availlable when you download apache. There is no apparent reason to use mod_oc4j on a "regular" webserver (unless you want to build your own iAS). Also there might be some licenseing issues with using mod_oc4j module on a standard apache.
    You can encrypt data that is passed from a random Apache to you iAS.

  • Oracle Identity and Access Management (11.1.1.3.0)   and IM difference?

    What is difference between Oracle Identity and Access Management (11.1.1.3.0) and Identity Management (11.1.1.3.0) ?
    From
    http://www.oracle.com/technetwork/middleware/downloads/oid-11g-161194.html

    When you run the config, you are asked to add some product. Have checked the "Oracle Access Manager with Database Policy Store" product?
    If not, you can add it by extending the domain. Once done you have to start two WLS servers (AdminServer and oam_server1):
    Start AdminServer with $DOMAIN/bin/startWebLogic.sh
    Start oam_server1 with $DOMAIN/bin/startManagedWebLogic.sh oam_server1
    It might be that oam_server1 asks for username and password. This is fine for the first time. During the first start the necessary directory structure is created. Once it came up and enters RUNNING state, kill it and create a file boot.properties in $DOMAIN/servers/oam_server1/security with the entries username=name and password=pw in two lines and start oam_server1 again.
    Starting oam_server1 is recommend to get proper values in the oamconsole.
    HTH,
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Windows7, Office 2007

    I use Acrobat 9 Pro to create PDF files from Word files that have Arabic text with Hindi numerals. Recently I upgraded from Windows XP to Windows 7 Pro and from Word 2003 to Word 2007. Two problems appeared: 1.     When I view or print old PDF files,

  • Box says " Windows cannot find (site) Please check spelling.......then Mozilla finds it

    Irritating box shows whenever I go to a web site. I have re-set IE, re-installed Firefox, got rid of Google Tool bar, checked extensions and got rid of some, everything I can think of. Read article on problem, followed instructions, etc etc, all to n

  • SAP BW Business Intelligence

    Looking for a French/Dutch speaking consultant based in Belgium with strong experience in SAP BW + Business Intelligence. Any ideas where we can find such profile?

  • What does a grey tick calendar symbol mean?

    I'm wondering what the greyed out tick symbol in an invite means? The help page talks about a green tick indicating an invitee has accepted, but makes no mention of a grey tick? I've attached a screen-shot showing the different colored ticks.

  • Mon ipad est bloqué sur la page d'acceuil

    Bonjour, j'ai un problème avec mon iPad, quand il était décharger, je l'ai rallumé sans l'avoir rechargé et il s'est bloqué sur l'image d'acceuil.                               il n'y a plus rien qui répond. Hello, I have a problem with my iPad, when