Goal:Configure OEM Express for both CDB(CDB1) and PDB(PDB1)
复制代码1
2
3
4
5Version : 12.2.0.1.0 OS : Red Hat Enterprise Linux Server release 7.9 IP : 192.168.8.130 CDB NAME : CDB1 PDB NAME : PDB1
1.Introduction
复制代码1
2
3
4
5
6
7
8
9
10Oracle Enterprise Manager Express is a Web-based interface for managing an Oracle database 12c. Used to perform basic administrative tasks such as - Managing users - Managing memory - Managing storage - Managing database initialization parameters - Monitor performance - View SQL Tuning Advisor information - Verify status information container database and pluggable databases.
2. Verify OEM Express already configured or not for CDB1
复制代码
1If returned port number is 0, it means that EM Express is not configured for that particular container.
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30[oracle@ol7 ~]$ sqlplus / as sysdba SQL*Plus: Release 12.2.0.1.0 Production on Wed Feb 8 21:25:17 2023 Copyright (c) 1982, 2016, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production SQL> show con_name; CON_NAME ------------------------------ CDB$ROOT SQL> SQL> select DBMS_XDB_CONFIG.GETHTTPPORT() from dual; DBMS_XDB_CONFIG.GETHTTPPORT() ----------------------------- 0 SQL> select DBMS_XDB_CONFIG.GETHTTPSPORT() from dual; DBMS_XDB_CONFIG.GETHTTPSPORT() ------------------------------ 0 SQL>
3. Verify OEM Express already configured or not for PDB1
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39SQL> SQL> show con_name; CON_NAME ------------------------------ CDB$ROOT SQL> SQL> show pdbs; CON_ID CON_NAME OPEN MODE RESTRICTED ---------- ------------------------------ ---------- ---------- 2 PDB$SEED READ ONLY NO 3 PDB1 READ WRITE NO 4 PDB2 READ WRITE NO 5 PDB3 READ WRITE NO SQL> SQL> alter session set container=PDB1; Session altered. SQL> show con_name; CON_NAME ------------------------------ PDB1 SQL> select DBMS_XDB_CONFIG.GETHTTPPORT() from dual; DBMS_XDB_CONFIG.GETHTTPPORT() ----------------------------- 0 SQL> select DBMS_XDB_CONFIG.GETHTTPSPORT() from dual; DBMS_XDB_CONFIG.GETHTTPSPORT() ------------------------------ 0 SQL>
4. Configure OEM Express for CDB (HTTPs & HTTP)
复制代码
1
2
3
4We are configuring EM Express for PDB4 to run on ports: HTTPs 5500 and HTTP 5510 Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65[oracle@ol7 ~]$ sqlplus / as sysdba SQL*Plus: Release 12.2.0.1.0 Production on Wed Feb 8 21:30:48 2023 Copyright (c) 1982, 2016, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production SQL> set pagesize 200 SQL> set linesize 200 SQL> SQL> select name,cdb,con_id from v$database; NAME CDB CON_ID --------- --- ---------- CDB1 YES 0 SQL> show con_name; CON_NAME ------------------------------ CDB$ROOT SQL> SQL> select instance_name,status,con_id from v$instance; INSTANCE_NAME STATUS CON_ID ---------------- ------------ ---------- cdb1 OPEN 0 SQL> show parameter dispatchers NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ dispatchers string (PROTOCOL=TCP) (SERVICE=cdb1XD B) max_dispatchers integer SQL> prompt Execute the DBMS_XDB.setHTTPSPort procedure to set the HTTPS port 5500 Execute the DBMS_XDB.setHTTPSPort procedure to set the HTTPS port 5500 SQL> SQL> exec DBMS_XDB_CONFIG.SETHTTPSPORT(5500); PL/SQL procedure successfully completed. SQL> prompt Execute the DBMS_XDB.setHTTPPort procedure to set the HTTP port 5510 for EM Express Execute the DBMS_XDB.setHTTPPort procedure to set the HTTP port 5510 for EM Express SQL> exec DBMS_XDB_CONFIG.SETHTTPPORT(5510); PL/SQL procedure successfully completed. SQL> select DBMS_XDB_CONFIG.GETHTTPPORT() from dual; DBMS_XDB_CONFIG.GETHTTPPORT() ----------------------------- 5510 SQL> select DBMS_XDB_CONFIG.GETHTTPSPORT() from dual; DBMS_XDB_CONFIG.GETHTTPSPORT() ------------------------------ 5500 SQL>
5. Login to EM Express for CDB
复制代码
1
2https://ol7:5500/em http://ol7:5510/em
6. Configure OEM Express for PDB1
复制代码
1We are configuring EM Express for PDB4 to run on ports: HTTPs 5501 and HTTP 5511
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56SQL> SQL> show con_name; CON_NAME ------------------------------ CDB$ROOT SQL> show pdbs; CON_ID CON_NAME OPEN MODE RESTRICTED ---------- ------------------------------ ---------- ---------- 2 PDB$SEED READ ONLY NO 3 PDB1 READ WRITE NO 4 PDB2 READ WRITE NO 5 PDB3 READ WRITE NO SQL> alter session set container=PDB1; Session altered. SQL> show con_name; CON_NAME ------------------------------ PDB1 SQL> prompt execute the DBMS_XDB.setHTTPSPort procedure to set the HTTPS port 5501 execute the DBMS_XDB.setHTTPSPort procedure to set the HTTPS port 5501 SQL> SQL> exec DBMS_XDB_CONFIG.SETHTTPSPORT(5501); PL/SQL procedure successfully completed. SQL> SQL> SQL> SQL> SQL> prompt execute DBMS_XDB.setHTTPPort procedure to set the HTTP port 5511 for EM Express execute DBMS_XDB.setHTTPPort procedure to set the HTTP port 5511 for EM Express SQL> SQL> exec DBMS_XDB_CONFIG.SETHTTPPORT(5511); PL/SQL procedure successfully completed. SQL> SQL> select DBMS_XDB_CONFIG.GETHTTPPORT() from dual; DBMS_XDB_CONFIG.GETHTTPPORT() ----------------------------- 5511 SQL> select DBMS_XDB_CONFIG.GETHTTPSPORT() from dual; DBMS_XDB_CONFIG.GETHTTPSPORT() ------------------------------ 5501 SQL>
7. Login to EM Express for PDB1
复制代码1
2https://ol7:5501/em http://ol7:5511/em
最后
以上就是认真唇彩最近收集整理的关于How to Configure OEM Express Oracle 12c的全部内容,更多相关How内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复