CreateSchema
Generates a schema definition for a table within Oracle Fusion Cloud SCM, streamlining table setup.
CreateSchema
Creates a local schema file (.rsd) from an existing table or view in the data model.
The schema file is created in the directory set in the Location connection property when this procedure is executed. You can edit the file to include or exclude columns, rename columns, or adjust column datatypes.
The provider checks the Location to determine if the names of any .rsd files match a table or view in the data model. If there is a duplicate, the schema file will take precedence over the default instance of this table in the data model. If a schema file is present in Location that does not match an existing table or view, a new table or view entry is added to the data model of the provider.
Input
Name | Type | Accepts Output Streams | Description |
TableName | String | False | The name of the table for which the schema is being generated. |
SchemaName | String | False | The name of the schema that contains the specified table. |
FileName | String | False | The full file path and name where the generated schema will be saved. Example: 'C:\\scripts\\Accounts.rsd'. |
SimplifyNames | String | False | Indicates whether column names should be simplified in the output. The default behavior is to simplify names. |
FileStream | String | True | The output stream used to write the generated schema. This is only returned if FileName is not provided. |
Result Set Columns
Name | Type | Description |
Result | String | Indicates whether the schema was successfully generated and downloaded. |
FileData | String | The generated schema encoded in base64 format. This is only returned if neither FileName nor FileStream is provided. |