当前位置:网站首页>After Oracle user a deletes a table under user B's name, can user B recover the deleted table through the recycle bin?
After Oracle user a deletes a table under user B's name, can user B recover the deleted table through the recycle bin?
2022-07-25 05:24:00 【VIP Liu】
Oracle user A Delete user B Behind a table under my name , user B Can I recover deleted tables through the recycle bin ?
Other answers 1:
you show recyclebin; See if there are deleted tables in the recycle bin , Then flash back and delete
flashback table emp1 to before drop;
Or flash back through the name in the recycle bin :
flashback table “BIN$opkhRg3T0MPgVaUgq/kbkw==$0” to before drop;
Other answers 2:
Sure , I just measured :
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
Other answers 3:
Yes, the experts above have already verified it
边栏推荐
- STL notes (V): iterator
- 1310_一个printf的实现分析
- Implement is by yourself_ class
- background
- Sword finger offer II 012. the sum of the left and right subarrays is equal
- DOM在Ahooks中的处理过程
- Teach you three ways to optimize the performance from 20s to 500ms
- 微服务 - Hystrix 熔断器
- STL notes (III): input / output stream
- "Niuke | daily question" inverse Polish expression
猜你喜欢

Special analysis of data security construction in banking industry

Pikachu vulnerability platform exercise

Win11 how to view the file explorer tab

SystemVerilog中interface(接口)介绍

easyrecovery免费数据恢复工具操作简单一键恢复数据

Solution of win11 blue screen code 0x0000001a

Three must know and know problems of redis

RHCE first day

Thesis reading | which is the best multilingual pre training technology for machine translation? See the latest progress!

自己实现is_base_of
随机推荐
STL notes (I): knowledge system
Solve the problem that uni app applet obtains routes and route parameters
LeetCode 15:三数之和
ping命令
Performance Optimization: lazy loading of pictures
An article takes you to understand the sentinel mode of redis
Sword finger offer II 012. the sum of the left and right subarrays is equal
Which side of Nacos has the SQL script of this column?
单点登录(一处登录,处处可用)
Event cycle mechanism browser nodejs async await execution sequence promise execution sequence interview questions
Matter's Unified Smart Home connection standard enables local automatic interaction between smart devices
What about reinstalling win11 system?
LCP plug-in creates peer VLAN interface
Go language function
C编程 --“最大子数组的和” 的动态规划的解法
STM32 Development Notes 118: using CMSIS DSP Library in stm32cube IDE
Wechat applet related operation examples
background
Project management tools - project developer tools
Implement is by yourself_ convertible