用Oracle高级压缩实现ZSTD压缩

发布于 2025-01-17 23:29:48 字数 1195 浏览 6 评论 0原文

我是Oracle数据库的新手,并使用19C版本。我需要知道是否可以与Oracle Advanced Compression一起实现ZSTD算法。我能够在RMAN级别实现ZSTD算法。在Oracle中使用高级压缩时,有什么方法可以选择压缩算法?提前致谢!

RMAN命令输出启用ZSTD:

RMAN> CONFIGURE COMPRESSION ALGORITHM 'ZSTD'
2> ;

new RMAN configuration parameters:
CONFIGURE COMPRESSION ALGORITHM 'ZSTD' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;
new RMAN configuration parameters are successfully stored

RMAN> show COMPRESSION ALGORITHM
2> ;

RMAN configuration parameters for database with db_unique_name DB9ZX are:
CONFIGURE COMPRESSION ALGORITHM 'ZSTD' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;

句法期望:

SQL<>alter table xtbl row store compress advanced;

Table altered.

SQL<>alter table xtbl row store compress advanced zstd;
alter table xtbl row store compress advanced zstd
                                             *
ERROR at line 1:
ORA-01735: invalid ALTER TABLE option


SQL<>alter table xtbl row store compress zstd advanced;
alter table xtbl row store compress zstd advanced
                                    *
ERROR at line 1:
ORA-01735: invalid ALTER TABLE option

I am new to oracle database and using 19c version. I need to know if zstd algorithm can be implemented along with oracle advanced compression. I am able to implement zstd algorithm at RMAN level. Is there any way to choose the compression algorithm when using advanced compression in oracle? Thanks in advance!

RMAN COMMAND OUTPUT FOR ENABLING ZSTD:

RMAN> CONFIGURE COMPRESSION ALGORITHM 'ZSTD'
2> ;

new RMAN configuration parameters:
CONFIGURE COMPRESSION ALGORITHM 'ZSTD' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;
new RMAN configuration parameters are successfully stored

RMAN> show COMPRESSION ALGORITHM
2> ;

RMAN configuration parameters for database with db_unique_name DB9ZX are:
CONFIGURE COMPRESSION ALGORITHM 'ZSTD' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;

EXPECTING FOR SYNTAX:

SQL<>alter table xtbl row store compress advanced;

Table altered.

SQL<>alter table xtbl row store compress advanced zstd;
alter table xtbl row store compress advanced zstd
                                             *
ERROR at line 1:
ORA-01735: invalid ALTER TABLE option


SQL<>alter table xtbl row store compress zstd advanced;
alter table xtbl row store compress zstd advanced
                                    *
ERROR at line 1:
ORA-01735: invalid ALTER TABLE option

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

意中人 2025-01-24 23:29:48

RMAN文件的压缩与实时表和行的压缩有显着不同。您不能选择像ZSTD这样的特定算法进行表压缩。

Oracle数据库管理员指南具有表压缩的一部分,该部分涵盖了4种类型的压缩类型以及您何时更喜欢每种压缩。

当您使用基本表压缩仓库compression存档压缩时,仅在数据批量加载或插入数组时才会发生压缩表。

高级行压缩用于OLTP应用程序,并通过任何SQL操作来压缩数据。

仓库和档案压缩使用混合柱压缩(需要其他许可) - 它动态选择不同的(未确定的)压缩算法基于数据类型等。不表现。

Oracle数据库概念还具有表压缩的部分有关高级行压缩的细节,该详细信息已针对OLTP性能进行了优化。您问题的相关部分是Oracle实施了自己的简单压缩算法(

Compression for RMAN files is significantly different from compression for live tables and rows. You can't choose a specific algorithm like ZSTD for table compression.

The Oracle Database Administrator's Guide has a section on table compression which covers 4 types of compression and when you might prefer each one.

When you use basic table compression, warehouse compression, or archive compression, compression only occurs when data is bulk loaded or array inserted into a table.

Advanced row compression is intended for OLTP applications and compresses data manipulated by any SQL operation.

Warehouse and Archive compression use Hybrid Columnar Compression (which requires additional licensing) - it dynamically chooses different (unspecified) compression algorithms based on the data type, etc. and is optimized for storage, not performance.

Oracle Database Concepts also has a section on table compression that goes into a little bit of detail about advanced row compression, which is optimized for OLTP performance. The relevant part for your question is that Oracle implemented their own simple compression algorithm (just replacing duplicate values with symbol table references). You can't configure your own compression algorithm.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文