当前位置:网站首页>Oracle 用户A删除用户B名下的一张表后,用户B可以通过回收站恢复被删除的表吗?
Oracle 用户A删除用户B名下的一张表后,用户B可以通过回收站恢复被删除的表吗?
2022-07-25 05:21:00 【刘贵宾】
Oracle 用户A删除用户B名下的一张表后,用户B可以通过回收站恢复被删除的表吗?
其他答案1:
你show recyclebin;看看回收站中是否有删除的表,然后进行闪回删除
flashback table emp1 to before drop;
或者通过回收站中的名字执行闪回:
flashback table “BIN$opkhRg3T0MPgVaUgq/kbkw==$0” to before drop;
其他答案2:
可以,我刚测了下:
SQL> create user testA identified by testA;
User created.
SQL> create user testB identified by testB;
User created.
SQL> grant unlimited tablespace to testA;
Grant succeeded.
SQL> grant unlimited tablespace to testB;
Grant succeeded.
SQL> conn / as sysdba
Connected.
SQL> grant create session to testA;
Grant succeeded.
SQL> grant create session to testB;
Grant succeeded.
SQL> conn testA/testA
Connected.
SQL> show recyclebin;
SQL> conn / as sysdba
Connected.
SQL> grant resource,public to testA;
Grant succeeded.
SQL> grant resource,public to testB;
Grant succeeded.
SQL> conn testA/testA
Connected.
SQL> create table a(id int);
Table created.
SQL> insert into a values(1);
1 row created.
SQL> insert into a values(2);
1 row created.
SQL> commit;
Commit complete.
SQL> select * from a;
ID
----------
1
2
SQL> conn testB/testB
Connected.
SQL> create table b(id int);
Table created.
SQL> insert into b values(1);
1 row created.
SQL> insert into b values(2);
1 row created.
SQL> commit;
Commit complete.
SQL> show recyclebin;
SQL> conn / as sysdba
Connected.
SQL> grant drop any table to testA;
Grant succeeded.
SQL> conn testA/testA;
Connected.
SQL> drop table testB.b;
Table dropped.
SQL> conn testB/testB
Connected.
SQL> show recyclebin;
ORIGINAL NAME RECYCLEBIN NAME OBJECT TYPE DROP TIME
---------------- ------------------------------ ------------ -------------------
B BIN$5BFcvLOAsXngU8OjqMAs2g==$0 TABLE 2022-07-18:16:43:30
SQL> flashback table b to before drop;
Flashback complete.
SQL> select * from b;
ID
----------
1
2
其他答案3:
可以上面的高手都已经验证过了
边栏推荐
- Typera+picgo+ Alibaba cloud OSS setup and error reporting solution [reprint]
- epoll的实现原理
- [small program practice] first day
- LeetCode第302场周赛
- LCP插件创建对等802.1ad接口
- 微服务 - 配置中心 - Nacos
- VIM search and replacement and the use of regular expressions
- Thesis reading | which is the best multilingual pre training technology for machine translation? See the latest progress!
- Wechat applet related operation examples
- Introduction to kubernetes
猜你喜欢

Win11 how to view the file explorer tab

LeetCode第302场周赛

Build keyword driven automated testing framework

How to carry out the function test with simple appearance and complex interior?

The third question of force deduction -- the longest substring without repeated characters

"Niuke | daily question" inverse Polish expression

panda3d 键盘移动场景

Performance Optimization: how to solve the slow loading speed of the first screen of spa single page application?

SystemVerilog中interface(接口)介绍

Three schemes for finclip to realize wechat authorized login
随机推荐
Performance Optimization: how to solve the slow loading speed of the first screen of spa single page application?
Sword finger offer special shock edition day 9
rhce第一天
Go language function
systemVerilog中automatic用法
VPP cannot load up status interface
The third question of force deduction -- the longest substring without repeated characters
[cloud co creation] design Huawei cloud storage architecture with the youngest cloud service hcie (Part 1)
RHCE first day
批量下载视频小技巧
Which side of Nacos has the SQL script of this column?
The third day of rhcsa summer vacation
使用getifaddrs获取本机网口IP地址
弹性布局总结
Leetcode 15: sum of three numbers
Project management tools - project developer tools
微服务 - 网关Gateway组件
STL notes (II): template and operator overloading
Add click event to unity 3D object
龙蜥社区发布首个 Anolis OS 安全指南 为用户业务系统保驾护航