Remotely connect an Oracle server to troubleshoot Oracle query garbled language

Source: Internet
Author: User

Dos method:

Based on

Files under the directory

Connecting using the Plsql developer client software

Need to configure:

is to configure the DOS client in.

Then, copy the server-side files to your machine.

and set the TNS_ADMIN environment variable to this directory (do not have the Chinese character number and so on the directory)

So the landing is successful.

Solve Chinese garbled problem

Modify the Scott user password

Alter user Scott identified by Tiger

--fuzzy query to capitalize
SELECT * from emp where ename like Upper (' s% ')
--Search for employees who have been in employment in 1981
--Method One
SELECT * FROM EMP where to_char
(HireDate, ' yyyy-mm-dd ') between ' 1981-01-01 ' and ' 1981-12-31 '
--Method Two
SELECT * FROM EMP where hiredate
Between To_date (' 1981-01-01 ', ' yyyy-mm-dd ') and to_date (' 1981-12-31 ', ' yyyy-mm-dd ')

--Sort empty in front empty behind
SELECT * FROM emp ORDER by Comm Nulls First
SELECT * FROM emp ORDER BY comm Desc nulls
-Interception of numbers or dates
Select Trunc (2.66) from dual
Select Trunc (2.66,1) from dual
--Replacement
Select replace (' abcdef ', ' abc ', ' Okokok ') from dual

Remotely connect an Oracle server to troubleshoot Oracle query garbled language

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.