Welcome to DB Administration and Development

Vi editor in Linux

Its a visual editor by default installed in every linux system. The next version of vi is vim. The vi editor tool is an interactive...

Read More

Install PostgreSQL

1. yum install postgresql-server postgresql-contrib 2. su postgresql 3. postgresql-setup initdb 4. vi /var/lib/pgsql/data/pg_hba.conf 5. Find the lines that look like this near the end...

Read More

Monitoring in Postgresql

In normal PostgreSQL operation, tuples that are deleted or obsoleted by an update are not physically removed from their table. They remain present until a VACUUM is done. Therefore...

Read More

Restore Oracle DB in Linux

To restore a database from the default directory /backup/rman use the cmd cmd: RESTORE DATABASE; Restore Specific Tablespace: Instead of restoring the full database, you can...

Read More

Oracle DBA Roles

A database administrator’s responsibilities can include the following tasks: Installing and upgrading the Oracle Database server and application tools Allocating system storage and planning future...

Read More

MongoDB

Features: ->MongoDB is a No SQL database. It is an open-source, cross-platform, document-oriented database written in C++.C-> It stores data as documents, so it is known...

Read More

SQLite

-> SQLite is an open source, zero-configuration, self-contained, stand alone, transaction relational database engine designed to be embedded into an application. -> SQLite does not have...

Read More

Basic Commands in Mysql

-> This is the world’s second most popular and widely used open source database. -> All the database names, table names and table fields name are...

Read More

Oracle Notes

-> Its relational database management system used in enterprise applications. -> Its biggest competitor is Microsoft SQL Server. -> Runs on Windows,Unix,Linux and Mac Operating...

Read More

Postgresql Basics

Create Database: -> A database is a named collection of SQL objects (“database objects”). Generally, every database object (tables, functions, etc.) belongs to one and...

Read More

Roles in Postgresql

-> A role can be thought of as either a database user, or a group of database users, depending on how the role is set...

Read More

Useful Linux Commands

To list all the users: cmd:cat /etc/passwd To delete the user in linux: -> we can able to delete the users from ther root user...

Read More

Rename Table in Postgresql

-> To rename already existing table Syntax: ALTER TABLE table_name RENAME to new_table_name; Eg: Alter table attribute rename to attribute1; -> To rename a column...

Read More

Case in postgresql

-> If we want to retrun boolean value from the query or more than one result based on the condition then we can use case...

Read More

Truncate Table Locks

-> To truncate the instance table locks i.e. when one user locked the object and the user wants to lock the same object then dead...

Read More