Import .mdf and .ldf Files into PostgreSQL (OS X El Capitan) - macos

Apologies if this has come up before - I have spend the entire day Googling this and have gotten no closer to working out what to do.
We have a database that we purchased from a 3rd party. This was first received years ago - long before I ever worked here. The person that previously set it up no longer works here so I can't ask them what they did and I can't find any documentation of the process that they used.
We have just received an update from the 3rd party however it wasn't really what I expected. I was lead to believe that it was going to be a bunch of csv files however it appears to be a database dump from a different system.
The received update contains a .mdf and a .ldf file as well as a couple of csv files. From what I can tell from online, .mdf and .ldf files are produced using SQL Server. I do not have any access to SQL Server and only use PostgreSQL.
I am just wondering if there is any way to import the .mdf and .ldf files into PostgreSQL? I am on OS X (El Capitan).
The only similar post I could find was:
https://dba.stackexchange.com/questions/17835/how-to-convert-sql-server-mdf-database-to-mac-os-postgresql-database-on-mac-os
However the suggested answers seemed to require using SQL Server - which I don't have any access to.
I also looked at:
https://wiki.postgresql.org/wiki/Converting_from_other_Databases_to_PostgreSQL
However I'll be honest - I got pretty confused pretty quickly and a lot of them seemed to be Windows specific tools and I need Mac. (Or they are way too expensive!)
Has any one got any suggestions as I am completely stuck?

Related

Unable to get Mysql 8.0.22 to dump databases using any version of MySql Workbench on MacOs

I have a massive (200 million record) database stored in MySql 8.0.022. I have tried to get MySql Workbench to dump the database to an external SSD, but I keep getting the message "Could not get mysqldump version".
I have scoured all the threads for almost a week, tried all the proposed solutions that have been proposed, and it just will not work.
For some inexplicable reason, every version of Workbench that I install simply fails to connect to the mysqldump executable that is stored in /usr/local/mysql-8.0.22-macos10.15-x86_64/bin.
My data is currently trapped on my MacBook, and I need to make a backup so I can get it onto and AWS server but I am totally stumped. I'm completely self taught, and find MySql incredibly dense and hard to understand, so can anyone please help me out? Thanks. Ian
MySql Workbench does a pretty good job of logging when there is an issue. You should be able to find out what your specific issue is by reviewing the workbench log file.
OS
Location
Windows
%AppData%\MySQL\Workbench\log\wb.log
macOS
~username/Library/Application Support/MySQL/Workbench/log/wb.log
Linux
~username/.mysql/workbench/log/wb.log
You can also locate your log files (all of them) by going to the Workbench menu:
Help → Locate Log Files
You will likely see an error at the bottom of the file indicating the problem. For example:
17:07:07 [ERR][wb_admin_export.py:get_mysqldump_version:126]: Could not parse version number from mysqldump.exe:
file not found

Where might a bento.bentodb database file be hiding on MacOS?

Bento was Apple/FileMaker's consumer database product that was discontinued in 2013. Its performance has degraded with each successive release of MacOS, but my wife has continued to use it on her MacBook Pro, up through MacOS 10.9.5. Today, all of her records vanished from with the Bento interface.
In trying to find them, I researched the default location for the Bento database, and found that it is supposedly in Home>Library>Application Support>Bento>bento.bentodb. However, looking at the file in that location on her computer shows a 1mb file that was last updated in 2013. Checking Time Machine backups for several months shows the same file, same date, same size in that location. Which doesn't make any sense, as she uses the application (and thus the database) every day.
I did a standard Finder search for the filename, and found only that one instance. But logic tells me that there MUST be another database, somewhere on the disk, that is the one actually being used. But I have no idea where or how to find it. Help?!
The location is right. That's where the Bento database is by default and you don't seem to have changed it.
Have you tried importing it to FileMaker 10,11, or 12? These versions can import Bento data directly.
Alternatively, the Bento Migration Tool can convert your Bento data to FileMaker tables in the .fmp12 format, which can be opened by all versions from 12-16.
More here.

Installing Oracle form and got an error. Cannot launch the installer (555)

