{"id":51,"date":"2010-12-28T16:02:26","date_gmt":"2010-12-28T08:02:26","guid":{"rendered":"http:\/\/www.royalwzy.com\/?p=51"},"modified":"2013-12-30T10:58:45","modified_gmt":"2013-12-30T02:58:45","slug":"oracle-10g-%e6%9f%a5%e8%af%a2%e9%97%aa%e5%9b%9e%e5%8a%9f%e8%83%bd%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"http:\/\/www.royalwzy.com\/?p=51","title":{"rendered":"Oracle 10g \u67e5\u8be2\u95ea\u56de\u529f\u80fd\u5e94\u7528"},"content":{"rendered":"<p style=\"color: #333333; font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"color: #000000;\"><span lang=\"zh-CN\">\u5728<\/span><span lang=\"en-US\">Oracle<\/span><span lang=\"zh-CN\">\u4e2d\u5982\u679c\u9519\u8bef\u5730\u63d0\u4ea4\u4e86\u4fee\u6539\u64cd\u4f5c<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u7136\u540e\u60f3\u67e5\u770b\u5e76\u4fee\u6539\u539f\u6765\u7684\u503c<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u8fd9\u65f6\u5019\u53ef\u4ee5\u4f7f\u7528\u67e5\u8be2\u95ea\u56de<\/span><span lang=\"en-US\">(query flashback).<\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in; color: #4b4b4b; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span lang=\"zh-CN\">\u67e5\u8be2\u95ea\u56de\u53ef\u4ee5\u6839\u636e\u6839\u636e\u4e00\u4e2a\u65f6\u95f4\u503c\u6216\u8005\u7cfb\u7edf\u53d8\u66f4\u53f7<\/span><span lang=\"en-US\">(SCN:System Change Number)<\/span><span lang=\"zh-CN\">\u8fdb\u884c<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u6570\u636e\u5e93\u4f7f\u7528<\/span><span lang=\"en-US\">SCN<\/span><span lang=\"zh-CN\">\u6765\u8ddf\u8e2a\u5bf9\u6570\u636e\u8fdb\u884c\u7684\u4fee\u6539<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u56e0\u6b64\u53ef\u4ee5\u7528\u5b83\u6765\u95ea\u56de\u5230\u6570\u636e\u5e93\u4e2d\u4e00\u4e2a\u7279\u5b9a\u7684<\/span><span lang=\"en-US\">SCN<\/span><span lang=\"zh-CN\">\u65f6\u7684\u72b6\u6001<\/span><span lang=\"en-US\">.<\/span><\/span><\/span><\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; color: #4b4b4b; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\">\u00a0<\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span lang=\"zh-CN\">\u4e00<\/span><span lang=\"en-US\">.<\/span><span lang=\"zh-CN\">\u6267\u884c\u95ea\u56de\u64cd\u4f5c<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u9700\u8981\u4f7f\u7528<\/span><span lang=\"en-US\">DBMS_FLASHBACK<\/span><span lang=\"zh-CN\">\u5305<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u767b\u5f55\u7528\u6237\u8981\u5177\u6709\u6b64\u5305\u7684<\/span><span lang=\"en-US\">EXECUTE<\/span><span lang=\"zh-CN\">\u6743\u9650<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u4e0b\u9762\u4ee5<\/span><span lang=\"en-US\">sys<\/span><span lang=\"zh-CN\">\u8eab\u4efd\u767b\u5f55<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u5e76\u6388\u6743\u7ed9\u7528\u6237<\/span><span lang=\"en-US\">EXECUTE<\/span><span lang=\"zh-CN\">\u6743\u9650<\/span><span lang=\"en-US\">:<\/span><\/span><\/span><\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; color: black; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-weight: bold;\">CONNECT<\/span>\u00a0<span style=\"font-weight: bold;\">SYS<\/span>\/P@ssw0rd\u00a0<span style=\"font-weight: bold;\">AS<\/span>\u00a0<span style=\"font-weight: bold;\">SYSDBA<\/span>;<\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; color: black; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-weight: bold;\">GRANT<\/span>\u00a0<span style=\"font-weight: bold;\">EXECUTE<\/span>\u00a0<span style=\"font-weight: bold;\">ON<\/span>\u00a0<span style=\"font-weight: bold;\">SYS<\/span>.DBMS_FLASHBACK\u00a0<span style=\"font-weight: bold;\">TO<\/span>\u00a0UserName;<\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; color: #4b4b4b; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\">\u00a0<\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in; color: #4b4b4b; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span lang=\"zh-CN\">\u4e8c<\/span><span lang=\"en-US\">.<\/span><span lang=\"zh-CN\">\u65f6\u95f4\u67e5\u8be2\u95ea\u56de<\/span><\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in; color: #4b4b4b; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span lang=\"en-US\">1.<\/span><span lang=\"zh-CN\">\u6267\u884c<\/span><span lang=\"en-US\">SQL<\/span><span lang=\"zh-CN\">\u8bed\u53e5\u4ece<\/span><span lang=\"en-US\">products<\/span><span lang=\"zh-CN\">\u4e2d\u67e5\u8be2\u524d\u4e94\u6761\u8bb0\u5f55<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u5982\u4e0b<\/span><span lang=\"en-US\">:<\/span><\/span><\/span><\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; color: black; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-weight: bold;\">SELECT<\/span>\u00a0product_id, name, price,\u00a0<span style=\"font-weight: bold;\">SYSDATE<\/span>\u00a0<span style=\"font-weight: bold;\">AS<\/span>\u00a0<span style=\"font-weight: bold;\">TIME<\/span><\/span><\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; color: black; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-weight: bold;\">FROM<\/span>\u00a0products<\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span style=\"font-weight: bold;\">WHERE<\/span>\u00a0product_id &lt;= 5;<\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><img decoding=\"async\" style=\"border-style: none;\" alt=\"\" src=\"http:\/\/hi.csdn.net\/attachment\/201105\/18\/0_1305700532h966.gif\" \/><\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in; color: #4b4b4b; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span lang=\"en-US\">2.<\/span><span lang=\"zh-CN\">\u66f4\u65b0\u8bb0\u5f55<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u5982\u4e0b<\/span><span lang=\"en-US\">:<\/span><\/span><\/span><\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; color: black; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-weight: bold;\">SELECT<\/span>\u00a0product_id,\u00a0<span style=\"font-weight: bold;\">NAME<\/span>, price,\u00a0<span style=\"font-weight: bold;\">SYSDATE<\/span>\u00a0<span style=\"font-weight: bold;\">AS<\/span>\u00a0<span style=\"font-weight: bold;\">TIME<\/span><\/span><\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; color: black; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-weight: bold;\">FROM<\/span>\u00a0products<\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span style=\"font-weight: bold;\">WHERE<\/span>\u00a0product_id &lt;= 5;<\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><img decoding=\"async\" style=\"border-style: none;\" alt=\"\" src=\"http:\/\/hi.csdn.net\/attachment\/201105\/18\/0_1305700536g3G3.gif\" \/><\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span lang=\"en-US\">3.<\/span><span lang=\"zh-CN\">\u6267\u884c<\/span><span lang=\"en-US\">DBMS_FLASHBACK.ENABLE_AT_TIME()<\/span><span lang=\"zh-CN\">\u8bed\u53e5<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u95ea\u56de\u5230\u4e00\u4e2a\u7279\u5b9a\u7684\u65f6\u95f4<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u5982\u4e0b<\/span><span lang=\"en-US\">:<\/span><\/span><\/span><\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\">DBMS_FLASHBACK.ENABLE_AT_TIME(<span style=\"font-weight: bold;\">SYSDATE<\/span>\u00a0&#8211; 10 \/ 1440);<\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in; color: #4b4b4b; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span lang=\"zh-CN\">\u95ea\u56de\u5230<\/span><span lang=\"en-US\">10<\/span><span lang=\"zh-CN\">\u5206\u949f\u4e4b\u524d<\/span><span lang=\"en-US\">(24h * 60mins = 1440Mins).<\/span><\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in; color: #4b4b4b; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span lang=\"en-US\">4.<\/span><span lang=\"zh-CN\">\u73b0\u5728\u6267\u884c\u67e5\u8be2<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u7ed3\u679c\u5982\u4e0b\uff1a<\/span><\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><img decoding=\"async\" style=\"border-style: none;\" alt=\"\" src=\"http:\/\/hi.csdn.net\/attachment\/201105\/18\/0_13057005407v8S.gif\" \/><\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in; color: #4b4b4b; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span lang=\"en-US\">5.<\/span><span lang=\"zh-CN\">\u7981\u7528\u95ea\u56de<\/span><span lang=\"en-US\">\u00a0<\/span><span lang=\"en-US\">EXECUTE DBMS_FLASHBACK.DISABLE();\u00a0<\/span><span lang=\"zh-CN\">\u5728\u518d\u6b21\u542f\u7528\u95ea\u56de\u64cd\u4f5c\u524d<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u5fc5\u987b\u5148\u5c06\u5176\u7981\u7528<\/span><span lang=\"en-US\">.<\/span><span lang=\"zh-CN\">\u8fd9\u4e9b\u547d\u4ee4\u53ea\u80fd\u5728<\/span><span lang=\"en-US\">sqlplus<\/span><span lang=\"zh-CN\">\u4e2d\u4f7f\u7528<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u5728<\/span><span lang=\"en-US\">pl\/sql<\/span><span lang=\"zh-CN\">\u4e2d\u4e0d\u80fd\u4f7f\u7528<\/span><span lang=\"en-US\">.<\/span><\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in; color: #4b4b4b; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\">\u00a0<\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in; color: #4b4b4b; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span lang=\"zh-CN\">\u4e09<\/span><span lang=\"en-US\">.<\/span><span lang=\"zh-CN\">\u7cfb\u7edf\u53d8\u66f4\u53f7\u67e5\u8be2\u95ea\u56de<\/span><\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in; color: #4b4b4b; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span lang=\"zh-CN\">\u6839\u636e<\/span><span lang=\"en-US\">SCN<\/span><span lang=\"zh-CN\">\u8fdb\u884c\u95ea\u56de\u64cd\u4f5c\u6bd4\u6839\u636e\u65f6\u95f4\u8fdb\u884c\u8981\u66f4\u7cbe\u786e<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u56e0\u4e3a\u6570\u636e\u5e93\u5c31\u662f\u4f7f\u7528<\/span><span lang=\"en-US\">SCN<\/span><span lang=\"zh-CN\">\u6765\u8ddf\u8e2a\u6570\u636e\u5e93\u7684\u53d8\u5316<\/span><span lang=\"en-US\">.<\/span><\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in; color: #4b4b4b; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span lang=\"en-US\">1.<\/span><span lang=\"zh-CN\">\u83b7\u5f97\u5f53\u524d<\/span><span lang=\"en-US\">SCN<\/span><span lang=\"zh-CN\">\u547d\u4ee4\uff1a<\/span><\/span><\/span><\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; color: black; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-weight: bold;\">VARIABLE<\/span>\u00a0curr_scn\u00a0<span style=\"font-weight: bold;\">NUMBER<\/span>;<\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; color: black; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-weight: bold;\">EXECUTE<\/span>\u00a0:curr_scn := DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER();<\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; color: black; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\">print curr_scn<\/span><\/span><\/p>\n<p style=\"margin: 0in;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><img decoding=\"async\" style=\"border-style: none;\" alt=\"\" src=\"http:\/\/hi.csdn.net\/attachment\/201105\/18\/0_1305700543MrAZ.gif\" \/><\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in; color: #4b4b4b; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span lang=\"en-US\">2.<\/span><span lang=\"zh-CN\">\u63d2\u5165\u4e00\u6761\u8bb0\u5f55<\/span><span lang=\"en-US\">.<\/span><\/span><\/span><\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; color: black; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-weight: bold;\">SELECT<\/span>\u00a0*\u00a0<span style=\"font-weight: bold;\">FROM<\/span>\u00a0products;<\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; color: black; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-weight: bold;\">INSERT<\/span>\u00a0<span style=\"font-weight: bold;\">INTO<\/span>\u00a0products(product_id, product_type_id,\u00a0<span style=\"font-weight: bold;\">NAME<\/span>,\u00a0<span style=\"font-weight: bold;\">DESCRIPTION<\/span>, price)<\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span style=\"font-weight: bold;\">VALUES<\/span>(13, 5, &#8216;Kobe Bryant&#8217;, &#8216;No.24&#8217;, &#8216;24.00&#8217;);<\/span><\/span><\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; color: black; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-weight: bold;\">SELECT<\/span>\u00a0*<\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; color: black; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-weight: bold;\">FROM<\/span>\u00a0products<\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span style=\"font-weight: bold;\">WHERE<\/span>\u00a0product_id = 13;<\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><img decoding=\"async\" style=\"border-style: none;\" alt=\"\" src=\"http:\/\/hi.csdn.net\/attachment\/201105\/18\/0_1305700546999v.gif\" \/><\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in; color: #4b4b4b; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span lang=\"en-US\">3.<\/span><span lang=\"zh-CN\">\u901a\u8fc7<\/span><span lang=\"en-US\">DBMS_FLASHBACK.ENABLE_AT_SYSTEM_CHANGE_NUMBER()<\/span><span lang=\"zh-CN\">\u8bed\u53e5\u53ef\u4ee5\u95ea\u56de\u5230\u8fd9\u4e2a<\/span><span lang=\"en-US\">SCN<\/span><span lang=\"zh-CN\">\u7684\u72b6\u6001<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u9700\u8981\u4e00\u4e2a<\/span><span lang=\"en-US\">SCN<\/span><span lang=\"zh-CN\">\u53c2\u6570<\/span><span lang=\"en-US\">.<\/span><\/span><\/span><\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\">EXECUTE DBMS_FLASHBACK.ENABLE_AT_SYSTEM_CHANGE_NUMBER(:curr_scn);<\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in; color: #4b4b4b; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span lang=\"en-US\">4.<\/span><span lang=\"zh-CN\">\u67e5\u8be2\u521a\u521a\u63d2\u5165\u7684\u6570\u636e<\/span><span lang=\"en-US\">,<\/span><span lang=\"zh-CN\">\u6ca1\u6709\u4efb\u4f55\u8bb0\u5f55<\/span><span lang=\"en-US\">.<\/span><\/span><\/span><\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; color: black; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-weight: bold;\">SELECT<\/span>\u00a0*<\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; color: black; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-weight: bold;\">FROM<\/span>\u00a0products<\/span><\/span><\/p>\n<p lang=\"en-US\" style=\"margin: 0in; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span style=\"font-weight: bold;\">WHERE<\/span>\u00a0product_id = 13;<\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><img decoding=\"async\" style=\"border-style: none;\" alt=\"\" src=\"http:\/\/hi.csdn.net\/attachment\/201105\/18\/0_1305700550Kjjp.gif\" \/><\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin: 0in; color: #4b4b4b; font-size: 12pt;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"font-size: small;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #000000;\"><span lang=\"en-US\">5.<\/span><span lang=\"zh-CN\">\u7981\u7528\u95ea\u56de\u64cd<\/span><span lang=\"en-US\">:EXECUTE DBMS_FLASHBACK.DISABLE();<\/span><\/span><\/span><\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Oracle\u4e2d\u5982\u679c\u9519\u8bef\u5730\u63d0\u4ea4\u4e86\u4fee\u6539\u64cd\u4f5c,\u7136\u540e\u60f3\u67e5\u770b\u5e76\u4fee\u6539\u539f\u6765\u7684\u503c,\u8fd9\u65f6\u5019\u53ef\u4ee5\u4f7f\u7528\u67e5\u8be2\u95ea\u56de(query fla [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[34,2],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-oracle","tag-oracle_basics"],"_links":{"self":[{"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=51"}],"version-history":[{"count":0,"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=\/wp\/v2\/posts\/51\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}