Home  >  Article  >  Database  >  oracle日记

oracle日记

WBOY
WBOYOriginal
2016-06-07 15:27:321158browse

drop数据表后残留回收站中的数据表处理 在Oracle中我们常会看到以这样方式命名的表:$bin{a-z|A-Z{n}}=={0-9{n}} 这是因为drop后并没有真正删除数据表,而是将数据表准存到回收站中。实际上drop执行的是recyclebin重新命名,所以即使我们drop了某个表也可以通

drop数据表后残留回收站中的数据表处理

在Oracle中我们常会看到以这样方式命名的表:$bin{a-z|A-Z{n}}=={0-9{n}} 这是因为drop后并没有真正删除数据表,而是将数据表准存到回收站中。实际上drop执行的是recyclebin重新命名,所以即使我们drop了某个表也可以通过闪回将数据恢复。flashback table tb_name to before drop ;从回收站闪回原来的表名 。

强力清除

purge 彻底清除对象

查看回收站情况

show recyclebin;回收站内的相关信息可以从recyclebin/user_recyclebin/dba_recyclebin等视图中获取

Oracle字符串的合并的聚合函数

1>自己写函数2>oracle自带有WMSYS.WM_CONCAT(D.RACK_NAME) AS rack_name进行合并3>||符号
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn