11

我是甲骨文的新手。我想知道如何在 oracle 11g 中设置 sqlplus / as sysdba 的登录密码。

我想为下次登录设置密码,我不想以sqlplus / as sysdba身份登录, 因为任何人都可以使用 sqlplus / as sysdba 登录,并且可以轻松访问数据或更改现有用户的密码。我需要限制登录。

4

3 回答 3

15

要设置新密码,您应该(在连接到数据库之后):

alter user SYS identified by "newpassword";

但是如果你想阻止没有密码的连接 - sqlplus / as sysdba,那么你需要添加这个:

SQLNET.AUTHENTICATION_SERVICES=none

sqlnet.ora

于 2013-02-12T12:30:44.160 回答
3

Not just anyone can login using sqlplus / as sysdba. The OS user must be a member of the OS DBA group created to manage the database (this group can have a different name).

You should only be assigning real DBAs membership of this group. And, in my opinion, no one should ever login as oracle (assuming a Unix(-like) system here).

于 2013-02-12T12:38:47.653 回答
-1
SQLPLUS username/password@identifier_name
于 2013-10-24T12:18:03.943 回答