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

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.

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

How do create a shortcut to get Oracle SQLDeveloper to open and connect to a database [duplicate]

I am writing a small DB utility. I would like to give the user the ability to open an instance of Oracle sqldeveloper directly from this utility. Is it possible to open Oracle sqldeveloper IDE that already connected to a specific DB?
Something like sqldeveloper USERID/PASSWORD#DATABASE
/? works rather than /h. There are options to override the cofiguration file so whether you can do that or not is probably determined by the facilities offered by the config file.
Luckily, yes. This is now possible using Oracle's ConnectionHelper extension.
It's a bit of hacky workflow, though. Hopefully they'll figure out a way to include in SQLDeveloper itself, because if management learns about adding a 'githubusercontent' repo they might misjudge the risks.
Also, be sure you make use of a pretty recent SQLDeveloper (20.2+).
But here goes:
In SQLDeveloper, add the following update source, by going to Help -> Check for Updates and hitting 'Add': https://raw.githubusercontent.com/bjeffrie/sqldev-update-center/master/update-center.xml
Select 'Connection Helper' and next-next-finish the wizard (you'll need to restart SQLDeveloper).
Go to Tools -> Preferences and in the left pane, click the node 'Connection Helper', then in the main pane enable 'Accept command line connections'. You don't need any of the other check boxes for what you're asking.
Close SQLDeveloper and start it from CLI: sqldeveloper -myCLIconnection=user/pw#host:port/service
[This is a combination of what's documented by Oracle's thatjeffsmith on his blog and what Oracle's Brian Jeffries put in Oracle's github repo.]
This is now possible with a free, open-source extension as long as you're using version 20.2 or higher of SQL Developer.
I have step-by-step instructions here
A quick GIF of it working...
It doesn't seem so. sqldeveloper.exe /h shows us possible launch parameters, and none of them seem to have anything in common with your demand.

Edit office document on server

We are going to develop a client-server application where all the office documents will be stored on the remote server.
The problem is that users need to edit these docs very often.
The standard solution is:
download
edit locally
upload
But it is very inconvenient and would cause high traffic, cause docs are very large.
Is there any solution to edit documents right on server?
E.g. some remote OpenOffice installation which we can connect somehow?
Thanks in advance!
Unless you can give your users RDP sessions on Windows or VNC (or X windows?) sessions on Linux you're going to be stuck with downloading the document to edit locally (in one form or another) then upload again.
There may be some HTTP/browser based solution but because it's HTTP you're going be to pulling all of the document back to the browser to edit then posting back to the server, it pretty much defeats the purpose.
As pointed out by Kev, one solution would be some sort of remote access software to access a copy of OpenOffice.org running on the server. There is for example a VNC viewer that will run as a Java applet in a browser (http://www.realvnc.com/support/javavncviewer.html ), that might do the trick.
Another option would be a server-based office package, a la Google docs. There are some available, but none with the full feature set of OpenOffice.org, so this is probably only an option if you can restrict to that feature set. If you can, it could work quite well.

Watir Excel call not working on virtual machine

I have a watir test that downloads some information from a web app to an Excel file, and I then open the file to confirm the contents. On my dev box everything works fine, but the scheduled automation runs (via Hudson) always fail attempting to open the Excel file. I have checked that the correct version of AutoITX3.dll is registered on both machines (Ruby 1.8, Watir 1.6.5). No other versions of AutoITx3 are registered on either machine. The error on the Hudson box is the one expected if the dll is NOT registered, but it is present in regedit in the same location as on my dev box. Both machines are WinXP.
Running the test manually on the Hudson box results in the same error -- unknown OLE server: 'Excel.Application' HRESULT error code:0x800401f3 Invalid class string.
I searched for similar errors and saw one instance where running on a virtual machine had caused similar problems, but only if the VM window was closed. I don't think this is a code error since it runs on the dev box. Any suggestions for debugging this?
TIA,
Sabrina
I find the use of Excel to be an antipattern in test automation. I know a lot of people like it, but if you're using that for automation then there are simpler ways to go about it. Consider using CSV with FasterCSV for the automation tests and checking anything into version control which I'm assuming you're using.
IMHO, you should only use Excel when a human is involved - i.e. you may a series of tests defined in CSV, but you edit them in Excel, save back and then diff against what's in a source control system, storing it as CSV.
Excel is useless to diff, so it doesn't store well in a source repo, there's no reason to install it on a CI box when CSV will do and do better.
That's my 2 cents anyhow. :)
Cheers,
Charley
I would do another search for the issue and leave Watir out of it. I can find several issues for 0x800401f3 associated with FoxPro, Perl, and Oracle.
Have a look at this article http://support.persits.com/show.asp?code=PS01032622
It names the possible causes for your error code.
bq. This error means that either the component has not been registered on the server or the ProgID passed to the Server.CreateObject method is misspelled. On Windows 2003 and XP, it may also mean a permission problem on a system registry key.
I think for you the last one is relevant:
bq. On Windows 2003 and XP, it may also mean a permission problem on a system registry key.
BTW, I googled for ":0x800401f3 Invalid class string." and this was the first result.
What are you trying to test?
That user can open downloaded file with Excel? How do you verify that automatically? With screen shot?
Or that some data is in the file? In that case I would verify contents of the file with something like roo.
I finally figured it out. What I thought was a working Excel install on the remote machine was instead the free Excel reader, which does not have the API hooks WIN32OLE looks for in the registry. Installed the full Excel program and now everything works. I knew the Universe would be consistent!

Oracle sqldeveloper - how to connect DB from command line

I am writing a small DB utility. I would like to give the user the ability to open an instance of Oracle sqldeveloper directly from this utility. Is it possible to open Oracle sqldeveloper IDE that already connected to a specific DB?
Something like sqldeveloper USERID/PASSWORD#DATABASE
/? works rather than /h. There are options to override the cofiguration file so whether you can do that or not is probably determined by the facilities offered by the config file.
Luckily, yes. This is now possible using Oracle's ConnectionHelper extension.
It's a bit of hacky workflow, though. Hopefully they'll figure out a way to include in SQLDeveloper itself, because if management learns about adding a 'githubusercontent' repo they might misjudge the risks.
Also, be sure you make use of a pretty recent SQLDeveloper (20.2+).
But here goes:
In SQLDeveloper, add the following update source, by going to Help -> Check for Updates and hitting 'Add': https://raw.githubusercontent.com/bjeffrie/sqldev-update-center/master/update-center.xml
Select 'Connection Helper' and next-next-finish the wizard (you'll need to restart SQLDeveloper).
Go to Tools -> Preferences and in the left pane, click the node 'Connection Helper', then in the main pane enable 'Accept command line connections'. You don't need any of the other check boxes for what you're asking.
Close SQLDeveloper and start it from CLI: sqldeveloper -myCLIconnection=user/pw#host:port/service
[This is a combination of what's documented by Oracle's thatjeffsmith on his blog and what Oracle's Brian Jeffries put in Oracle's github repo.]
This is now possible with a free, open-source extension as long as you're using version 20.2 or higher of SQL Developer.
I have step-by-step instructions here
A quick GIF of it working...
It doesn't seem so. sqldeveloper.exe /h shows us possible launch parameters, and none of them seem to have anything in common with your demand.

Resources