Previous Topic

Next Topic

infodb Command—Display Database Information

The infodb command displays a variety of information on a database, including its status, the location of its files (from the configuration file aaaaaaaa.cnf), and a history of checkpoints and journaling.

To use this command, you must be a privileged user or the DBA of the specified database. If you are a privileged user, you can use the -u flag to impersonate another user. On VMS, to use this command against a database in a group level installation, you must be a privileged user (VMS CMKRNL, SYSPRV, and PHY_IO privileges).

The infodb command has the following format:

infodb [dbname[/server_class]][#c[n]][-uusername][-help]

Previous Topic

Next Topic

Infodb Command Output – Database Information Section

The following is sample output from the database information section. This guide includes the callouts (1) and (2) to aid in explanation:

(1)================11-FEB-2001 14:05:55.02 Database Information==========

    Database : (doc,kbref)  ID : 0x2D5BF682
    Extents  : 5    Last Table Id : 171
    Config File Version Id : 0x00040001   Database Version Id : 5
    Status   : VALID,JOURNAL,CKP,DUMP,ROLL_FORWARD,CFG_BACKUP

(2)            The Database has been Checkpointed.
               The Database is Journaled.

               Journals are valid from checkpoint sequence : 1

Fields are as follows:

Previous Topic

Next Topic

Infodb Command Output – Journal Information Section

The following is sample output from the journal information section:

----Journal information-----------------------------------------------
    Checkpoint sequence :      3    Journal sequence :               3
    Current journal block :    2    Journal block size :         16384
    Initial journal size :     4    Target journal size :          512
    Last Log Address Journaled : <760829464:19666:188>

Fields are as follows:

Previous Topic

Next Topic

Infodb Command Output – Dump Information Section

The following is sample output from the dump information section:

----Dump information----------------------------------------------------
    Checkpoint sequence :      3    Dump sequence :                1
    Current dump block :       1    Dump block size :          16384
    Initial dump size :        4    Target dump size :           512
    Last Log Address Dumped : <760829464::21100:100>

Fields are as follows:

Previous Topic

Next Topic

Infodb Command Output – Checkpoint History for Journal Section

The following is sample output from the checkpoint history for journal section:

----Checkpoint History for Journal--------------------------------------

    Date                 Ckp_sequence  First_jnl  Last_jnl valid  mode

    --------------------------------------------------------------------

    11-NOV-2001 13:23:43.57       1       1        1      1  OFFLINE

    11-NOV-2001 13:24:50.40       2       2        2      1  ONLINE

    11-NOV-2001 13:58:52.65       3       3        3      1  ONLINE,

                                                                TABLE

Fields are as follows:

To recover the entire database, you must specify #c2, for example, in the rollforwarddb command to roll forward from the database checkpoint. Checkpoint 3 was taken on selected tables.

Previous Topic

Next Topic

Infodb Command Output – Checkpoint History for Dump Section

The following is sample output from the checkpoint history for dump section:

----Checkpoint History for Dump------------------------------------------

    Date                Ckp_sequence  First_dmp  Last_dmp valid  mode

    ---------------------------------------------------------------------

    11-NOV-2001 13:58:52.65    2      1          1       1  ONLINE 

    11-NOV-2001 13:58:52.65    3       1          1       1    ONLINE,

                                                               TABLE

Fields are as follows:

Previous Topic

Next Topic

Infodb Command Output – Cluster Journal History Section

The following is sample output from the cluster journal history section:

----Cluster Journal History--------------------------------------------
    Node ID   Current Journal   Current Block   Last Log Address
    ------------------------------------------------------------
          0                 1               1   <760829462:4731:1592>
          1                 3              10   <760829464:35000:188>

Fields are as follows:

Previous Topic

Next Topic

Infodb Command Output – Extent Directory Section

The following is sample output from the extent directory section, which shows all locations used by the database:

----Extent directory-------------------------------------------------------------

    Location       Flags        Physical_path
    -----------------------------------------------------------------------------
    ii_database    ROOT,DATA    c:\Ingres\IngresII\ingres\data\default\iidbdb
    ii_journal     JOURNAL      c:\Ingres\IngresII\ingres\jnl\default\iidbdb
    ii_checkpoint  CHECKPOINT   c:\Ingres\IngresII\ingres\ckp\default\iidbdb
    ii_dump        DUMP         c:\Ingres\IngresII\ingres\dmp\default\iidbdb
    ii_work WORK         c:\Ingres\IngresII\ingres\work\default\iidbdb

Fields are as follows:


© 2007 Ingres Corporation. All rights reserved.