oracle DBA在做一些操作的时候不希望有人登入数据库可以使用restrict模式:
开启限制会话模式:
alter system enable restricted session;
取消限制会话模式:
alter system disable restricted session;
RESTRICTED模式以后 除了管理员都不能登录,如果需要非管理员登录,必须
GRANT restricted session to test;
那么以限制会话模式登入有两种方法:
一:正常登入数据库后执行alter system enable restricted session;
二:sqlplus /nolog
conn /as sysdba
shutdown immediate;
startup restrict
个人喜欢用第二种方法,第一种有的时候居然 alter system disable restricted session; 后无效。
联系邮箱:qrcg92@foxmail.com
本文介绍了Oracle数据库中如何启用和禁用限制会话模式。通过两种方法实现限制除管理员外的其他用户登录,并提供了具体的操作命令。
2081

被折叠的 条评论
为什么被折叠?



