CreateSchema
Generates a database schema definition for a table within Oracle Fusion Cloud SCM.
CreateSchema
データモデル内の既存のテーブルまたはビューからローカルスキーマファイル(.rsd)を作成します。
スキーマファイルは、このプロシージャが実行されると、Location 接続プロパティで設定されたディレクトリに作成されます。ファイルを編集してカラムを含めたり除外したり、カラム名を変更したり、カラムのデータ型を変更したりできます。
本製品 はLocation を確認し、.rsd ファイルの名前がデータモデルのテーブルまたはビューに一致するかどうかを判断します。重複がある場合、スキーマファイルはデータモデル内のこのテーブルのデフォルトインスタンスよりも優先されます。既存のテーブルまたはビューに一致しないスキーマファイルがLocation に存在する場合、新しいテーブルまたはビューのエントリが本製品 のデータモデルに追加されます。
Input
| Name | Type | Description |
| TableName | String | The name of the table for which the schema is being generated. This parameter specifies the table whose structure will be exported. |
| SchemaName | String | The name of the schema where the table resides. This is essential for identifying which schema to pull the table from, especially when working with multiple schemas in the database. |
| FileName | String | The full file path and name where the schema will be saved. For example, 'C:\\scripts\\Accounts.rsd'. If provided, the schema will be saved directly to the specified location. |
| SimplifyNames | String | A flag indicating whether to simplify column names in the output schema. The default value is 'simplify', which means the column names will be output without extra detail or formatting. |
Result Set Columns
| Name | Type | Description |
| Result | String | Indicates whether the schema was successfully downloaded. It returns a boolean value, typically 'true' if the schema was successfully generated and saved. |
| FileData | String | The generated schema encoded in Base-64 format. This is provided if neither 'FileName' nor 'FileStream' is set, allowing for the schema to be transmitted in a compact format without a physical file or stream. |