Oracle form downloaded at:
http://www.oracle.com/technetwork/developer-tools/forms/downloads/index.html
When I ran the file setup_fmw_12.2.1.3.0_fr_win64.exe,
it gave me an error "Cannot launch the installer (555)".
fmw_12.2.1.3.0_fr_win64_Disk1_2of2 <-- Folder
setup_fmw_12.2.1.3.0_fr_win64-2.zip
fmw_12.2.1.3.0_fr_win64_Disk1_1of2 <-- Folder
setup_fmw_12.2.1.3.0_fr_win64.exe
Even though this relates to the installation of a developer tool, most would consider this particular type of question as generally off topic for stackoverflow. Your question also contains too little information to determine what the problem really is.
However, let's just mention some obvious things to see if it helps you solve your own problem:
Did you try the setup on another computer (or a virtual machine). This could be a good way to avoid the whole problem rather than spending a lot of time trying to fix it.
Did you locate any log files for the failed install?
A quick look seems to indicate that you can find log files at: %SystemDrive%\Program Files\Oracle\Inventory\logs (%SystemDrive% is normally C:\).
Or %SystemDrive%\Program Files (x86)\Oracle\Inventory\logs for 32bit installers on 64 bit systems).
Found in the troubleshoot section here - have a look yourself too - read from the top.
And the most obvious of all: did you contact Oracle support or search their user community or knowledge bases? Somebody will have seen this problem before. Looks like you need to register: https://support.oracle.com/
A quick search reveals that the Oracle Universal Installer is a Java based installer. Could Java be broken on the box you install on? (looks like the launcher should install the runtime automatically, but this could fail due to special conditions on the box. Try on a clean virtual machine). How to check whether java is installed on the computer.
Try disabling your anti-virus as well before running the setup on the problem box. Some setups even try to access the Internet during installation, and then your firewall could be a problem too. I would hate to turn that off though.

What is the easiest way to open/view a Firebird database?

I have a .FDB Firebird file from an commercial Application we don't use anymore. It contains my customer data an I want to export or access it in some manner.
I have seen many procedures that require Firebird server installation, JDBC, ODBC drivers, GUI (I tried RazorSQL) tools that are just to complex for me to handle. I have been hitting into one problem or another every time, solve point by point but still hitting the wall.
Does anyone have a quick and easy way to simply open it (preferably on Mac OSX)? One that a non-Firebird / database tech guy can actually follow?
I finally found what was the issue.
It turns out that the path file to the .FBD file was the culprit. Mine had Portuguese accented words on the folder name. It seems like isql does not accept it. I moved the file to Desktop and the following command worked fine.
SQL> CONNECT /Users/user_name/Desktop/db_name.FDB;
Still haven't been able to use any Razorsql Gui tool though. It seems to have an issue with the JDBC driver.

Oracle DataAccess Error - Object reference not set to an instance of an object

We have one user (a developer) who is experiencing issues with Oracle DataAccess based on whether they are setup as a local administrator on their PC or not.
I dont know the inner workings of Oracle, so im really struggling to figure this one out. My research seems to suggest the problem is around the oracle.dataaccess.dll and maybe linked to the fact that they have Visual Studio 2012 installed.
If the user is configured as a local administrator on thier PC, and they try to run an application they get the following error:
'Object reference not set to an instance of an object.
Source: Oracle.DataAcess.GetData.GetUserPermissions.wsMS_load
If they are NOT an administrator, the application runs (but they have other problems related to not being as admin - they need admin permissions).
I have a feeling it is something to do with Oracle trying to look at the incorrect version of the .dll. I have read some things about accessing the GAC and getting Oracle to reference a different version of the .dll, but as this stuff does not mean a lot to me I am getting out of my depth.
Your help is appreciated!
I have seen problems with running as admin -vs- a restricted account in the past.
The problems I have seen are related to permissions of oracles install directory on the machine. The quickest way to test for this problem is to tnsping your database using both users on the machine.
If one of them fails they most likely don't have rights to see libraries and config.
However, I have never seen this error message in association with this.
I would have the developer narrow down his code to a few lines that reproduce the problem and then edit the question with those lines. It would greatly increase your chances of get a resolution to the problem.
I had the exact same problem with a VS 2012 and oracle.dataAccess.dll In a software my team developed. When looking dipper to the code and spending lots of hours configuring all kinds of stuff eventually turns out it was a compiling error due to a 64x/86x bit mismatch. Your exception is quite general but I hope this works for you too.

Resources