ABAP 错误提示如下:
查找临时表空间,不存在。
找到相应表空间的数据文件是存在的。
应该是在数据库迁移时,临时空间没有正常迁移,导致数据文件没有应用到表空间。
因为是临时空间没有业务数据,可以重建的方式来处理
--查询表空间文件
select tablespace_name , file_name from dba_temp_files;
-- SAP 临时表空间 PSAPTEMP 丢失 的处理方法
-- 1. 先建个临时的表空间 temp01, 并修改为默认临时表空间。
create temporary tablespace temp01 tempfile '/oracle/TST/sapdata1/temp_1/temp01' size 100M autoextend off;
alter database default temporary tablespace temp01;
-- 2. 删除旧的 PSAPTEMP (因为文件丢失关联,这里并不会自动把相应的文件删除) 需要到系统目录制 rm 删除
drop tablespace PSAPTEMP including contents and datafiles cascade constraints;
-- 3. 创建新的临时表空间,并指定为默认临时空间
create temporary tablespace PSAPTEMP tempfile '/oracle/TST/sapdata1/temp_1/temp.data1' SIZE 50M AUTOEXTEND ON NEXT 50M MAXSIZE 2048M EXTENT MANAGEMENT LOCAL;
alter database default temporary tablespace PSAPTEMP;
-- 4.删除 临时用的 空间temp01 及关联文件。
drop tablespace temp01 including contents and datafiles cascade constraints;
查询表空间,恢复正常
运行原 abap 程序能正常运行。