Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: getting data from an access MDB file into Oracle

RE: getting data from an access MDB file into Oracle

From: Adam Turner <ATurner_at_concreteinc.com>
Date: Thu, 25 Jan 2001 10:09:28 -0500
Message-Id: <10752.127481@fatcity.com>


Thanks guys.

I was hoping someone out there was using the Generic Hetergeneous Data access functionality in the Oracle 8i kernel. I found it and almost have it configured, but keep getting errors.

The access ideas are OK, but I don't want to install that on my production server - I just want some ODBC level connectivity to the .MDB file.

Here's the problem I am facing now. From metalink article 109730.1 I have configured my files like this:

tnsnames.ora:

<snip>
ADAMTEST_172.20.23.63 =
  (DESCRIPTION =
(ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = TCP)(HOST = 172.20.23.63)(PORT = 1521))     )
(CONNECT_DATA = (SID = adamtest)(SERVER = DEDICATED))
  )

hsodbc = (DESCRIPTION=

            (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
            (CONNECT_DATA=(SID=hsodbc))
            (HS=)
          ) 

ADAMTEST_MONKEY2 =
  (DESCRIPTION =
(ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = TCP)(HOST = monkey2)(PORT = 1521))     )
(CONNECT_DATA = (SID = adamtest)(SERVER = DEDICATED))
  )
<snip>

listener.ora:

 LISTENER.ORA Network Configuration File: D:\Oracle\Ora81\network\admin\listener.ora # Generated by Oracle configuration tools.

SAVE_CONFIG_ON_STOP_LISTENER = TRUE LISTENER =
  (DESCRIPTION_LIST =
(DESCRIPTION =

      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = monkey2)(PORT = 1521))
      )

    )
  )

SID_LIST_LISTENER =
  (SID_LIST =
(SID_DESC =

      (GLOBAL_DBNAME = monkey2.concreteinc)
      (ORACLE_HOME = d:\oracle\ora81)
      (SID_NAME = adamtest)

    )
 (SID_DESC=
          (SID_NAME=hsodbc)
          (ORACLE_HOME=d:\oracle\ora81)
          (PROGRAM=hsodbc)
     )

 )

inithsodbc.ora:

# This is a sample agent init file that contains the HS parameters that are # needed for an ODBC Agent.

#
# HS init parameters
#
HS_FDS_CONNECT_INFO = accesstest

HS_FDS_TRACE_LEVEL = 0
HS_FDS_TRACE_FILE_NAME = hsodbc.log
#
# Environment variables required for the non-Oracle system
#
#set <envvar>=<value>






then I add a db link to my "db"

create database link ksodbc using 'hsodbc';

I now have to ODBC entries: hsodbc, and accesstest ....

I issue a statement :

select * from table1_at_hsodbc
OR
select * from table1_at_hsodbc.concretetemedia OR
select * from table1_at_accesstest

and I get the same error:

ORA-12154 TNS:could not reslove service name.

If anyone has some time to take a look and give me another set of ideas for the typo I surely have made I would be very thankfull.

I'll post the working info once I know what it is.

Adam

-----Original Message-----
From: Oliver Artelt [mailto:oli_at_md.transnet.de] Sent: Wednesday, January 24, 2001 5:46 PM To: Multiple recipients of list ORACLE-L Subject: Re: getting data from an access MDB file into Oracle

Yep, but he want a #simple# solution. Another way were to create a new mdb hang the mdb- and oracle-tables into there, build queries (that do the copying stuff) execute them in the autostart macro and start this mdb nightly. But that I'm not saying here because he want not a complicate solution .-)

oli.

On Wednesday 24 January 2001 22:45, mark_at_cool-tools.co.uk wrote: > I think there is a way of getting Access to actually push the data up to an
> Oracle database via ODBC. Something to do with creating a TransferDatabase > macro that takes each table and exports it directly to the Oracle database.

>
> Never tested it mind, so not sure if it works how Micro$lop says it
> should.. But its there in the help file if you take a look..
>
> HTH
>
> Mark
>
> -----Original Message-----
> Artelt
> Sent: Wednesday, January 24, 2001 09:02
> To: Multiple recipients of list ORACLE-L
>
>
>
> The other direction is possible. You can install ODBC and then link the
> oracle tables into the access db. But how you could dig Access to put it's
> data into oracle with simple methods...
>
> oli
>
> On Wednesday 24 January 2001 20:38, ATurner_at_concreteinc.com wrote:
> > Looks interesting.  Ideally what I would like to do is pretty simple ...
> > I was hoping to do something like
> >
> > select * from dbo.tableIneed from adam_at_remoteAccessDB
> >
> > is there something like that out there?  The word gateway comes to mind,
> > but I can't seem to find much on technet about it.
> >
> >
> > thanks
> >
> > adam
> >
> > -----Original Message-----
> > Sent: Wednesday, January 24, 2001 2:06 PM
> > To: Adam Turner; Multiple recipients of list ORACLE-L
> >
> >
> > Adam,
> >
> >     I would recommend a tool called Data Junction, not sure who makes
it.
> > We
> > have a process (manual in nature) in our Sales & Marketing department to
> > download advertising data from magazines, you know those "bingo" cards
>
> they
>
> > always stick in somewhere.  This process then user Data Junction to map
>
> the
>
> > various download formats into the database.  Works very well, kind of
> > like SQL*Loader on steroids & user friendly too.  If our going to use it
> > in a batch
> > mode, you may want to check out WinBatch from Wilson WindowWare
> > (http://www.winbatch.com) as well.
> >
> > Dick Goulet
> >
> > ____________________Reply Separator____________________
> > Author: Adam Turner <ATurner_at_concreteinc.com>
> > Date:       1/24/2001 10:35 AM
> >
> > Does anyone have any stories or advice?  I am new to the idea of
gateways
> > and Oracle using ODBC or a similar tool to get to external data.
>
> Basically
>
> > I am going to have an Oracle 8.1.7 DB on NT that needs to pull data out
> > of an Access file nightly.
> >
> > If someone can give me a push in the right direction for some
> > doc's/info/tools that would be great!
> >
> >
> > thanks
> >
> > adam
>
> --
> ---
>
> Oliver Artelt, System- und Datenbankadministration
> ---------------------------------------------------------------
>   cubeoffice GmbH & Co.KG # jordanstrasse 7 # 39112 magdeburg
> telefon: +49 (0)391 6 11 28 10 # telefax: +49 (0)391 6 11 28 19
>    email: oli@cubeoffice.de # web: http://www.cubeoffice.de
> ---------------------------------------------------------------
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Oliver Artelt
>   INET: oli_at_md.transnet.de
>
> Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
> San Diego, California        -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).

--
---

Oliver Artelt, System- und Datenbankadministration
---------------------------------------------------------------
  cubeoffice GmbH & Co.KG # jordanstrasse 7 # 39112 magdeburg
telefon: +49 (0)391 6 11 28 10 # telefax: +49 (0)391 6 11 28 19
   email: oli@cubeoffice.de # web: http://www.cubeoffice.de
---------------------------------------------------------------

-------------------------------------------------------

-- 
---

Oliver Artelt, System- und Datenbankadministration
---------------------------------------------------------------
  cubeoffice GmbH & Co.KG # jordanstrasse 7 # 39112 magdeburg
telefon: +49 (0)391 6 11 28 10 # telefax: +49 (0)391 6 11 28 19
   email: oli@cubeoffice.de # web: http://www.cubeoffice.de
---------------------------------------------------------------
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Oliver Artelt
  INET: oli_at_md.transnet.de

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
Received on Thu Jan 25 2001 - 09:09:28 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US