I am trying to do following to alter a database link to a new password in 11gR2.02,
alter database link dblink_name connect to db_account identified by new_password;
but it give a permission error as ORA-01031. Above statement ran in the schema which owns this database link, and also this schema has created this db link, so this schema has create db link privilege. I checked all the permissions, there is no alter database link privilege to grant in 11gR2, so what I am missing here in order to run above statement?
This will require the ALTER DATABASE LINK
or ALTER PUBLIC DATABASE LINK
system privilege to perform. See the ALTER DATABASE LINK article under "Prerequisites". According to the documentation, you can't alter a password with this command anyway, you have to drop and re-create the link.