License_max_users参数用于限制数据库的最多可以有多少users,默认的为0表示不限制,下面测试这个参数对create users的限制
SQL> select count(*) from dba_users;
COUNT(*)
----------
27
SQL> alter system set license_max_users=27;
System altered
SQL>
SQL> create user xiaoyu02 identified by xiaoyu02
2 default tablespace users
3 temporary tablespace temp
4 ;
create user xiaoyu02 identified by xiaoyu02
default tablespace users
temporary tablespace temp
ORA-01985: 因超出 LICENSE_MAX_USERS 参数而无法创建用户
可以看出由于超过了license_max_users而无法create user。
License_max_sessions限制系统登录的最大session连接数,不包含dba权限和restricted session的用户,默认为0表示不限制。
License_sessions_warning参数用于警告日志中记录,默认为0表示不限制
SQL> show parameter license_sessions_warning;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
license_sessions_warning integer 0
SQL> alter system set license_max_sessions =10;
System altered
此时限制系统内max_sessions为10,超过license_max_sessions参数非dba用户将无法登录数据库,出现ora-00019:maximum number of session licenses exceeded错误。
由于os上一直很薄弱,现在还是慢慢把每天接触的觉得重要的linux上的知识点也穿插到oracle的blog中吧!
Strings命令:
Strings用于显示非文本文件的字符,例如oracle_home/dbs/orapwjhql等oracle的二进制文件是无法用普通的cat、more指令查看。
例如:
Strings /usr/oracle/10.2/dbs/spfilejhql.ora
Strings /usr/oracle/10.2./dbs/orapwjhql
[@more@]来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25362835/viewspace-1057230/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/25362835/viewspace-1057230/