We help IT Professionals succeed at work.

Oracle Scheduler to ACCESS tables

J R
J R asked
on
I need to create a Scheduler Job to run weekly to export a group of 20 Oracle tables' data to create ACCESS tables (same names) locally (C:\).
Comment
Watch Question

Most Valuable Expert 2012
Distinguished Expert 2019

Commented:
Internal Oracle jobs can only write to filesystems on the database server.

There are a LOT of examples out there on creating a CSV with Oracle.  Many use straight SELECT statements.

If you need the file on a remote machine, I would use sqlplus and schedule the file with the local OS scheduler.

If you can provide more information, we can add more details.

Like:
File on database server or remote machine?
OS involved where the file needs to be created.

If you want a copy/paste type script, we'll need the table definition, sample data and what you expect the results to look like.
Most Valuable Expert 2012
Distinguished Expert 2019

Commented:
If you want to pull the data, I've seen code that will refresh linked tables when the database is opened.  What I haven't seen is a way to schedule a program to 'open' the Access database unattended.

If you know anyone with .Net skills, there is a library out there that will allow you to manipulate Office files directly.  If this is an option, I can get you the info tomorrow.
J R

Author

Commented:
Thank you both for your responses.  

The connection is to a remote database server.  The files to be created in ACCESS will be local -C:\temp\file_name.mdb

CSV will not work - it is about when the end user can use.. The requirement is for ACCESS tables.

a cron job would work if Oracle Scheduler cannot save remotely to ACCESS.

As far as sample data goes, it is an assortment of 20 tables.  TOAD is able to export to ACCESS, but I cannot get a sqlplus script to save to ACCESS.
Most Valuable Expert 2012
Distinguished Expert 2019
Commented:
>> TOAD is able to export to ACCESS,

They have coded this ability into their program.

>>but I cannot get a sqlplus script to save to ACCESS.

And you will not be able to.  There is no native way to have Oracle generate an Access database.

You will need a third-party tool or write your own.