Error report:
ORA-22285: dla operacji GETLENGTH podano nieistniejący katalog lub plik
ORA-06512: przy "SYS.DBMS_LOB", linia 787
ORA-06512: przy "ORDSYS.ORDDATASOURCE", linia 217
ORA-06512: przy "ORDSYS.ORDDICOM", linia 49
ORA-06512: przy linia 1
ORA-06512: przy linia 4
22285. 00000 - "non-existent directory or file for %s operation"
*Cause: Attempted to access a directory that does not exist, or attempted
to access a file in a directory that does not exist.
*Action: Ensure that a system object corresponding to the specified
directory exists in the database dictionary, or
make sure the name is correct.
Tworzę taka tabelkę:
CREATE TABLE obrazy_med (id INTEGER PRIMARY KEY, pacjent VARCHAR2(30), dicom ordsys.ORDDicom);
Ładowanie obiektu DICOM:
DECLARE temp ordsys.ORDDicom; BEGIN INSERT INTO obrazy_med (id, dicom) VALUES (55, ordsys.ORDDicom('FILE', 'DICOMY', 'sample.dcm', 0)) RETURNING dicom INTO temp; temp.import(1); UPDATE obrazy_med SET dicom=temp WHERE id=55; COMMIT; END; /
Czy może ktoś powiedzieć co jest źle i jak poprawić