oracle11g password-sensitive case causes database link to connect

Source: Internet
Author: User

Http://f.dataguru.cn/thread-128013-1-1.html

The oracle11g password is case-sensitive by default, and the attribute is Sec_case_sensitive_logon controlled by the initialization parameter, which by default true indicates case sensitivity. However, prior versions of oracle11g are case-insensitive, so you may encounter the following issues when you create a database link in a previous version of oracle10g, such as oracle11g:


10g> CREATE DATABASE link oracle11g
2 Connect to Ning identified by Ning
3 using ' 11g ';

Database Link created.

10g> SELECT * from [email protected];
SELECT * from [email protected]
*
ERROR at line 1:
Ora-01017:invalid Username/password; Logon denied
Ora-02063:preceding Line from oracle11g

The password must be correct.

10g> conn Ning/[email protected];
Connected.

11g>

This problem occurs when you create the database link in 10g, the password is used in all uppercase, but the user's password in 11g is actually lowercase. In previous versions, there was no problem because it was case-insensitive. When the 11g problem comes up, the password is not ^_^

Solutions

1. Create database link is the user name and password are enclosed in double quotation marks, so that the password is installed input characters used, not converted to uppercase

10g> CREATE DATABASE link oracle11g2
2 Connect to ' ning ' identified by "Ning"
3 using ' 11g ';

Database Link created.

10g> SELECT * from [email protected];

BANNER
——————————————————————————–
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0–production
PL/SQL Release 11.1.0.6.0–production
CORE 11.1.0.6.0 Production
TNS for Linux:version 11.1.0.6.0–production
Nlsrtl Version 11.1.0.6.0–production

2. Disable oracle11g to differentiate between password case characteristics, but not recommended

11g>alter system set Sec_case_sensitive_logon=false;

System Altered

10g> SELECT * from [email protected];

BANNER
——————————————————————————–
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0–production
PL/SQL Release 11.1.0.6.0–production
CORE 11.1.0.6.0 Production
TNS for Linux:version 11.1.0.6.0–production
Nlsrtl Version 11.1.0.6.0–production

oracle11g password-sensitive case causes database link to connect

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.