Concept description
ORACLE databases are divided into national character set and database character set. Both of them must be set during database creation. The National Character Set is mainly used for field data of the NCHAR, NVARCHAR, and NCLOB
Replace the replce, regexp_replace, and translate functions with strings in ORACLE. I will introduce them to you.
Replace the replce, regexp_replace, and translate functions with strings in ORACLE. I will introduce them to you.
Replace the replce,
In large database management systems, Oracle databases are beyond review in terms of database management capabilities and security. Chinese enterprises also use many Oracle databases, but the character sets of different Oracle versions bring a lot
1. Oracle database character set (NLS) is used to store, process, and retrieve data in their own languages and formats. With global support, Oracle provides users with familiar database mother-tongue environments, such as date formats, digital
It is not very common to query the character set modification Character Set of oracle.
Query the character set of Oracle
Method 1
SQL> select userenv ('language') from dual;
Userenv ('language
Oracle single quotes are always missing in the past. For future convenience, record them now
SQL> select ''' | nvl (SQL _id, prev_ SQL _id) | ''' SQL _id, ',' | nvl (SQL _child_number, prev_child_number) SQL _child_number from v $ session where sid
SQL> select name, value $ from props $ where name like '% NLS % ';
Name value $------------------------------------------------------------NLS_LANGUAGE AMERICANNLS_TERRITORY AMERICANLS_CURRENCY $NLS_ISO_CURRENCY AMERICANLS_NUMERIC_CHARACTERS
Oracle determines whether the character is a letter or an oracle characterCreate or replace function ischar (chr varchar2) return varchar2 isIschr varchar2 (5 );BeginSelect caseWhen ascii (chr) between 65 and 122 THEN'True'Else'False'EndInto
Front-end UI process (written in vc6) to UTF-8 Chinese to back-end serviceProgram(Linux GCC). The data is written to the Oracle database in the background, and then the data is retrieved and displayed in the background. No encoding/decoding
Problem description: Oracle installed in Linux by a colleague, the default character set is not modified. WE8ISO8859P1 is used and Chinese characters are not supported,
The problem is that the Chinese data entered by the client can be displayed.
1. when creating a database, catproc must run, otherwise the following character set error occurs when using rman: RMAN-00554: initializationofinternalrecoverymanagerpackagefailedRMAN-04005: errorfromtargetdatabase: ORA-06553: PLS-213: pack
1. when
Sqlplus/nolog
Conn/As sysdba
Shutdown immediate;
Startup Mount;
Alter session set SQL _trace = true;Alter system enable restricted session;Alter system set job_queue_processes = 0;Alter system set aq_tm_processes = 0;Alter database open; Set
1. When creating a database, catproc must run, otherwise the following character set error occurs when using rman: RMAN-00554: initialization of internal renal manager package failed RMAN-04005: error from target database: ORA-06553: PLS-213:
1 2 3 4 5 6 7 8 9 10 11 12 13 14-15 16
ASCII (x1) "feature": Returns the ASCII value of the leftmost character of a character expression. Parameters: x1, character expression "return": Numeric "Example" sql> Select ASCII (' a ') a,ascii (' A ')
C HR , ASCIIsyntax : CHR (string),ASCII (String)function: Returns a character that has an equivalent value in the database character set and X. CHR and ASCII are a pair of inverse functions. After the conversion of CHR character after the ASCII
The character set consists of the following four types:1. Oracle Service-side character setSelect * from Nls_database_parameters;2. Oracle Server Registration Character SetHkey_local_machine/software/oracle/key_oradb11g_home1Nls_lang for character
When you create a database, you can specify the character set (CHARACTER set) and the national character set (Nation CHARACTER set, additional character set).1. Character Set:(1) used to store char, VARCHAR2, CLOB, long and other types of data(2) to
Oracle cannot support directly returning a table type like MSSQL, so create a custom type first. This is used for nested tables (Nested table).--Nested tablecreate or replace TYPE split_str is TABLE of VARCHAR,/--functioncreate or replace FUNCTION
Are you familiar with Oracle character types? Today, we will summarize it, including CHAR, NCHAR, LONG, VARCHAR2 (VARCHAR), and NVARCHAR2 Oracle character types. The following articles describe these types in detail.
CHAR, an Oracle string that
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.