What is the server path for standalone ORDS running Oracle APEX? - oracle

I am trying to put a php file on a folder and call it using UTL_HTTP.REQUEST from SQL and in APEX. I used xampp software to host it and it works. So I was wondering if there is a way to put in a file "somewhere" in ORDS or Database directory so I could access it in the same way? Or is there any way to access a file from URL like "localhost:8080/ords/[my folder and file name]"
My Config:
Database 19c
APEX 22.1
ORDS 21.4

You can configure basic file access by configuring a document root, but this is file access not Web CGI style components like PHP, Pything, Perl etc etc.
If it is just file access you control that via the standalone.properties file
standalone.doc.root=/u01/files/standalone/doc_root

Related

Oracle Apex,is it possible to connect an excel file or csv from a remote server?

I am creating a web app using Oracle apex and I need to draw data from an excel file or CSV file from a remote server, is the remote server option of oracle apex capable of that, is it possible to be done and how? thanks in advance.
If you are talking about the "Data Loading" page type, then yes - the Wizard creates several pages; one of them lets you browse for the source file. If the remote server's directory is mapped on your computer, you'll see it while browsing for the file and use it as data source.

Oracle - Access a remote file to read

I have this very specific requirement.
My database server is running on some linux server X, where I have written some stored procedure which will read the file from a DIRECTORY and create an XML table based on the content of that xml file.
Now, The file in picture can come from any machine i.e. it is uploaded by user in Browser and then we need to process it with the stored procedure.
Is there a way I can access the file of my local machine from the database server without mount/ftp? I mean, is there any utility in Oracle which can access file system of the client to read the file content?
is there any utility in Oracle which can access file system of the client to read the file content?
No, there is not. PLSQL program cannot reach your client PC. You have to upload it to the server then can use UTL_FILE to interpret it.

How to read a file present in application server using External tables

How to read a file present in application server using external tables. I can't place the file in DB server as we are restricted from DB server.
According to the documentation, the data file for an external file must be visible to the server.
You access an external file via a DIRECTORY object in the database, which points to a directory on the db server.
Now, you can mount a drive so that it appears in the file system, but someone with access to the db server will probably have to do that.

view contents of a directory on Database Server

I have access to the Oracle 10g database, but not the Unix server. I would like to verify that a file exists on the server. Is there a way to use the "ls" command to view the contents of a directory on the Unix server? I don't think this is possible, but I want to be sure.
Note the file is located in a "directory" defined in the dba_directories view and my Oracle user (myusername) has Oracle read / write access to the "directory". This can be verified by looking at the dba_tab_privs view.
You can't do it from pl/sql but you can do it with java. There is an ask tom article that contains the java code at this link.
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584

could not create server file "c:/myimage.jpg" using postgreSQL lo_export and delphi 7

im using Postgres 9.0 to save images into the database using 'lo_import' and
to export images using lo_export with an application using delphi 7.
everything works fine on my system but if i try the lo_export on other system i get an error
the query im using is
'SELECT lo_export(fishimages.imagevalue,'c:/leeUpdate.jpg') from fishimages where fishname=meckeral';
but it gives error on other systems and not mine.!!!
It's a write access problem. You are trying to create a file in a folder (which is C root in this case) without having a write access permission. Change the folder to a place which your SQL user has write access to or give your SQL user a write access to c:\

Resources