Category: Database

MySQL (102)
Oracle (26)
Redis (8)
SQLServer (2)

Oracle DataGuard Three Protection Modes Feature Summary

Oracle Data Guard provides three data protection modes. Here is a summary of the characteristics of each mode.

1. Maximum Protection Mode
1) This mode offers the highest level of data protection;
2) The primary database cannot commit a transaction until at least one physical standby database has received the redo log;
3) …

Oracle Database Import and Export Methods

Export:
[root@localhost ~]# su oracle
[oracle@localhost root]$ exp loanadmin/123456@orcl file=/home/oracle/160926.dmp

loanadmin is the username, 123456 is the database password, orcl is the instance name (default is orcl), and file= specifies the export …

MySQL Restart Error: PID File Could Not Be Found Fix

How to Fix “MySQL Server PID File Could Not Be Found” Error

Possible causes are as follows:

1. An existing process is already running:
ps -ef|grep mysqld or ps -ef|grep mysql

kill -9 process_id
The specific service name can be adjusted according to your actual situation …

Redis Master-Slave Configuration Guide

I. Software Installation
Here we assume the master server IP is 192.168.1.100, and the slave server is 192.168.1.200
yum -y install redis Start on boot:
chkconfig –add redis chkconfig redis on
Add firewall rules:
/sbin/iptables -I INPUT -p tcp –dpo …

SQL Server 2005 Backup Set Database Differs From Existing Database Fix

I’ve always used SQL Server 2000 before, but now, keeping up with the trends and since the requirements specify using SQL Server 2005, I’m using it in the current project. There are a few things to watch out for with SQL Server 2005. For instance, when restoring a database, it doesn’t clearly separate the database and files like 2000 did …

How to Set a Non-1433 Port for SQL Server 2008

In SQL Server Configuration Manager, double-click “TCP/IP” and under TCP/IP settings, only configure the TCP port for IPALL at the bottom. Click OK and restart the SQL Server service. Open SQL Server Management Studio, and in the Server name field, enter 127.0.0.1,port number — the port number being the one you just configured …