Author: alien

  • Khóa học miễn phí Amazon RDS – MySQL Connecting to DB nhận dự án làm có lương

    Amazon RDS – MySQL Connecting to DB



    To connect to Amazon RDS MySQL DB we need a client software. In this case we use MySQL Workbench. Install it using the link .

    After it is successfully installed we follow the steps below to connect it to the Amazon RDS.

    Step-1

    From the DB instance details get the end point.

    mysql_end_point_dtls.JPG

    Step-2

    Use the end point and the master user credentials as the connection details.

    mysqlconn.jpg

    Step-3

    Once connected, we get the following window.

    mysql_sucefully_connected.JPG

    Step-4

    We can browse the DB and query the DB now.

    mysql_query.jpg

    Khóa học lập trình tại Toidayhoc vừa học vừa làm dự án vừa nhận lương: Khóa học lập trình nhận lương tại trung tâm Toidayhoc

  • Khóa học miễn phí Amazon RDS – MySQL Creating DB nhận dự án làm có lương

    Amazon RDS – MySQL Creating DB



    As a cloud platform AWS gives you very minimal number of steps to setup a DB in RDS. Creating a MYSqlDB 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 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 MariaDB instance.

    Step-1

    Select the MSSql Engine form the console.

     create_mysqldb_step_1.jpg

    Step-2

    Specify the required DB details.

    create_mysqldb_step_3.jpg

    Step-3

    In this step you decide on the db instance class, amount of storage allocated also set the master password along with few other details.

    create_mysqldb_step_4.jpg

    Stpe—4

    The final step is to click create database, after which the MySql DB is created with a available end point as shown below.

    connecting_mysql_1.jpg

    Using CLI

    To create a MySql DB instance by using the AWS CLI, call the create-db-instance command with the parameters below.

    aws rds create-db-instance
        --db-instance-identifier mydbinstance
        --db-instance-class db.m1.small
        --engine MySQL
        --allocated-storage 20
        --master-username masterawsuser
        --master-user-password masteruserpassword
        --backup-retention-period 3
    

    Using API

    To create a MariaDB instance by using the Amazon RDS API, we call the CreateDBInstance action with the parameters as shown below.

    https://rds.us-west-2.amazonaws.com/
        ?Action=CreateDBInstance
        &AllocatedStorage=20
        &BackupRetentionPeriod=3
        &DBInstanceClass=db.m3.medium
        &DBInstanceIdentifier=mydbinstance
        &DBName=mydatabase
        &DBSecurityGroups.member.1=mysecuritygroup
        &DBSubnetGroup=mydbsubnetgroup
        &Engine=mysql
        &MasterUserPassword=masteruserpassword
        &MasterUsername=masterawsuser
        &Version=2014-10-31
        &X-Amz-Algorithm=AWS4-HMAC-SHA256
        &X-Amz-Credential=AKIADQKE4SARGYLE/20140213/us-west-2/rds/aws4_request
        &X-Amz-Date=20140213T162136Z
        &X-Amz-SignedHeaders=content-type;host;user-agent;x-amz-content-sha256;x-amz-date
        &X-Amz-Signature=8052a76dfb18469393c5f0182cdab0ebc224a9c7c5c949155376c1c250fc7ec3
    

    Khóa học lập trình tại Toidayhoc vừa học vừa làm dự án vừa nhận lương: Khóa học lập trình nhận lương tại trung tâm Toidayhoc

  • Khóa học miễn phí Amazon RDS – MySQL DB Export Import nhận dự án làm có lương

    Amazon RDS – MySQL DB Export Import



    Amazon RDS MySQL provides easy ways of importing data into the DB and exporting data from the DB. After we are able to successfully connect to the MySQL database we can use CLI tools to run the import and export commands to get the data from other sources in and out of the RDS database. Below are the scenarios to consider when deciding on the approach to the import the data into the Amazon RDS – MySQL database.

    From an Existing MySQL database

    An existing MySQL DB can be present on premise or in another EC2 instance. Diagrammatically what we do is shown below.

     on_premise.jpg

    Creating a backup from On-Premise DB

    As a first step we create a backup of the on-premise database using the below command.

    
    mysqldump -u user -p[user_password] [database_name] > backupfile.sql
    
    

    A file with name backupfile.sql is created which contains the table structure along with the data to be used.

    Storing the backup file in S3.

    Upload the backup file created above to a pre-decided Amazon S3 bucket in the same region where the target RDS MySQL DB database is present. You can follow to learn about how to upload.

    Import data from Amazon S3 to RDS- MySQL database

    You can use the following Amazon CLI command to import the data from S3 to MySQL DB.

    aws rds restore-db-instance-from-s3
    --allocated-storage 125
    --db-instance-identifier tddbidentifier
    --db-instance-class db.m4.small
    --engine mysql
    --master-user-name masterawsuser
    --master-user-password masteruserpassword
    --s3-bucket-name tpbucket
    --s3-ingestion-role-arn arn:aws:iam::account-number:role/rolename
    --s3-prefix bucketprefix
    --source-engine mysql
    --source-engine-version 5.6.27
    

    From Another RDS-MySQL Instance

    There may be scenarios when you want data from an existing RDS MYSQL DB to be taken into another RDS MYSQL DB. For example, to cerate a Disaster recovery DB or create a DB only for business reporting etc. In such scenario, we create read replicas which are a copy of their source DB and then promote that read replica to a new DB instance. They are used to prevent direct heavy read from the original source DB when we want to copy the data.

    create a read-replica

    aws rds create-db-instance-read-replica
        --db-instance-identifier myreadreplica
        --source-db-instance-identifier mydbinstance
    

    Promote a Read replica to DB Instance

    Now as we have the replica, we can promote it to a standalone DB instance. This will serve our end need of importing data from o RDS – Mysql DB to a new one. The following command is used to complete the promotion of a read replica to a db instance.

    aws rds create-db-instance-read-replica
        --db-instance-identifier readreplica_name
        --region target_region_name
        --db-subnet-group-name subnet_name
        --source-db-instance-identifier arn:aws:rds:region_name:11323467889012:db:mysql_instance1
    

    From Any Database

    In order to import data from any other database to Amazon RDS – MySQL, we have to use the amazon Data Migration Service also called Amazon DMS. It uses Schema conversion tool to translate the existing data base to a the MYSQL platform. The below diagram explains the overall process. Also it works on the similar principle of replication as described in the previous section.

     amazon_dms.jpg

    Exporting Data from MySQL

    Exporting of data from Amazon RDS Mysql DB is a straight forwards process where it works on the same replication principle we have seen above. Below are the steps to carry out the export process.

    • Start the instance of MySQL running external to Amazon RDS.
    • Designate the MySQL DB instance to be the replication source.
    • Use mysqldump to transfer the database from the Amazon RDS instance to the instance external to Amazon RDS.

    Below is the code for the mysqldum command

    mysqldump -h RDS instance endpoint
        -u user
        -p password
        --port=3306
        --single-transaction
        --routines
        --triggers
        --databases  database database2
        --compress
        --compact | mysql
            -h MySQL host
            -u master user
            -p password
            --port 3306
    

    Khóa học lập trình tại Toidayhoc vừa học vừa làm dự án vừa nhận lương: Khóa học lập trình nhận lương tại trung tâm Toidayhoc

  • Khóa học miễn phí Amazon RDS – PostgreSQL Data Import nhận dự án làm có lương

    Amazon RDS – PostgreSQL Data Import



    Amazon RDS PostgreSQL provides easy ways of importing data into the DB and exporting data from the DB. After we are able to successfully connect to the PostgreSQL database we can use CLI tools to run the import and export commands to get the data from other sources in and out of the RDS database.

    Below are the steps through which the PostgreSQL data migration happens using the export and import mechanisms.

    Importing from an Amazon EC2 Instance

    When there is a PostgreSQL server on an Amazon EC2 instance and it needs to be moved to a RDS – PostgreSQL DB instance, we use the below steps to do that.

    Export The Data

    Create a file using pg_dump that contains the data to be loaded. A dump file containing data and all the meta data of the database is created using the pg_dump utility. The following command in the psql utility cerates the dump file from the database named mydbname.

    
    pg_dump dbname=mydbname -f mydbnamedump.sql
    
    

    Create Target DB Instance

    Next, we create the target DB instance and restore the data into it using the pg_restore command.

    createdb [new database name]
    pg_restore -v -h [endpoint of instance] -U [master username] -d [new database name] [database].dump
    

    Create Target Database

    Use psql to create the database on the DB instance and load the data.

    psql
       -f mydbnamedump.sql
       --host awsdbpginstance.d34f4mnfggv0.us-west-2.rds.amazonaws.com
       --port 8199
       --username awsdbuser
       --password awsdbpassword
       --dbname mynewdb
    

    Khóa học lập trình tại Toidayhoc vừa học vừa làm dự án vừa nhận lương: Khóa học lập trình nhận lương tại trung tâm Toidayhoc

  • Khóa học miễn phí Amazon RDS – PostgreSQL Connecting to DB nhận dự án làm có lương

    Amazon RDS – PostgreSQL Connecting to DB



    To connect to Amazon RDS PostgreSQL DB we need a client software. In this case we use pgAdmin. Install it using the link .

    After it is successfully installed we follow the steps below to connect it to the Amazon RDS.

    Step-1

    From the DB instance details get the end point.

    pgadmin_db_details.JPG

    Step-2

    As it is a browser based interface, choose the add server option as shown in the below diagram.

    pgadmin_1.JPG

    Step-3

    Use the end point and the master user credentials as the connection details.

    pgadmin_2.JPG

    Step-4

    Once connected, we get the following window.

    pgadmin_3.JPG

    Khóa học lập trình tại Toidayhoc vừa học vừa làm dự án vừa nhận lương: Khóa học lập trình nhận lương tại trung tâm Toidayhoc

  • Khóa học miễn phí Amazon RDS – MariaDB Data Import nhận dự án làm có lương

    Amazon RDS – MariaDB Data Import



    Amazon RDS MariaDB provides easy ways of importing data into the DB and exporting data from the DB. After we are able to successfully connect to the MariaDB database we can use CLI tools to run the import and export commands to get the data from other sources in and out of the RDS database.

    Below are the scenarios to consider when deciding on the approach to the import the data into the Amazon RDS- MariaDB database.

    From an Existing MariaDB database

    An existing MariaDB can be present on premise or in another EC2 instance. Diagrammatically what we do is shown below.

     on_premise.jpg

    Creating a backup from On-Premise DB

    As a first step we create a backup of the on-premise database using the below command. MariaDB being a clone of MySQL, can use nearly all the same commands as MySQL.

    # mysqldump -u user -p[user_password] [database_name] > backupfile.sql
    
    

    A file with name backupfile.sql is cerated which contains the table structure along with the data to be used.

    Storing the backup file in S3.

    Upload the backup file created above to a pre-decided Amazon S3 bucket in the same region where the target RDS MariaDB database is present. You can follow to learn about how to upload.

    Import data from Amazon S3 to RDS- MariaDB database

    You can use the following Amazon CLI command to import the data from S3 to MariaDB DB.

    aws rds restore-db-instance-from-s3
    --allocated-storage 125
    --db-instance-identifier tddbidentifier
    --db-instance-class db.m4.small
    --engine mysql
    --master-user-name masterawsuser
    --master-user-password masteruserpassword
    --s3-bucket-name tpbucket
    --s3-ingestion-role-arn arn:aws:iam::account-number:role/rolename
    --s3-prefix bucketprefix
    --source-engine mysql
    --source-engine-version 5.6.27
    

    From Another RDS- MariaDB Instance

    There may be scenarios when you want data from an existing RDS MariaDB DB to be taken into another RDS MariaDB. For example, to cerate a Disaster recovery DB or create a DB only for business reporting etc. In such scenario, we create read replicas which are a copy of their source DB and then promote that read replica to a new DB instance. They are used to prevent direct heavy read from the original source DB when we want to copy the data.

    create a read-replica

    aws rds create-db-instance-read-replica
        --db-instance-identifier myreadreplica
        --source-db-instance-identifier mydbinstance
    

    Promote a Read replica to DB Instance

    Now as we have the replica, we can promote it to a standalone DB instance. This will serve our end need of importing data from o RDS – MariaDB DB to a new one. The following command is used to complete the promotion of a read replica to a db instance.

    aws rds create-db-instance-read-replica
        --db-instance-identifier readreplica_name
        --region target_region_name
        --db-subnet-group-name subnet_name
        --source-db-instance-identifier arn:aws:rds:region_name:11323467889012:db:mysql_instance1
    

    From Any Database

    In order to import data from any other database to Amazon RDS – MariaDB, we have to use the amazon Data Migration Service also called Amazon DMS. It uses Schema conversion tool to translate the existing data base to a the MYSQL platform. The below diagram explains the overall process. Also it works on the similar principle of replication as described in the previous section.

     amazon_dms.jpg

    Exporting Data from MariaDB

    Exporting of data from Amazon RDS Mysql DB is a straight forwards process where it works on the same replication principle we have seen above. Below are the steps to carry out the export process.

    • Start the instance of MariaDB running external to Amazon RDS.
    • Designate the MariaDB DB instance to be the replication source.
    • Use mysqldump to transfer the database from the Amazon RDS instance to the instance external to Amazon RDS.

    Below is the code for mysqldump command to transfer the data

    mysqldump -h RDS instance endpoint
        -u user
        -p password
        --port=3306
        --single-transaction
        --routines
        --triggers
        --databases  database database2
        --compress
        --compact | mysql
            -h MariaDB host
            -u master user
            -p password
            --port 3306
    

    Khóa học lập trình tại Toidayhoc vừa học vừa làm dự án vừa nhận lương: Khóa học lập trình nhận lương tại trung tâm Toidayhoc

  • Khóa học miễn phí Amazon RDS – PostgreSQL Features nhận dự án làm có lương

    Amazon RDS – PostgreSQL Features



    PostgreSQL is a powerful, open source object-relational database system which has earned a strong reputation for reliability, feature robustness, and performance. AWS RDS runs various versions of PostgreSQL. It supports point-in-time restore and backups, creation of DB snapshots and running it on a multi-AZ environment.

    Supported Versions

    The versions 9.3 through 10.4 are the major versions supported in the RDS platform. If no version is mentioned during the DB creation, it defaults to the most recent version at that point in time. Below is an example of how to get all supported DB Engine versions using AWS API in a python SDK program.

    import boto3
    client = boto3.client(''rds'')
    response = client.describe_db_engine_versions(
        DBParameterGroupFamily='''',
        DefaultOnly=True,
        Engine=''postgres'',
        EngineVersion='''',
        ListSupportedCharacterSets=False, #True,
    )
    
    print(response)
    

    When we run the above program, we get the following output −

    {
       "ResponseMetadata": {
          "RetryAttempts": 0,
          "HTTPStatusCode": 200,
          "RequestId": "c85cd49f-2c16-44b4-9890-cb233651f962",
          "HTTPHeaders": {
             "x-amzn-requestid": "c85cd49f-2c16-44b4-9890-cb233651f962",
             "date": "Fri, 14 Sep 2018 07:31:34 GMT",
             "content-length": "995",
             "content-type": "text/xml"
          }
       },
       "u''DBEngineVersions''": [
          {
             "u''Engine''": "postgres",
             "u''DBParameterGroupFamily''": "postgres10",
             "u''SupportsLogExportsToCloudwatchLogs''": false,
             "u''SupportsReadReplica''": true,
             "u''DBEngineDescription''": "PostgreSQL",
             "u''EngineVersion''": "10.4",
             "u''DBEngineVersionDescription''": "PostgreSQL 10.4-R1",
             "u''ValidUpgradeTarget''": []
          }
       ]
    }
    
    

    Database Preview Environment

    The PostgreSQL community releases new versions and new extensions continuously. You can try out new PostgreSQL versions and extensions before they are fully supported by Aws RDS. To do that, you can create a new DB instance in the Database Preview Environment.

    DB instances in the Database Preview Environment are similar to DB instances in a production environment. However, keep in mind several important factors:

    • All DB instances are deleted 60 days after you create them, along with any backups and snapshots.

    • You can only create a DB instance in a virtual private cloud (VPC) based on the Amazon VPC service.

    • You can only create M4, T2, and R4 instance types. For more information about RDS instance classes,

    • You can”t get help from AWS Support with DB instances. You can post your questions in the RDS Database Preview Environment Forum.

    • You can only use General Purpose SSD and Provisioned IOPS SSD storage.

    • You can”t copy a snapshot of a DB instance to a production environment.

    • Some Amazon RDS features aren”t available in the preview environment, as described following.

    Logical Replication

    Logical replication is a method of replicating data objects and their changes, based upon their replication identity (usually a primary key). Logical replication uses a publish and subscribe model with one or more subscribers subscribing to one or more publications on a publisher node. Subscribers pull data from the publications they subscribe to and may subsequently re-publish data to allow cascading replication or more complex configurations. It is used for the below actions.

    • Sending incremental changes in a single database or a subset of a database to subscribers as they occur.

    • Consolidating multiple databases into a single one (for example for analytical purposes).

    • Replicating between different major versions of PostgreSQL.

    • Replicating between PostgreSQL instances on different platforms (for example Linux to Windows)

    • Giving access to replicated data to different groups of users.

    • Sharing a subset of the database between multiple databases.

    To enable logical replication for an Amazon RDS for PostgreSQL DB instance

    • The AWS user account requires the rds_superuser role to perform logical replication for the PostgreSQL database on Amazon RDS.

    • Set the rds.logical_replication parameter to 1.

    • Modify the inbound rules of the security group for the publisher instance (production) to allow the subscriber instance (replica) to connect. This is usually done by including the IP address of the subscriber in the security group.


    Khóa học lập trình tại Toidayhoc vừa học vừa làm dự án vừa nhận lương: Khóa học lập trình nhận lương tại trung tâm Toidayhoc

  • Khóa học miễn phí Amazon RDS – PostgreSQL creating DB nhận dự án làm có lương

    Amazon RDS – PostgresSQL creating DB



    As a cloud platform AWS gives you very minimal number of steps to setup a DB in RDS. Creating a PostgreSQL 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 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 PostgreSQL instance.

    Step-1

    Select the PostgreSQL Engine form the console.

     create_postgresSQL_step_1.JPG

    Step-2

    Specify the required DB details.

    mariadb_step_2.JPG

    Step-3

    In this step you decide on the db instance class, amount of storage allocated also set the master password along with few other details.

    create_postgresSQL_step_3.JPG

    Stpe—4

    This is the final step when you mention the vpc and security settings, encryption, backup options and log export etc. For brevity the screen shot has been shortened showing only the final options.

    create_postgresSQL_step_4.JPG

    Stpe—5

    In the final step we choose the create Data base option.

    create_postgresSQL_step_5.JPG

    Using CLI

    To create a PostgreSQL DB instance by using the AWS CLI, call the create-db-instance command with the parameters below.

    aws rds create-db-instance
        --db-instance-identifier pgdbinstance
        --allocated-storage 20
        --db-instance-class db.t2.small
        --engine postgres
        --master-username masterawsuser
        --master-user-password masteruserpassword
    

    Using API

    To create a PostgreSQL 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=20
        &BackupRetentionPeriod=3
        &DBInstanceClass=db.t2.small
        &DBInstanceIdentifier=pgdbinstance
        &DBName=mydatabase
        &DBSecurityGroups.member.1=mysecuritygroup
        &DBSubnetGroup=mydbsubnetgroup
        &Engine=postgres
        &MasterUserPassword=
        &MasterUsername=
        &SignatureMethod=HmacSHA256
        &SignatureVersion=4
        &Version=2013-09-09
        &X-Amz-Algorithm=AWS4-HMAC-SHA256
        &X-Amz-Credential=AKIADQKE4SARGYLE/20140212/us-west-2/rds/aws4_request
        &X-Amz-Date=20140212T190137Z
        &X-Amz-SignedHeaders=content-type;host;user-agent;x-amz-content-sha256;x-amz-date
        &X-Amz-Signature=60d520ca0576c191b9eac8dbfe5617ebb6a6a9f3994d96437a102c0c2c80f88d
    

    Khóa học lập trình tại Toidayhoc vừa học vừa làm dự án vừa nhận lương: Khóa học lập trình nhận lương tại trung tâm Toidayhoc

  • Khóa học miễn phí Amazon RDS – MariaDB Connecting to DB nhận dự án làm có lương

    Amazon RDS – MariaDB Connecting to DB



    To connect to Amazon RDS MariaDB we need a client software. In this case we use Navicat. Install it using the link .

    After it is successfully installed we follow the steps below to connect it to the Amazon RDS.

    Step-1

    From the DB instance details get the end point.

    mariadb_db_details_1.JPG

    Step-2

    From connecitons choose Amazon AWS -> Amazon RDS for MariaDB.

    mariadb_start_conn_2.JPG

    Step-3

    Use the end point and the master user credentials as the connection details.

    mariadb_start_conn_3.JPG

    Step-4

    Once connected, we get the following window.

    mariadb_start_conn_4.JPG

    Step-5

    Next you can connect to specific db and view the details.

    mariadb_start_conn_5.JPG

    Khóa học lập trình tại Toidayhoc vừa học vừa làm dự án vừa nhận lương: Khóa học lập trình nhận lương tại trung tâm Toidayhoc

  • Khóa học miễn phí Amazon RDS – Oracle Features nhận dự án làm có lương

    Amazon RDS – Oracle Features



    Oracle is very popular Relational DB which is available in the amazon RDS services with its enterprise edition features. Almost every feature of Oracle can be leveraged in the RDS platform. Below is a brief description on MYSQLs major features in RDS platform.

    Supported Versions

    The versions 11.2 and 12.1 are the major versions supported in the RDS platform. If no version is mentioned during the DB creation, it defaults to the most recent version at that point in time. Below is an example of how to get the supported DB Engine versions using AWS API in a python SDK program.

    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)
    

    When we run the above program, we get the following output −

    
    {
       "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

    There are two options for using oracle licenses in RDS. They are License Included and Bring Your Own License.

    License Included Model

    In this model Amazon holds the license for the software you are going to use. Also AWS itself provides the support for both AWS and Oracle software thorugh its support program. So the user does not purchase any separate license. The platform pricing includes the charges for licensing cost the user pays. The two editions supported in this model are Standard Edition One and Standard Edition Two.

    Bring Your Own License (BYOL)

    In this model the user brings in the license she holds into RDS platform. It is the user’s responsibility to maintain the compatibility between the license, database instance class and database edition. The user directly contacts the Oracle support channel for any need. In this model the supported editions are Enterprise Edition (EE), Standard Edition (SE), Standard Edition One (SE1) and Standard Edition Two (SE2).

    For a multi A-Z deployment, the user should have license for both primary DB instance and the secondary DB instance.

    Oracle DB Parameter Group

    The oracle DB involves many DB parameters to be configured for various features and performance needs of the database. Aws makes these parameters visible through CLI commands, which the user can use to query for the parameter values. Below is the CLI command and the sample output.

    aws rds describe-engine-default-parameters --db-parameter-group-family oracle-ee-12.1
    
    Below are the some important parameters obtained as a result of above CLI command.
    {
        "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"
                }
            ]
        }
    }
    

    Khóa học lập trình tại Toidayhoc vừa học vừa làm dự án vừa nhận lương: Khóa học lập trình nhận lương tại trung tâm Toidayhoc