Dblink Oracle-01017 ora-02063

Source: Internet
Author: User
Database link ORA-01017: invalid username/password

   

Today I create a database link in Oracle as follows

Create database link database_link1
Connect to Scott identified by Tiger
Using 'pdtt ';

When I try to use the link I get an error.

Select * from dual @ database_link1;

SQL error: ORA-01017: invalid username/password; logondenied
ORA-02063: preceding line from database_link1
01017. 00000-"Invalid username/password; logondenied"

At first I thought there was problem with service name 'pdtt', but when I used sqlplus to connect using pdtt it succeeded (I. e. sqlplus Scott/tiger @ pdtt ).

The problem turns out to be that the db I try to connect to is11g and it by default sets password case sensitive to true. tosolve the problem, I use double quotes to enclose lower casepassword and User Name:

Create database link database_link1
Connect to "Scott" identified by "tiger"  -- Double quotes is especially important
Using 'pdtt ';

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.