Thursday 4 April 2013

How to Create instance in linux server

Instance Creation: Click here

 We must have root authority to create an instance
We need two user id's to create for an instance.
one for instance userid and anther for fenced user id.
            $  useradd <Instance userid> (db2inst)
            $ useradd <Fenced userid>  (db2fenc)
            $  passwd db2inst  - to set password to Instance user id.
Run the db2icrt command from cuurent directory or go to that path and run the command
           $ db2ls (It will give db2 installed path)
           $ cd <bd2 installed path>/instance
Here in this directory we have db2icrt command(We can find it by 'ls' command)
         $ ./db2icrt -u <Fenced id> <Instance user id>

After that login to the instance user id and start the database manager by using this system command.

$ db2start - to start the instance
$ db2 get dbm cfg - to see the database manager parameters

No comments:

Post a Comment