Oracle server and client query script (lazy Version)

Source: Internet
Author: User

This script can be used to identify the character set of the Oracle server in PLSQL and display the local Oracle client characters in the CMD window.
The following script can be directly copied to the PLSQL command window to run. If there is a better script, post it. THX.

Cl
-- Query nls_rjage_nls_territory.nls_characterset from V $ nls_parameters
Select 'HKEY _ LOCAL_MACHINE \ Software \ oracle \ home0 \ nls_lang 'as client, t1.value |' _ '| t2.value | '. '| t3.value as server from V $ nls_parameters T1, V $ nls_parameters T2, V $ nls_parameters T3
Where t1.parameter = 'nls _ language'
And t2.parameter = 'nls _ territory'
And t3.parameter = 'nls _ characterset ';

Prompt -------------------------------------------------------
Prompt querying Oracle client charset from Windows registry:
Prompt -------------------------------------------------------
Prompt Oracle client charset has been displayed in cmd window.

$ Cmd/K echo Oracle client charset & reg query HKEY_LOCAL_MACHINE \ SOFTWARE \ oracle \ home0/V nls_lang | find "nls_lang"

 

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.