Creation of Undo Tablespaces (42)

本文介绍了如何使用CREATE UNDO TABLESPACE语句单独创建回滚表空间,并可在创建数据库时通过CREATE DATABASE语句创建。文章还讲解了如何通过ALTER TABLESPACE修改回滚表空间属性以及如何使用DROP TABLESPACE删除它们,但若回滚表空间正在使用中或包含必要的回滚信息,则无法被删除。

A database administrator creates undo tablespaces individually, using the CREATE
UNDO TABLESPACE statement. It can also be created when the database is created,
using the CREATE DATABASE statement. A set of files is assigned to each newly
created undo tablespace. Like regular tablespaces, attributes of undo tablespaces can
be modified with the ALTER TABLESPACE statement and dropped with the DROP
TABLESPACE statement.

An undo tablespace cannot be dropped if it is being used by
any instance or contains any undo information needed to recover
transactions.

1. 可以用create undo tablespace创建
2. 在创建数据库时create database可创建
3. 在回滚表空间在使用或者还有事务的 时 , 不能被删除

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10599713/viewspace-972698/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10599713/viewspace-972698/

2025-08-23 13:19:38+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.43-1.el9 started. 2025-08-23 13:19:38+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' 2025-08-23 13:19:38+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.43-1.el9 started. 2025-08-23 13:19:39+00:00 [Note] [Entrypoint]: Initializing database files 2025-08-23T13:19:39.098463Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead. 2025-08-23T13:19:39.098551Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.43) initializing of server in progress as process 81 2025-08-23T13:19:39.132042Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2025-08-23T13:19:39.199588Z 1 [Warning] [MY-012911] [InnoDB] Cannot create undo tablespaces since innodb_force_recovery has been set. Using 0 existing undo tablespaces. 2025-08-23T13:19:39.199614Z 1 [ERROR] [MY-012912] [InnoDB] Cannot continue InnoDB startup in force_recovery mode because there are no existing undo tablespaces found. 2025-08-23T13:19:39.199626Z 1 [ERROR] [MY-012929] [InnoDB] InnoDB Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again. 2025-08-23T13:19:39.649963Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed. 2025-08-23T13:19:39.649992Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it. 2025-08-23T13:19:39.650001Z 0 [ERROR] [MY-010119] [Server] Aborting 2025-08-23T13:19:39.650303Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.43) MySQL Community Server - GPL.
08-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值