This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-15. For the latest, interactive version please visit https://mariadb.com/kb/.

what is the difference between MariaDB and Oracle?

I am new to this? I have just started to learn MariaDB and I am very impressed with MariaDB? I am just trying to understand something. I know that Oracle uses tablespaces to store their DATA. But what about MariaDB? what does MariaDB use to store DATA?

What is the purpose for the BLACKHOLE storage engine? when you are writing to blackhole nothing exists. So, what is the point of having it?

Any help is greatly appreciated,

Answer Answered by Hartmut Holzgraefe in this comment.

And on part #1: this depends on the storage engine used for a specific table.

MyISAM, MEMORY, ARCHIVE and CSV tables all use a "file(s) per table" approach and there is no concept of a table space at all. Tables are directly mapped into one or more files (e.g. a MyISAM table `test.t1` would have a pair of t1.MYD / t1.MYI index files in the 'test' database directory in the mysqld data_dir, a CSV table just a t1.CSV associated with it). InnoDB and ndb_cluster (in MySQL Cluster) tables on the other hand use a tablespace approach where there's no strict 1:1 mapping between files on disk and SQL level tables. InnoDB supports sort of a mixed mode though with "innodb-file-per-tabl", with a central table space for meta data, undo log entries (and a few other things) while actual table data resides in extra tablespace files that store data for just one specfic table each ...

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.