锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲成在人线电影天堂色,久久亚洲精品无码VA大香大香,亚洲乱码国产一区三区http://www.tkk7.com/kelly/category/49860.html鎴戞柊寮浜?jiǎn)娣樺疂锛寢脾杩庡厜鋸?fù)鎴戠殑灝忓簵錛歨ttp://shop58314633.taobao.comzh-cnMon, 02 Dec 2013 05:23:13 GMTMon, 02 Dec 2013 05:23:13 GMT60 oracle 蹇熷垹闄ゅぇ鎵歸噺鏁版嵁鏂規(guī)硶錛堝叏閮ㄥ垹闄わ紝鏉′歡鍒犻櫎錛屽垹闄ゅぇ閲忛噸澶嶈褰曪級(jí)-杞?/title><link>http://www.tkk7.com/kelly/archive/2013/12/02/407090.html</link><dc:creator>kelly</dc:creator><author>kelly</author><pubDate>Mon, 02 Dec 2013 02:49:00 GMT</pubDate><guid>http://www.tkk7.com/kelly/archive/2013/12/02/407090.html</guid><wfw:comment>http://www.tkk7.com/kelly/comments/407090.html</wfw:comment><comments>http://www.tkk7.com/kelly/archive/2013/12/02/407090.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kelly/comments/commentRss/407090.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kelly/services/trackbacks/407090.html</trackback:ping><description><![CDATA[<p style="text-align: center; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong><span style="font-size: large">鍏ㄩ儴鍒犻櫎</span></strong></p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">濡傛灉鏄垹闄ゆ煇涓〃鐨勬墍鏈夋暟鎹紝騫朵笖涓嶉渶瑕佸洖婊氾紝浣跨敤 TRUNCATE 灝眔k浜?jiǎn)銆傚叧浜嶵rancate 鍙傝<a style="color: rgb(51,102,153); text-decoration: none" >榪欓噷http://blog.csdn.net/gnolhh168/archive/2011/05/24/6442561.aspx</a></p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">SQL> truncate   table   table_name;</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> </p> <p style="text-align: center; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span style="font-size: large"><strong>鏉′歡鍒犻櫎</strong></span></p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">濡傛灉鍒犻櫎鏁版嵁鏈夋潯浠訛紝濡?delete from tablename where col1 = 'lucy';榪欐椂闄や簡(jiǎn)鍔犵儲(chǔ)寮曞, 浣犲彲浠ュ垹闄ゆ椂鍔燦O   LOGGING閫夐」,涓嶅啓鏃ュ織鍔犲揩鍒犻櫎閫熷害</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">寮曠敤鏌愪漢鐨勪竴鍙ヨ瘽“鍑犲崈涓囨潯璁板綍鐨勮〃閮戒笉鍒嗗尯錛屾槑鏄炬湁闂鍢涖侽racle鐨勬妧鏈敮鎸佸伐紼嬪笀寤鴻錛?,000,000鏉′互涓婅褰曠殑琛紝搴旇鑰冭檻鍒嗗尯錛屼綘瀹屽叏鍙互鎸夌収鏃墮棿涓虹淮搴︽潵寤鴻〃錛屾瘡涓湀鐨勬暟鎹瓨鏀懼湪涓涓垎鍖鴻〃涓紝浠ュ悗瑕佸垹闄や竴涓湀鐨勬暟鎹紝鐩存帴truncate   table鍗沖彲錛屼笉璁板綍鏃ュ織錛岄熷害寰堝揩銆?#8221;</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> </p> <p style="text-align: center; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span style="font-size: large"><strong> 鍒犻櫎澶ч噺閲嶅璁板綍</strong></span></p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">銆婅漿銆嬪仛欏圭洰鐨勬椂鍊欙紝涓浣嶅悓浜嬪鏁版嵁鐨勬椂鍊欙紝涓嶅皬蹇?jī)鎶婁竴涓〃涓殑鏁版嵁鍏ㄩ兘鎼為噸浜?jiǎn)锛屼篃灏辨槸璇村Q岃繖涓〃閲屾墍鏈夌殑璁板綍閮芥湁涓鏉¢噸澶嶇殑銆傝繖涓〃鐨勬暟鎹槸鍗冧竾綰х殑錛岃屼笖鏄敓浜х郴緇熴備篃灝辨槸璇達(dá)紝涓嶈兘鎶婃墍鏈夌殑璁板綍閮藉垹闄わ紝鑰屼笖蹇呴』蹇熺殑鎶婇噸澶嶈褰曞垹鎺夈?/p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">瀵規(guī)錛屾葷粨浜?jiǎn)涓涓嬪垹闄ら噸澶嶈褰曠殑鏂規(guī)硶錛屼互鍙?qiáng)姣徔U嶆柟娉曠殑浼樼己鐐廣?/p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">涓轟簡(jiǎn)闄堣瘔鏂逛究錛屽亣璁捐〃鍚嶄負(fù)Tbl錛岃〃涓湁涓夊垪col1錛宑ol2錛宑ol3錛屽叾涓璫ol1錛宑ol2鏄富閿紝騫朵笖錛宑ol1錛宑ol2涓婂姞浜?jiǎn)鐑?chǔ)寮曘?/p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">1銆侀氳繃鍒涘緩涓存椂琛?/p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">鍙互鎶婃暟鎹厛瀵煎叆鍒頒竴涓復(fù)鏃惰〃涓紝鐒跺悗鍒犻櫎鍘熻〃鐨勬暟鎹紝鍐嶆妸鏁版嵁瀵煎洖鍘熻〃錛孲QL璇彞濡備笅錛?/p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">creat table tbl_tmp (select distinct* from tbl);</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">truncate table tbl;            //娓呯┖琛ㄨ褰昳</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">nsert into tbl select * from tbl_tmp;//灝嗕復(fù)鏃惰〃涓殑鏁版嵁鎻掑洖鏉ャ?/p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">榪欑鏂規(guī)硶鍙互瀹炵幇闇姹傦紝浣嗘槸寰堟槑鏄撅紝瀵逛簬涓涓崈涓囩駭璁板綍鐨勮〃錛岃繖縐嶆柟娉曞緢鎱紝鍦ㄧ敓浜х郴緇熶腑錛岃繖浼?xì)缁櫨p葷粺甯︽潵寰堝ぇ鐨勫紑閿錛屼笉鍙銆?/p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">2銆佸埄鐢╮owid</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">鍦╫racle涓紝姣忎竴鏉¤褰曢兘鏈変竴涓猺owid錛宺owid鍦ㄦ暣涓暟鎹簱涓槸鍞竴鐨勶紝rowid紜畾浜?jiǎn)姣忔潯璁板綍鏄痮racle涓殑鍝竴涓暟鎹枃浠躲佸潡銆佽涓娿傚湪閲嶅鐨勮褰曚腑錛屽彲鑳芥墍鏈夊垪鐨勫唴瀹歸兘鐩稿悓錛屼絾rowid涓嶄細(xì)鐩稿悓銆係QL璇彞濡備笅錛?/p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">delete from tbl where rowid in (select a.rowid</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">from tbl a,            tbl b</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">where a.rowid>b.rowid and a.col1=b.col1 and a.col2 = b.col2) </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">濡傛灉宸茬粡鐭ラ亾姣忔潯璁板綍鍙湁涓鏉¢噸澶嶇殑錛岃繖涓猻ql璇彞閫傜敤銆備絾鏄鏋滄瘡鏉¤褰曠殑閲嶅璁板綍鏈塏鏉★紝榪欎釜N鏄湭鐭ョ殑錛屽氨瑕佽冭檻閫傜敤涓嬮潰榪欑鏂規(guī)硶浜?jiǎn)銆?/p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">3銆佸埄鐢╩ax鎴杕in鍑芥暟</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">榪欓噷涔熻浣跨敤rowid錛屼笌涓婇潰涓嶅悓鐨勬槸緇撳悎max鎴杕in鍑芥暟鏉ュ疄鐜般係QL璇彞濡備笅</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">delete from tbl a</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">where rowid not in (</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">          select max(b.rowid)           </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">          from tbl b</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">           where a.col1=b.col1 and a.col2 = b.col2);            //榪欓噷max浣跨敤min涔熷彲浠?nbsp;</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">鎴栬呯敤涓嬮潰鐨勮鍙?/p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">delete from tbl awhere rowid<(</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">             select max(b.rowid)           </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">             from tbl b</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">             where a.col1=b.col1 and a.col2 = b.col2);            //榪欓噷濡傛灉鎶妋ax鎹㈡垚min鐨勮瘽錛屽墠闈㈢殑where瀛愬彞涓渶瑕佹妸"<"鏀逛負(fù)">" </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">璺熶笂闈㈢殑鏂規(guī)硶鎬濊礬鍩烘湰鏄竴鏍風(fēng)殑錛屼笉榪囦嬌鐢ㄤ簡(jiǎn)group by錛屽噺灝戜簡(jiǎn)鏄炬х殑姣旇緝鏉′歡錛屾彁楂樻晥鐜囥係QL璇彞濡備笅錛?/p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">deletefrom tbl where rowid not in (</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">                select max(rowid)           </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">               from tbl tgroup by t.col1, t.col2);</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span style="background-color: rgb(255,0,0)">delete from tbl where (col1, col2)  in (</span></p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span style="background-color: rgb(255,0,0)">                   select col1,col2</span></p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span style="background-color: rgb(255,0,0)">                    from tblgroup bycol1,col2havingcount(*)            >1) and rowidnotin(selectnin(rowid)fromtblgroup bycol1,            col2havingcount(*) >1)    ----錛燂紵錛?/span></p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">榪樻湁涓縐嶆柟娉曪紝瀵逛簬琛ㄤ腑鏈夐噸澶嶈褰曠殑璁板綍姣旇緝?yōu)畱鐨勫Q屽茍涓旀湁绱㈠紩鐨勬儏鍐碉紝姣旇緝閫傜敤銆傚亣瀹歝ol1錛宑ol2涓婃湁绱㈠紩錛屽茍涓攖bl琛ㄤ腑鏈夐噸澶嶈褰曠殑璁板綍姣旇緝?yōu)畱锛孲QL璇彞濡備笅4銆佸埄鐢╣roup by錛屾彁楂樻晥鐜?/p><img src ="http://www.tkk7.com/kelly/aggbug/407090.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kelly/" target="_blank">kelly</a> 2013-12-02 10:49 <a href="http://www.tkk7.com/kelly/archive/2013/12/02/407090.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>numtodsinterval and interval for oracle鏃墮棿鍔犲噺鍑芥暟-杞?/title><link>http://www.tkk7.com/kelly/archive/2013/11/22/406656.html</link><dc:creator>kelly</dc:creator><author>kelly</author><pubDate>Fri, 22 Nov 2013 02:39:00 GMT</pubDate><guid>http://www.tkk7.com/kelly/archive/2013/11/22/406656.html</guid><wfw:comment>http://www.tkk7.com/kelly/comments/406656.html</wfw:comment><comments>http://www.tkk7.com/kelly/archive/2013/11/22/406656.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kelly/comments/commentRss/406656.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kelly/services/trackbacks/406656.html</trackback:ping><description><![CDATA[<p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">涓銆?nbsp; 璇硶錛歂UMTOYMINTERVAL ( n , 'char_expr' )<br />              char_expr錛氭棩鏈熸弿榪幫紝鍙互鏄痀EAR鍜孧ONTH錛?br /><br />  浣滅敤錛氬彲浠ュ皢鏁板瓧杞崲鎴愮浉搴旂殑鏃ユ湡鍗曚綅鏃墮棿<br /><br />  姣斿錛歂UMTOYMINTERVAL ( 1, 'MONTH' ) 琛ㄧず涓涓湀錛屾敞鎰忥細(xì)姝ゆ椂璺焌dd_months鏈夌偣鍖哄埆錛屽悗緇湁渚嬪瓙浼?xì)璁插埌銆?br />              NUMTOYMINTERVAL ( 1, 'YEAR' ) 琛ㄧず涓騫?/p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">瀵逛簬day銆乭our銆乵inute銆乻econd浣跨敤鐨勬槸numtodsinterval鍑芥暟錛屾柟娉曞拰numtoyminterval涓鏍楓傚悗闈㈠彲浠ヨ窡鍙橀噺</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">浜屻乮nterval鍚庨潰鍙兘鐢ㄦ暟瀛?/p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">涓嬮潰鏄婦渚嬶細(xì)</p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">SQL> select<span id="awkcguo" class="Apple-converted-space"> </span><strong>add_months</strong><span id="iwcyscc" class="Apple-converted-space"> </span>(to_date('20110228','yyyymmdd'),1) from dual;<br /><br />ADD_MONTH<br />---------<br /><strong>31-MAR-11</strong><span id="iyeamey" class="Apple-converted-space"> </span><br /><br />SQL><span id="ciugyyw" class="Apple-converted-space"> </span><br />SQL> select add_months(to_date('20110228','yyyymmdd'),-1) from  dual;<br /><br />ADD_MONTH<br />---------<br />31-JAN-11<br /><br />SQL><span id="ggqacci" class="Apple-converted-space"> </span><br />SQL><span id="agysusi" class="Apple-converted-space"> </span><br />SQL> select to_date('2007-02-28','yyyy-mm-dd')+<strong>numtoyminterval</strong><span id="mswysiy" class="Apple-converted-space"> </span>(1,'month') from dual;<br /><br />TO_DATE('<br />---------<br /><strong>28-MAR-07</strong><span id="aimwmua" class="Apple-converted-space"> </span><br /><br />SQL> select to_date('2007-02-28','yyyy-mm-dd')-<strong>numtoyminterval</strong><span id="wuoyigg" class="Apple-converted-space"> </span>(1,'month') from dual;<br /><br />TO_DATE('<br />---------<br /><strong>28-JAN-07</strong></p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><strong><br />姝ゆ椂錛屾敞鎰忚窡add_months榪斿洖緇撴灉鐨勫尯鍒?/strong></p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> </p> <p style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; letter-spacing: normal; font: 14px/26px Arial; white-space: normal; orphans: 2; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">SQL> select to_date('2007-02-28','yyyy-mm-dd')+numtodsinterval(1,'day') from dual;<br /><br />TO_DATE('<br />---------<br />01-MAR-07<br /><br /><br />SQL><span id="gwyssqe" class="Apple-converted-space"> </span><br />SQL> select to_date('2007-02-28','yyyy-mm-dd')+interval '+3' hour from dual;<br /><br />TO_DATE('<br />---------<br />28-FEB-07<br /><br /><br />SQL> select to_date('2007-02-28','yyyy-mm-dd')+interval '+1' month from dual;<br /><br />TO_DATE('<br />---------<br />28-MAR-07</p><img src ="http://www.tkk7.com/kelly/aggbug/406656.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kelly/" target="_blank">kelly</a> 2013-11-22 10:39 <a href="http://www.tkk7.com/kelly/archive/2013/11/22/406656.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>ora-01033:oracle initialization or shutdown in progress 瑙e喅鏂規(guī)硶http://www.tkk7.com/kelly/archive/2013/04/08/397524.htmlkellykellyMon, 08 Apr 2013 06:53:00 GMThttp://www.tkk7.com/kelly/archive/2013/04/08/397524.htmlhttp://www.tkk7.com/kelly/comments/397524.htmlhttp://www.tkk7.com/kelly/archive/2013/04/08/397524.html#Feedback0http://www.tkk7.com/kelly/comments/commentRss/397524.htmlhttp://www.tkk7.com/kelly/services/trackbacks/397524.html浠婂ぉ浣跨敤Oracle閬囧埌浜?jiǎn)杩欎釜闂ora-01033:oracle initialization or shutdown in progress錛岀粡榪囧垎鏋愮爺絀剁粓浜庤В鍐充簡(jiǎn)錛岃涓嬫潵.
鎴戦亣鍒扮殑閿欒鏄?/span>ORA-00600: 鍐呴儴閿欒浠g爜錛屽弬鏁? [kcratr1_lostwrt]

