Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The use of sessions_per_user when creating a profile:

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

For example:

Create a profile for xiaoming while allowing two users to connect

SYS@ odb > create profile prof_xiaoming limit sessions_per_user 2

Profile created.

/ / the user is bound to profile

SYS@ odb > alter user xiaoming profile prof_xiaoming

User altered.

/ / Grant permission to create a session

SYS@ odb > grant create session to xiaoming

Then use this user to log in to several clients without reporting an error; question: here limit the number of login session to 2 why it is possible for the terminal to log in 3 or 4, and no error report is prompted.

It turns out that resource restrictions are not enabled.

SYS@ odb > alter system set resource_limit=true

System altered.

When you log in as xiaoming user again, you will be prompted to exceed the limit and cannot log in.

SYS@ odb > conn xiaoming/xiaoming

ERROR:

ORA-02391: exceeded simultaneous SESSIONS_PER_USER limit

Warning: You are no longer connected to ORACLE.

@ >

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report