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 MoreWelcome to DB Administration and Development
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 MoreMonitoring 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 MoreRestore 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 MoreBackup Oracle DB using RMAN in linux
1. View Current RMAN Configuration Before we take the backup, we have to configure certain RMAN parameters. For example, how long you want to reatain...
Read MoreOracle 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 MoreOrcale DataBase Set up in Windows
Go to orcale.com Go to downloads as shown in the image and select the compataible version of the system by accepting the license and click...
Read MoreBasic 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 MoreOracle 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 MoreTo Find the nth highest and least salary
1. To Find the nth highest salary Eg: General query for all Database SELECT DISTINCT salary FROM emp X WHERE n = ( SELECT COUNT(DISTINCT...
Read MoreHigh Availability, Load Balancing, and Replication
High availability: Database servers can work together to allow a second server to take over quickly if the primary server fails. Load balancing: To allow...
Read MorePostgresql 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 MoreRoles 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 MoreUseful 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 MoreImportnat Parameters in postgresql.conf file
listen_addresses (string) -> Specifies the TCP/IP address(es) on which the server is to listen for connections from client applications. -> The special entry ‘*’ corresponds...
Read MoreRename 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 MoreCase 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 MoreTruncate 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