小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

DB2數(shù)據(jù)庫(kù)基礎(chǔ)知識(shí)總結(jié)(3)

 WindySky 2008-08-28

or

  describe select * from schema.table_name

  如何快速清除一個(gè)大表?

  alter table table_name activate not logged initally with empty table

  or

  import from null_file of del replace into table_name

  如何查看數(shù)據(jù)庫(kù)的包?

  select * from syscat.packages

  如何查看數(shù)據(jù)庫(kù)的存儲(chǔ)過(guò)程?

  select procname,text,* from syscat.procedures

  Or

  select procname,text from sysibm.sysprocedures

  如何查看數(shù)據(jù)庫(kù)SAMPLE的配置文件的內(nèi)容?

  get database configuration for sample

  or

  get db cfg for sample

  如何將數(shù)據(jù)庫(kù)SAMPLE的參數(shù)設(shè)置為默認(rèn)數(shù)值?

  reset database configuration for sample

  or

  reset db cfg for sample

如何修改數(shù)據(jù)庫(kù)SAMPLE配置參數(shù)數(shù)值?

  update database configuration for sample

  using

  or

  update db cfg for sample using

  如何重新啟動(dòng)數(shù)據(jù)庫(kù)?

  Restart db db_name

  如何激活數(shù)據(jù)庫(kù)?

  Activate db db_name

  如何停止數(shù)據(jù)庫(kù)?

  Deactivate db db_name

  如何重命名表?

  Rename old_tablename to new_tablename

  如何設(shè)置DB2環(huán)境變量

  Db2set命令,語(yǔ)法如下:

  Db2set variant=value

  如何除去quiesce狀態(tài)

  1. 連接到數(shù)據(jù)庫(kù)

  2. 用 list tablespaces 判斷哪個(gè)tablespace處于quiesce狀態(tài)和和取得對(duì)象(object)ID

  3. 判斷對(duì)象ID對(duì)應(yīng)的表

  a)用 db2 "select tabname from syscat.tables where tablid=對(duì)象ID" 得到表名

  b)用 db2 list history 判斷是那個(gè)表

  4. 用 db2 quiesce tablespaces for table 表名 reset 去除quiesce狀態(tài)

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類(lèi)似文章 更多