问题描述
我使用oracle 12,并希望找到如何为每个用户启用或禁用我的数据库的同时连接。
i找到关于调度员和其他代码的代码,包括以下代码:
i am using oracle 12, and hoping to find how can i enable or disable simultaneous connections for my database for each user.i found codes regarding dispatchers and other ones including the following codes:
SHARED_SERVER_SESSIONS
MAX_DISPATCHERS
CONNECTIONS
SESSIONS
POOL
推荐答案
创建新的个人资料为
CREATE PROFILE <profile_name> LIMIT
SESSIONS_PER_USER 1
CPU_PER_SESSION UNLIMITED
CPU_PER_CALL <some_value>
CONNECT_TIME <some_value>
LOGICAL_READS_PER_SESSION DEFAULT
LOGICAL_READS_PER_CALL <some_value>
PRIVATE_SGA <some_value>
COMPOSITE_LIMIT <some_value>;
注意:根据需要选择其他参数,可以从dba_profile视图获取当前配置文件参数值,他们在上面的查询。之前获取使用以下查询的用户的个人资料名称
note: choose other parameters as per requirement, you can get current profile parameter values from dba_profile view and use them in the above query. Before that get the profile name of the user using below query
从dba_users选择个人资料WHERE username =< user_name> ;;
然后ALTER USER
Then ALTER USER
ALTER USER< user_name> PROFILE< profile_name> ;;
这篇关于如何禁用一个用户在oracle上的同时连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!