<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆 - 79  文章 - 11  trackbacks - 0
    <2009年11月>
    25262728293031
    1234567
    891011121314
    15161718192021
    22232425262728
    293012345

    不再墮落。
    Oracle documents: 
    http://tahiti.oracle.com/

    常用鏈接

    留言簿

    隨筆分類(66)

    隨筆檔案(79)

    相冊

    收藏夾(11)

    搜索

    •  

    積分與排名

    • 積分 - 53335
    • 排名 - 949

    最新隨筆

    最新評論

    閱讀排行榜

    mld@ORCL> drop table dept;

    表已刪除。

    mld
    @ORCL> create table dept
      
    2  (deptno, dname, loc, data,
      
    3   constraint dept_pk primary key(deptno)
      
    4  )
      
    5  as
      
    6  select deptno, dname, loc, rpad('*',3500,'*')
      
    7    from scott.dept;

    表已創建。

    mld
    @ORCL> select deptno, dname,
      
    2         dbms_rowid.rowid_block_number(rowid) blockno,
      
    3             ora_rowscn
      
    4    from dept;

        DEPTNO DNAME             BLOCKNO ORA_ROWSCN
    ---------- -------------- ---------- ----------
            10 ACCOUNTING         156868    1564176
            
    20 RESEARCH           156868    1564176
            
    30 SALES              156869    1564176
            
    40 OPERATIONS         156869    1564176

    mld
    @ORCL> update dept
      
    2     set dname = lower(dname)
      
    3   where deptno = 10;

    已更新 
    1 行。

    mld
    @ORCL> commit;

    提交完成。

    mld
    @ORCL> select deptno, dname,
      
    2         dbms_rowid.rowid_block_number(rowid) blockno,
      
    3             ora_rowscn
      
    4    from dept;

        DEPTNO DNAME             BLOCKNO ORA_ROWSCN
    ---------- -------------- ---------- ----------
            10 accounting         156868    1564229
            
    20 RESEARCH           156868    1564229
            
    30 SALES              156869    1564176
            
    40 OPERATIONS         156869    1564176

    mld
    @ORCL>
    --默認:ORA_ROWSCN在塊級維護。


     
    要使ORA_ROWSCN在行級維護,需要重建表,啟用ROWDEPENDENCIES (或者用DBMS_REDEFINITION中的在線重建功能)。

    mld@ORCL> drop table dept;

    表已刪除。

    mld
    @ORCL> create table dept
      
    2  (deptno, dname, loc, data,
      
    3   constraint dept_pk primary key(deptno)
      
    4  )
      
    5  as
      
    6  select deptno, dname, loc, rpad('*',3500,'*')
      
    7    from scott.dept;

    表已創建。

    mld
    @ORCL> select deptno, dname,
      
    2         dbms_rowid.rowid_block_number(rowid) blockno,
      
    3             ora_rowscn
      
    4    from dept;

        DEPTNO DNAME             BLOCKNO ORA_ROWSCN
    ---------- -------------- ---------- ----------
            10 ACCOUNTING         156868    1564176
            
    20 RESEARCH           156868    1564176
            
    30 SALES              156869    1564176
            
    40 OPERATIONS         156869    1564176

    mld
    @ORCL> update dept
      
    2     set dname = lower(dname)
      
    3   where deptno = 10;

    已更新 
    1 行。

    mld
    @ORCL> commit;

    提交完成。

    mld
    @ORCL> select deptno, dname,
      
    2         dbms_rowid.rowid_block_number(rowid) blockno,
      
    3             ora_rowscn
      
    4    from dept;

        DEPTNO DNAME             BLOCKNO ORA_ROWSCN
    ---------- -------------- ---------- ----------
            10 accounting         156868    1564229
            
    20 RESEARCH           156868    1564229
            
    30 SALES              156869    1564176
            
    40 OPERATIONS         156869    1564176

    mld
    @ORCL>
    mld
    @ORCL>
    mld
    @ORCL>
    mld
    @ORCL>
    mld
    @ORCL> drop table dept;

    表已刪除。

    mld
    @ORCL> create table dept
      
    2  (deptno, dname, loc, data,
      
    3   constraint dept_pk primary key(deptno)
      
    4  )
      
    5  ROWDEPENDENCIES
      
    6  as
      
    7  select deptno, dname, loc, rpad('*',3500,'*')
      
    8    from scott.dept;

    表已創建。

    mld
    @ORCL> select deptno, dname,
      
    2         dbms_rowid.rowid_block_number(rowid) blockno,
      
    3             ora_rowscn
      
    4    from dept;

        DEPTNO DNAME             BLOCKNO ORA_ROWSCN
    ---------- -------------- ---------- ----------
            10 ACCOUNTING         156884    1564527
            
    20 RESEARCH           156884    1564527
            
    30 SALES              156885    1564527
            
    40 OPERATIONS         156885    1564527

    mld
    @ORCL> update dept
      
    2     set dname = lower(dname)
      
    3   where deptno = 10;

    已更新 
    1 行。

    mld
    @ORCL> commit;

    提交完成。

    mld
    @ORCL> select deptno, dname,
      
    2         dbms_rowid.rowid_block_number(rowid) blockno,
      
    3             ora_rowscn
      
    4    from dept;

        DEPTNO DNAME             BLOCKNO ORA_ROWSCN
    ---------- -------------- ---------- ----------
            10 accounting         156884    1564550
            
    20 RESEARCH           156884    1564527
            
    30 SALES              156885    1564527
            
    40 OPERATIONS         156885    1564527

    mld
    @ORCL>
    posted on 2009-05-05 22:55 donnie 閱讀(230) 評論(1)  編輯  收藏 所屬分類: database

    FeedBack:
    # re: 使用ORA_ROWSCN的樂觀鎖定 2009-11-19 14:32 ddd
    抄書 %……&*(  回復  更多評論
      
    主站蜘蛛池模板: 成人免费的性色视频| 宅男666在线永久免费观看| 亚洲人成网男女大片在线播放| 亚洲免费综合色在线视频| 成人亚洲国产精品久久| 亚洲AV无码乱码在线观看裸奔| 91九色视频无限观看免费| 视频免费1区二区三区| 2022年亚洲午夜一区二区福利 | 2020亚洲男人天堂精品| 亚洲乱码中文字幕综合234| 131美女爱做免费毛片| 美女黄网站人色视频免费| 亚洲综合自拍成人| 亚洲毛片网址在线观看中文字幕| 久久精品免费一区二区| 一级特黄a大片免费| 亚洲AV成人一区二区三区在线看| 亚洲色中文字幕无码AV| 在线观看免费人成视频色9| 你懂的免费在线观看| 久久久久亚洲精品无码网址色欲| 久久久久亚洲av无码专区导航| 亚洲国产一区二区视频网站| 无码免费午夜福利片在线| 免费福利电影在线观看| 免费国产黄网站在线看| 亚洲一区二区三区成人网站| 亚洲AV无码乱码在线观看富二代| 亚洲AV无码之日韩精品| 午夜视频免费观看| 日本阿v免费费视频完整版| 国产综合免费精品久久久| 菠萝菠萝蜜在线免费视频| 亚洲精华液一二三产区| 亚洲人色大成年网站在线观看| 亚洲精品成人片在线观看精品字幕| 免费永久在线观看黄网站| 成年在线网站免费观看无广告 | 亚洲国产精品无码久久久不卡| 国产成人aaa在线视频免费观看|