How to open an .accdb file in Ubuntu? - database

The development machine I work on has Ubuntu Jaunty Jackalope as its operating system. I have been presented with data for a project I'm working on in the form of an .accdb file created by Microsoft Access. I do not own a copy of Microsoft Access. I do have Open Office installed and would be willing to install any software package available to my operating system. Is there a way I can open or transform this file so that I can view and edit the data on my computer? Is there another format that the Access database could be saved as that I would be able to open?

There are two open source tools available however they only work on MDB format files. Can you ask the supplier of the ACCDB file to give it to you in MDB format?
MDB Tools is a set of open source libraries and utilities to facilitate exporting data from MS Access databases (mdb files) without using the Microsoft DLLs.
Jackcess is a pure Java library for reading from and writing to MS Access databases. It is part of the OpenHMS project from Health Market Science, Inc. . It is not an application. There is no GUI. It's a library, intended for other developers to use to build Java applications. It appears to be much newer than MDB tools, is more active and has write support.

Jackcess now supports everything from Access 97 (read-only), 2000, 2003, 2007, and 2010 (read-write), both .mdb and .accdb files.
Dumping the file can be as easy as
import com.healthmarketscience.jackcess.*;
import java.io.*;
public class AccessExport {
public static void main(String []args) throws IOException {
System.out.println(Database.open(new File(args[0])).getTable(args[1]).display());
}
}
(of course, you need a java compiler, libcommons-logging-java, libcommons-lang-java and you have to pass the .accdb filename as the first and the table name as the second parameter).
-Marcel

I just had this same problem on an Ubuntu 14.01 AWS EC2 instance and I was able to accomplish this task (convert .accdb file to CSV on Ubuntu) by using access2csv. I had to install Git, install Java, and install ant, but then was able to convert the .accdb files I had to CSV by typing:
$ java -jar access2csv.jar myfile.accdb
It uses Jackcess so you get the same functionality without having to write your own Java code to accomplish this basic task. Each table is returned as its own CSV file.
You can also access the schema by passing the --schema option:
java -jar access2csv.jar myfile.accdb --schema
Hope this is helpful. It certainly was for me.

A good format to view and work with on Linux would be CSV.
As the accepted answer suggests MDB Tools does the job. To export all the tables on Linux to CSV format try this command:
mdb-tables -d ',' database.accdb| xargs -L1 -d',' -I{} bash -c 'mdb-export database.accdb "$1" >"$1".csv' -- {}
You can use mdbtools also into windows via WSL (Ubuntu on Windows or Debian on Windows):
Then install it in console with:
sudo apt install mdbtools

This may be of interest: How to convert accdb to a postgres database
I am not sure if Wine would suit, but it might be worth a look.

I found this blog: http://tahsinabrar.com/open-a-microsoft-access-accdb-file-in-ubuntu/
In case the link is broken, the contents say:
We can use the UCanAccess JDBC driver to connect to Access databases
(.mdb and .accdb) in LibreOffice Base. Here’s how I did it on a clean
install of Ubuntu 14.04 LTS.
First, I installed LibreOffice Base itself
sudo apt-get install libreoffice-base
Then I downloaded UCanAccess to my Downloads folder and unzipped it.
I launched LibreOffice (not Base, just LibreOffice itself)
LibreOffice.png
and chose Tools > Options
On the Advanced tab I clicked the “Class Path…” button and then added
the following five (5) JAR files using the “Add Archive…” button:
/home/abrar/Downloads/UCanAccess-2.0.9.5-bin/ucanaccess-2.0.9.5.jar
/home/abrar/Downloads/UCanAccess-2.0.9.5-bin/lib/commons-lang-2.6.jar
/home/abrar/Downloads/UCanAccess-2.0.9.5-bin/lib/commons-logging-1.1.1.jar
/home/abrar/Downloads/UCanAccess-2.0.9.5-bin/lib/hsqldb.jar
/home/abrar/Downloads/UCanAccess-2.0.9.5-bin/lib/jackcess-2.1.0.jar
Note that you must close and re-open LibreOffice for the new Class
Path values to take effect.
Then I launched LibreOffice Base, and in Step 1 of the wizard I chose
“Connect to an existing database (JDBC)”
The Access file I wanted to manipulate was named “baseTest.accdb” in
my Downloads folder, so in Step 2 the “Datasource URL” was
jdbc:ucanaccess:///home/abrar/Downloads/baseTest.accdb
and the “JDBC driver class” was
net.ucanaccess.jdbc.UcanaccessDriver
In Step 3, I left the “User name” field empty and just clicked “Next
”.
In Step 4, I saved the LibreOffice Base database as “accdbTest.odb” in
my Documents folder.
When the wizard completed it opened my LibreOffice database and I
could see the tables in the .accdb file
But you have download and unzip UCANACCESS first from here: http://ucanaccess.sourceforge.net/site.html
I can see all the tables in LibreOffice Base. Here is one:

