<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)

    搜索

    •  

    積分與排名

    • 積分 - 53308
    • 排名 - 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;

    表已創(chuàng)建。

    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>
    --默認(rèn):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;

    表已創(chuàng)建。

    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;

    表已創(chuàng)建。

    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 閱讀(229) 評論(1)  編輯  收藏 所屬分類: database

    FeedBack:
    # re: 使用ORA_ROWSCN的樂觀鎖定 2009-11-19 14:32 ddd
    抄書 %……&*(  回復(fù)  更多評論
      
    主站蜘蛛池模板: 女人裸身j部免费视频无遮挡| 亚洲国产福利精品一区二区| 亚洲av无码成人精品国产| 91久久精品国产免费直播| 亚洲自偷自偷精品| 999久久久免费精品播放| 亚洲男人第一av网站| 99久久久国产精品免费牛牛 | 七色永久性tv网站免费看| 国产亚洲综合一区柠檬导航| 免费黄网站在线看| 亚洲毛片在线观看| 成人免费的性色视频| 久久亚洲国产成人影院| 浮力影院第一页小视频国产在线观看免费 | 亚洲欧洲精品无码AV| 久久永久免费人妻精品| 亚洲成aⅴ人在线观看| 97无码免费人妻超级碰碰夜夜| 亚洲精品无码久久| 久久精品国产精品亚洲人人| 日本在线免费观看| 亚洲人成7777影视在线观看| 国产一区二区免费在线| 99精品视频免费| 亚洲最新在线视频| 国产精品免费视频网站| 97在线免费观看视频| 亚洲国产成人手机在线电影bd | 免费无码黄十八禁网站在线观看| 亚洲av无码成人精品区一本二本 | 中文字幕乱码系列免费| 亚洲导航深夜福利| 国产精品冒白浆免费视频 | 韩国免费一级成人毛片| 日韩电影免费在线观看网址| 久久精品九九亚洲精品| 四虎免费久久影院| 三年片在线观看免费观看大全一| 亚洲色欲啪啪久久WWW综合网| 久久久精品国产亚洲成人满18免费网站 |