Database migration
In software development, we have version managers such as svn and git to help us manage the source code. We can easily view the version of our current code, update the new version code, roll back to the old version, and so on. If
I have been entangled in the implementation of the database connection pool. Today, I have finally squeezed out time to implement it. Before tomcat, the connection pool was implemented using dbcp. dbcp has many disadvantages. Currently, tomcat uses
SQL Server 2005 databases are used for web projects: the 'id' Column cannot be inserted with NULL values, and the 'weibo. dbo. myfriend' Column cannot have NULL values. INSERT failed.
Error message:
Com. microsoft. sqlserver. jdbc.
A problem occurs at work: update a data table.
This table is created by myself and has seven fields: id, name, package, etc.
During creation, because I saved the name and package information in two text files,
So I will use the Insert method to
For Oracle11G EXPDP
Data between a month of a table should be required
Expdp help = Y
QUERYPredicate clause used to export a subset of a table.For example, QUERY = employees: "WHERE department_id> 10 ".
So expdp shark/2013 directory = dir_dp
I started O & M recently. I had an accident for two days. Although I was surprised, I think I was lucky! The fault records are as follows: 1. The new project was launched on November 1,. When executing the DDL command, I forgot to confirm the
The implementation of a function is simple, but it is not easy to implement a function that meets the user experience. For example, in the evaluation system, in the examination system, in the Course Selection System, or even from the first grade to
Preface:
SQLServer replication technology has emerged at least in the SQLServer2000 era. It was originally for distributed computing, not for high availability. However, replication has become a highly available technology and is widely used. Many
This is MySQL SQL optimization Article 2nd. we all advocate Percona, a powerful branch of MySQL. Should this be the case?
In some cases, the original configuration is reliable, and weisan is not necessarily powerful.
Let's take a look at the sar
Zookeeper oracle 10g CRS voting disk management
----------------- Voting disk backup recovery:
-- Back up voting disk:
Dd if = voting_disk_name of = backup_file_name
-- Restore voting disk:
If your voting disk is stored on a raw device, use
1. simple aggregation tools
1. count
Count is the simplest aggregation tool used to return the number of documents in the collection.
2. distinct
The semantics of distinct is the same as that of other databases. It is used to find all the
Fault description:A new RAC experiment was installed, and it was found that ora. rac2.LISTENER _ RAC2.lsnr could not be started. Check listner. ora for no exception. After manual startup, the status is UNKNOW. Crs_stop-f ora. rac2.LISTENER _
Before reading this article, please back up all your important databases. Next we will officially start the backup and restoration journey.
Source: http://blog.csdn.net/dba_huangzj/article/details/22683167preface
Why is backup required? The reason
Count + Distinct + Group
1. Count
Query the number of American students in persons.
Db. persons. find ({country: "USA"}). count ()
2. Distinct
Check the total number of countries in persons.
Db. runCommand ({distinct: "persons", key: "country"}).
Generally, rownum, that is, pseudo columns, is used to specify multiple data entries to be displayed,
For example
Select linename from aced where rownum
However, you should note that if the retrieved data contains duplicate data, rownum
-- MySQL group sorting is the simplest SQL statement for the first N records.USE test;Drop table if exists test;Create table test (Id int primary key,Cid INT,Author VARCHAR (30)) ENGINE = MYISAM;Insert into test VALUES(1, 1, 'test1 '),(2, 1, 'test1 '
Syntax for SUBSTRING: SUBSTRING(expression, start, length)Expression
String, binary string, text, image, column, or expression that contains a column. Do not use expressions that contain aggregate functions.
Start
An integer or expression that can
/* Delete repeated feedback table data */procedure PRO_CZW_DEL_DOU_FEEBACK as begin for rec in (select row_number () over (partition by t. ywlsh/* Specified duplicate column */order by t. id desc) as lev,/* sorting of specified duplicate columns */t.
SQL> select * from test; 121. Restore SQL by SCN> select * from sys. smon_scn_time order by time_dp desc;30970780The relationship between scn and time: every five minutes, the system generates a system time tag matching with scn and stores it in the
In Windows, Oracle backs up data every night through EXP and retains the backup data for ten days.
1. Create the backup script oraclebackup. bat
Contents:
@ Echo offEcho deletes the backup file and log 10 days ago.
Forfiles/p "E: \ oraclebackup"/
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