# Troubleshooting ## Terraform Plan Fails Because Of Authentication Check: - correct OCIDs - correct region - API key fingerprint - private key path - IAM permissions to create resources ## Autonomous Database Does Not Accept The Configured Version Remove or adjust `adb_db_version` in `terraform.tfvars`. Database version availability depends on region, tenancy, and service limits. For a real Oracle Deep Data Security lab, use a version compatible with Oracle AI Database 26ai. ## Database Is Not Reachable Check: - the client is inside the VCN or connected through VPN, FastConnect, or bastion - NSG allows port `1522` - wallet and mTLS are configured - private endpoint DNS resolves correctly ## Scenario SQL Fails Check: - database version is compatible with Oracle Deep Data Security - executor has privileges to create schema objects, end users, data roles, and data grants - SQL files were executed in the correct order - previous scenario state was reset ## Reset Does Not Remove Everything Run the scenario `sql/99_reset.sql` and manually validate remaining objects. In shared environments, confirm before dropping schemas.