# Complex Oracle To Localdata

Runs a complex SQL query and saves the result to localdata.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `ConnectionSettings` | [`PAWOracleConnectionSettings`](/doc/paworacleconnectionsettings-iU7nVgLHWn) | ✅Yes     | Contains the Oracle database connection information. |
| `Query`   | `String` | ✅Yes     | Table name of the Local Data the data is to be saved to.The desired query statement. |
| `LocalDataName` | `String` | ✅Yes     |             |
| `AppendIfExists` | `Boolean` | ❌No      | If "**True**" is given and the table to be saved to exists, the records are appended to the existing table. If "**False**" is given, the table is recreated every time. The default value is "**False**". |


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsComplexOracleToLocalDataSuccessful` | `Boolean` | Returns "**True**" if the operation succeeds, "**False**" if it fails. |
| `ComplexOracletoLocalDataMessage` | `String` | Returns the error information received if the operation fails. |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Specifies whether an exception is thrown when the operation fails. The default value is "**No**". |