home‎ > ‎utilities‎ > ‎

infx dbs

List summary information about each database in the instance.

usage

infx dbs [ order space log buff ansi ]
  optional
    order - change output order
     name - only show databases with matching name
     space - only show databases create in this storage space
     log - only show logged/non-logged databases
     buf - only show buffered logging databases
     ansi - only show mode ansi logging databases

example

demo1@bobii:/home/informix>infx dbs

database      space  owner     created     flags       log  buff  ansi  alloc mb   used   data  index  scans
bartest       dat01  informix  02/18/2012  0xFFFFD001    1     0     0      3.06   2.07   1.41   0.66      0
monitor_jgh1  dat01  informix  02/18/2012  0xFFFFD003    1     1     0    127.69  27.31  12.90  14.40      0
sysadmin      root   informix  02/18/2012  0xFFFFD021    1     0     0      5.52   3.93   2.74   1.19     96
sysmaster     root   informix  02/18/2012  0xFFFFD009    1     0     0      3.66   2.56   1.56   1.00      0
sysuser       root   informix  02/18/2012  0xFFFFD021    1     0     0      3.18   2.15   1.43   0.72      0
sysutils      root   informix  02/18/2012  0xFFFFD021    1     0     0      3.14   2.17   1.45   0.72      0

Show databases created in the dat01 storage space

demo1@bobii:/home/informix>infx dbs space=dat01

database      space  owner     created     flags       log  buff  ansi  alloc mb   used   data  index  scans
bartest       dat01  informix  02/18/2012  0xFFFFD001    1     0     0      3.06   2.07   1.41   0.66      0
monitor_jgh1  dat01  informix  02/18/2012  0xFFFFD003    1     1     0    127.69  27.31  12.90  14.40      0

Show databases with logging enabled

demo1@bobii:/home/informix>infx dbs log=1

database      space  owner     created     flags       log  buff  ansi  alloc mb   used   data  index  scans
bartest       dat01  informix  02/18/2012  0xFFFFD001    1     0     0      3.06   2.07   1.41   0.66      0
monitor_jgh1  dat01  informix  02/18/2012  0xFFFFD003    1     1     0    127.69  27.31  12.90  14.40      0
sysadmin      root   informix  02/18/2012  0xFFFFD021    1     0     0      5.52   3.93   2.74   1.19     97
sysmaster     root   informix  02/18/2012  0xFFFFD009    1     0     0      3.66   2.56   1.56   1.00      0
sysuser       root   informix  02/18/2012  0xFFFFD021    1     0     0      3.18   2.15   1.43   0.72      0
sysutils      root   informix  02/18/2012  0xFFFFD021    1     0     0      3.14   2.17   1.45   0.72      0

Show databases with buffered logging enabled.

demo1@bobii:/home/informix>infx dbs buff=1

database      space  owner     created     flags       log  buff  ansi  alloc mb   used   data  index  scans
monitor_jgh1  dat01  informix  02/18/2012  0xFFFFD003    1     1     0    127.69  27.31  12.90  14.40      0

notes

  • output format defined in /infx/template/infx-cli/infx-cli-dbs.htmlt, copy to /infx/local/etc and change there
  • see  db list for the list of what information is available