Skip to content

Commit 164175a

Browse files
committed
cleanup readme links
1 parent 7dea290 commit 164175a

File tree

6 files changed

+68
-233
lines changed

6 files changed

+68
-233
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ Oracle Database@Azure brings Oracle's best databases - Exadata and Autonomous Da
1313
* Deploy a new Oracle Autonomous Database
1414
* [Using the Azure Portal](https://youtu.be/QOCvRr5CfeQ)
1515
* [Using Terraform scripts](https://github.com/oci-landing-zones/terraform-oci-multicloud-azure/tree/main)
16-
* [Using the Azure CLI](azure-cli/create-adb.md)
16+
* [Using the Azure CLI](azure-cli/README.md)
1717
* Connect to your Autonomous Database
1818
* [Learn about connectivity options](https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/connect-preparing.html)
1919
* Use these great VS Code extensions that help you develop and debug your database apps
2020
* SQL Developer for VS Code ([Learn More](https://www.oracle.com/database/sqldeveloper/vscode/) | [Marketplace](https://marketplace.visualstudio.com/items?itemName=Oracle.sql-developer))
2121
* Oracle Developer Tools for VS Code ([Learn More](https://docs.oracle.com/en/database/oracle/developer-tools-for-vscode/getting-started/gettingstarted.html) | [Marketplace](https://marketplace.visualstudio.com/items?itemName=Oracle.oracledevtools))
22-
* [Sample SQL code](./sql/sql-scripts.md)
22+
* [Sample SQL code](./sql/README.md)
2323
* Create a database user and add sample data
2424
* Work with data in Azure Storage
2525
* Get started with Select AI

azure-cli/README.md

Lines changed: 63 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,84 @@
11
# Oracle Database@Azure: Create an Autonomous Database
2-
The steps below show how to create an Autonomous Database using the Azure CLI. You will need to [install the Azure CLI](https://learn.microsoft.com/en-us/cli/azure/) prior to running thru this example.
2+
The steps below show how to create an Autonomous Database using the Azure CLI.
33

4-
Run the examples below at a command prompt.
5-
6-
> [!NOTE]
7-
> See the [details for onboarding Autonomous Database](https://learn.microsoft.com/en-us/azure/oracle/oracle-db/onboard-oracle-database)
4+
Prerequisites:
5+
* [Install the Azure CLI](https://learn.microsoft.com/en-us/cli/azure/)
6+
* [Subscribe to Oracle Database@Azure](https://www.youtube.com/watch?v=MEB8kB_TI2I)
7+
* Ensure you have the appropriate user groups and privileges. See [details for onboarding Autonomous Database](https://learn.microsoft.com/en-us/azure/oracle/oracle-db/onboard-oracle-database)
88

99
## Deploy your Autonomous Database
10-
Start by logging into Azure:
11-
```bash
12-
az login
13-
```
10+
Use the following scripts to deploy your infrastructure and Autonomous Database. You can run the scripts independently or run `create-all-resources.sh`. Simply update the [`config`](#configuration-file) prior to running the scripts:
11+
12+
|Script|Description|
13+
|----|---|
14+
|[create-resource-group.sh](create-resource-group.sh)|Create a resource group|
15+
|[create-network.sh](create-network.sh)|Create virtual cloud network. <br><br>ADB must be deployed to a delegated subnet. In addition, ADB access is thru a private endpoint. This means it must be accessed from either the same VCN or another privileged network.|
16+
|[create-adb.sh](create-adb.sh)|Create an Autonomous Database|
17+
|[create-compute-vm.sh](create-compute-vm.sh)|Create a VM in that VCN|
18+
|[create-all-resources.sh](create-all-resources.sh)|Creates your resource group, network, ADB and VM|
19+
|[create-data-lake-storage.sh](create-data-lake-storage.sh)|Creates an Azure Data Lake Gen 2 storage account, a container and uploads sample data into that container|
20+
|[delete-all-resources.sh](delete-all-resources.sh)|Deletes your resource group, network, ADB and VM|
1421

15-
Edit the [config file](./config) based on your deployment. These variables will be used by the Azure CLI.
22+
### Configuration file
23+
The Azure cli deployment scripts rely on settings found in the config file. These resources **will be created** by the scripts. Update the config file prior to running any of the scripts.
24+
25+
>**IMPORTANT:** This file will contain a password that is used to connect to Autonomous Database and the virtual machine. Set the file's permissions so that only the file's owner can view its contents:
1626
```bash
17-
LOCATION="eastus"
18-
RESOURCE_GROUP="resource-group-name-goes-here"
19-
VNET_ID="vnet-resource-name-goes-here"
20-
SUBNET_ID="subnet-resource-name-goes-here"
21-
ADB_NAME="adb-name-goes-here"
27+
chmod 600 config
2228
```
23-
The VNET and SUBNET IDs must be fully qualified IDs. For example:
24-
* **VNET_ID=**`"/subscriptions/99d4fb0e-ac2.../resourceGroups/your-resource-group/providers/Microsoft.Network/virtualNetworks/your-vnet"`
25-
* **SUBNET_ID=**`"/subscriptions/99d4fb0e-ac2.../resourceGroups/your-resource-group/providers/Microsoft.Network/virtualNetworks/your-vnet/subnets/your-subnet"`
2629

27-
After updating the config file, create a new Autonomous Database by running [`./deploy-adb.sh`](./deploy-adb.sh) from the command line. You can also modify other database properties by editing the deployment script.
30+
|Setting|Description|Example|
31+
|----|----|----|
32+
|LOCATION|Region where resources will be deployed. [See documentation](https://docs.oracle.com/en-us/iaas/Content/database-at-azure/oaa_regions.htm) for regions where Oracle Database 23ai is available|"eastus"|
33+
|RESOURCE_GROUP|Target resource group for new resources|"development"|
34+
|ADB_NAME|Autonomous Database name. This name must be unique within a region location|"quickstart"|
35+
|VNET_NAME|Virtual network|"dev-vnet"|
36+
|VNET_PREFIX|CIDR range for the virtual network|"192.168.0.0/16"|
37+
|SUBNET_NAME|Delegated subnet where the database will be deployed|"dev-sn-db"|
38+
|SUBNET_PREFIX|CIDR range for the delegated subnet|"192.168.1.0/24"|
39+
|SUBNET2_NAME|Client subnet. The VM will be deployed to this subnet|"dev-sn-client"|
40+
|SUBNET2_PREFIX|CIDR range for the client subnet|"192.168.2.0/24"|
41+
|NSG_NAME|Name of the network security group used by the client subnet|$SUBNET2_NAME-nsg|
42+
|VM_NAME|Name of the virtual machine|"adb-vm-client"|
43+
|VM_PREFERRED_SIZES|A list of VM sizes. Change these values based on region availability. The script will attempt to create a VM based on the order listed|( "Standard_GS1" "Standard_DC1s_v2" "Standard_DC2s_v2" "Standard_DC2ads_v5" "Standard_L4s" )|
44+
|VM_IMAGE|The image used by the VM|"MicrosoftWindowsDesktop:Windows-11:win11-22h2-pro:latest"|
45+
|STORAGE_ACCOUNT_NAME|The name of an Azure Data Lake Storage Gen 2 account. This name must be unique across Azure. Sample data files will be uploaded into this storage account.|"mytenancysamplestorageaccount"|
46+
|STORAGE_CONTAINER_NAME|The name of the container where files will be uploaded|"adb-sample"|
47+
|USER_NAME|The name of the user for the virtual machine|"adb"|
48+
|USER_PASSWORD|The password for both the VM and the Autonomous Database admin user|"Welcome1234#abcd"|
2849

29-
The script will prompte you for the Autonomous Database **ADMIN** user password. Enter a complex password.
50+
### Using the scripts
51+
Log into azure: after updating the config file:
3052

31-
After a few minutes, review your newly created database:
3253
```bash
33-
az oracle-database autonomous-database show \
34-
--autonomousdatabasename $ADB_NAME \
35-
--resource-group $RESOURCE_GROUP
54+
az login
3655
```
56+
Then, run your scripts. The following will deploy a complete environment, but you can also install independent components. Just make sure you install dependencies (e.g. a VCN prior to Autonomous Database):
3757

38-
## Delete an Autonomous Database
39-
You can run the following command to an Autonomous Database:
58+
Creating all of the resources will take approximately 15-20 minutes.
4059

4160
```bash
42-
az oracle-database autonomous-database delete \
43-
--autonomousdatabasename $ADB_NAME \
44-
--resource-group $RESOURCE_GROUP \
45-
--no-wait false
61+
./create-all-resources.sh
4662
```
4763

64+
Check for errors after running the script. For example, VM availability can impact the success of creating the resource. If there is an issue, simply rerun the script that creates the resource (note: you may need to update the config file).
65+
66+
## What's next
67+
Connect to your Autonomous Database!
68+
* [Learn about connectivity options](https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/connect-preparing.html)
69+
* Use these great VS Code extensions that help you develop and debug your database apps:
70+
* SQL Developer for VS Code ([Learn More](https://www.oracle.com/database/sqldeveloper/vscode/) | [Marketplace](https://marketplace.visualstudio.com/items?itemName=Oracle.sql-developer))
71+
* Oracle Developer Tools for VS Code ([Learn More](https://docs.oracle.com/en/database/oracle/developer-tools-for-vscode/getting-started/gettingstarted.html) | [Marketplace](https://marketplace.visualstudio.com/items?itemName=Oracle.oracledevtools))
72+
73+
#### JDBC Example:
74+
JDBC is a common way to connect to Autonomous Database. For example, you can use the **Custom JDBC URL** in the VS Code SQL Developer Extension:
75+
![connection dialog](images/connect-dialog.png)
76+
77+
Notice the `jdbc:oracle:thin:@` prefix followed by a connection string. You can find the connection string in different ways.
4878

79+
1. Go to your Autonomous Database blade in the Azure Portal and go to **Settings -> Connections**:
80+
![Azure Portal connections](images/connections-portal.png)
81+
2. Use the Azure cli script [`show-adb-info.sh`](./show-adb-info.sh). That script will return information about your Autonomous Database, including connection details.
4982

5083
<hr>
5184
Copyright (c) 2024 Oracle and/or its affiliates.<br>

azure-cli/create-adb.md

Lines changed: 0 additions & 85 deletions
This file was deleted.

azure-cli/deploy-adb.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

sql/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
Numerous SQL scripts are available to help you get started using Autonomous Database on Oracle Database@Azure
33

44
Prerequisites:
5-
* [Create an Autonomous Database](../azure-cli/create-adb.md)
5+
* [Create an Autonomous Database](../azure-cli/README.md)
66
* A VM deployed on the same VCN as Autonomous Database (or on a network that can access your Autonomous Database)
77
* Use these great VS Code extensions that help you develop and debug your database apps:
88
* SQL Developer for VS Code ([Learn More](https://www.oracle.com/database/sqldeveloper/vscode/) | [Marketplace](https://marketplace.visualstudio.com/items?itemName=Oracle.sql-developer))
99
* Oracle Developer Tools for VS Code ([Learn More](https://docs.oracle.com/en/database/oracle/developer-tools-for-vscode/getting-started/gettingstarted.html) | [Marketplace](https://marketplace.visualstudio.com/items?itemName=Oracle.oracledevtools))
1010

1111
## Connect to Autonomous Database
12-
There are [numerous client tools](../azure-cli/create-adb.md#whats-next) that you can use to start working with Autonomous Database. This includes the built-in SQL Worksheet that's part of the Database Tools (and available from the linked OCI Console) or a tool like VS Code and one an Oracle Database extension.
12+
There are [numerous client tools](../azure-cli/README.md#whats-next) that you can use to start working with Autonomous Database. This includes the built-in SQL Worksheet that's part of the Database Tools (and available from the linked OCI Console) or a tool like VS Code and one an Oracle Database extension.
1313

1414
## Sample scripts
1515
Try out these scripts to learn how to get started using Autonomous Database. Simply update the [`config.sql`](#configuration-file) script prior to running the samples:
@@ -37,7 +37,7 @@ chmod 600 config.sql
3737

3838
|Setting|Description|Example|
3939
|----|----|----|
40-
|CONN|JDBC Connection. [Go here](../azure-cli/create-adb.md#jdbc-example) to see how to get the connection details.|jdbc:oracle:thin:@(description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1521)(host=your-host.oraclecloud.com))(connect_data=(service_name=my_quickstart_medium.adb.oraclecloud.com))(security=(ssl_server_dn_match=no)))
40+
|CONN|JDBC Connection. [Go here](../azure-cli/README.md#jdbc-example) to see how to get the connection details.|jdbc:oracle:thin:@(description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1521)(host=your-host.oraclecloud.com))(connect_data=(service_name=my_quickstart_medium.adb.oraclecloud.com))(security=(ssl_server_dn_match=no)))
4141
|USER_NAME|Database user that will contain sample data|'moviestream'|
4242
|USER_PASSWORD|Password for the sample database user|'watchS0meMovies#'
4343
|**Select AI and GenAI**|

0 commit comments

Comments
 (0)