m6米乐安卓版下载-米乐app官网下载
暂无图片
5
暂无图片
暂无图片
暂无图片

数据库管理-m6米乐安卓版下载

原创 胖头鱼的鱼缸 2023-08-01
755

首先,我已经报考了9月1日于上海举行的19c ocm升级考试,希望能一步到位!
终于来到了最后一个skillset: configuring real application clusters配置rac集群,这里和11g从头开始,安装gi,db到创建数据库不一样,从12c ocm考试开始,是安装好了gi和db软件的,就部署难度而言是有所下降的。但是就rac本身配置来说,却增加了不少内容。

1 环境

总共有10个已经完成处理的用于asm的磁盘,分别为disk01-10(asmca中可直接看到),根据题目对其进行操作使用。其中disk01-04已经创建为 dgdata磁盘组。
gi_home=/u01/app/19.0.0/grid
oracle_home=/u01/app/oracle/product/19.0.0/dbhome_1

2 考题

  1. enabling grid infrastructure 开启gi自动启动
  2. administering asm disk groups 管理asm磁盘组
    1)create asm diskgroup dgacfs using disk05 and disk06 with external redundancy.
    2)create asm diskgroup dgfra using disk07 and disk08 with external redundancy.
    3)create advm volume name acfs_vol in dgacfs disk group with size 200m.
    4)create a acfs file system on acfs_vol and mount it at: /u01/app/oracle/acfs_share
    5)add one more ocr image in dgacfs and dgfra disk group
    6)copy /home/oracle/scripts/images.zip to /u01/app/oracle/acfs_share, and create a snapshot name snap_001 for acfs
  3. managing grid infrastructure 管理gi
    1)export the olr on the host03 to the directory /home/grid/olrdump
    2)configure ocr backup location to /home/grid/ocrbackup
    3)configure the cluster policy management method by referring the followings contents from /home/oracle/scripts/policysetfile.txt. perform the neceassary operation to make the configuration be implemented, the active day policy.
    4)configure eth1 and eth2 both for privte and asm
  4. creating a rac database 创建rac数据库
    1)the datbase name is racdb.
    2)general purpose.
    3)policy management in racdbpool server pool.
    4)do not configure em.
    5)the password for sys and system is oracle.
    6)the datafiles are stored in dgdata disk group.
    7)fast recovery area is dgfra disk group and the size is 4gb.
    8)do not install sample schema
    9)the instance total memory is 800mb.
  5. additional configuration 附加配置
    1)create a service named srv1 in racdbpool and run srv1 on host03 when start it.
    2)create a service named srv2 in racdbpool, which need to be started to support transaction level failover.
    3)convert rac to rac onenode
    4)run the sql scripts, how to make proper action to lower the contention of insert activties issued by millions of concurrent user from two nodes.
    5)convert rac onenode backup to normal rac mode
    6)configure database to reduce duplicate blocks parallel query image.
    7)configure the database backup the controlfile automatically, regardless of any change on the physical structure of the database.

3 操作

  1. host03,host04上操作
sudo /u01/app/19.0.0/grid/bin/crsctl enable crs
  1. 题目1)-4)使用asmca进行操作
5) sudo /u01/app/19.0.0/grid/bin/ocrconfig -add dgacfs sudo /u01/app/19.0.0/grid/bin/ocrconfig -add dgfra 6) sudo /u01/app/19.0.0/grid/bin/ocrdump -local /home/grid/olrdump

3.gi配置

1) cp /home/oracle/scripts/images.zip /u01/app/oracle/acfs_shars sudo /sbin/acfsutil snap create snap_001 /u01/app/oracle/acfs_share 2) mkdir /home/grid/ocrbackup sudo /u01/app/19.0.0/grid/ocrconfig -backuploc /home/grid/ocrbackup 3)policysetfile.txt原文件为: server_pool_names=free bigpool ora.racdbpool policy name=day description=the day policy serverpool name=ora.racdbpool importance=10 max_size=5 min_size=1 server_category=ora.hub.category serverpool name=bigpool importance=0 max_size=0 min_size=0 server_category=big policy name=night description=the night policy serverpool name=ora.racdbpool importance=10 max_size=5 min_size=1 server_category=ora.hub.category serverpool name=bigpool importance=5 max_size=1 min_size=1 server_category=big sudo cp /home/oracle/scripts/policysetfile.txt /home/grid/ sudo chown grid:oinstall /home/grid/policysetfile.txt #需要对文件进行缩进处理 server_pool_names=free bigpool ora.racdbpool policy name=day description=the day policy serverpool name=ora.racdbpool importance=10 max_size=5 min_size=1 server_category=ora.hub.category serverpool name=bigpool importance=0 max_size=0 min_size=0 server_category=big policy name=night description=the night policy serverpool name=ora.racdbpool importance=10 max_size=5 min_size=1 server_category=ora.hub.category serverpool name=bigpool importance=5 max_size=1 min_size=1 server_category=big crsctl add category big crsctl modify policyset -file /home/grid/policysetfile.txt crsctl modify policyset -attr "last_activated_policy=day" 4) oifcfg setif -global eth1/10.0.0.0:cluster_interconnect,asm oifcfg setif -global eth2/10.0.0.0:cluster_interconnect,asm sudo /u01/app/12.1.0/grid/bin/crsctl stop cluster -all sudo /u01/app/12.1.0/grid/bin/crsctl start cluster -all

文档位置:
oracle database 19c
clusterware administration and deployment guide
\qquad -> e oracle clusterware control (crsctl) utility reference
\qquad\qquad -> oracle rac environment crsctl commands
\qquad\qquad\qquad -> crsctl modify policyset

  1. 使用dbca创建数据库
  2. 附加配置
1) srvctl add service -d racdb -s srv1 -g racdbpool -c singleton srvctl start service -db racdb -service srv1 2) srvctl add service -db racdb -service srv2 -serverpool racdbpool -failovertype transaction -commit_outcom true -retention 86400 -notification true srvctl start service -db racdb -service srv2 3) srvctl stop instance -db racdb -node host04 -force srvctl convert database -db racdb -dbtype raconenode srvctl config database -d racdb 4)脚本内容: #create table t1 (id number primary key,name varchar2(10),createdate date) partition by range(createdate) interval(numtoyminterval(1,'month')) (partition sal1 values less than (to_date('2007-01-01','yyyy-mm-dd'))); #create sequence seq_t1; alter sequence seq_t1 cache 100000; select constraint_name,constraint_type,index_name from dba_constraints where table_name='t1'; alter table t1 drop constraint ; drop index ; create unique index idx_t1 on t1(id) parallel 4 global partition by hash(id) partitions 4; alter table t1 add constraint pd_t1 primery key(id) using index idx_t1; 5) srvctl convert database -db racdb -dbtype rac 6)sqlplus / as sysdba alter system set parallel_force_local=true; 7)rman target/ configure controlfile autobackup on; configure controlfile autoback format for device type disk to ' dgdata'; configure snapshot controlfile name to ' dgdata/snapcf_racdb.f';

总结

至此,19c ocm考试及考点内容基本完成,后面会在考完以后进行更新并调整。
老规矩,知道写了些啥。

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
1人已赞赏
【米乐app官网下载的版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

网站地图