0

My goal is to iterate over a set of oracle database instances and export a dataset to an excel file. Each instance shall be encapsulated in its own sheet. The sheet shall be named like the currently used database.

I have achieved to iterate over a selection of connections (using the Control -> Connection Iterator) and export the result set of the SQL statement to specific sheets (using Import/Export -> Export Dataset set to Excel Instance).

What I am currently struggling with is to name the sheets (currently the naming is Sheet 1, Sheet 2.....)

As far as I understood it, Automation Designer has variables. Looking at Control -> Test Variable there seem to be predefined Variables. One is ACTIVESESSIONDB which is exactly what I want.

How can I tell Export Dataset to use the variable ACTIVESESSIONDB to name the sheets?

Unssuccessful tries include:

  • #ACTIVESESSIONDB
  • %ACTIVESESSIONDB%
  • %ACTIVESESSIONDB

Example of how the variable is set in the dialog

4

1 回答 1

0

%ACTIVESESSIONDB% 应该可以工作,但“工作表名称”字段中不支持变量,因此不支持。例如,您可以在 fieldname 字段中使用 %ACTIVESESSIONDB%。

我们可以在下一个 Toad 版本中添加它。

顺便说一句,Stack Overflow 很棒,但您可能会在 Toad 的论坛中更快地获得有关 Toad 的答案。

https://forums.toadworld.com/c/toad-for-oracle/10

于 2020-06-17T18:55:10.160 回答