当前位置:网站首页>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:
可以上面的高手都已经验证过了
边栏推荐
- HMS core discovery Episode 16 live broadcast preview | play AI's new "sound" state with tiger pier
- SystemVerilog中interface(接口)介绍
- FinClip实现微信授权登录的三种方案
- Use getifaddrs to obtain the IP address of the local network interface
- Project management tools - project developer tools
- 1310_一个printf的实现分析
- Seven suggestions for Server Protection
- Sword finger offer special shock edition day 9
- Introduction to kubernetes
- 一篇文章带你读懂Redis的哨兵模式
猜你喜欢

一篇文章带你读懂Redis的哨兵模式

Small case of data analysis: visualize recruitment data and view the most needed technologies in the field~

STL notes (III): input / output stream

Wechat applet related operation examples

Build keyword driven automated testing framework

微服务 - Hystrix 熔断器

FinClip实现微信授权登录的三种方案

深圳随到随考,科目四随到随考,科三理论第二理论随到随考说明

Browser cache HTTP cache CDN cache localstorage / sessionstorage / cookies

An article takes you to understand the sentinel mode of redis
随机推荐
rhce第一天
Build keyword driven automated testing framework
Redis的三个必知必会的问题
Interface idempotency
What is virtual DOM? How to implement a virtual DOM
FinClip实现微信授权登录的三种方案
DOM processing in ahooks
Game 302 of leetcode
85 distributed project construction
[globally unique ID] how to handle the ID primary key after dividing the database and table?
05. Libavformat Library of ffmpeg
"Niuke | daily question" inverse Polish expression
How to judge whether it is attacked by DDoS
Matter's Unified Smart Home connection standard enables local automatic interaction between smart devices
Special analysis of data security construction in banking industry
微服务 - 网关Gateway组件
使用getifaddrs获取本机网口IP地址
Delivery practice of private PAAS platform based on cloud native
Preliminary understanding of Panda3D particle system
RHCE first day