This page describes how to generate a wallet for an Autonomous AI Database in
Google Cloud.

You can download your client credentials by generating a wallet. The wallet
contains information for mTLS connections only. For TLS connections, you don't
need to generate a wallet.

Generating a wallet for an APEX workload type database is not supported.

## Generate a wallet for an Autonomous AI Database

To generate a wallet, do the following:

### Console

1. Go to the **Autonomous AI Database** page.

   [Go to Autonomous AI Database](https://console.cloud.google.com/oracle/autonomous-databases/)
2. Click the name of the Autonomous AI Database for which you want to generate
   the wallet.

3. On the **Autonomous AI Database details** page, select the **Connections** tab.

4. In the **Download client credentials (Wallet)** section, click
   **Download wallet**.

5. In the **Download your wallet** dialog, set a password for the wallet.

6. Click **Download**.

### gcloud

The `gcloud oracle-database autonomous-databases generate-wallet` command
outputs a URL-safe base64-encoded archive in the `archiveContent` field.
To restrict file permissions and decode the output into a `.zip` file,
run the following command:

```bash
(umask 077 && touch wallet.zip)
gcloud oracle-database autonomous-databases generate-wallet \
    DATABASE_NAME \
    --location=REGION_ID \
    --project=PROJECT_NAME \
    --password=PASSWORD \
    --format="value(archiveContent)" | tr '_-' '/+' | base64 -d > wallet.zip
```

Replace the following:

- <var translate="no">DATABASE_NAME</var>: the name of the database.
- <var translate="no">REGION_ID</var>: the region of your database.
- <var translate="no">PROJECT_NAME</var>: the name of your Google Cloud project.
- <var translate="no">PASSWORD</var>: a password for the wallet.

## What's next

- Learn how to [manage](https://docs.cloud.google.com/oracle/database/docs/manage-databases.md.txt) or [delete](https://docs.cloud.google.com/oracle/database/docs/delete-databases.md.txt) an Autonomous AI Database.
- Configure [Identity and Access Management roles](https://docs.cloud.google.com/oracle/database/docs/iam-roles.md.txt) for an instance.
- [Use monitoring metrics](https://docs.cloud.google.com/oracle/database/docs/monitoring-metrics.md.txt) to monitor your instances.