CreateSchema
Generates a database schema definition for a table within Oracle Fusion Cloud SCM.
CreateSchema
データモデル内の既存のテーブルまたはビューからローカルスキーマファイル(.rsd)を作成します。
スキーマファイルは、このプロシージャが実行されると、Location 接続プロパティで設定されたディレクトリに作成されます。ファイルを編集してカラムを含めたり除外したり、カラム名を変更したり、カラムのデータ型を変更したりできます。
本製品 はLocation を確認し、.rsd ファイルの名前がデータモデルのテーブルまたはビューに一致するかどうかを判断します。重複がある場合、スキーマファイルはデータモデル内のこのテーブルのデフォルトインスタンスよりも優先されます。既存のテーブルまたはビューに一致しないスキーマファイルがLocation に存在する場合、新しいテーブルまたはビューのエントリが本製品 のデータモデルに追加されます。
Input
| Name | Type | Accepts Output Streams | Description |
| TableName | String | False | The name of the table for which the schema is being generated. This parameter specifies the table whose structure will be exported. |
| SchemaName | String | False | 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 | False | 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 | False | 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. |
| FileStream | String | True | An output stream to write the generated schema to. This is used if the 'FileName' parameter is not set, allowing for schema data to be written directly to the stream instead of to a file. |
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. |