There is a folder (locally) C: \ LB into which someone uploads files. I need (periodically, after a certain time) to get the names of all these files, and if these names contain the name that I need, I attach this file (.PDF) to a specific record in the table.
While I am working on getting a list of file names:
create global temporary table DIR_LIST (filename varchar2(255)) on commit delete rows; / create or replace and compile java source named "DirList" as import java.io.*; import java.sql.*; public class DirList { public static void getList(String directory) throws SQLException { File path = new File( directory ); String[] list = path.list(); String element; for(int i = 0; i < list.length; i++) { element = list[i]; #sql { INSERT INTO DIR_LIST (FILENAME) VALUES (:element) }; } } } / create or replace procedure get_dir_list( p_directory in varchar2 ) as language java name 'DirList.getList( java.lang.String )'; DB 11g XE and I can not deploy JAVA inside. Writing an external JAR-nickname is not entirely relevant. I understand you need a sheduler and JOB, but all the forums say that you cannot write this on pure PL / SQL (get the file names and turn them into a table). OK. Is it possible to deploy .NET classes inside a database by wrapping it in a procedure? As with the classes java. I'm sure someone definitely came across this. I would be grateful for the tips!