How to modify oracle and syabase passwords under linux

oracle (version 11g) password modification can only be modified by users with password modification rights, such as system
Modify the oracle password under linux (the underlined value is the value that should be modified according to the actual situation)
1、登陆:sqlplus username/ passwordas sysdba;    
2. Modify the password: alter user username  identified by newpassword ;    
When User altered. appears, the modification is successful
 
sybase (version unknown) can be modified by ordinary users to modify the password, but remember the old password before modification
Modify the sybase user password under linux ( the underlined value is the value that should be modified according to the actual situation)
1. Login: isql -U username  -S servername  -P password  (Note: isql mingling xuyao zai huanjingbianliang li shezhi caineng shiyong . The password -P parameter here can not be specified, and the system will prompt for input after pressing Enter. If you do not know the servername, You can use DBeaver to log in to the sybase database first, and then use the select @@servername command to get it)
When the word 1> appears, the login is successful. If the error message contains the words "requested servername", it is probably due to incorrect servername setting.
2. Modify the password: the first line: sp_password ' oldpassword ',' newpassword ',' username '
Second line: go
(The first and second lines here must wrap, and all values ​​must be enclosed in single quotes)
When Password correctly set appears, it means that the modification is successful, otherwise there will be a corresponding prompt

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326683528&siteId=291194637