Oracle conncect role vs create session

Oracle conncect role vs create session

The CONNECT role was introduced with OracleDatabase version 7, which added new and robust support for database roles. TheCONNECT role is used in sample code, applications, documentation, and technicalpapers. The CONNECT role was established with the following privileges :

Privileges Originally Associated   with the CONNECT Role

Alter Session  Create Session

Create Cluster        Create Synonym

Create Database Link    Create Table

Create Sequence  Create View

However, beginning in Oracle Database 10gRelease 2 (10.2), the CONNECT role has only the CREATE SESSION privilege, allother privileges are removed.

DBA: 拥有全部特权,是系统最高权限,只有DBA才可以创建数据库结构。
RESOURCE:拥有Resource权限的用户只可以创建实体,不可以创建数据库结构。
CONNECT:拥有Connect权限的用户只可以登录数据库,不可以创建实体,不可以创建数据库结构。
对于普通用户:授予connect, resource权限。
对于DBA管理用户:授予connect,resource, dba权限。

SQL> select * from role_sys_privs where ROLE = ‘CONNECT‘;
ROLE                           PRIVILEGE                                ADM
------------------------------ ---------------------------------------- ---
CONNECT                        CREATE SESSION                           NO
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
PL/SQL Release 11.2.0.4.0 - Production
CORE    11.2.0.4.0      Production
TNS for Linux: Version 11.2.0.4.0 - Production
NLSRTL Version 11.2.0.4.0 - Production
时间: 2024-10-11 16:10:19

Oracle conncect role vs create session的相关文章

Oracle错误——user ** lacks CREATE SESSION privilege logon denied

错误 在删除一个用户TEST的情况下,再次新建用户TEST并赋予sysdba权限,使用plsqldev工具登录数据库TEST用户,报错user TEST  lacks CREATE SESSION privilege logon denied,如下图. 解决办法 使用超级管理员给这个用户赋予一个CREATE SESSION权限即可. grant create session to TEST; Next 原文地址:https://www.cnblogs.com/jixue/p/10417327.h

oracle创建用户ORA-01045:user lacks CREATE SESSION privilege 及一些简单操作(one lesson)

scott用户成功连接数据库的具体方法: 1.grant connect, resource to scott;2.grant create session to scott; 3.cmd4.sqlplus scott/tiger Oracle的安全 1.用户管理 用户至少需要会话的权利,否则连接也不成功: 用户在会话的权利上,应该有其他操作的权利: Oracle的用户和口令不区分大小写,真是让人大跌眼镜: Oralce中,所有用户必须明确被授权,才可以操作: SQL Server中,创建的用户

oracle创建用户ORA-01045:user lacks CREATE SESSION privilege;logon denied..的问题

conn internal/oracle grant user aaaa identified by aaaa; conn aaaa/aaaa 会报错: SQL>conn aaaa/aaaa 会报错: ERROR: ORA-01045: user aaaa lacks CREATE SESSION privilege; logon denied 原因: 用户至少需要会话的权利,否则连接也不成功: 用户在会话的权利上,应该有其他操作的权利: 解决方法:  www.2cto.com 1 grant

oracle创建用户ORA-01045:user lacks CREATE SESSION privilege;

conn internal/oracle grant user aaaa identified by aaaa; conn aaaa/aaaa 会报错: SQL>conn aaaa/aaaa 会报错: ERROR: ORA-01045: user aaaa lacks CREATE SESSION privilege; logon denied 原因: 用户至少需要会话的权利,否则连接也不成功: 用户在会话的权利上,应该有其他操作的权利: 解决方法:  1 grant connect, reso

Oracle user,role,profile常规操作--用户,权限,角色,配置文件

1 权限查询 1查看所有用户 SQL> select username,account_status,lock_date,expiry_date,default_tablespace from dba_users; SQL> select * from all_users;--3 columns SQL> select * from user_users; 2查看用户系统权限 SQL> select * from dba_sys_privs; SQL> select * fr

【Oracle】详解v$session

首先查看一下v$session都存在哪些列 [email protected]>desc v$session Name                                      Null?    Type ----------------------------------------- -------- ---------------------------- SADDR                                              RAW(4) S

Oracle创建表语句(Create table)语法详解及示例

Oracle创建表语句(Create table)语法详解及示例   创建表(Create table)语法详解1. ORACLE常用的字段类型ORACLE常用的字段类型有VARCHAR2 (size) 可变长度的字符串, 必须规定长度CHAR(size) 固定长度的字符串, 不规定长度默认值为1NUMBER(p,s) 数字型p是位数总长度, s是小数的长度, 可存负数最长38位. 不够位时会四舍五入.DATE 日期和时间类型LOB 超长字符, 最大可达4GCLOB 超长文本字符串BLOB 超长

Oracle Multitenant Environment (四) Create One or More CDBs

Using the CREATE DATABASE Statement to Create a CDB This section describes creating a CDB using the CREATE DATABASE SQL statement. Note: Oracle strongly recommends using the Database Configuration Assistant (DBCA) instead of the CREATE DATABASE SQL s

Oracle Multitenant Environment (五) Create PDB

Creating and Removing PDBs with SQL*Plus This chapter contains the following topics: About Creating and Removing PDBs Preparing for PDBs Creating a PDB Using the Seed Creating a PDB by Plugging an Unplugged PDB into a CDB Unplugging a PDB from a CDB