Amazonrds 简明教程
Amazon RDS - Oracle Creating DB
AWS 作为云平台提供非常少量的步骤来设置 RDS 中的 DB。可以使用三种方式创建 Oracle DB。使用 AWS 管理控制台、AWS CLI 或 AWS API。我们将逐一查看这些方法。
As a cloud platform AWS gives you very minimal number of steps to setup a DB in RDS. Creating a Oracle DB can be done in three ways. Using AWS management console, AWS CLI or AWS API. We will look at each of these approaches one by one.
Using AWS management Console
AWS 管理控制台是开始使用 RDS 最方便的方式。使用您的 AWS 帐户详细信息登录 AWS 控制台,找到 RDS 服务,然后按照以下步骤创建 Oracle SQL DB 实例。
AWS management console is the most convenient way to get started with RDS. You login to the AWS console using your AWS account details, locate the RDS service and then follow the steps shown below to create a Oracle SQL DB instance.
Using CLI
要使用 AWS CLI 创建 Oracle DB 实例,请使用以下参数调用 create-db-instance 命令。
To create a Oracle DB instance by using the AWS CLI, call the create-db-instance command with the parameters below.
aws rds create-db-instance \
--engine oracle-se1 \
--db-instance-identifier mydbinstance \
--allocated-storage 20 \
--db-instance-class db.m1.small \
--db-security-groups mydbsecuritygroup \
--db-subnet-group mydbsubnetgroup \
--master-username masterawsuser \
--master-user-password masteruserpassword \
--backup-retention-period 3
Using API
要使用 Amazon RDS API 创建 Oracle DB 实例,我们使用以下所示的参数调用 CreateDBInstance 操作。
To create a Oracle DB instance by using the Amazon RDS API, we call the CreateDBInstance action with the parameters as shown below.
https://rds.amazonaws.com/
?Action=CreateDBInstance
&AllocatedStorage=250
&BackupRetentionPeriod=3
&DBInstanceClass=db.m1.large
&DBInstanceIdentifier=mydbinstance
&DBSecurityGroups.member.1=mysecuritygroup
&DBSubnetGroup=mydbsubnetgroup
&Engine=oracle-se1
&MasterUserPassword=masteruserpassword
&MasterUsername=masterawsuser
&SignatureMethod=HmacSHA256
&SignatureVersion=4
&Version=2014-10-31
&X-Amz-Algorithm=AWS4-HMAC-SHA256
&X-Amz-Credential=AKIADQKE4SARGYLE/20140305/us-west-1/rds/aws4_request
&X-Amz-Date=20140305T185838Z
&X-Amz-SignedHeaders=content-type;host;user-agent;x-amz-content-sha256;x-amz-date
&X-Amz-Signature=b441901545441d3c7a48f63b5b1522c5b2b37c137500c93c45e209d4b3a064a3