CreateSchema
Creates a schema definition for a table in Oracle Fusion Cloud SCM, ensuring alignment with system requirements.
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 table name ensures that the correct table structure, including its columns, data types, and constraints, is extracted for documentation or migration purposes. |
| SchemaName | String | The name of the schema that defines the database structure. This schema specifies the collection of tables, views, indexes, and other database objects within the database instance. |
| FileName | String | The full file path and name where the generated schema should be saved (for example, 'C:\\scripts\\Accounts.rsd'). If this path is provided, the schema definition is written directly to the specified file. |
| SimplifyNames | String | Indicates whether column names in the output should be simplified for readability. When this field is enabled, complex or system-generated column names can be adjusted to more user-friendly versions. |
Result Set Columns
| Name | Type | Description |
| Result | String | Indicates whether the schema was successfully generated and downloaded. This field returns a status such as 'Success' (if the schema is generated without issues) or 'Error' (if the process fails), along with relevant details. |
| FileData | String | The generated schema encoded in Base64 format. This output is returned only if neither 'FileName' nor 'FileStream' is set, allowing for retrieval of the schema as an encoded data string for secure transmission or processing. |