Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Creating a Database Audit Task

Updated on 2025-02-22 GMT+08:00

Scenarios

You want to check whether database objects for audit meet specifications and affect performance

Prerequisites

A data source has been created and connected successfully.

Constraints

  • The audited database objects can only be tables, views, sequences, indexes, functions, procedures, triggers, or packages.
  • A maximum of 10,000 schemas can be audited at a time.
  • During the database audit, do not delete database objects that are being audited, or audit results may be affected.
  • If a system template is used, the audit results before and after a version upgrade will be inconsistent. You are advised to use a custom template.

Procedure

  1. Log in to the UGO console.
  2. In the navigation pane, choose SQL Audit > Database Audit.
  3. Click Create Audit Task.

    Figure 1 Creating a Database Audit Task
    Table 1 Parameter description

    Parameter

    Example Value

    Description

    Task Name

    db_audit_01

    Enter a task name, which is mandatory.

    The value is a string of 5 to 50 characters, including letters, digits, underscores (_), and hyphens (-). It must start with a letter (case-insensitive) and end with a digit or letter.

    Database Type

    GaussDB

    Select a database type. Only the GaussDB database is supported. This parameter is mandatory.

    Data Source

    app_db_01

    Select a data source. Currently, only GaussDB is supported. This parameter is mandatory.

    If there is no available data source, click Create Data Source.

    Schema

    demo_schema_01

    Select a schema. This parameter is optional and only available for GaussDB databases.

    • If this parameter is not specified, all schemas are audited by default. However, up to 10,000 schemas can be audited.
    • If the parameter is specified, you can select up to 10,000 schemas.

    Rule Template

    baseline_template_01

    Select a template based on the selected database type.

    You can set the template information by referring to Adding a Rule Template.

    Description

    Audit task for service database objects

    Enter a task description, which contains up to 100 characters. This parameter is optional.

  4. Click OK. The task is displayed in the list.

    If a running task is terminated due to a database exception, you can click Retry.

    • If the task is terminated during object collection, delete the collected objects and reconnect to the database to collect objects after the retry.
    • If the task is terminated during an audit, the audit will be resumed after the retry.
    Figure 2 Audit task list

    The task status can be:

    • Pending: The database audit task is to be scheduled.
    • Collecting objects: DDL statements in the schema of a specified database.
    • Auditing SQL statements: The database is being audited.
    • Audit completed: The database audit is complete only after all database objects are audited.
    • Audit failed: An exception occurred during the audit.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback