Ora-01756:quoted string not properly terminated problem

Source: Internet
Author: User

When I execute an upgrade script, I find the Execute Table declaration statement "Comment on column ticket_mm_01.ticket_id is ' manifest serial number ';" ora-01756:quoted string not properlyterminated error, left look to the right to see what is wrong with the statement. Finally, query the online information, found that it may be related to the character set.

The first workaround is to temporarily modify the server's character set environment variable before executing sqlplus user/password@servicename; @update. sql, modify the Environment character set command as follows:

Export Nls_lang=american_america. Zhs16gbk

The second solution, confirm the database character set why, generally is UTF-8, then when saving Update.sql file, choose UTF-8 format to save. It is best to add the following command to the Update.sql content header to conveniently locate the problem:

Spool Update.log
Set Feedback off
Set Define Off

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.