In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
            
                    
                
2025-11-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The production library needs to change the password of the production user. After the password change, it involves changing the password of dblink.
Before the 11gR2 version, you can only delete the dblink and rebuild it, and you can modify it directly after the 11gR2 version.
There are two ways to change the password of dblink:
1. Rebuild after deleting dblink
2. Directly modify the user password of dblink
Here are two ways to test:
Test library version: 11.2.0.4.0
Create two dblink, one PUBLIC and one PRIVATE
Create PUBLIC database link link_101 connect to SYSTEM identified by "123456" using'(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.56.11) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = mydb)' Create database link link_102 connect to SYSTEM identified by "123456" using'(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.56.11) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = mydb)'; sys@ORCL > select * from dual@link_101;DUM---Xsys@ORCL > select * from dual@link_102;DUM---X
Modify remote database password
SQL > alter user system identified by "654321"; User altered.sys@ORCL > select * from dual@link_101;select * from dual@link_101 * ERROR at line 1:ORA-01017: invalid username/password; logon deniedORA-02063: preceding line from LINK_101sys@ORCL > select * from dual@link_102;select * from dual@link_102 * ERROR at line 1:ORA-01017: invalid username/password; logon deniedORA-02063: preceding line from LINK_102
Method 1:
Sys@ORCL > drop public database link link_101;Database link dropped.sys@ORCL > drop database link link_102;Database link dropped.create PUBLIC database link link_101 connect to SYSTEM identified by "654321" using'(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.56.11) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = mydb)' Create database link link_102 connect to SYSTEM identified by "654321" using'(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.56.11) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = mydb)'; sys@ORCL > select * from dual@link_101;DUM---Xsys@ORCL > select * from dual@link_102;DUM---X
Method 2:
Sys@ORCL > select * from dual@link_101;select * from dual@link_101 * ERROR at line 1:ORA-01017: invalid username/password; logon deniedORA-02063: preceding line from LINK_101sys@ORCL > select * from dual@link_102;select * from dual@link_102 * ERROR at line 1:ORA-01017: invalid username/password; logon deniedORA-02063: preceding line from LINK_102sys@ORCL > alter public database link link_101 connect to system identified by "654321" Database link altered.sys@ORCL > alter database link link_102 connect to system identified by "654321"; Database link altered.sys@ORCL > select * from dual@link_101;DUM---Xsys@ORCL > select * from dual@link_102;DUM---X
Method 2: if prompted by ORA-01031: insufficient privileges, grant alter database link to zx is given weight.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





            
            About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.