Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 489
Justsalt Avatar asked Jan 02 '09 17:01

Justsalt


People also ask

How do I remove a filter in SQL Developer?

Click the Remove Filter icon on the toolbar above the table to remove the filter from the displayed table.

What is the default sort order in Oracle?

By default, the ORDER BY clause sorts rows in ascending order whether you specify ASC or not. If you want to sort rows in descending order, you use DESC explicitly.

How do I sort in SQL Developer?

The ORDER BY keyword is used to sort the result-set in ascending or descending order. The ORDER BY keyword sorts the records in ascending order by default. To sort the records in descending order, use the DESC keyword.

What is delete persisted settings SQL Developer?

The settings column widths, column sorts, and column positions are only for customization of the query result display and may be deleted by selecting Delete Persisted Settings, as shown in Figure 19. The Delete Persisted Settings option also may be selected from the Query Result toolbar, as shown in Figure 20.


1 Answers

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.

enter image description here

like image 81
susanw Avatar answered Sep 18 '22 23:09

susanw