简体   繁体   English

oracle数据库中temp表空间的最大大小是多少?

[英]What is the maximum size of temp tablespace in oracle database?

Trying to execute the next command 尝试执行下一条命令

SELECT * FROM dba_temp_free_space 

I am getting an error: 我收到一个错误:

Error: ORA-01652: unable to extent temp segment by 128 in tablespace temp 错误:ORA-01652:无法在表空间临时中将临时段扩展128

and there are 32 GB of space is free, but when I ran a procedure I've got an error. 并且有32 GB的可用空间,但是当我运行一个过程时,出现了错误。 When I check autoextending of the temp tablespace, it says YES.. 当我检查temp表空间的自动扩展时,它说是。

What should I do to get maximum size of temp tablespace? 我应该怎么做才能获得临时表空间的最大大小?

I think you are focusing on a solution, not the problem. 我认为您正在关注解决方案,而不是问题。 A 32 GB tablespace should be adequate for most operations in a small OLTP database. 对于小型OLTP数据库中的大多数操作,32 GB的表空间应足够。 You have not told us much about what is running when you get the error so I can only supply some diagnostics and test queries. 当您收到错误消息时,您没有告诉我们太多的信息,所以我只能提供一些诊断和测试查询。 The maximum size of any tablespace could be as much as 128 Terabyte or as small as 32 Terabyte with 8k block size. 在8k块大小的情况下,任何表空间最大大小可以高达128 TB,也可以小至32 TB。

Try this query while your problem object is running: 在问题对象运行时尝试以下查询:

select TABLESPACE_NAME, BYTES_USED, BYTES_FREE from V$TEMP_SPACE_HEADER;

If you cannot change the problem object you can create a temporary tablespace group and add multiple temporary tablespaces to it. 如果您不能更改问题对象,则可以创建一个临时表空间组并向其中添加多个临时表空间。

Be sure to check what temporary tablespace the user who is running the object is using with a command like this: 确保使用如下命令检查运行对象的用户正在使用哪些临时表空间:

ALTER USER scott TEMPORARY TABLESPACE temp;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM