如何增加 Oracle SQL Developer 中的缓冲区大小以查看所有记录?

发布于 2024-12-26 10:20:40 字数 82 浏览 3 评论 0原文

如何增加Oracle SQL Developer中的缓冲区大小以查看所有记录(默认情况下似乎设置了一定的限制)?任何屏幕截图和/或提示都会非常有帮助。

How to increase buffer size in Oracle SQL Developer to view all records (there seems to be a certain limit set at default)? Any screen shots and/or tips will be very helpful.

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

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

发布评论

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

评论(12

凉城 2025-01-02 10:20:40

https://forums.oracle.com/forums/thread.jspa?threadID=447344

相关部分内容如下:

没有设置可以获取所有记录。你不会喜欢 SQL
开发人员无论如何都要在大桌子上获取几分钟的时间。如果,对于 1
特定表,想要获取所有记录,可以做Control-End
在结果窗格中转到最后一条记录。你可以计时
自己获取时间,但这会因网络速度和
拥塞时,程序(SQL*Plus 会比 SQL Dev 更快,因为
更简单)等等。

工具栏上还有一个按钮,是“Fetch All”按钮

FWIW 检索所有记录时要小心,对于非常大的记录集,可能会导致出现各种内存问题等。

据我所知,SQL Developer 在幕后使用 JDBC 来获取记录,并且限制由 JDBC 设置setMaxRows() 过程,如果您可以更改它(它可能不受支持),那么您也许能够更改 SQL Developer 的行为。

https://forums.oracle.com/forums/thread.jspa?threadID=447344

The pertinent section reads:

There's no setting to fetch all records. You wouldn't like SQL
Developer to fetch for minutes on big tables anyway. If, for 1
specific table, you want to fetch all records, you can do Control-End
in the results pane to go to the last record. You could time the
fetching time yourself, but that will vary on the network speed and
congestion, the program (SQL*Plus will be quicker than SQL Dev because
it's more simple), etc.

There is also a button on the toolbar which is a "Fetch All" button.

FWIW Be careful retrieving all records, for a very large recordset it could cause you to have all sorts of memory issues etc.

As far as I know, SQL Developer uses JDBC behind the scenes to fetch the records and the limit is set by the JDBC setMaxRows() procedure, if you could alter this (it would prob be unsupported) then you might be able to change the SQL Developer behaviour.

離殇 2025-01-02 10:20:40

选择工具>首选项>数据库/高级

有一个用于 Sql Array Fetch Size 的输入字段,但它只允许设置最多 500 行。

Select Tools > Preferences > Database / Advanced

There is an input field for Sql Array Fetch Size but it only allows setting a max of 500 rows.

埖埖迣鎅 2025-01-02 10:20:40

这很简单,但需要 3 个步骤:

  1. 在 SQL Developer 中,在“工作表”中输入查询并突出显示它,然后按 F9 运行它。前 50 行将被提取到“查询结果”窗口中。
  2. 单击“查询结果”窗口中的任意单元格即可将焦点设置到该窗口。
  3. 按住 Ctrl 键并点击“A”键。

所有行都将被提取到“查询结果”窗口中!

It is easy, but takes 3 steps:

  1. In SQL Developer, enter your query in the "Worksheet" and highlight it, and press F9 to run it. The first 50 rows will be fetched into the "Query Result" window.
  2. Click on any cell in the "Query Result" window to set the focus to that window.
  3. Hold the Ctrl key and tap the "A" key.

All rows will be fetched into the "Query Result" window!

他不在意 2025-01-02 10:20:40

如果您正在运行脚本而不是语句,则可以通过选择“工具/首选项/工作表”并增加“脚本中要打印的最大行数”来增加此值。默认值为 5000,您可以将其更改为任意大小。

If you are running a script, instead of a statement, you can increase this by selecting Tools/Preferences/Worksheet and increasing "Max Rows to print in a script". The default is 5000, you can change it to any size.

柠檬 2025-01-02 10:20:40

您还可以手动编辑首选项文件,将数组获取大小设置为任何值。

我的位于 C:\Users\\AppData\Roaming\SQL Developer\system4.0.2.15.21\o.sqldeveloper.12.2.0.15.21\product-preferences.xml 上赢 7 (x64)。

对于我来说,该值位于第 372 行,读取

我已将其更改为 2000,它对我有用。

我必须重新启动 SQL Developer。

You can also edit the preferences file by hand to set the Array Fetch Size to any value.

Mine is found at C:\Users\<user>\AppData\Roaming\SQL Developer\system4.0.2.15.21\o.sqldeveloper.12.2.0.15.21\product-preferences.xml on Win 7 (x64).

The value is on line 372 for me and reads <value n="ARRAYFETCHSIZE" v="200"/>

I have changed it to 2000 and it works for me.

I had to restart SQL Developer.

清风疏影 2025-01-02 10:20:40

在查询窗口中获取前 50 行后,只需单击任意列即可将焦点放在查询窗口上,然后选择后按 ctrl + end

这将加载完整的结果集(所有行) )

After you fetch the first 50 rows in the query windows, simply click on any column to get focus on the query window, then once selected do ctrl + end key

This will load the full result set (all rows)

ぇ气 2025-01-02 10:20:40

按 f5 而不是 f9 来运行查询。它会一次性给你所有的结果......

press f5 for running queries instead of f9. It will give you all the results in one go...

浅暮の光 2025-01-02 10:20:40

工具->首选项->数据库 -> 工作表

在“脚本中打印的最大行数”中输入所需的大小,

保存更改。

Tools-> Preferences -> Database ->Worksheet

Enter desired size in "Max rows to print in a script"

Save changes.

赢得她心 2025-01-02 10:20:40

在查询窗口中检索前 50 行后,只需单击一列即可将焦点放在查询窗口上,然后选择后执行 ctrl + pagedown

这将加载完整结果集(所有行)

after you retrieve the first 50 rows in the query windows, simply click a column to get focus on the query window, then once selected do ctrl + pagedown

This will load the full result set (all rows)

苦行僧 2025-01-02 10:20:40

这是另一个秘籍:

如果您并不真正需要所有行,请限制您的查询。即

WHERE rownum <= 10000

然后单击结果的任何单元格并通过键盘 CTRL+END 执行操作。这将强制 SQL Developer 滚动直到查询的底部结果。

这样做的优点是保持默认行为并按需使用。

Here is another cheat:

Limit your query if you don't really need all the rows. i.e.

WHERE rownum <= 10000

Then click on any cell of the results and do from your keyboard CTRL+END. This will force SQL Developer to scroll until the bottom result of your query.

This has the advantage of keeping the default behavior and use this on demand.

怪异←思 2025-01-02 10:20:40

我知道这有点晚了,但只需使用操作系统快捷方式选择全部(macOS 上的 Command + a 或 Windows 上的 Ctrl + a),这将强制获取所有结果以选择所有行:)

I know this is a bit late, but just use your OS shortcut to select all (Command + a on macOS or Ctrl + a on Windows), this will force fetch all results to select all rows :)

只等公子 2025-01-02 10:20:40

在 PL SQL Developer 13.0.6 上,转到配置 >偏好。在左侧菜单中查找“SQL 窗口”。有一个名为“每页记录数”的选项。我将其更改为“所有记录”,它就成功了。

On PL SQL Developer 13.0.6, go to Configure > Preferences. On the left side menu look for SQL Window. There is an option called Records per Page. I changed it to "All records" and it does the trick.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文