与MySQL相比,Oracle和MSSQL中的thread_stack是什么?


0

我在MySQL中使用递归存储过程,并且必须thread_stack将my.ini中的值从128K更改为512K。

我现在需要将相同的过程部署到Oracle和Microsoft SQL Server。

MySQL的SQLServer中有哪些等效的配置值thread_stack

Answers:


0

这是我在SQL Server中找到的:

http://blogs.msdn.com/b/arvindsh/archive/2008/08/24/sql-worker-thread-stack-sizes.aspx

http://www.sqlskills.com/blogs/jonathan/how-much-memory-does-my-sql-server-actually-need/

总之,32位512K,64位Windows 2M。

对于Oracle,它在公共文档中不可用,但在本说明的支持站点上对其进行了解释:Oracle数据库和Windows NT内存体系结构,技术公告(Doc ID 46001.1)。您可以使用ORASTACK实用程序列出(或更改)线程堆栈大小(称为每个线程的预留内存)。堆栈的默认大小取决于版本和平台。

例如,在64位Windows上,64位11.2和12.1版本的默认堆栈大小为3.1M和3.5M:

11.2:

orastack X:\oracle\base\product\db11203ee\BIN\oracle.exe

Dump of file X:\oracle\base\product\db11203ee\BIN\oracle.exe

Current Reserved Memory per Thread  = 3100000
Current Committed Memory per Thread = 12160

12.1:

orastack C:\oracle\base\product\db12101ee\BIN\oracle.exe

Dump of file C:\oracle\base\product\db12101ee\BIN\oracle.exe

Current Reserved Memory per Thread  = 3500000
Current Committed Memory per Thread = 12160

32位Windows上的11.2,1M:

orastack C:\oracle\product\11.2.0\dbhome_1\BIN\oracle.exe

Dump of file C:\oracle\product\11.2.0\dbhome_1\BIN\oracle.exe

Current Reserved Memory per Thread  = 1048576
Current Committed Memory per Thread = 4096
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.