SQL code
Select decode (INSTR ('initateaaaa FLOOR ', 'aaa'), 1) FROM DUAL
The format of the INSTR method is
INSTR (source string, target string, start position, matching serial number)
For example, in INSTR ('upgrade FLOOR ', 'or', 3, 2), the
In MySQL, we sometimes want to select N records and add a column in each record in the results to mark the number of records.In Oracle, rownum can be used for simple implementation. But in MySQL, how can this problem be implemented? The following is
Instance Design
1. Function DesignA graduate Enrollment System developed by a university requires the design of PL/SQL programs to process the examinee's Score data, the processing logic is to automatically classify the candidates into admission,
MySQL: UTF-8 character set
Oracle: Al32UTF8
Steps:
1. Export csv format data from mysql. Set default_character_set = gbk during export; otherwise, garbled characters will occur.
2. upload to the linux Server (oracle Server) and replace \ r \ n
A php program is downloaded and runs normally on Windows. However, when running on Linux, the system prompts that the table does not exist.
It turns out that MySQL is not case sensitive in Windows, so it is normal. However, in Linux, because MySQL
The loss of the database causes a lot of losses, so I wrote a script for backing up the Mysql database in Linux. It was initially in the php version, later, I found that the PHP configuration on the server restricted the calling of system functions,
Kingdee EAS7.0 is deployed in the latest LINUX and Oracle 64-bit environments. The configuration is complex:
RedHat ENTERPRISE 5.4X64 configure Oracle 11gR2 step overview:
1. decompress the oracle_installation package. Zip. Copy the second
In windows, you can set Oracle service to automatic in Computer Service Management. After Oracle is installed in Linux, Oracle will not start automatically if Linux is restarted, you can manually call the dbstart command to start the instance, but
I. significance:
We know that the database has at least two sets of online log files, which are recycled.The archive mode stores a copy of the file before the online log file is repeatedly reused (overwritten) to other locations, so that we keep all
Operating System: CentOS 5.5
(1) install MySQL
The most convenient way to install MySQL on this operating system is to use yum for installation:
[Root @ localhost yum. repos. d] # yum install mysql-server (sometimes the network is slow, it will take
For relational databases, It is very common to directly write SQL statements to pull data in the list. But this brings about a problem: when the data volume reaches a certain level, the system memory will consume sooner or later. In addition,
Because apache of this project is only used to download the function and install phpAdmin to find the database, and Mysql 5.6 has been installed before, it is directly installed using the yum command method during deployment.
However, when using
Preparations:
How to grant the View query permission to other users:
Sys @ ORCL> grant select on v $ paramter toscott;
Grant select on v $ paramter to scott
*
Row 3 has an error:
ORA-00942: Table or view does not exist
Sys @ ORCL> grant select
The histogram is useful when the column data distribution is uneven. The query optimizer needs the histogram information to make a correct estimation. There are two kinds of histogram with frequency and height. This article still uses the previous
Oracle encountered a problem: after entering the user name and password in PL/SQL, a title error occurred. I have not backed up all the database databases in a project, and there is still a lot of data, this won't let me reload the database. Think
Reconfigure OCR and vote disk (11.2.0.1.0)
1. format the disk of the disk where the original ocr and vote disk are located.[Root @ pmstest2 ~] # Dd if =/dev/zero of =/dev/sdb bs = 1024 k count = 11 + 0 records in1 + 0 records out1048576 bytes (1.0
Knowledge Popularization:
1 normally, we use the explain plan for, set autotrace, and utlxplan methods to view the execution plans. They are all the execution plans generated by optimizer and do not fully conform to the execution paths of Oracle
1. Upgrade Grid Infrastructure1.1 prepare 1.1.1 software before Upgrade
Needless to say: Download, upload to server, decompress
1.1.2 create a new HOME for GI
Mkdir-p/u01/app/11.2.0.4/grid
Chown-R grid: oinstall/u01/app/11.2.0.4
Chmod-R
1. Full backup database, and the Backup Type is specified as backupset
RMAN> backup as backupset database;
Starting backup at 13-FEB-14Using channel ORA_DISK_1.....
2. Back up the users tablespace again and specify the Backup Type as backupset.
RMAN>
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