鍒嗘瀽榪囩▼錛?br />
榪愯涓緭鍏md錛屻佽緭鍏qlplus /nolog錛岀劧鍚庣敤 鐢╯ys鐧婚檰銆?/span>

Microsoft Windows [鐗堟湰 5.2.3790]
(C) 鐗堟潈鎵鏈?1985-2003 Microsoft Corp.

E:\Documents and Settings\Administrator>sqlplus /nolog

SQL*Plus: Release 9.2.0.1.0 - Production on 鏄熸湡涓 4鏈?8 14:20:05 2

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
SQL> connect sys/sys as sysdba;
宸茶繛鎺ャ?br />SQL> shutdown normal
ORA-01109: 鏁版嵁搴撴湭鎵撳紑


宸茬粡鍗歌澆鏁版嵁搴撱?br />ORACLE 渚嬬▼宸茬粡鍏抽棴銆?br />SQL> startup mount
ORACLE 渚嬬▼宸茬粡鍚姩銆?/p>

Total System Global Area  135338868 bytes
Fixed Size                   453492 bytes
Variable Size             109051904 bytes
Database Buffers           25165824 bytes
Redo Buffers                 667648 bytes
鏁版嵁搴撹杞藉畬姣曘?br />
SQL> alter database open;
鍑虹幇浠ヤ笅閿欒錛?br />ORA-00600: 鍐呴儴閿欒浠g爜錛屽弬鏁? [kcratr1_lostwrt]

