I am using a procedure to generate a .txt file inside my machine, but what I want is when the file is generated it'll be saved inside an IBM I series database and not inside mi machine
I am new to genexus and to IBM Iseries database so I don't know how I can achieve that.
Am using .Net and genexus 10 V3
You can generate the .txt file and then save it in the iSeries in a blob field. In the case that you need to do anything with the file inside the DB you can convert it to base64 before sending it to the iSeries and save it in a longvarchar field.
Related
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.
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.
Situation
I have a CSV file called inventory.csv located on an Oracle database server (2008 R2 Enterprise Edition Windows Server). This CSV file is used as an Oracle external table.
Every hour, a scheduled task (Windows Task Scheduler) executes a .bat file that copies over an updated version inventory.csv, overwriting the original.
The data is then used by a reporting application.
Problem
The application that uses the data in inventory.csv has no way of knowing when the data was last updated.
Ideally, I'd like the "last updated date" to be accessible as a column in the table.
One possible solution is to trigger a logging of the current date/time in a separate file, an then referencing that as an external table as well. However, this solution has too many moving parts, and I'd prefer something simpler, if possible.
I know that the CSV file itself knows when it was created...I'm wondering if there is any way for the Oracle external table to read the "Created" date from the CSV file properties?
Or any other ideas?
What version of Oracle?
If you are using 11.2 or later, you can use the preprocessor feature of external tables to run a shell script/ batch file on the file before it is loaded. My bias would be to go for simplicity-- have the preprocessing script grab the date, store it to a separate file, and have a separate external table that loads and exposes that data. That's likely easier than adding the date to every row.
I'm useing java to write some programe,
I need to insert some file into database such as ".mp3, .wav" files.
by the way how insert these file into oracle database?
Have you considered just storing the MP3 metadata and file location. I worked on a image server years ago and we attempted storing the images inside the database. It was much faster to just hand off the file location to the server service requesting it, then it would fetch the file. It is possible to load the mp3 binary file into a the database as a BLOB if you really want to.
I have an Exhange 2010 Server... with a public folder... that has a Contact List in it.
How would I access this via ODBC? Is it possible to do a "query" to pull the fields from Exchange Server into a MySql table?
There's no ODBC driver for Exchange. You need to write an application that reads the folder and then writes the data to a database. Or, you need to automate the exporting of the folder to a CSV file so that you can use a text-file ODBC driver to read it.
RO