I guess you want to extract data from tables, not code from modules. I do not know specifically Ubuntu but I guess you can connect to the access file using an ODBC connection (or, if available, OLEDB connection) and extract the data? Depending on the connection type, you might still need to know the tables names in order to import them.

Microsoft Access Runtime is a free software. You can install it in Ubntu using Wine and then open the accdb database.

Im not sure if there are any native tools, but you can always install a copy of windows and install a free view for accdb files or install a trial of Access.

Related

how to deploy only excel and word through domain server 2012r2

On my domain server 2012r2I am trying to deploying office 2007 but not all of the office I need to install only excel and word
I found an .msi file within the dvd installation and found many .msi packages
called ExcelMUI.msiand WordMUI.msi at directory
...\English\Excel.en-us\ExcelMUI.msi
...\English\Excel.en-us\WordMUI.msi
can I use them to deploy only excel and word through domain server 2012r2?
are they valid as .msi packages installer ?
Best Guess: I wonder if those MUI-setups are Multilingual User Interface setups. I think you should get on a virtual machine and try to run the setup.exe instead (if there is one) and then go to "Custom" or equivalent to see if you get a feature selection dialog. Then you should select Word and Excel to install fully and you can disable most other features (don't disable the shared features, just the other apps would be my suggestion - Outlook, PowerPoint, etc...). It is possible that those MSI files you mention can be used directly. You could try to run them - but only on a virtual of course. Or on a computer which does not matter - test computer of some sort. Look for a custom option and a feature dialog there too. Sorry, all I can suggest without installation media access.
Sure?: With all that said, Office on a domain server? Do you mean domain controller? (hope not). Sounds like a very dangerous move if you ask me - with all the security holes Office contains. At least make sure to run Windows Update or Office Update or whatever mechanism you have to deploy security fixes. Can I be curious and ask why the server needs Office? Is it for automation only?
Viewer for MSI Files: You can open and inspect MSI files using the free tools Orca, SuperOrca or InstEd (links towards bottom). I have an old answer on superuser showing how MSI features can be seen inside the MSI file.

install oracle data integrator on mac book pro

Hi can someone provide detailed installation steps to install Oracle data integrator 11g or 12c on my mac book pro. I am very new to Mac and I am a business analyst, so would appreciate if you could be specific in giving the instructions.
ODI can be run in OS X.
Today I have installed ODI 12c2.1.3 version in my macbook pro.
For sure, there is no information is available to fix the issues. I hope this will help others.
As we know the default installation directly doesn't work. I have done some changes in default configurations and lib. I am running setup on jdk8. I am assuming you have already installed ODI
Changes you have to made is as follows
odi.conf
File Path - <Oracle Home>/Middleware/Oracle_Home/odi/studio/bin
Append the below lines to odi.conf
AddVMOption -Dswing.defaultlaf=com.apple.laf.AquaLookAndFeel
AddJavaLibFile ../extensions/oracle.odi.navigator.12/lib/jide-common.jar
Download the latest jidesoft demo zip from http://www.jidesoft.com/products/download.htm
Link I have used - http://www.jidesoft.com/products/1.4/jide_demo.zip
extract the zip file and rename the file to jide-common.jar and copy it to location
<Oracle Home>/Middleware/Oracle_Home/odi/studio/extensions/oracle.odi.navigator.12/lib
After this go to
cd <Oracle Home>/Middleware/Oracle_Home/odi/studio/bin/
./odi -verbose
You should not see any error.
As this jidesoft jar is an evaluation version. you should follow their terms and conditions.
ODI Studio 11g can be installed on Mac OS X by downloading the Oracle Data Integrator Companion. I'm not sure it's the most reliable way to use ODI though.
You will first need that you have the right version of Java installed. You can check on the certification matrix and if needed install a new JDK.
Then unzip the companion archive, browse to the studio folder, unzip the other archive in there, browse to oracledi/client and start odi.sh. There might be a dialog box asking for the location of the JDK on the first start.
ODI Studio 12c doesn't run on OS X so far.
If the goal is just to try ODI and quickly learn it, I actually would rather recommend to download the free ODI Getting Started Virtual Machine that runs on Virtual Box. Everything will already be set up with an Oracle database, Golden Gate and much more.

Installing SQL Server 2014 using chef community cookbook (sql_server)

I've had a look at the chef community cookbook for installing sql server and it appears that it's tailored for installing SQL express, but I can't seem to work out how to install a standard or developer edition.
The README on the GitHub page (https://github.com/chef-cookbooks/sql_server) says you can just point it to any installation package, however I can't see how you would do this for an ISO (or even the extracted contents of an ISO) given that there's no single EXE package on the ISO media.
Am I missing something obvious, or will I need to roll my own recipe for installing SQL from an ISO (or contents of ISO)? Ideally I would like to host the installation media on a central package repository behind my firewall.
Option 1:
Customized cookbook is the best option for you use case. Like you said, host .ISO on central repo and create a cookbook that mounts the .ISO drive to run the installation. You should leverage that cookbook template and re-write that windows_package block in the server.rb to install using keyword 'source' with path to the mounted installation files. However, this will be a major work (from past experience...) so if you have only one or two nodes that need to run the cookbook, go with Option 2.
Option 2:
If you have only one or two nodes that need to run the cookbook, I would suggest you to run the basic 'sql_server::server' then upgrade to the version you want using the GUI with the PID product key.
Note that this process can be automated as well using Powershell script. If you are familiar with Powershell, you can automate it using powershell_script block.
ISOs are intended for DVD images but if you have an ISO shredder (search online for free tools) you'll see a setup.exe in there. Run that and it'll bring you to the installation center where you can choose to install a new instance and do a bunch of other things. It's a wizard type interface so just read the instructions on each page and you should be able to provide the relevant info where needed to successfully complete the installation

Troubling to specify parameter files with oracle database into c directory

Currently I just switched to Oracle database from Mysql now as i read freaky docs from here.
It says you must need to specify a parameter file but not being able to do that.
I mean i'm unable to find Oracle_home and i'm using windows 8 so it denies me to create any sort of files in C:\ directory .. Please guide me as well to do setup with Oracle database.
Help would be appreciated!
If you install an OFA-compliant database, using Oracle Universal Installer defaults, then Oracle home (known as ORACLE_HOME in this guide) is located beneath ORACLE_BASE. It contains subdirectories for Oracle Database software executables and network files.
ORACLE_BASE-/u01/app/oracle/product/11.2.0/dbhome_1
with subdirectories like:
bin,
rdbms,
sqlplus,
etc

Oracle Database Mobile Server first steps

I download jdeveloper studio edition and install it in C:\Oracle\Middleware
then I install weblogic instance using C:\Oracle\Middleware\wlserver_10.3\common\bin\config.exe
to C:\myproject\domains\myweblogic
Then download DMS_11.1.0.0.0_WINDOWS.zip and install it to C:\Oracle\Middleware\Mobile.
thereafter cant start
C:\Oracle\Middleware\Mobile\Mobile\Server\bin\runmobileserver.bat
unless i change the variable to this batch file
set DOMAIN_DIR=C:\myproject\domains\myweblogic
what do I do next to see that it works?
is there a simple example that creates a sigle table and synchronized between server and mobile clients?
very difficult to find information on this technology. interfere very popular tags (Oracle, Database).
If you install Database Mobile Server directly in the WebLogic directory, you will not need to edit the batch file. For instance, I believe the default install directory is:
C:\Oracle\Middleware\wlserver_10.3
So if you used the default install directory, you would install Database Mobile Server there, with no added 'Mobile' or other directory. If you chose to install WebLogic elsewhere, then replace the above with that directory.
There is another small issue to be aware of.
The installer will give you warning about installing in a non-empty
directory. You should click through the warning. This is a known issue
documented in the Release Notes.
Regarding your other question about a demo, there is a Java demo found in
<MOBILE_HOME>\Mobile\Server\demos\consolidator_api
You will need to download a client and perform a sync, which is documented here:
http://download.oracle.com/docs/cd/E22663_01/doc.11100/e22681/instsqlite.htm#BABGAACI
I hope that helps, good luck with your project. Let me know if you have further questions.
Eric Jensen, Oracle PM

Resources