4.6 ユースケースおよびプロンプトの例
ここでは、SQLcl MCPサーバーに接続されたMCPクライアントを介して様々なデータベース操作を実行するために使用できる自然言語リクエストの例をいくつか示します。
表4-1 Oracle Database操作の自然言語プロンプト
| 操作 | 説明 | 複雑度 | クライアントへのプロンプトの例 |
|---|---|---|---|
|
データベースへの接続 |
自動認証および接続管理を使用してデータベース接続を確立します。 |
基本 |
Connect to the HR database |
|
単純な問合せの実行 |
読取り可能な結果を使用して基本的なSQL問合せを実行します。 |
基本 |
Show me recent ordersまたはWhich customers are in California? |
|
データベース・スキーマの参照 |
表の構造、列および関係を対話形式で調査します。 |
基本 |
Which tables contain customer information?またはShow me the structure of the Orders table |
|
接続ステータスのチェック |
リアルタイム・ステータス・レポートを使用して、データベース・セッションの状態および接続性をモニターします。 |
基本 |
Which database am I currently connected to? |
|
複雑な分析問合せの実行 |
階層的な内訳と高度なSQL機能を使用して、高度な分析操作を実行します。 |
高度 |
Show me a hierarchical breakdown of sales by region and product category with year-over-year growth percentages |
|
複数環境操作の実行 |
開発、テストおよび本番のデータベース環境間で作業を連携させます。 |
高度 |
Compare the customer counts between our development and production databases |
|
トランザクションの管理 |
レビューおよびロールバックの機能を使用して複雑なトランザクションを管理します。 |
高度 |
Update all customer records in the Northeast region but let me review the changes before committing |
|
パフォーマンスのモニタリング |
問合せのパフォーマンスを分析し、最適化の提案を受け取ります。 |
高度 |
Show me which queries are running slow today and provide optimization tips |