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.
Related
My instructor gave me a username and password and .dbf file and tell me to open it and try to retrieve with sqlplus and oracle database
I tried to open the dbf file from excel mysql and ms server but it i gave me an error
Speaking as a DBA: As Littlefoot stated, you can't just read a data file from an Oracle DB. At best they are proprietary binary file formats, assuming it isn't encrypted on top of that. Nor can you take a data file from one database instance and just plug it in to another database instance. You also can't import it to mySQL or any other database engine: as a stand-alone data file it can only be properly read by its original database installation (i.e. the specific database instance that created it).
Oracle has specific tools available to copy data and/or files from one database to another, but those would generally use the RMAN backup manager (used to make physical backups) or (more likely in your case) the Datapump "Transportable Tablespace" feature.
To restore it from an RMAN backup you would need a complete full backup of the entire source database instance: RMAN backup sets including all data files, redo logs (and perhaps archived logs), control files, parameter files, encryption keys,, and possibly more.
To restore a transportable tablespace dump you would need your own running Oracle database instance, the correct parameters to run the impdp import utility, and the assistance/cooperation of the DBA.
You need to confirm if the file you were given is such an export dump (though the .dbf file extension would suggest not), and how you are expected to access the data. You won't be able to just "open the file".
.DBF extension probably represents datafile; I don't think you can read it with any tool (at least, I don't know of any).
You should find an Oracle DBA who might try to help; in order to restore a database (which is contained in that file), they might need control file(s), redo log files and ... can't name what other files (I'm not a DBA).
Then, if everything goes OK, database might be started up so that you'd be able to connect to it using credentials you were given.
I have BLOB files (pdfs) on Oracle and I'm trying to migrate them all to Snowflake.
My goal is to be able to download the BLOB files (that would be the VARBINARY then) from Snowflake directly instead of just having the hex code.
I understand I'd need a Amazon S3 bucket or any blob storage but still, how from Snowflake could I have access to the pdf files as it is column-based relational database?
How would I do it?
Thank you
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.
I have received a file named STP.dmp containing a database backup, which I have successfully restored into Oracle.
I have also received multiple additional .dmp files, named sequentially - eg. STP-DOCS01.dmp, STP-DOCS02.dmp - which I am expecting to contain image and document files (perhaps in blob data format, I don't know).
However, upon trying to restore this database, using the following command:
Impdp bkup_user/password directory=exp_table dumpfile=STP_DOCS01.DMP TABLE_EXISTS_ACTION=TRUNCATE
I get an error: cannot location master table within provided dump files. I get the same when I try to get the database schema. The third-party who provided the files swear that the DOCS backup completed correctly and that they've sent us all the files.
I've tried renaming the DOCS DMP files so the name is in line with the main database, in case they were part of the same database, but that didn't do anything. I'm completely out of ideas what else to try. Can anyone help
If the files are sequentially named it could mean that the person which have done the exports used parallelism and wrote to multiple files at once, this is why a single file doesn't have a complete part of the data, try importing using:
Impdp bkup_user/password directory=exp_table dumpfile=STP_DOCS%U.DMP TABLE_EXISTS_ACTION=TRUNCATE
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?