如何增加 Oracle SQL Developer 中的缓冲区大小以查看所有记录?
如何增加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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(12)
https://forums.oracle.com/forums/thread.jspa?threadID=447344
相关部分内容如下:
工具栏上还有一个按钮,是“
Fetch All
”按钮FWIW 检索所有记录时要小心,对于非常大的记录集,可能会导致出现各种内存问题等。
据我所知,SQL Developer 在幕后使用 JDBC 来获取记录,并且限制由 JDBC 设置
setMaxRows()
过程,如果您可以更改它(它可能不受支持),那么您也许能够更改 SQL Developer 的行为。https://forums.oracle.com/forums/thread.jspa?threadID=447344
The pertinent section reads:
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.选择工具>首选项>数据库/高级
有一个用于 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.
这很简单,但需要 3 个步骤:
所有行都将被提取到“查询结果”窗口中!
It is easy, but takes 3 steps:
All rows will be fetched into the "Query Result" window!
如果您正在运行脚本而不是语句,则可以通过选择“工具/首选项/工作表”并增加“脚本中要打印的最大行数”来增加此值。默认值为 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.
您还可以手动编辑首选项文件,将数组获取大小设置为任何值。
我的位于
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.
在查询窗口中获取前 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)
按 f5 而不是 f9 来运行查询。它会一次性给你所有的结果......
press f5 for running queries instead of f9. It will give you all the results in one go...
工具->首选项->数据库 -> 工作表
在“脚本中打印的最大行数”中输入所需的大小,
保存更改。
Tools-> Preferences -> Database ->Worksheet
Enter desired size in "Max rows to print in a script"
Save changes.
在查询窗口中检索前 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)
这是另一个秘籍:
如果您并不真正需要所有行,请限制您的查询。即
然后单击结果的任何单元格并通过键盘
CTRL+END
执行操作。这将强制 SQL Developer 滚动直到查询的底部结果。这样做的优点是保持默认行为并按需使用。
Here is another cheat:
Limit your query if you don't really need all the rows. i.e.
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.
我知道这有点晚了,但只需使用操作系统快捷方式选择全部(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 :)
在 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.