1Z0-031.2 - 2. Database Administrator Users & User Login Authortication & DBA Tools

Database Administrator Users:

- Two database user accounts, SYS and SYSTEM, are created automatically with the database and granted the DBA role.

- The DBA role has all database system privileges.

- SYS : Owner of the database data dictionary.

- SYSTEM : Owner of additional internal tables and views used by Oracle tools

[@more@]

Authentication Methods for Database Administrators:

- operating system authentication

- password files to authenticate database administrators.

Using Password File Authentication:

Delete the existing password file and create a new password file by using the Oracle password utility. Setup:

1.Create the password file using the password utility orapwd

Syntax:

orapwd file=filename password=password entries=max_users force=y|n

Where:

- filename is the name of the password file

- password is the password for SYSOPER and SYSDBA

- entries is the maximum number of distinct users allowed to connect as SYSDBA or SYSOPER.

If you exceed this number, you must create a new password file. It is safer to have a larger number.

- force option is judging that It has the same file , if have , y means cover it ,n means don't do anything! new feature in 10g.

2.Set the REMOTE_LOGIN_PASSWORDFILE parameter to EXCLUSIVE or SHARED

ALTER SYSTEM SET REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE SCOPE = SPFILE;

- EXCLUSIVE indicates that only one instance can use the password file and that the password file contains names other than SYS.

Using an EXCLUSIVE password file you can grant SYSDBA or SYSOPER privileges to individual users.

- SHARED indicates that more than one instance can use the password file.

The only user recognized by the password file is SYS. You cannot add users to the SHARED password file.

3.Add users to the password file and assign appropriate privileges to each user

eg:GRANT SYSDBA TO HR;

When you connect using SYSDBA privilege, you are connecting as SYS schema and not the schema associated with your username.For SYSOPER, you are connected to the PUBLIC schema.

DBA Tools:

The standard applications that are supplied with Oracle Enterprise Manager include the following:

- Instance Manager: Performs startup, shutdown and monitor databases

- Security Manager: Used to manage users and privileges

- Storage Manager: Maintains tablespaces, data files, rollback segments and log groups

- Schema Manager: Used to create and maintain objects such as tables, indexes, and views

- SQL*Plus Worksheet: Provides the capability to issue SQL statements against anydatabase

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8633028/viewspace-909536/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8633028/viewspace-909536/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值