【翻译自mos文章】多租户中的service管理

来源于:

Service Management For Multitenant (文档 ID 2009500.1)

APPLIES TO:

Oracle Database - Enterprise Edition - Version 12.1.0.1 and later

Information in this document applies to any platform.

GOAL

This Note is intended to cover the most important point about the management of database services in a Multitenant environment.

SOLUTION

An introduction on the topic of database services can be found here.

‘...A service name is a logical representation of a service used for client connections.

When a client connects to a listener, it requests a connection to a service. When a database instance starts,

it registers itself with a listener as providing one or more services by name. Thus, the listener acts as a

mediator between the client and instances and routes the connection request to the right place....‘

For a Multitenant-specific introduction please check here and here.

Services are an integral part of the management for Multitenant , esp. as there is

always a service created when a PDB is created or plugged in. The PDB and the

Service always have the same name and therefore you should never create any

services manually which have the same names as a PDB you intend to plug in.

SQL*Plus: Release 12.1.0.2.0 Production on Mi Mai 13 10:20:44 2015

Copyright (c) 1982, 2014, Oracle.  All rights reserved.

Enter user-name: / as sysdba

Connected to:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, Automatic Storage Management, OLAP, Advanced Analytics

and Real Application Testing options

SQL> select service_id, name,enabled ,pdb from cdb_services order by 1;

SERVICE_ID NAME                           ENA PDB

---------- ------------------------------ --- --------------------

1 SYS$BACKGROUND                 NO  CDB$ROOT

2 SYS$USERS                      NO  CDB$ROOT

3 o12cXDB                        NO  CDB$ROOT

4 o12c                           NO  CDB$ROOT

SQL> alter pluggable database pdb1 open read write;

Pluggable database altered.

SQL> select service_id, name,enabled ,pdb from cdb_services order by 1;

SERVICE_ID NAME                           ENA PDB

---------- ------------------------------ --- --------------------

1 SYS$BACKGROUND                 NO  CDB$ROOT

2 SYS$USERS                      NO  CDB$ROOT

3 o12cXDB                        NO  CDB$ROOT

4 o12c                           NO  CDB$ROOT

7 pdb1                           NO  PDB1

It is important to note that the service only becomes active when the PDB is started.

There are two ways to create a database service:

1. The DBMS_SERVICES package provides an interface to the creation and management of services.

This is also what is used to create the services for the PDB‘s.

To see a list of currently active services, please run as SYS in the CDB:

SQL> select service_id, name,enabled ,pdb from cdb_services order by 1;

When you need to create or delete a service, then you need to switch to the container listed under ‘PDB‘ using:

SQL> alter session set container = <pdb name>;

and then run the required procedure of the DBMS_SERVICE package

2. There is a utility called srvctl that is mostly used in a RAC environment but it also works in a non-RAC setup.

This is described here for RAC and in Note 1260134.1 for
a stand-alone environment.

In order to see a list of the services managed by srvctl, you need to run

$ srvctl status service -db <cdb name> -v

You can use this to make sure that there are no conflicts when you plan to plug in a database.

A complete reference and examples for this can be found here.

时间: 2024-10-18 09:11:22

【翻译自mos文章】多租户中的service管理的相关文章

【翻译自mos文章】11gR2中的asm后台进程

11gR2中的asm后台进程 参考原文: ASM Background Processes in 11.2 (Doc ID 1641678.1) 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.2 to 11.2.0.4 [Release 11.2] Information in this document applies to any platform. 1 ASMB - ASM Background Process 与as

【翻译自mos文章】12c中ORAAGENT.BIN进程消耗了大量的内存

来源于: 12C ORAAGENT.BIN CONSUMES HIGH MEMORY (文档 ID 1954032.1) APPLIES TO: Oracle Database - Enterprise Edition - Version 11.2.0.4 to 12.1.0.2 [Release 11.2 to 12.1] Information in this document applies to any platform. SYMPTOMS 12.1.0.2 oraagent.bin p

【翻译自mos文章】在11gR2 rac环境中,文件系统使用率紧张,并且lsof显示有很多oraagent_oracle.l10 (deleted)

在11gR2 rac环境中,文件系统使用率紧张,并且lsof显示有很多oraagent_oracle.l10 (deleted) 参考原文: High Space Usage and "lsof" Output Shows Many 'oraagent_oracle.l10 (deleted)' in GI environment (Doc ID 1598252.1) 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.

【翻译自mos文章】升级到11.2.0.4之后在alert日志中出现 NUMA 警告信息

注:与本文有关的文章为:http://blog.csdn.net/msdnchina/article/details/43763927 升级到11.2.0.4之后在alert日志中出现 NUMA 警告信息 翻译自mos文章:NUMA warning message appear after upgrade to 11.2.0.4 (文档 ID 1600824.1)1 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.4 and

【翻译自mos文章】对于oracle 数据库来说,OGG的抽取进程什么时候到database中获取数据?

对于oracle 数据库来说,OGG的抽取进程什么时候到database中获取数据? 参考原文: When GoldenGate Fetches Data From The Database On Extraction For Oracle (Doc ID 1059583.1) 适用于: Oracle GoldenGate - Version 4.0.0 and later Information in this document applies to any platform. 解决方法: 问

【翻译自mos文章】rac数据库中,HC_&lt;SID&gt;.dat文件被其他Oracle_Home下的实例所使用。

rac数据库中,HC_<SID>.dat文件被其他Oracle_Home下的实例所使用. 参考原文: RAC database HC_<SID>.dat is used by instance of different Oracle_Home (Doc ID 1618161.1) 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.0 and later Information in this document ap

【翻译自mos文章】oracle db 中的用户账户被锁--查看oracle用户的尝试次数

参考原文: Users Accounts Getting Locked. (Doc ID 791037.1) 其实这个文章是为oracle 别的软件产品写的,不过涉及到user 锁定问题,那还是跟db有关系. 该文章我就不全部翻译了,只翻译最有用的一点: ---lcount列是记录oracle用户用错误的密码登陆db的登陆的次数. Select lcount from SYS.USER$ where name ='<USERNAME>' [翻译自mos文章]oracle db 中的用户账户被锁

【翻译自mos文章】11.2.0.4及更高版本号的asm实例中MEMORY_TARGET 和 MEMORY_MAX_TARGET的默认值和最小值

[翻译自mos文章]11.2.0.4及更高版本号的asm实例中MEMORY_TARGET 和 MEMORY_MAX_TARGET的默认值和最小值 来源于: Default and Minimum MEMORY_TARGET & MEMORY_MAX_TARGET Value for ASM 11.2.0.4 and Onwards (文档 ID 1982132.1) APPLIES TO: Oracle Database - Enterprise Edition - Version 11.2.0

【翻译自mos文章】在Oracle GoldenGate中循环使用ggserr.log的方法

在OGG中循环使用ggserr.log的方法: 参考原文: OGG How Do I Recycle The "ggserr.log" File? (Doc ID 967932.1) 适用于: Oracle GoldenGate - Version 4.0.0 and later Generic Linux 问题 GoldenGate的 ggserr.log 日志文件包括有关 GoldenGate 事件的信息,比如:进程启动,关闭,error ,warning.该文件可能会变的很大.为