An example of the character location (instr) retrieved by the oracle character truncation (substr) is as follows: substrinstr
I. Theory
Oracle truncation character (substr), search character location (instr) case when then else end statement use
I often encounter some ldquo. Why is my query garbled? Rdquo; or ldquo; why do Chinese characters become garbled after I import them? Rdquo;
I often encounter some ldquo. Why is my query garbled? Rdquo; or ldquo; why do Chinese characters become
The following answers are reprinted:
I often see some questions about ORACLE character sets. I 'd like to introduce them in an iterative way.
First iteration: master the basic concepts of character sets.Some may think that this is an option, but in
I often encounter "Why is my query garbled ?" Or "Why do Chinese characters become garbled after I import it ?" If you want to thoroughly understand the cause, you need to study the Oracle Character Set and the conversion relationship between them,
Returns the result set of the ORACLE character split function.
ORACLE does not support direct return of table type like MSSQL. Therefore, you must first create a custom type. This statement uses a Nested Table ).
-- Nested TableCREATE or replace
1. What isOracleCharacter Set
The Oracle character set is a collection of symbols for the interpretation of byte data. It can be divided into different sizes and have an inclusive relationship. Oracle supports the national language architecture,
OracleFaq (Oracle character set problem) 1. when creating a database, catproc must run. Otherwise, the following character set error occurs when using rman:
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error
OracleFaq (Oracle character set problem ). 1, in the database creation, catproc must run, otherwise when using rman will appear the following character set error: RMAN-00554: initializationofinternalrecoverymanagerpackagefailedRMAN-04005: 1, when
OracleFaq (Oracle character set problem ). 1, in the database creation, catproc must run, otherwise when using rman will appear the following character set error: RMAN-00554: initializationofinternalrecoverymanagerpackagefailedRMAN-04005: 1, when
For Oracle character garbled characters, follow these steps:1. Find the server character set:Select * from V $ nls_parameters
Locate nls_characterset zhs16gbkZhs16gbk is the server-side character set
2. Search for the client character set:Go to
Views and modifies the oracle character set, and explains how to view the oracle version.
1. view the database Character Set
Database Server Character Set select * from nls_database_parameters, which is derived from props $ and represents the
Oracle Character Set encoding issues
Oracle encoded as utf-8,php page encoded as GBK so why not garbled? and Oracle for utf-8,php for UTF-8 instead take out the Chinese garbled, browser when viewing with GBK out of Chinese display normal, and other
Al16utf16 a Kanji account of 3 bytesZHS16GBK a Kanji account of 2 bytesSql> Conn/as sysdba;sql> shutdown immediate;Database closed.Database dismounted.Oracle instance shut down.sql> startup Mount;Oracle instance started.Total system global Area 13533
1. View the database character setThe database server character Set select * from Nls_database_parameters, which is derived from props$, is the character set representing the database. Client Character Set Environment select * from
UPPER (char) lowercase to uppercaseLOWER (char) uppercase to lowercaseInitcap (char) First letter conversionSUBSTR (Char,[m[,n]]) to intercept string functionsStart interception from the source string char m, intercept n bits you can omit, represent
one, the character function: lowercase functions: lower (); usage: For example, all the names of a table are lowercase: Select Lower (t.ename) from Scott.emp t uppercase Function: Upper (); to use: For example, capitalize all the names of a table:
Discussion on the problem of Oracle character set (Nls_language)--------------------------------------------------------------------------------Nls_database_parameters, Nls_instance_parameters, nls_session_parameters----------------------------------
In the process of Web development and Oracle installation, people often do not understand the character set, so summarize this. 1. First question: What is the difference between character sets? Common character sets are: UTF-8 and GBK (1) GBK
----in large and medium-sized database management system, Oracle as a database management platform users more. Oracle database management capabilities and security are beyond reproach, but it is in the display of Chinese character information really
Execute the following statement to see the bytes that the Chinese character occupies in the database:Select Vsize (' Han ') from dual;In general, the resulting results are mostly values: 2 or 3The Oracle database is installed under General Linux,
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.