/**
* Saving and obtaining date data in databases and java programs:
* 1. Insert Date data into the database
* Eg: insert into student (birthday) values (to_date ('2017-09-19 ', 'yyyy-MM-dd '));
* 2. java programming
* The attribute type in the
-- ====================================
-- Oracle cold backup
-- ====================================
I. Cold backup
When the database is closed, all physical system files are copied, which is also called offline backup.
Suitable for non-archive
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131229/2021045S2-0.gif "alt =" t_0022.gif "/> Interface to forget Interface has been too much, there are more errors!
This error often occurs when I run the program. I have been
I. Random query optimization: 4.6G-rw ---- 1 mysql 4.6G Oct 7 task_log.ibdselect SQL _no_cache * from task_log order by rand () limit 1; mysql> explain select SQL _no_cache * from task_log order by rand () limit 1; + ---- + ------------- + ----------
To save system resources, we usually stop some services and start them the next time we need them. However, we often forget. For example, the MSSQL database that I connect to my local machine cannot be connected.
650) this. width = 650; "style ="
MySQL version 5.5.19master)
Mysql5.1.59slave)
During replication from a lower version to a higher version, MYSQL restarts repeatedly and a BUG message appears in the error log.
650) this. width = 650; "border =" 0 "alt =" "src ="
We do not need to migrate data from ORACLE to MYSQL. Below I have written three simple MYSQL functions. For your reference.Is it time?
DELIMITER $$
USE `ytt`$$
DROP FUNCTION IF EXISTS `is_date`$$
Liquor-making tea: a large number of sequents and examples are referenced in the book. The notes made by tea after the experiment are uploaded to the blog. Anyone with copyright rights can directly remove the article. Thank you for your
I just came back from Huilongguan, and now it's am. The miserable itrip man started to work.A two-node oracle 11g rac with the host names rac1 and rac2 respectively. The instance names are db4qg_1 and db4qg_2. The effect required is that the rac1
We know that temporary tables have the following features:1. At the SESSION level, a SESSION is automatically dropped once it is disconnected. 2. It depends on the default engine. If the default engine is INNODB, And you are crazy about using
On oschina just now, I saw a message about the SQL injection vulnerability on the 12306 website of the Ministry of Railways, which is an absolute high-risk level. I looked at it and it was speechless. This kind of mistake is too low-level and should
For large tables based on secondary indexes), range scanning will lead to many random IO. the bottleneck of a general disk is that the random IO performance is poor. In MySQL5.6, this situation is optimized, the emergence of a new term Multi-Range
A production DB2 database needs to back up all its data and then restore and import it to a test database. Some problems have been encountered and finally solved successfully, the steps are recorded for easy learning and analysis.
System Environment:
Note: This article is from the linux O & M training of Old Boys-MySQL database training course series1) video tutorial directory1. MySQL service operation .................................... ........................................ 31.1 start and
The DB servers of the companies that recently maintained the service are always faulty. I feel like I have to optimize it. I log on and find that the slow query logs are not opened, therefore, the slow query log is decisively added. After analyzing
1) Environment Topology
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/2232221632-0.png "title =" QQ20130614135543.png "/>
Today we are talking about the mysql cluster. The resources are as follows:
650) this. width = 650;
One time when switching to archiving logs
SQL> alter system switch logfile; it does not respond after it is stopped for a long time;
Check whether it is in archive mode:
SQL> archive log list;Database log mode Archive ModeAutomatic archival
Share a function written yesterday. The purpose is to find that the given time is the nth week of the month.
DELIMITER $$USE `t_girl`$$DROP FUNCTION IF EXISTS `weekofmonth`$$CREATE DEFINER=`root`@`localhost` FUNCTION `weekofmonth`( f_datetime
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service