当前位置:网站首页>在Docker中分分钟拥有Oracle EMCC 13.5环境
在Docker中分分钟拥有Oracle EMCC 13.5环境
2022-07-06 16:23:00 【华为云】
一、从Docker Hub或阿里云镜像下载小麦苗上传的镜像文件
- 小麦苗的Docker Hub的地址:https://hub.docker.com/u/lhrbest
- EMCC 13.5下载的地址:https://hub.docker.com/r/lhrbest/lhremcc135/tags?page=1&ordering=last_updated
注意:
1、保证磁盘空间至少100G
2、内存需要至少8G
3、配置swap到8G
# 从Docker hub下载,网络不好时,一般比较慢docker pull lhrbest/lhremcc135:1.0# 可以选择从阿里云下载docker pull registry.cn-hangzhou.aliyuncs.com/lhrbest/lhremcc135:1.0# 从阿里云下载后可以tag成如下形式docker tag registry.cn-hangzhou.aliyuncs.com/lhrbest/lhremcc135:1.0 lhrbest/lhremcc135:1.0
镜像大概21G左右,解压后大约50G左右,所以请保留充足的空间,至少100G才能运行(不说了,Oracle的产品就是这么耗磁盘空间,耗内存)。执行过程如下:
[root@docker35 ~]# docker images | grep emcclhrbest/lhremcc135 1.0 d5eb85007b8a 7 weeks ago 51.4GBregistry.cn-hangzhou.aliyuncs.com/lhrbest/lhremcc135 1.0 d5eb85007b8a 7 weeks ago 51.4GB[root@docker35 ~]#
二、创建容器并启动EMCC 13.5环境
# 1、创建容器docker run -d --name lhremcc135 -h lhremcc135 \ -p 31521:1521 -p 35500:5500 -p 35501:5501 -p 37803:7803 -p 3135:3389 \ -v /sys/fs/cgroup:/sys/fs/cgroup \ --privileged=true \ lhrbest/lhremcc135:1.0 init# 2、进入容器docker exec -it lhremcc135 bash
接下来需要等待,因为环境启动比较慢。
检查环境是否启动:
[root@docker35 ~]# docker run -d --name lhremcc135 -h lhremcc135 \> -p 31521:1521 -p 35500:5500 -p 35501:5501 -p 37803:7803 -p 3135:3389 \> -v /sys/fs/cgroup:/sys/fs/cgroup \> --privileged=true \> lhrbest/lhremcc135:1.0 initf27dfe96e56cccf75c9931cf66e263b00ec0cee816060c43d8ac58f51a0c7966[root@docker35 ~]# [root@docker35 ~]# docker ps | grep emccf27dfe96e56c lhrbest/lhremcc135:1.0 "init" 5 minutes ago Up 5 minutes 0.0.0.0:31521->1521/tcp, 0.0.0.0:3135->3389/tcp, 0.0.0.0:35500->5500/tcp, 0.0.0.0:35501->5501/tcp, 0.0.0.0:37803->7803/tcp lhremcc135[root@docker35 ~]# [root@docker35 ~]# docker exec -it lhremcc135 bash[root@lhremcc135 /]# su - oracleLast login: Thu Jul 8 15:27:55 CST 2021 on pts/0[oracle@lhremcc135 ~]$ lsnrctl statusLSNRCTL for Linux: Version 19.0.0.0.0 - Production on 08-JUL-2021 15:28:42Copyright (c) 1991, 2019, Oracle. All rights reserved.Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))STATUS of the LISTENER------------------------Alias LISTENERVersion TNSLSNR for Linux: Version 19.0.0.0.0 - ProductionStart Date 08-JUL-2021 15:25:43Uptime 0 days 0 hr. 3 min. 0 secTrace Level offSecurity ON: Local OS AuthenticationSNMP OFFListener Parameter File /opt/oracle/product/19c/dbhome_1/network/admin/listener.oraListener Log File /opt/oracle/diag/tnslsnr/lhremcc135/listener/alert/log.xmlListening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=lhremcc135)(PORT=1521)))Services Summary...Service "lhrsdb" has 1 instance(s). Instance "lhrsdb", status READY, has 1 handler(s) for this service...The command completed successfully[oracle@lhremcc135 ~]$ [oracle@lhremcc135 ~]$ sasSQL*Plus: Release 19.0.0.0.0 - Production on Thu Jul 8 15:28:56 2021Version 19.3.0.0.0Copyright (c) 1982, 2019, Oracle. All rights reserved.Connected to:Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - ProductionVersion 19.3.0.0.0SYS@lhrsdb> select open_mode from v$database;OPEN_MODE--------------------READ WRITESYS@lhrsdb> show parameter sgaNAME TYPE VALUE------------------------------------ ----------- ------------------------------allow_group_access_to_sga boolean FALSElock_sga boolean FALSEpre_page_sga boolean TRUEsga_max_size big integer 3Gsga_min_size big integer 0sga_target big integer 3Gunified_audit_sga_queue_size integer 1048576SYS@lhrsdb> show parameter pgaNAME TYPE VALUE------------------------------------ ----------- ------------------------------pga_aggregate_limit big integer 4Gpga_aggregate_target big integer 1G
数据库已经启动,接下来,查询EMS是否启动,若未启动,则需要手动启动:
[oracle@lhremcc135 ~]$ . oraenvORACLE_SID = [lhrsdb] ? OMSThe Oracle base has been changed from /opt/oracle to oms13c1[oracle@lhremcc135 ~]$ [oracle@lhremcc135 ~]$ emctl status omsOracle Enterprise Manager Cloud Control 13c Release 5 Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved.WebTier is DownOracle Management Server is DownJVMD Engine is Down[oracle@lhremcc135 ~]$ [oracle@lhremcc135 ~]$ emctl start oms Oracle Enterprise Manager Cloud Control 13c Release 5 Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved.Starting Oracle Management Server...WebTier Successfully StartedOracle Management Server Successfully StartedJVMD Engine Successfully Started[oracle@lhremcc135 ~]$ emctl status omsOracle Enterprise Manager Cloud Control 13c Release 5 Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved.WebTier is UpOracle Management Server is UpJVMD Engine is Up
接下来查询EM AGENT是否启动:
[oracle@lhremcc135 ~]$ emctl status agentOracle Enterprise Manager Cloud Control 13c Release 5 Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved.---------------------------------------------------------------Agent Version : 13.5.0.0.0OMS Version : 13.5.0.0.0Protocol Version : 12.1.0.1.0Agent Home : /u01/app/oracle/middleware/agent/agent_instAgent Log Directory : /u01/app/oracle/middleware/agent/agent_inst/sysman/logAgent Binaries : /u01/app/oracle/middleware/agent/agent_13.5.0.0.0Core JAR Location : /u01/app/oracle/middleware/agent/agent_13.5.0.0.0/jlibAgent Process ID : 935Parent Process ID : 686Agent URL : https://lhremcc135:3872/emd/main/Local Agent URL in NAT : https://lhremcc135:3872/emd/main/Repository URL : https://lhremcc135:4903/empbs/uploadStarted at : 2021-07-08 15:27:04Started by user : oracleOperating System : Linux version 3.10.0-1127.10.1.el7.x86_64 (amd64)Number of Targets : 35Last Reload : (none)Last successful upload : 2021-07-08 15:42:00Last attempted upload : 2021-07-08 15:42:00Total Megabytes of XML files uploaded so far : 0.07Number of XML files pending upload : 0Size of XML files pending upload(MB) : 0Available disk space on upload filesystem : 34.55%Collection Status : Collections enabledHeartbeat Status : OkLast attempted heartbeat to OMS : 2021-07-08 15:41:48Last successful heartbeat to OMS : 2021-07-08 15:41:48Next scheduled heartbeat to OMS : 2021-07-08 15:42:48---------------------------------------------------------------Agent is Running and Ready
所有软件启动正常。
三、尽情使用吧
emcc登录地址
https://192.168.66.35:37803/em
用户名:sysman
密码:lhr666666
接下来的操作,大家都懂得,麦老师就不多说了。
怎么样,是不是很爽,是不是非常方便呢,文末记得点赞哈。
边栏推荐
- If the request URL contains jsessionid, the solution
- B站大佬用我的世界搞出卷積神經網絡,LeCun轉發!爆肝6個月,播放破百萬
- Matplotlib draws a histogram and adds values to the graph
- CRMEB 商城系统如何助力营销?
- B 站弹幕 protobuf 协议还原分析
- Basic chart interpretation of "Oriental selection" hot out of circle data
- The programmer refused the offer because of low salary, HR became angry and netizens exploded
- AI金榜题名时,MLPerf榜单的份量究竟有多重?
- Knowledge * review
- How much does the mlperf list weigh when AI is named?
猜你喜欢
Talking about the current malpractice and future development
【无人机】多无人协同任务分配程序平台含Matlab代码
氢创未来 产业加速 | 2022氢能专精特新创业大赛报名通道开启!
Today, I met a senior test developer from Tencent and saw the ceiling of the foundation
今日睡眠质量记录78分
matplotlib画柱状图并添加数值到图中
leetcode:236. The nearest common ancestor of binary tree
Stop saying that microservices can solve all problems
How much does the mlperf list weigh when AI is named?
After 3 years of testing bytecan software, I was ruthlessly dismissed in February, trying to wake up my brother who was paddling
随机推荐
请问async i/o可以由udf算子实现然后用sql api调用吗?目前好像只看到Datastre
Hydrogen future industry accelerates | the registration channel of 2022 hydrogen energy specialty special new entrepreneurship competition is opened!
JDBC programming of MySQL database
编译logisim
B站大佬用我的世界搞出卷積神經網絡,LeCun轉發!爆肝6個月,播放破百萬
js对JSON数组的增删改查
Restoration analysis of protobuf protocol of bullet screen in station B
Experiment 4: installing packages from Gui
ArrayExpress数据库里的细胞只有两个txt是不是只能根据Line到ENA下载测序跑矩阵?
求帮助xampp做sqlilab是一片黑
After 3 years of testing bytecan software, I was ruthlessly dismissed in February, trying to wake up my brother who was paddling
问下各位,有没有flink sql生成作业的文档啊或是案列啊知道flink cli可以建表和指定目
app通用功能測試用例
Compile logisim
Entropy information entropy cross entropy
AI金榜题名时,MLPerf榜单的份量究竟有多重?
Coscon'22 community convening order is coming! Open the world, invite all communities to embrace open source and open a new world~
自动化测试工具Katalon(Web)测试操作说明
Leetcode problem solving - 889 Construct binary tree according to preorder and postorder traversal
The largest single investment in the history of Dachen was IPO today