Blob Field1. The content field with the premise id = 316083730656 has a valueUpdate docs set content = Empty_Blob ()Where id
DeclareSrc_Blob;V_Blob Blob;Amount Binary_Integer;Offset Integer;Cursor testCursor isSelect contentFrom docsWhere id <> 3160
I. Introduction to Xtrabackup and backup principles:
Xtrabackup is an open-source software developed by percona. It can quickly back up and restore mysql Databases and supports online Hot Backup (data read/write is not affected during Backup ), this
In Oracle databases, tables, indexes, stored procedures, and functions are all objects.The schema name is the same as the user name, but not the same as the user. If the user does not have any objects, the schema does not exist.I. TableORACLE tables
Several important MySQL DirectoriesDatabase directory/var/lib/mysql/
Configuration File/usr/share/mysql (mysql. server command and configuration file)
Related commands/usr/bin (mysqladmin mysqldump and other commands)
Start script/etc/rc. d/init. d/(
Hierarchical Query
-- Auto-join: treats the same table as a different table using the table alias, and then uses the equivalent and non-equivalent join.
Self-connectionSQL> selecte. ename | 'The Boss is '| d. ename
2 from emp e, emp d
3 where e. mgr
1. When installing cluster in Oracle 10g, the following error is prompted during the period from 61%:
WARNING: Error while copying directory/home/oracle/app/oracle/10R2/crs with exclude file list 'null' to nodes 'rac2 '.[PRKC-1002: All the submitted
How to sort fields in Oracle in the form of Chinese characters and numbers:
For example:
Order ByNLSSORT (field name,'Nls _ SORT = SCHINESE_PINYIN_M'), To_number (translate (field name,'123'| Field name,'123'))
NLSSORT () function:
If the
1. DUMP DatafileBlock example
There are three types of SCN in a data block of Oracle: The Block header SCN, the CSC (cleanout SCN) and the commit SCN recorded in ITL. If we want to view the content of a block or some blocks, we can dump these blocks
InnoDB in mysql 5.5 serves as the default database storage engine, and after the mysql-5.1 upgrades mysql to the mysql-5.5, the following programs need to recompile and install the upgrade:PHP 5.3.6Cacti spinePureftp
InstallWget http://dev.mysql.com/
Generally, the master/slave Mechanism Based on LAN can meet the requirements of 'realtime' backup. If the latency is high, first confirm the following factors:
1. network latency2. master Load3. slave LoadThe general practice is to use multiple
1. To optimize the query, try to avoid full table scanning. First, consider creating an index on the columns involved in where and order.
2. Try to avoid null value determination on the field in the where clause. Otherwise, the engine will discard
Install MySQL 5.5.15 in CentOS 6.0
#! /Bin/bash# Mysql dependencyYum-y install gcc make gcc-c ++ ncurses-devel openssl-devel Wget http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.15.tar.gz/from/http://mysql.he.net/Wget
Installing Oracle SQL Developer in RedHat Linux 5 has a small problem, but with the help of W3C, it has been solved:
1. install J2SE 6u20. because from SUN. COM is downloaded. binfile. search for: how to install. bin in linux, the answer for
Hive stores metadata in RDBMS. There are three modes to connect to the database:1) ingle User Mode: This Mode connects to an In-memory database Derby, which is generally used for Unit Test.2) Multi User Mode: connects to a database over the network,
Problem: execute a piece of code to reverse a string, which is to execute multiple SQL statements. How to make it pass in Oracle. I want to think about dynamic SQL. execute immediate is a syntax for parsing and Executing standard SQL statements. You
The following is an example of the stored procedure I wrote in my project. For more information, see!
/* The method for calling the stored procedure in SQLPLUS is as follows :*/
Set serveroutput on;Var C varchar2 (50 );Exec aheoms. GetSEQ ('20170', '
Use ctrl + c to exit the current status output mode. Run the following command: expdp userid/password attach = job_name to connect to the currently running import/export task. You can use job_name to specify the task name.
1. add_file = test _ % U.
First create a directory
SQL> showUser
USERIs"SYS"
SQL>Create Or ReplaceDirectory bdumpAs '/U01/app/Oracle/admin/orcl/bdump';
The directory has been created.
Create an External table
SQL>Create TableAlert_log (text varchar2 (400 ))
2
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