CreateSchema
Generates a database schema definition for a table within Oracle Fusion Cloud SCM.
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. 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. |