鍑虹幇璇ラ敊璇槸鍥犱負(fù)緋葷粺寮哄埗鍏蟲満閫犳垚鐨?
鐥囩姸涓烘暟鎹簱鏃犳硶鎵撳紑!

瑙e喅榪欎釜閿欒錛?br />
SQL> shutdown normal
ORA-01109: 鏁版嵁搴撴湭鎵撳紑


宸茬粡鍗歌澆鏁版嵁搴撱?br />ORACLE 渚嬬▼宸茬粡鍏抽棴銆?br />SQL> startup mount
ORACLE 渚嬬▼宸茬粡鍚姩銆?/p>

Total System Global Area 135338868 bytes
Fixed Size 453492 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
鏁版嵁搴撹杞藉畬姣曘?br />
SQL>recover database;
瀹屾垚浠嬭川鎭㈠
SQL> alter database open;

鏁版嵁搴撳凡鏇存敼
SQL>exit;




 




 



kelly 2013-04-08 14:53 鍙戣〃璇勮
]]>
Linux涓嬪惎鍔∣racle鏈嶅姟鍜岀洃鍚▼搴?/title><link>http://www.tkk7.com/kelly/archive/2011/09/26/359505.html</link><dc:creator>kelly</dc:creator><author>kelly</author><pubDate>Mon, 26 Sep 2011 06:28:00 GMT</pubDate><guid>http://www.tkk7.com/kelly/archive/2011/09/26/359505.html</guid><wfw:comment>http://www.tkk7.com/kelly/comments/359505.html</wfw:comment><comments>http://www.tkk7.com/kelly/archive/2011/09/26/359505.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kelly/comments/commentRss/359505.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kelly/services/trackbacks/359505.html</trackback:ping><description><![CDATA[<span style="line-height: 19px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px" class="Apple-style-span"> <p style="margin: 0px 0px 14px" id="fp"><span style="line-height: 19px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px"> </span></p><p style="margin: 0px 0px 14px" id="fp">oracle鏁版嵁搴撴槸閲嶉噺綰х殑錛屽叾綆$悊闈炲父澶嶆潅錛屽皢鍏跺湪linux騫沖彴涓婄殑鍚姩鍜屽叧闂楠ゆ暣鐞嗕竴涓嬨?/p> <p style="margin: 0px 0px 14px">瀹夎瀹屾瘯oracle浠ュ悗錛岄渶瑕佸垱寤簅racle緋葷粺鐢ㄦ埛錛屽茍鍦?home/oracle涓嬮潰鐨?bash_profile娣誨姞鍑犱釜鐜鍙橀噺錛歄RACLE_SID,ORACLE_BASE,ORACLE_HOME銆傛瘮濡傦細(xì)</p> <p style="margin: 0px 0px 14px">export ORACLE_SID=test  export ORACLE_BASE=oracle_install_dir export ORACLE_HOME=xxx</p> <p style="margin: 0px 0px 14px">鍚姩姝ラ錛氭敞鎰?浠h〃shell鍛戒護(hù)鎻愮ず絎︼紝榪欓噷鐨刼racle鏄?.0浠ヤ笂鐗堟湰銆?br /></p> <p>鍒囨崲鍒皁racle鐢ㄦ埛涓嬮潰錛?br />$ su - oracle</p> <p>$ sqlplus / nolog</p> <p>sql> conn / as sysdba</p> <p>sql> startup (鍚姩鏁版嵁搴擄紝涓鑸笉闇瑕佸姞鍙傛暟錛屽彧瑕佽緗ソ鐜鍙橀噺錛?/p> <p>sql>shutdown 錛堝叧闂暟鎹簱鍏跺弬鏁?錛歴hutdown鏈夊洓涓弬鏁幫紝鍥涗釜鍙傛暟鐨勫惈涔夊涓嬶細(xì)<br />Normal 闇瑕佺瓑寰呮墍鏈夌殑鐢ㄦ埛鏂紑榪炴帴<br />Immediate 絳夊緟鐢ㄦ埛瀹屾垚褰撳墠鐨勮鍙?br />Transactional 絳夊緟鐢ㄦ埛瀹屾垚褰撳墠鐨勪簨鍔?br />Abort 涓嶅仛浠諱綍絳夊緟錛岀洿鎺ュ叧闂暟鎹簱<br />normal闇瑕佸湪鎵鏈夎繛鎺ョ敤鎴鋒柇寮鍚庢墠鎵ц鍏抽棴鏁版嵁搴撲換鍔★紝鎵浠ユ湁鐨勬椂鍊欑湅璧鋒潵濂借薄鍛戒護(hù)娌℃湁榪愯涓鏍鳳紒鍦ㄦ墽琛岃繖涓懡浠ゅ悗涓嶅厑璁告柊鐨勮繛鎺?br />immediate鍦ㄧ敤鎴鋒墽琛屽畬姝e湪鎵ц鐨勮鍙ュ悗灝辨柇寮鐢ㄦ埛榪炴帴錛屽茍涓嶅厑璁告柊鐢ㄦ埛榪炴帴銆?br />transactional 鍦ㄦ嫢鎶ゆ墽琛屽畬褰撳墠浜嬬墿鍚庢柇寮榪炴帴錛屽茍涓嶅厑璁告柊鐨勭敤鎴瘋繛鎺ユ暟鎹簱銆?br />abort 鎵ц寮鴻鏂紑榪炴帴騫剁洿鎺ュ叧闂暟鎹簱銆?br /></p> <p>sql> quit (閫鍑簊ql妯″紡)<br /><br />鍚姩鐩戝惉鍣細(xì)<br /></p> <p>$ su - oracle<br />鐒跺悗鍒囨崲鍒?oracle_home/bin涓嬮潰錛屾墽琛屼笅闈㈠懡浠?/p> <p>$lsnrctl start (鍚姩鐩戝惉鍣級(jí)<br />$lsnrctl status (鏌ョ湅鐩戝惉鍣ㄥ惎鍔ㄧ姸鎬?<br />$lsnrctl stop(鍏抽棴鐩戝惉鍣?</p> <p> </p> <p style="margin: 0px 0px 14px">緇忓父閬囧埌鐨勯棶棰橈細(xì)</p> <p style="margin: 0px 0px 14px">1錛夋潈闄愰棶棰橈紝瑙e喅鏂規(guī)硶錛屽垏鎹㈠埌oracle鐢ㄦ埛錛?/p> <p style="margin: 0px 0px 14px">2錛夋病鏈夊叧闂洃鍚櫒 錛岃В鍐蟲柟娉曪細(xì)鍏抽棴鐩戝惉鍣?/p> <p style="margin: 0px 0px 14px">3錛夋湁oracle瀹炰緥娌℃湁鍏抽棴錛岃В鍐沖姙娉曪細(xì)鍏抽棴oracle瀹炰緥</p> <p style="margin: 0px 0px 14px">4錛夌幆澧冨彉閲忚緗笉鍏紝瑙e喅鍔炴硶錛氫慨鏀圭幆澧冨彉閲?/p></span> <h2 style="line-height: normal; margin: 0px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #444444; font-size: 12px"><a id="viewpost1_TitleUrl" class="singleposttitle" ></a></h2><img src ="http://www.tkk7.com/kelly/aggbug/359505.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kelly/" target="_blank">kelly</a> 2011-09-26 14:28 <a href="http://www.tkk7.com/kelly/archive/2011/09/26/359505.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>杞細(xì)oracle澶囦喚鏁版嵁搴撳懡浠?/title><link>http://www.tkk7.com/kelly/archive/2011/09/26/359504.html</link><dc:creator>kelly</dc:creator><author>kelly</author><pubDate>Mon, 26 Sep 2011 06:27:00 GMT</pubDate><guid>http://www.tkk7.com/kelly/archive/2011/09/26/359504.html</guid><wfw:comment>http://www.tkk7.com/kelly/comments/359504.html</wfw:comment><comments>http://www.tkk7.com/kelly/archive/2011/09/26/359504.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kelly/comments/commentRss/359504.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kelly/services/trackbacks/359504.html</trackback:ping><description><![CDATA[<span style="line-height: 20px; font-family: Arial; letter-spacing: 1px; color: #989a59; font-size: 12px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class="Apple-style-span"><span style="line-height: 20px; font-family: Arial; letter-spacing: 1px; color: #989a59; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px">瀵煎嚭 exp userid/pwdid@servername file=dataname.dmp<br style="line-height: normal" />瀵煎叆 imp username/pwdid@servername file=dataname.dmp<br style="line-height: normal" />Oracle鏁版嵁瀵煎叆瀵煎嚭imp/exp灝辯浉褰撲簬oracle鏁版嵁榪樺師涓庡浠姐俥xp鍛戒護(hù)鍙互鎶婃暟鎹粠榪滅▼鏁版嵁搴撴湇鍔″櫒瀵煎嚭鍒版湰鍦扮殑dmp鏂?浠訛紝imp鍛戒護(hù)鍙互鎶奷mp鏂囦歡浠庢湰鍦板鍏ュ埌榪滃鐨勬暟鎹簱鏈嶅姟鍣ㄤ腑銆?鍒╃敤榪欎釜鍔熻兘鍙互鏋勫緩涓や釜鐩稿悓鐨勬暟鎹簱錛屼竴涓敤鏉ユ祴璇曪紝涓涓敤鏉ユ寮忎嬌鐢ㄣ?br style="line-height: normal" /><br style="line-height: normal" />鎵ц鐜錛氬彲浠ュ湪SQLPLUS.EXE鎴栬匘OS錛堝懡浠よ錛変腑鎵ц錛?br style="line-height: normal" />DOS涓彲浠ユ墽琛屾椂鐢變簬 鍦╫racle 8i 涓?瀹夎鐩綍\ora81\BIN琚緗負(fù)鍏ㄥ眬璺緞錛?br style="line-height: normal" />璇ョ洰褰曚笅鏈塃XP.EXE涓嶪MP.EXE鏂囦歡琚敤鏉ユ墽琛屽鍏ュ鍑恒?br style="line-height: normal" />oracle鐢╦ava緙栧啓錛孲QLPLUS.EXE銆丒XP.EXE銆両MP.EXE榪欎袱涓枃浠舵湁鍙兘鏄鍖呰鍚庣殑綾繪枃浠躲?br style="line-height: normal" />SQLPLUS.EXE璋冪敤EXP.EXE銆両MP.EXE鎵鍖呰9鐨勭被錛屽畬鎴愬鍏ュ鍑哄姛鑳姐?br style="line-height: normal" /><br style="line-height: normal" />涓嬮潰浠嬬粛鐨勬槸瀵煎叆瀵煎嚭鐨勫疄渚嬨?br style="line-height: normal" />鏁版嵁瀵煎嚭錛?br style="line-height: normal" />1 灝嗘暟鎹簱TEST瀹屽叏瀵煎嚭,鐢ㄦ埛鍚峴ystem 瀵嗙爜manager 瀵煎嚭鍒癉:\daochu.dmp涓?br style="line-height: normal" />   exp <a style="line-height: 20px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #989a59; font-size: 12px; font-weight: normal; text-decoration: none" href="mailto:system/manager@TEST"><u style="line-height: normal">system/manager@TEST</u></a> file=d:\daochu.dmp full=y<br style="line-height: normal" />2 灝嗘暟鎹簱涓璼ystem鐢ㄦ埛涓巗ys鐢ㄦ埛鐨勮〃瀵煎嚭<br style="line-height: normal" />   exp <a style="line-height: 20px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #989a59; font-size: 12px; font-weight: normal; text-decoration: none" href="mailto:system/manager@TEST"><u style="line-height: normal">system/manager@TEST</u></a> file=d:\daochu.dmp owner=(system,sys)<br style="line-height: normal" />3 灝嗘暟鎹簱涓殑琛╥nner_notify銆乶otify_staff_relat瀵煎嚭<br style="line-height: normal" />    exp <a style="line-height: 20px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #989a59; font-size: 12px; font-weight: normal; text-decoration: none" href="mailto:aichannel/aichannel@TESTDB2"><u style="line-height: normal">aichannel/aichannel@TESTDB2</u></a> file= d:\data\newsmgnt.dmp tables=(inner_notify,notify_staff_relat) <br style="line-height: normal" /><br style="line-height: normal" />4 灝嗘暟鎹簱涓殑琛╰able1涓殑瀛楁filed1浠?00"鎵撳ご鐨勬暟鎹鍑?br style="line-height: normal" />   exp <a style="line-height: 20px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #989a59; font-size: 12px; font-weight: normal; text-decoration: none" href="mailto:system/manager@TEST"><u style="line-height: normal">system/manager@TEST</u></a> file=d:\daochu.dmp tables=(table1) query=\" where filed1 like '00%'\"<br style="line-height: normal" /><br style="line-height: normal" />涓婇潰鏄父鐢ㄧ殑瀵煎嚭錛屽浜庡帇緙╋紝鏃㈢敤winzip鎶奷mp鏂囦歡鍙互寰堝ソ鐨勫帇緙┿?br style="line-height: normal" />涔熷彲浠ュ湪涓婇潰鍛戒護(hù)鍚庨潰 鍔犱笂 compress=y 鏉ュ疄鐜般? <p style="line-height: normal">鏁版嵁鐨勫鍏?br style="line-height: normal" />1 灝咲:\daochu.dmp 涓殑鏁版嵁瀵煎叆 TEST鏁版嵁搴撲腑銆?br style="line-height: normal" />   imp <a style="line-height: 20px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #989a59; font-size: 12px; font-weight: normal; text-decoration: none" href="mailto:system/manager@TEST"><u style="line-height: normal">system/manager@TEST</u></a> file=d:\daochu.dmp<br style="line-height: normal" />   imp <a style="line-height: 20px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #989a59; font-size: 12px; font-weight: normal; text-decoration: none" href="mailto:aichannel/aichannel@HUST"><u style="line-height: normal">aichannel/aichannel@HUST</u></a> full=y file=file= d:\data\newsmgnt.dmp ignore=y <br style="line-height: normal" />   涓婇潰鍙兘鏈夌偣闂錛屽洜涓烘湁鐨勮〃宸茬粡瀛樺湪錛岀劧鍚庡畠?yōu)鎶ラ敊锛屽璇ヨ〃灏变笉杩涜瀵煎叆銆?br style="line-height: normal" />   鍦ㄥ悗闈㈠姞涓?ignore=y 灝卞彲浠ヤ簡(jiǎn)銆?br style="line-height: normal" />2 灝哾:\daochu.dmp涓殑琛╰able1 瀵煎叆<br style="line-height: normal" />imp <a style="line-height: 20px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #989a59; font-size: 12px; font-weight: normal; text-decoration: none" href="mailto:system/manager@TEST"><u style="line-height: normal">system/manager@TEST</u></a> file=d:\daochu.dmp tables=(table1) <br style="line-height: normal" /><br style="line-height: normal" />鍩烘湰涓婁笂闈㈢殑瀵煎叆瀵煎嚭澶熺敤浜?jiǎn)銆備笉灝戞儏鍐佃鍏堟槸灝嗚〃褰誨簳鍒犻櫎錛岀劧鍚庡鍏ャ?br style="line-height: normal" /><br style="line-height: normal" />娉ㄦ剰錛?br style="line-height: normal" />鎿嶄綔鑰呰鏈夎凍澶熺殑鏉冮檺錛屾潈闄愪笉澶熷畠浼?xì)鎻惤C恒?br style="line-height: normal" />鏁版嵁搴撴椂鍙互榪炰笂鐨勩傚彲浠ョ敤tnsping TEST 鏉ヨ幏寰楁暟鎹簱TEST鑳藉惁榪炰笂銆?/p> <p style="line-height: normal">闄勫綍涓錛?br style="line-height: normal" />緇欑敤鎴峰鍔犲鍏ユ暟鎹潈闄愮殑鎿嶄綔<br style="line-height: normal" />絎竴,鍚姩sql*puls<br style="line-height: normal" />絎簩錛屼互system/manager鐧婚檰<br style="line-height: normal" />絎笁錛宑reate user 鐢ㄦ埛鍚?IDENTIFIED BY 瀵嗙爜 錛堝鏋滃凡緇忓垱寤鴻繃鐢ㄦ埛錛岃繖姝ュ彲浠ョ渷鐣ワ級(jí)<br style="line-height: normal" />絎洓錛孏RANT CREATE USER,DROP USER,ALTER USER ,CREATE ANY VIEW ,<br style="line-height: normal" />   DROP ANY VIEW,EXP_FULL_DATABASE,IMP_FULL_DATABASE,<br style="line-height: normal" />    DBA,CONNECT,RESOURCE,CREATE SESSION TO 鐢ㄦ埛鍚嶅瓧 <br style="line-height: normal" />絎簲, 榪愯-cmd-榪涘叆dmp鏂囦歡鎵鍦ㄧ殑鐩綍, <br style="line-height: normal" />    imp userid=system/manager full=y file=*.dmp<br style="line-height: normal" />     鎴栬?imp userid=system/manager full=y file=filename.dmp</p> <p style="line-height: normal">鎵ц紺轟緥:<br style="line-height: normal" />F:\Work\Oracle_Data\backup>imp userid=test/test full=y file=inner_notify.dmp</p> <p style="line-height: normal">灞忓箷鏄劇ず<br style="line-height: normal" />Import: Release 8.1.7.0.0 - Production on 鏄熸湡鍥?2鏈?16 16:50:05 2006<br style="line-height: normal" />(c) Copyright 2000 Oracle Corporation. All rights reserved.</p> <p style="line-height: normal">榪炴帴鍒? Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production<br style="line-height: normal" />With the Partitioning option<br style="line-height: normal" />JServer Release 8.1.7.0.0 - Production</p> <p style="line-height: normal">緇忕敱甯歌璺緞瀵煎嚭鐢盓XPORT:V08.01.07鍒涘緩鐨勬枃浠?br style="line-height: normal" />宸茬粡瀹屾垚ZHS16GBK瀛楃闆嗗拰ZHS16GBK NCHAR 瀛楃闆嗕腑鐨勫鍏?br style="line-height: normal" />瀵煎嚭鏈嶅姟鍣ㄤ嬌鐢║TF8 NCHAR 瀛楃闆?(鍙兘鐨刵charset杞崲)<br style="line-height: normal" />. 姝e湪灝咥ICHANNEL鐨勫璞″鍏ュ埌 AICHANNEL<br style="line-height: normal" />. . 姝e湪瀵煎叆琛?nbsp;                 "INNER_NOTIFY"          4琛岃瀵煎叆<br style="line-height: normal" />鍑嗗鍚敤綰︽潫鏉′歡...<br style="line-height: normal" />鎴愬姛緇堟瀵煎叆錛屼絾鍑虹幇璀﹀憡銆?/p> <p style="line-height: normal"><br style="line-height: normal" />闄勫綍浜岋細(xì)<br style="line-height: normal" />Oracle 涓嶅厑璁哥洿鎺ユ敼鍙樿〃鐨勬嫢鏈夎? 鍒╃敤Export/Import鍙互杈懼埌榪欎竴鐩殑.<br style="line-height: normal" />鍏堝緩绔媔mport9.par,<br style="line-height: normal" />鐒跺悗錛屼嬌鐢ㄦ椂鍛戒護(hù)濡備笅錛歩mp parfile=/filepath/import9.par<br style="line-height: normal" />渚?import9.par 鍐呭濡備笅錛?br style="line-height: normal" />        FROMUSER=TGPMS        <br style="line-height: normal" />        TOUSER=TGPMS2     錛堟敞錛氭妸琛ㄧ殑鎷ユ湁鑰呯敱FROMUSER鏀逛負(fù)TOUSER錛孎ROMUSER鍜孴OUSER鐨勭敤鎴峰彲浠ヤ笉鍚岋級(jí)           <br style="line-height: normal" />        ROWS=Y<br style="line-height: normal" />        INDEXES=Y<br style="line-height: normal" />        GRANTS=Y<br style="line-height: normal" />        CONSTRAINTS=Y<br style="line-height: normal" />        BUFFER=409600<br style="line-height: normal" />        file==/backup/ctgpc_20030623.dmp<br style="line-height: normal" />        log==/backup/import_20030623.log</p></span></span><span style="line-height: normal; font-family: Arial; letter-spacing: 1px; color: #989a59; font-size: 12px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class="Apple-style-span">緇忛獙璇侊紝灞炲悎鏍間駭鍝侊紒</span><img src ="http://www.tkk7.com/kelly/aggbug/359504.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kelly/" target="_blank">kelly</a> 2011-09-26 14:27 <a href="http://www.tkk7.com/kelly/archive/2011/09/26/359504.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://qestest.com" target="_blank">免费看国产曰批40分钟</a>| <a href="http://mogo321.com" target="_blank">亚洲av伊人久久综合密臀性色</a>| <a href="http://longcais.com" target="_blank">国产亚洲美女精品久久</a>| <a href="http://baocaoluoli.com" target="_blank">国产成人99久久亚洲综合精品</a>| <a href="http://xianliwang.com" target="_blank">a级毛片免费播放</a>| <a href="http://zjj100.com" target="_blank">久久精品国产99国产精品亚洲</a>| <a href="http://www84847.com" target="_blank">又大又粗又爽a级毛片免费看</a>| <a href="http://www907ii.com" target="_blank">免费av一区二区三区</a>| <a href="http://haidiaori.com" target="_blank">亚洲欧洲免费无码</a>| <a href="http://juguanghr.com" target="_blank">亚洲欧洲日产国码无码网站 </a>| <a href="http://dstbxg.com" target="_blank">久久精品成人免费网站</a>| <a href="http://778002.com" target="_blank">日本亚洲精品色婷婷在线影院</a>| <a href="http://hubmba.com" target="_blank">亚洲性久久久影院</a>| <a href="http://dzyong.com" target="_blank">两性刺激生活片免费视频</a>| <a href="http://kssijia.com" target="_blank">乱淫片免费影院观看</a>| <a href="http://664403.com" target="_blank">亚洲国产美女在线观看</a>| <a href="http://kypbuy.com" target="_blank">亚洲一区二区三区国产精品</a>| <a href="http://jgxsdst.com" target="_blank">免费三级毛片电影片</a>| <a href="http://fenglufzjx.com" target="_blank">成人国产精品免费视频</a>| <a href="http://nfrxfarm.com" target="_blank">亚洲夂夂婷婷色拍WW47</a>| <a href="http://hongyue8.com" target="_blank">亚洲AV无码乱码国产麻豆</a>| <a href="http://27simnjingmiguan.com" target="_blank">免费人成在线观看播放国产 </a>| <a href="http://ax445.com" target="_blank">亚洲av无码一区二区三区四区</a>| <a href="http://lanchenews.com" target="_blank">亚洲精品无码不卡在线播放HE</a>| <a href="http://57798b.com" target="_blank">18禁无遮挡无码网站免费</a>| <a href="http://zygwkqf.com" target="_blank">毛片在线播放免费观看</a>| <a href="http://cdkunyu.com" target="_blank">337P日本欧洲亚洲大胆艺术图</a>| <a href="http://fanhaogo.com" target="_blank">亚洲性天天干天天摸</a>| <a href="http://qimiaodh.com" target="_blank">www.91亚洲</a>| <a href="http://hqshimo.com" target="_blank">久久精品无码一区二区三区免费</a>| <a href="http://bjbf99.com" target="_blank">日本中文字幕免费高清视频</a>| <a href="http://d8139.com" target="_blank">另类小说亚洲色图</a>| <a href="http://qinglou31.com" target="_blank">亚洲日本va在线观看</a>| <a href="http://lai228.com" target="_blank">亚洲AV无码成人网站久久精品大</a>| <a href="http://szyujiaxing.com" target="_blank">国产乱子影视频上线免费观看</a>| <a href="http://www876444.com" target="_blank">国产曰批免费视频播放免费s</a>| <a href="http://langya2255.com" target="_blank">a视频在线免费观看</a>| <a href="http://zuahowan.com" target="_blank">无码AV动漫精品一区二区免费</a>| <a href="http://426366.com" target="_blank">亚洲乱亚洲乱妇无码</a>| <a href="http://cdessc.com" target="_blank">精品亚洲麻豆1区2区3区</a>| <a href="http://3344by.com" target="_blank">亚洲乱色熟女一区二区三区丝袜</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>