windchill 报错 ORA-01653: unable to extend table PLMLINK11.MISCLOGEVENTS by 1024 in tablespace USERS
这是需要扩充表空间了。
检查表空间
-- 检查表空间
SELECT UPPER(F.TABLESPACE_NAME) "表空间名",
D.TOT_GROOTTE_MB "表空间大小(M) ",
D.TOT_GROOTTE_MB - F.TOTAL_BYTES "已使用空间(M)",
TO_CHAR(ROUND((D.TOT_GROOTTE_MB - F.TOTAL_BYTES) / D.TOT_GROOTTE_MB * 100,
2),
'990.99') "使用比",
F.TOTAL_BYTES "空闲空间(M) ",
F.MAX_BYTES "最大块(M) "
FROM (SELECT TABLESPACE_NAME,
ROUND(SUM(BYTES) / (1024 * 1024), 2) TOTAL_BYTES,
ROUND(MAX(BYTES) / (1024 * 1024), 2) MAX_BYTES
FROM SYS.DBA_FREE_SPACE
GROUP BY TABLESPACE_NAME) F,
(SELECT TABLESPACE_NAME,
ROUND(SUM(BYTES) / (1024 * 1024), 2) TOT_GROOTTE_MB
FROM SYS.DBA_DATA_FILES
GROUP BY TABLESPACE_NAME) D
WHERE D.TABLESPACE_NAME = F.TABLESPACE_NAME
ORDER BY 4 DESC;
发现USERS表空间快达到32G了
查询USERS表空间位置
-- 查看表空间容量与位置
SELECT D.TABLESPACE_NAME,
D.FILE_NAME,
D.AUTOEXTENSIBLE,
D.BYTES,
D.MAXBYTES,
D.STATUS
FROM DBA_DATA_FILES D
WHERE D.TABLESPACE_NAME = 'USERS';
增加表空间
初始表空间越大,执行时间越长
-- 增加表空:初始为1G,每次增加10M,最大增加到32G
alter tablespace USERS add datafile 'D:\PTC\WINDCHILL_12.0\OCU\ORADATA\WIND\WINDUSERS03.DBF' size 1g autoextend on next 10m maxsize unlimited;
标签:1024,NAME,BYTES,TABLESPACE,空间,USERS,扩充,windchill
From: https://www.cnblogs.com/w1920/p/18561053