Korean English Japanese Chinese (Simplified) Chinese (Traditional)

 

 

 

- Create and manage pluggable databases

- Administer users, roles, and privileges

- Configure the network environment to allow connections to multiple databases

- Administer database configuration files

- Configure shared server

- Manage network file directions

 

1. 多种方式创建pdb:

(1) pdbprod3和pdbprod4, pdbprod5分别从已存在的pdb, pdbseed和non-cdb创建

(2) 从已存在的pdb中,创建pdbprod3, 设置pdbprod3随PRODCDB实例启动而启动,并保证两个pdb均为read write状态

(3) 从pdbseed中创建的pdbprod4需要导入DB19G的HR, SH, OE 用户 (注意预先在pdbprod4中创建example和users表空间)

(4) non-cdb(PROD4)创建pdbprod5, 保证PROD4最终为read write状态

 

2. cdb, pdb用户创建赋权

(1) cdb创建用户user1和role1(题目中指出如有必要修改用户名即加C##前缀),将role1赋权给user1,保证user1能在所有pdb中登录(grant unlimited tablespace, create session to C##role container=all; grant C##role 1 to C##user1 container=all;)

(2) 某已存在的pdb中创建user2, role2, 保证user2能登录次pdb(grant unlimited tablespace, create session to role2; grant role2 to user1;)

(3) 已存在package -- sys.sec_pack, cdb创建sec_user和app_role题目中指出如有必要修改用户名即加C##前缀),使用已存在的sec_pack的定义,然后使用exec sec_pack.h1赋权

 

3. controlfile管理

修改为3个,第三个置于$ORACLE_HOME/dbs下

 

4. 配置EM Express, 端口为5501

 

5. 修改undo_retention为90分钟

 

6. 监听和tnsname管理

创建lsnr2(端口1525) 并监听PRODCDB(修改local_listener, 记得1521和1525的监听都加上)

创建dedicated tnsname: pdbprod1, pdbprod2, pdbprod3, pdbprod4, pdbprod5, emrep, 连接1521端口

创建shared tnsname: prod_s, 连接pdbprod1的1525端口(需要修改cdb的dispatcher参数,将XDB去掉)

 

7. Shared Server Configuration

(1) 设置tcp的dispatcher为3, max_dispatcher为10

alter system set dispatchers='(PROTOCOL=TCP)(DISPATCHERS=3)' scope=both;

alter system set max_dispatchers=10 scope=both;

(2) 配置shared参数

Minimum of 10 shared server processes.

Maximum of 30 shared server processes.

alter system set SHARED_SERVERS=10 scope=both;

alter system set MAX_SHARED_SERVERS=30 scope=both;

(3) 设置process, session

设置session为500,dedication session为100

alter system set sessions=500 scope=spfile;

alter system set processes=320 scope=spfile;

alter system set SHARED_SERVER_SESSIONS=400 scope=spfile;

 

8. 修改utl_file_dir为/home/oracle/scripts和/home/oracle/temp

 

9. 设置dnfs并在dnfs目录创建表空间

/u02/***, 已经被mount, 需要配置$ORACLE_HOME/dbs/oradnfstab并执行dnfs_on, 重启实例即可创建表空间

make -f ins_rdbms dnfs_on

 

10. 创建表空间

(1) 创建2个临时表空间temp1, temp2, 将他们置于temp_grp的表空间组,并将数据库默认临时表空间设为temp_grp

(2) 创建bigfile表空间

 

11. 修改diagnostic_dest为$ORACLE_HOME

 

 

If you like this post, please give me a ❤️...!
 
✰Popular Posts✰
✰Recent Posts✰
 

❤ Seoul, Daejeon, Tokyo, Fukuoka
Site developed by Ryu Hyunwoo