DB2 Database question and sap Question.docx

download DB2 Database question and sap Question.docx

of 3

Transcript of DB2 Database question and sap Question.docx

  • 7/27/2019 DB2 Database question and sap Question.docx

    1/3

    DB2 Database question sap Question

    1. DB2 Version details

    2. Db2 Update / upgrade process

    3. Db2 start and stop command ----

    4. Db2 log ..where

    5. Which table is update record

    6. Partition table .

    7. Role forward.

    8. Shell script--- how many shell

    9. Sap start and stop command

    10.When sap is start what process happen

    11. If sap is not getting up what will be check

    12.Kernel upgrade..while kernel upgrade which file are download .and why

    13.How to check database is up or not in sap

    14.R3trans.exe what does mean Rc= 12 Rc =

    15.Which table records of table lock while I have check in sm12 transaction?

    16. In java stack when database is stop then is it open Config tool and visual admin tools

    Ans :-

    Start DB2 Command

    Starts the current database manager instance backgroundprocesses on a single database

    partition or on all the database partitions defined in a partitioned database environment.

    Start DB2 at the server before connecting to a database, precompilingan application, or

    binding a package to a database.

    db2start

    Stop DB2 CommandStops the current database manager instance.

    db2stop

    ACTIVATE DATABASE command

    Activates the specified database and starts up all necessary database services, so that the

    database is available for connection and use by any application. This command activates

    the specified database on all nodes within the system. If one or more of these

  • 7/27/2019 DB2 Database question and sap Question.docx

    2/3

    nodes encounters an error during activation of the database, a warning is returned. The

    database remains activated on all nodes on which the command has succeeded.

    db2 activate db

    DEACTIVATE DATABASE CommandStops the specified database. This command deactivates the specified database on all

    database partitions in the system. If one or more of these database partitions encounters an

    error, a warning is returned. The database will be successfullydeactivated on some

    database partitions, but might continue to be active on the nodes encountering the error.

    db2 deactivate dbFind DB2 version using command db2level. Logged as DB2 user before executing the command

    > db2level

    Use command db2ilist to lists all the instances that are available on a system.

    Options

    -w: Lists the 31-, 32-, or 64-bit instances. The -w option can be specified with the -p option, and issuperseded by the -a option.-p: Lists the DB2 install path that an instance is running from. The -p option can be used with the -aoption, and is superseded by the -a option.-a: Lists information including the DB2 install path associated with an instance, as well as its bit width (32or 64). The returned information for 32-bit indicates 31-bit for DB2 on Linux (on S/390 and zSeries).-inst_name: Lists the information for the specified instance. If no instance is named,db2ilist listsinformation about all instances of the current DB2 release.-h: Displays usage information

    Please have a look at the below tables as they have a vital role in lock entries selection:

    tables: seqg3. " Enqueue-Dialog-Fields

    tables: seqg4. " additional Enqueue-List-Fields

    Q. Ans: There are dozens of shells for Linux. The most popular are:

    bash (Bourne-Again Shell)

    ksh (Korn shell)

    zsh (Z Shell)

    ash (Almquist shell)

  • 7/27/2019 DB2 Database question and sap Question.docx

    3/3

    dash (Debian Almquist shell)

    BusyBox (based on ash)

    fish (Friendly Interactive Shell)

    Ans :6. Partitioned tables use a data organization scheme in which table data is divided across multiple

    storage objects, called data partitions or ranges, according to values in one or more table partitioning keycolumns of the table. Data from a given table is partitioned into multiple storage objects based on the

    specifications provided in the PARTITION BY clause of the CREATE TABLE statement. These storage

    objects can be in different table spaces, in the same table space, or a combination of both.

    Ans : 7. ROLLFORWARD DATABASE Command

    Recovers a database by applying transactions recorded in the database log files. Invoked after adatabase or a table space backup image has been restored, or if any table spaces have been takenoffline by the database due to a media error. The database must be recoverable (that is,thelogarchmeth1 orlogarchmeth2database configuration parameters must be set to a value otherthan OFF) before the database can be recovered with rollforward recovery.

    db2 backup db sample use tsm

    (Mon) db2 backup db sample online incremental delta use tsm

    (Tue) db2 backup db sample online incremental delta use tsm

    (Wed) db2 backup db sample online incremental use tsm

    (Thu) db2 backup db sample online incremental delta use tsm

    (Fri) db2 backup db sample online incremental delta use tsm

    (Sat) db2 backup db sample online incremental use tsm