Oracle Character Set query statement sharing

Source: Internet
Author: User

(1) view character sets (all three are equivalent)
Copy codeThe Code is as follows:
Select * from v $ nls_parameters where parameter = 'nls _ CHARACTERSET'
Select * from nls_database_parameters where parameter = 'nls _ CHARACTERSET'
Select * from props $ where name = 'nls _ CHARACTERSET'


(2) view the national character set (all three are equivalent)
Copy codeThe Code is as follows:
Select * from nls_database_parameters where parameter = 'nls _ NCHAR_CHARACTERSET'
Select * from nls_database_parameters where parameter = 'nls _ NCHAR_CHARACTERSET'
Select * from props $ where name = 'nls _ NCHAR_CHARACTERSET'


(3) view the character set of oracle server
Copy codeThe Code is as follows:
Select userenv ('language') from dual


(4) DataFile operations
Copy codeThe Code is as follows:
-- DataFile online
Alter tablespace BSS11 ONLINE
Alter database 'bss _ 03. dbf' ONLINE

-- DataFile offline
Alter tablespace BSS11 OFFLINE -- target object: All datafiles in table space BSS11
Alter database 'bss _ 03. dbf' OFFLINE --- action object: BSS_03.dbf, just a datafile

-- Resize datafile
Alter database datafile 'bss _ 03. dbf' RESIZE 500 M;

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.