{"id":1391,"date":"2019-02-02T10:04:49","date_gmt":"2019-02-02T02:04:49","guid":{"rendered":"http:\/\/www.821121.com\/?p=1391"},"modified":"2021-02-02T10:08:53","modified_gmt":"2021-02-02T02:08:53","slug":"%e5%88%a0%e9%99%a4%e7%9a%84%e5%88%86%e5%8c%ba%e4%b8%8d%e4%bc%9a%e8%bf%9b%e5%85%a5recyclebin","status":"publish","type":"post","link":"http:\/\/www.821121.com\/?p=1391","title":{"rendered":"\u5220\u9664\u7684\u5206\u533a\u4e0d\u4f1a\u8fdb\u5165Recyclebin"},"content":{"rendered":"<p>\u5728Oracle\u6570\u636e\u5e93\u4e2d\uff0c\u5355\u4e2a\u5220\u9664\u7684\u5206\u533a\u5e76\u4e0d\u4f1a\u8fdb\u5165\u56de\u6536\u7ad9\uff0c\u5168\u8868\u5220\u9664\u7684\u5206\u533a\u624d\u53ef\u80fd\u548c\u5168\u8868\u4e00\u8d77\u653e\u5165\u56de\u6536\u7ad9\u3002\u8fd9\u662f\u56e0\u4e3a\u5355\u4e2a\u5206\u533a\u5220\u9664\u4e4b\u540e\uff0c\u662f\u65e0\u6cd5\u901a\u8fc7\u7b80\u5355\u7684\u95ea\u56de\u52a0\u5165\u539f\u5206\u533a\u8868\u4e2d\uff0c\u65e2\u7136\u65e0\u6cd5\u4fdd\u8bc1\u4e00\u81f4\u6027\uff0c\u8fd9\u4e2a\u5206\u533a\u5c31\u4e0d\u4f1a\u8fdb\u5165\u56de\u6536\u7ad9\u4e2d\u3002<br \/>\nSQL&gt; select * from v$version;<\/p>\n<p>BANNER           CON_ID<\/p>\n<hr \/>\n<p>Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production   0<\/p>\n<p>PL\/SQL Release 12.2.0.1.0 - Production        0<\/p>\n<p>CORE 12.2.0.1.0 Production         0<\/p>\n<p>TNS for Linux: Version 12.2.0.1.0 - Production       0<\/p>\n<p>NLSRTL Version 12.2.0.1.0 - Production        0<\/p>\n<p>SQL&gt; CREATE TABLE cattest (<\/p>\n<p>2 PartID  integer  not null,<\/p>\n<p>3 CretTm  date  not null,<\/p>\n<p>4 PartCD  varchar2(2) not null<\/p>\n<p>5 ) partition by list (partcd) automatic (<\/p>\n<p>6 partition p18 values ('fz'),<\/p>\n<p>7 partition p19 values ('xm'),<\/p>\n<p>8 partition p20 values ('sm'),<\/p>\n<p>9 partition p21 values ('gz')<\/p>\n<p>10 );<\/p>\n<p>Table created.<\/p>\n<p>SQL&gt; insert into enmotech values (1, sysdate, 'fz');<\/p>\n<p>1 row created.<\/p>\n<p>SQL&gt; select partition_name from user_tab_partitions<\/p>\n<p>2 where table_name = 'cattest';<\/p>\n<p>PARTITION_NAME<\/p>\n<hr \/>\n<p>P18<\/p>\n<p>P19<\/p>\n<p>P20<\/p>\n<p>P21<\/p>\n<p>SYS_P256<\/p>\n<p>SQL&gt; alter table enmotech drop partition SYS_P256 purge;<\/p>\n<p>alter table enmotech drop partition SYS_P256 purge<\/p>\n<p>*<\/p>\n<p>ERROR at line 1:<\/p>\n<p>ORA-14048: a partition maintenance operation may not be combined with other operations<\/p>\n<p>SQL&gt; alter table cattest drop partition P18;<\/p>\n<p>Table altered.<\/p>\n<p>SQL&gt; select * from user_recyclebin;<\/p>\n<p>no rows selected<\/p>\n<p>SQL&gt; drop table cattest;<\/p>\n<p>Table dropped.<\/p>\n<p>SQL&gt; select object_name,original_name,type from user_recyclebin;<\/p>\n<p>OBJECT_NAME     ORIGINAL_NAME  TYPE<\/p>\n<hr \/>\n<p>BIN$TflQLiTmWX7gUwo4qMBX+A==$0   cattest  TABLE<\/p>\n<p>BIN$TflQLiTmWX7gUwo4qMBX+A==$0   cattest  Table Partition<\/p>\n<p>BIN$TflQLiTmWX7gUwo4qMBX+A==$0   cattest  Table Partition<\/p>\n<p>BIN$TflQLiTmWX7gUwo4qMBX+A==$0   cattest  Table Partition<\/p>\n<p>BIN$TflQLiTmWX7gUwo4qMBX+A==$0   cattest  Table Partition<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Oracle\u6570\u636e\u5e93\u4e2d\uff0c\u5355\u4e2a\u5220\u9664\u7684\u5206\u533a\u5e76\u4e0d\u4f1a\u8fdb\u5165\u56de<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-1391","post","type-post","status-publish","format-standard","hentry","category-oracle-11g"],"_links":{"self":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/1391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1391"}],"version-history":[{"count":1,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/1391\/revisions"}],"predecessor-version":[{"id":1392,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/1391\/revisions\/1392"}],"wp:attachment":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1391"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}