Skip to main content

Posts

Featured

DB2 : DB user creation steps.

In Db2, you don’t directly create database users inside the database. Db2 relies on operating system (OS) or LDAP users for authentication — and then you grant them access inside the database.  Step 1. Create the OS user On Linux/Unix using root:  For example:-  useradd -d /opt/manoj/dbdata/testdb2 testdb2 passwd testdb2 Step 2. Connect to the Db2 instance as instance owner Example (if instance owner is db2inst1): su - db2inst1 db2 connect to db2db Step 3. Grant privileges to that user Once the OS user exists, you grant database privileges: Grant connect privilege db2 "GRANT CONNECT ON DATABASE TO USER testdb2" Optional: Grant other roles if assinged in source db. For example: db2 "GRANT MAXIMO_READ ON DATABASE TO USER db2user1" Etep 4. Update the .bash_profile on the server with db2profile location.  [testdb2@hostname ~]$ cat .bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then         . ~/.bashrc fi . /opt/mano...

Latest posts

DB2 :- crontab for DB2 DB backup and purging old logs

DB2:- HADR Takeover / switchover scenario and steps of implementation

HADR- DB2 DB restore failed due to "SQL2062N An error occurred while accessing media "libdb2encr.so". Reason code: "1""

Oracle DB migration from On premises to AWS RDS Oracle using DMS and export-import- Steps/Runbook

DMBS_DATAPUMP- import using DB link from on prem Oracle DB to AWS Oracle RDS

GRANTS in source Oracle DB user for AWS RDS DB migration using DMS

MANAGE LOB OBJECTS IN ORACLE

Get Metadata of Oracle Objects

TASK FOR AWS DB MIGRATION

DB Migration Query