Amazonrds 简明教程
Amazon RDS - Oracle Features
Oracle 是一款非常流行的关系型数据库,可在 Amazon RDS 服务中以其企业版功能获得。几乎所有 Oracle 功能都可在 RDS 平台中使用。以下是 RDS 平台中的 MySQL 主要功能的简要说明。
Supported Versions
版本 11.2 和 12.1 是 RDS 平台支持的主要版本。如果在创建数据库期间未提及版本,则它将默认为当时最新的版本。以下是如何在 Python SDK 程序中使用 AWS API 获取受支持的数据库引擎版本的示例。
import boto3
client = boto3.client('rds')
response = client.describe_db_engine_versions(
DBParameterGroupFamily='oracle-ee-12.1',
DefaultOnly=True,
Engine='',
EngineVersion='',
ListSupportedCharacterSets=False, #True,
)
print(response)
当我们运行以上程序时,我们得到以下输出:
{
"ResponseMetadata": {
"RetryAttempts": 0,
"HTTPStatusCode": 200,
"RequestId": "f6805635-3e16-4014-83cd-dfdaf3f17950",
"HTTPHeaders": {
"x-amzn-requestid": "f6805635-3e16-4014-83cd-dfdaf3f17950",
"date": "Fri, 14 Sep 2018 03:46:38 GMT",
"content-length": "1455",
"content-type": "text/xml"
}
},
"u'DBEngineVersions'": [
{
"u'Engine'": "oracle-ee",
"u'DBParameterGroupFamily'": "oracle-ee-12.1",
"u'SupportsLogExportsToCloudwatchLogs'": true,
"u'SupportsReadReplica'": false,
"u'DefaultCharacterSet'": {
"u'CharacterSetName'": "AL32UTF8",
"u'CharacterSetDescription'": "Unicode 5.0 UTF-8 Universal character set"
},
"u'DBEngineDescription'": "Oracle Database Enterprise Edition",
"u'EngineVersion'": "12.1.0.2.v12",
"u'DBEngineVersionDescription'": "Oracle 12.1.0.2.v12",
"u'ExportableLogTypes'": [
"alert",
"audit",
"listener",
"trace"
],
"u'ValidUpgradeTarget'": []
}
]
}
Oracle Licensing
Oracle DB Parameter Group
Oracle 数据库涉及许多数据库参数的配置以满足数据库的各种功能和性能需求。AWS 通过 CLI 命令显示了这些参数,用户可以使用这些命令查询参数值。以下是 CLI 命令和示例输出。
aws rds describe-engine-default-parameters --db-parameter-group-family oracle-ee-12.1
{
"EngineDefaults": {
"Parameters": [
{
"AllowedValues": "TRUE,FALSE",
"ParameterName": "_allow_level_without_connect_by",
"ApplyType": "dynamic",
"Description": "_allow_level_without_connect_by",
"IsModifiable": true,
"Source": "engine-default",
"DataType": "boolean"
},
{
"AllowedValues": "CHOOSE,OFF,CUBE,NESTED_LOOPS,MERGE,HASH",
"ParameterName": "_always_semi_join",
"ApplyType": "dynamic",
"Description": "_always_semi_join",
"IsModifiable": true,
"Source": "engine-default",
"DataType": "string"
},
{
"AllowedValues": "TRUE,FALSE",
"ParameterName": "_b_tree_bitmap_plans",
"ApplyType": "dynamic",
"Description": "_b_tree_bitmap_plans",
"IsModifiable": true,
"Source": "engine-default",
"DataType": "boolean"
},
{
"AllowedValues": "TRUE,FALSE",
"ParameterName": "parallel_automatic_tuning",
"ApplyType": "static",
"Description": "enable intelligent defaults for parallel execution parameters",
"IsModifiable": true,
"Source": "engine-default",
"DataType": "boolean"
},
{
"AllowedValues": "ENABLE,DISABLE",
"ParameterName": "xml_db_events",
"ApplyType": "dynamic",
"Description": "are XML DB events enabled",
"IsModifiable": false,
"Source": "engine-default",
"DataType": "string"
}
]
}
}