>>2WETP000 16:07:14: Retcode 1: error in DDL statement for "PATHISTORY " - repeat
2EETP345 16:07:26: Retcode 1: SQL-error "1157-ORA-01157: cannot identify/lock data file 256 - see D
2EETP345 BWR trace file
2EETP345 ORA-01110: data file 256: '/oracle/H01/oradata/sapdata2/temp_2/temp.data2'" in DDL stateme
2EETP345 nt for "PATHISTORY<<
I see issue is at the database level.
Have you checked the Oracle alert log?
Check the existence of the temp file /oracle/H01/oradata/sapdata2/temp_2/temp.data2
It looks strange that the sapdata2 is located inside oradata.
If PSAPTEMP tablespace is not correctly created then fix that issue and update SPAM