zoukankan      html  css  js  c++  java
  • oceanbase数据库开启回收站功能

    obclient> SHOW VARIABLES LIKE '%recyclebin%';
    +---------------+-------+
    | Variable_name | Value |
    +---------------+-------+
    | recyclebin    | OFF   |
    +---------------+-------+
    1 row in set (0.01 sec)

    obclient> SET @@RECYCLEBIN=ON;
    Query OK, 0 rows affected (0.00 sec)

    obclient> SHOW VARIABLES LIKE '%recyclebin%';
    +---------------+-------+
    | Variable_name | Value |
    +---------------+-------+
    | recyclebin    | ON    |
    +---------------+-------+
    1 row in set (0.00 sec)

    obclient> SHOW RECYCLEBIN;
    Empty set (0.01 sec)

    obclient> CREATE TABLE test1 AS SELECT * FROM t1;
    ERROR 1046 (3D000): No database selected
    obclient> USE test;
    Database changed
    obclient> CREATE TABLE test1 AS SELECT * FROM t1;
    Query OK, 1 row affected (0.13 sec)

    obclient>
    obclient>
    obclient> SHOW VARIABLES LIKE 'RECYCLEBIN'
        ->
        -> ;
    +---------------+-------+
    | Variable_name | Value |
    +---------------+-------+
    | recyclebin    | ON    |
    +---------------+-------+
    1 row in set (0.01 sec)

    obclient>
    obclient>
    obclient> SHOW RECYCLEBIN;
    Empty set (0.00 sec)

    obclient> DROP TABLE test1;
    Query OK, 0 rows affected (0.02 sec)

    obclient> SHOW RECYCLEBIN;
    +--------------------------------+---------------+-------+----------------------------+
    | OBJECT_NAME                    | ORIGINAL_NAME | TYPE  | CREATETIME                 |
    +--------------------------------+---------------+-------+----------------------------+
    | __recycle_$_3_1630659246143488 | test1         | TABLE | 2021-09-03 16:54:06.144186 |
    +--------------------------------+---------------+-------+----------------------------+
    1 row in set (0.01 sec)

    obclient>

    https://www.oceanbase.com/docs/oceanbase-database/oceanbase-database/V2.2.30/objects-supported-by-recycle-bin

  • 相关阅读:
    PHP Socket 编程详解
    PHPWord生成word实现table合并(colspan和rowspan)
    PhpExcel中文帮助手册|PhpExcel使用方法
    js限制input标签中只能输入中文
    如何巧用.htaccess设置网站的压缩与缓存
    Linux xargs命令
    PHP加密解密类
    2014 年10个最佳的PHP图像操作库
    学习swoft的第二天_注解
    学习swoft的第一天
  • 原文地址:https://www.cnblogs.com/shenggong/p/15223878.html
Copyright © 2011-2022 走看看