It's an egg. ORA-00911: Invalid character error

Source: Internet
Author: User



A dblink is being built today ORA-00911: Invalid character error,
Syntax is

Create Public database link Tmsdb
Connect to User1 identified by User1
Useing ' (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.110) (PORT = 1521))
(Connect_data =
(SERVER = dedicated)
(service_name = ORCL)
)
)‘;
Result hint ORA-00911: Invalid character error, with toad, PL/SQL developer tried or so
I used to use the phrase many times, no problem, today is really god. There is no way to enclose the password in quotation marks as follows:

Create Public database link Test_dblink
Connect to User1 identified by "User1"
Useing ' (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.110) (PORT = 1521))
(Connect_data =
(SERVER = dedicated)
(service_name = ORCL)
)
)‘;

In the execution of the row, incredibly OK, I thought this could be used, with the statement test:
SELECT * from [email protected]_dblink;
Error invalid user name or password, but this user and password I use toad or PL/SQL developer connection is not a problem, it seems that the password is still
There is a problem.

It seems that the user side of the tool character set is still a problem, so directly connected to the server, with the Sqlplus connection to run the following script

Create Public database link Tmsdb
Connect to User1 identified by User1
Useing ' (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.110) (PORT = 1521))
(Connect_data =
(SERVER = dedicated)
(service_name = ORCL)
)
)‘;

Connection test OK;


This article is from "the director of the audience, for Me" blog, please be sure to keep this source http://jonsen.blog.51cto.com/4559666/1632024

It's an egg. ORA-00911: Invalid character error

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.