消除 SQL Developer 表视图的“数据”选项卡上的排序顺序

发布于 2024-07-10 17:31:16 字数 454 浏览 10 评论 0原文

在 Oracle SQL Developer 中,查看表时可以使用“数据”选项卡列出表中的数据。 还有一个“排序...”按钮可设置您正在查看的数据的排序顺序。 这对于动态查看一些数据非常方便。

问题:我设置了查看特定表的排序顺序,但该表上的索引不支持该排序顺序。 当您查看该数据时,SQL Developer 似乎会即时进行排序。 起初,延迟并不算太糟糕。 但桌子已经长大了,现在需要很长时间。 没有办法阻止它,除非强制退出 SQL Developer,丢失任何未保存的内容。 (如果您知道停止这种排序的另一种方法,请告诉我!)因此,我应该将查看排序顺序更改为其他顺序,但您在查看数据时只能访问“排序...”按钮。

除了查看数据之外,还有其他方法可以删除查看排序顺序吗?

SQL Developer 在哪里存储这些信息?

在等待数据出现时单击数据选项卡后,有什么方法可以停止数据排序吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

小忆控 2024-07-17 17:31:16

易于修复(至少在 v1.5.5 中,这是我正在使用的)。 有一个首选项选项可以重置它,请在此处阅读:
https://forums.oracle.com/forums/thread.jspa?threadID= 860431

转到“工具”> 首选项> 数据库> ObjectViewer 参数并选择清除按钮。 这将清除排序设置。

输入图片此处描述

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

心凉 2024-07-17 17:31:16

我还没有找到 GUI 中的命令来消除排序顺序,但您可以使用此解决方法:

  1. 进入 sqldeveloper 设置文件夹。 在 M$ Windows 上,位于 %HOME_USER%/Application Data/SQL Developer
  2. 执行全文搜索,指定已排序列的名称。 如果列的名称太常见(例如:数据),请在同一表中指定具有不同名称的另一列。 您将找到一个或多个符合您的搜索条件的 xml 文件。 这些文件是表描述符。
  3. 在 xml 描述符末尾搜索名为“orderByClause”的 taf 元素。 如果它包含您想要从排序中删除的列的名称,请将该行替换为空元素 ()
  4. 重新启动 sqldeveloper 并且...排序不再存在!

希望这有帮助

干杯,
法布里齐奥·福蒂诺

I haven't found a command from the GUI to eliminate the sort order but you can use this workaround:

  1. Go in the sqldeveloper settings folder. On M$ Windows is located in %HOME_USER%/Application Data/SQL Developer
  2. 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.
  3. 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 ()
  4. Restart sqldeveloper and ... sort is not there anymore!

Hope this helps

Cheers,
Fabrizio Fortino

囍孤女 2024-07-17 17:31:16

如果您愿意冒一点风险,您可以按照 Fabrizio 的建议开始,然后按如下方式进行清理:

  1. 进入 sqldeveloper 设置文件夹。 在 M$ Windows 上,位于 %HOME_USER%/Application Data/SQL Developer
  2. 使用以下掩码“*tablesettings.xml”执行搜索。
  3. 删除返回给您的文件。
  4. 重新启动 sqldeveloper,问题就消失了。

    • 为了安全起见,您可能只想将这些文件移至隔离目录。

If you are willing to take a little risk, you can follow start by doing Fabrizio's suggestion, and then clean house as follows:

  1. Go in the sqldeveloper settings folder. On M$ Windows is located in %HOME_USER%/Application Data/SQL Developer
  2. Perform a search using the following mask "*tablesettings.xml".
  3. Delete the files that were returned to you.
  4. Restart sqldeveloper and your problem is gone.

    • To be safe, you might want to just move those files to a quarantine directory.
余罪 2024-07-17 17:31:16

我相信目前没有办法,但有一个建议的增强功能,可以在您可以投票的会话之间保留过滤器 在 SQL 开发人员论坛上

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

許願樹丅啲祈禱 2024-07-17 17:31:16
  1. 进入 sqldeveloper 设置文件夹。 在 M$ Windows 上位于 %HOME_USER%/Application Data/SQL Developer
  2. 在 SQLDEveloper 版本 3.0.03(我猜是以上版本)上搜索 *GridSettings.xml
  3. 找到包含与表/视图相关的 xml 的文件。
  4. 删除该文件或仅删除与先前从表中删除的列相对应的行。 您需要从 ; 中删除行 ;
  5. 您不需要重新启动 sqldeveloper。 只需断开连接并重新连接就可以了。
  1. Go in the sqldeveloper settings folder. On M$ Windows is located in %HOME_USER%/Application Data/SQL Developer
  2. On SQLDEveloper Version 3.0.03 (and up I guess) search for *GridSettings.xml
  3. Find the file containing xml related to your table/view.
  4. Either delete the file or remove only the lines corresponding to the columns previously deleted from the table. You need to remove lines from ; ;
  5. You don't need to restart sqldeveloper. Just disconnecting and connectting back did it for me.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文