How do I export a LibreOffice Base database table with very small numbers? (... using scientific notation?) - libreoffice-base

https://help.libreoffice.org/Common/Importing_and_Exporting_Data_in_Base
tells me to export by copy and pasting into LibreOffice Calc.
This works in general. But my numbers in the database are very small and best expressed in "scientific notation". When I copy and paste my table to Calc nearly all of them become 0.0. While in the database they are 0.0000002.
Where can I change the accuracy of the data copied to clipboard? Or set it to be in "scientific notation"(2.23413E-08)
If I can't get my numbers in the exact representation back into a .csv file it does not make sense to store them in a database at all.

In LibreOffice Calc (tested with 5.2.3.3) Ctrl+Shift+F4 opens a pane of registered data bases. From there one can drag and drop tables, queries or views into the spreadsheet. The numbers are then preserved.
If the desired database is not yet registered go to Tools -> Options -> LibreOffice Base -> Databases -> New ... and follow the wizard.
From: https://forum.openoffice.org/en/forum/viewtopic.php?f=75&t=18511

Related

Can we find a table that is used in a set of FMBs without opening it individually in Oracle Forms?

I am using both Oracle Forms version 11g and 12c.
Is it possible to find a table for e.g table1 used in the Oracle Forms application screens including LOV's without opening each FMB individually and searching in it.
Totally there are around 50-75 FMBs in the application.
Thanks
While Forms was a new software product, back then in its 3.0 version (or even lower), you could choose whether you'll keep the form source
in the database or
in that case, you could have written a query which selects data from the data dictionary and - hopefully - extract tables' names
in file system
file extension was .INP (not .FMB) and it was a textual file; it means that you could even create a form using text editor! Nobody probably did that, but hey - you could have done it.
.FMB is no longer textual file. Yes, you can open it it a text editor (such as Notepad++) and search for e.g. FROM (because any table used in form's PL/SQL units or LoVs is part of a SELECT statement which requires the FROM keyword) and get something like this:
Yes, you'll get "duplicates" if any table is referenced more than once.
Another option is to write a program which will parse the .FMB file and extract tables' names (I can't help with that, though).

Power BI Desktop Matrix Visualization - Columns within a column

The above image is from an excel file. I would like to recreate that in Power BI Desktop. By using the Matrix Visualization in Power BI Desktop I did only manage to create this:
Another problem is that I can't add the Shipped Date Year again since it is already added.
Thanks.
The most simple way to get the same data is by adding Records twice to the Values, once as a Sum and once as an Average. The layout will be slightly different though:
To get the original layout you had with PowerBI I suspect you need to jump through quite some hoops, and modify your data sets.
Alternatively, Why make things hard? Just drop in two matrixes:

Large data in Result in Toad - Oracle

Ran a script that fetched me several million records. The file is too large for Excel. Smaller size results are easy to export. I need to save this result so that I can pull it into MS Access. Is it possible to save the file of several million records to Access or Excel?
Regards,
D.O.
You could import directly by ms-access using an import based on ODBC using extenal data tools
But remember that MS_ACCES allow Database (.mdb)with max file size of
2 GB total for all objects in the database (data, forms, reports, indices, macros, modules, etc.)
see this for MS-Access maximun capacities http://www.databasezone.com/techdocs/acclimit.html
I had a similar issue at work, an external auditor has requested large data sets in excel format.
After running my query, I get the result in a data grid. The grid has a toolbar at the top, the third icon has a tool tip that says Export Dataset.
Clicking on it opens the Export Dataset dialog, that has an "Export format" drop-down that offers several options.
When I choose "Excel File", toad creates an .xls file and writes data in it. This works if the data set is less that 65,535 rows.
When I choose "Excel Instance", toad launches an instance of excel 2013, and I was able to export 3 million rows this way.

How to get backup from from a very populated table using SQLDEVELOPER

I have a table containing more than 6,000,000 records. When I use the export feature of SQLDEVLPER to get backup, SQLDEVELOPER generates a sql files as big as 8GB which I cannot open it in the SQLDEVELOPER or Notepad or ... because it makes the memory full!
Please guide me know how I can divide it to smaller parts?
Regards
Forget notepad for anything but the most basic editing on small files. You should look into a file viewer/editor that is designed for large files. For viewing very large files, I've had great success with the V File Viewer . For editing, I often use Textpad, but I don't usually open a file this big for editing, just viewing.
It also begs the question WHY you are opening the entire file, as you can just do a "more" on the file (or "less" in linux) to have a peek (check format maybe). It should also be said that a DBA should be doing backups (rman or data pump maybe) of any production data, but anyway.

Eliminate sort order on Data tab of SQL Developer table view

In Oracle SQL Developer, one can list the data in a table using the Data tab when viewing a table. There is also a 'Sort...' button to set the sort order of the data you are viewing. This can be very handy for viewing some data on the fly.
The problem: I set a sort order for viewing a particular table which is not supported by the indexes on that table. It seems that SQL Developer does the sort on the fly when you go to view that data. At first the delay wasn't too bad. But the table has grown and now it takes forever. There is no way to stop it except by force quitting SQL Developer, losing anything unsaved. (If you know another way to stop this sort, let me know!) So, I should change the viewing sort order to something else, but you can only access the Sort... button when viewing the data.
Is there another way to delete the viewing sort order besides viewing the data?
Where does SQL Developer store this information?
Any way to stop the sorting of the data after clicking on the data tab while waiting for it to appear?
Easy to fix (at least in v1.5.5, which is what I'm using). There's a prefs option to reset it, read about it here:
https://forums.oracle.com/forums/thread.jspa?threadID=860431
Go to Tools > Preferences > Database > ObjectViewer Parameters and select the Clear button. This will clear the sort settings.
I haven't found a command from the GUI to eliminate the sort order but you can use this workaround:
Go in the sqldeveloper settings folder. On M$ Windows is located in %HOME_USER%/Application Data/SQL Developer
Perform a full text search specifying the name of the sorted column. If the column's name is too common (ex: data) specify another column with a different name in the same table. You will find one or more xml files matching your searching criteria. Those files are table descriptors.
At the end of the xml descriptor search for the taf element with name 'orderByClause'. If it contains the name of the column you want eliminate from sorting replace the line with an empty element ()
Restart sqldeveloper and ... sort is not there anymore!
Hope this helps
Cheers,
Fabrizio Fortino
If you are willing to take a little risk, you can follow start by doing Fabrizio's suggestion, and then clean house as follows:
Go in the sqldeveloper settings folder. On M$ Windows is located in %HOME_USER%/Application Data/SQL Developer
Perform a search using the following mask "*tablesettings.xml".
Delete the files that were returned to you.
Restart sqldeveloper and your problem is gone.
To be safe, you might want to just move those files to a quarantine directory.
I believe there isn't currently a way, but there is a suggested enhancement not to retain the filter between sessions that you can vote on here on the SQL Developer forum
Go in the sqldeveloper settings folder. On M$ Windows is located in %HOME_USER%/Application Data/SQL Developer
On SQLDEveloper Version 3.0.03 (and up I guess) search for *GridSettings.xml
Find the file containing xml related to your table/view.
Either delete the file or remove only the lines corresponding to the columns previously deleted from the table. You need to remove lines from ; ;
You don't need to restart sqldeveloper. Just disconnecting and connectting back did it for me.

Resources