- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
02Oracle数据库对象-1简介讲解
例3.6 修改用户zhangsan的密码为ora,并设置默认表空间为users表空间,在该表空间中可以使用无限大的磁盘空间。 Oracle数据库对象 ALTER USER zhangsan IDENTIFIED BY ora DEFAULT TABLESPACE users QUOTA UNLIMITED ON users; 禁用用户账户 ALTER USER user_name ACCOUNT LOCK; 启用用户账户。 ALTER USER user_name ACCOUNT UNLOCK; Oracle数据库对象 启用与禁用用户 例3.7 为数据库中内置的用户账号scott解锁,启用该账号。 ALTER USER scott ACCOUNT UNLOCK; CONNECT scott/tiger; DROP USER user_name [CASCADE] 如果该用户方案中已存在方案对象,则需要带有CASCADE子句。 Oracle数据库对象 DROP USER zhangsan; 例3.8 删除用户zhangsan。 2 Thank You! Objectives This lesson introduces the Oracle server architecture by examining the physical, memory, process, and logical structures involved in establishing a database connection, creating a session, and executing SQL commands. Creating Roles Use the CREATE ROLE statement to create roles. CREATE ROLE system privilege is required. When you create a role that is NOT IDENTIFIED or is IDENTIFIED EXTERNALLY or BY Password, Oracle grants the role with ADMIN option. Use the following command to create a role: CREATE ROLE role [NOT IDENTIFIED | IDENTIFIED {BY password | EXTERNALLY | GLOBALLY | USING package}] where: role is the name of the role NOT IDENTIFIED indicates that no verification is required when enabling the role IDENTIFIED indicates that verification is required when enabling the row BY password provides the password that the user must specify when enabling the role USING package creates an application role, which is a role that can be enabled only by applications using an authorized package Creating Roles Use the CREATE ROLE statement to create roles. CREATE ROLE system privilege is required. When you create a role that is NOT IDENTIFIED or is IDENTIFIED EXTERNALLY or BY Password, Oracle grants the role with ADMIN option. Use the following command to create a role: CREATE ROLE role [NOT IDENTIFIED | IDENTIFIED {BY password | EXTERNALLY | GLOBALLY | USING package}] where: role is the name of the role NOT IDENTIFIED indicates that no verification is
原创力文档


文档评论(0)