Is there any way to deal with Minio file by sql-based statements? - minio

I am new on Minio and object based databases.
I know that there is S3 select API but I want to add a new row or update a specific row in CSV file in Minio without need to download it and upload again.
Is there any way to do it?
In another words, I want to use sql based statements(insert/update) on a file stored in Minio.

You can only change Databases with SQL, it can only Import and Export CSVs so that they are usable for the Database. The Answer for now would then be a no. The easiest way you could achieve editing this csv would be to write a Script which either:
Connects to the Database and Changes the File in the Databases
Directory.
Downloads the File to edit it locally and then upload it again.

Related

Power Center view result

I'm starting working with Informatica Power Center, I'm new in this technology. In the past I worked with Datastage. I made a task that read data from an Oracle table and write them on a Flat File. The Job run and finish correctly (I saw on Workflow Manger).
Is there a way to view the records written on my flat file on Power Center?
Thanks
Luca
You need to access the output file. Informatica does not provide a data browser to inspect flat files or databases. You need to use a separate tool.
Try FTP or SSH connection to wherever the output file got generated.

Oracle 11g XE import

When I upload a *.cvs file into Oracle Express using the data upload tool, the column mapping changes. I have uploaded the same data before, to test things out.
I then deleted all the data in the table and now want to load in fresh data for further testing. The mapping looks good in the *.cvs file before I upload it but when I get to the last step the columns have changed position in the *.cvs file.
Any idea why does this happen and what can I do to prevent it?

How insert mp3 file into oracle database

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.

How do I add >100 new rows to a SQLite DB in the documents directory without overwriting?

I have a SQLite table that I'm using for my iPad app. It currently has about 500 items, but I need to add about 200+ more. The thing is, the app is already deployed and has users, and it's an editable database in the documents directory, so it's not like I can just overwrite it. How can I add these new rows easily without destroying the table that I already have? It would be nice to import a txt somehow without having to do this manually. (For the record I am not using Core Data.)
Throwing out some ideas:
Can you not deploy a new database file in your update, and programatically detect if there is an existing db. If so, add the new data to the database and if not create a new db programatically, and add all your data to it.
You could store the setup data in an xml file perhaps?
ALTERNATELY, could your update have a second database? You don't overwrite your original db and you add a v1.1 db file? You could then merge the v1.1 data into the original db?

Loading data from a web-hosted CSV into Oracle?

I don't have time to write a perl or anything like that nor do I have admin access to the back end, so how can I get data from a file on the intranet (http://) and parse it to create a table? Maybe somehow via PL/SQL? Keep in mind I don't have much admin access.
If you want it to be completely automated
You can use the UTL_HTTP package to retrieve the data from the HTTP server
You can either parse the CSV response yourself using INSTR and SUBSTR or you can use the UTL_FILE package to write the data to a file on the database server file system and then create an external table that parses the CSV file you just created.
You can then insert the parsed data into a table you've already created (I'm assuming that the CSV data is in the same format each time).
You can use the DBMS_SCHEDULER or DBMS_JOB package to schedule the job
The Oracle database account you're using will need to be granted access to all of these packages.
You may download the file into your host machine and then use SQL*Loader to populate a table.
Other ways there are some wizards that may be easier than SQL*Loader, if you are using IDEs like PLSQLDeveloper(Tools->Text Importer) or SQLDeveloper(right click on Tables-> Import Data).
Create an external table that references your CSV file. That means you can run select statements on the file from within Oracle.

Resources