Users

All Posts (2)

avatar

albertopereira

How to automate Oracle Data Pump export script with input pop-up in RDM?

avatar
avatar
avatar

Hi everyone,

I’m trying to automate an Oracle database export task using Data Pump (expdp) within Remote Desktop Manager (RDM), but I want certain fields in the script to be filled dynamically via an input pop-up before execution.

Here’s the script I currently use, which works fine when run manually:

expdp directory=bkp dumpfile=EXAMPLE_DUMP.dmp logfile=EXAMPLE_DUMP_expdb.log JOB_NAME=EXAMPLE_JOB schemas=EXAMPLE_SCHEMA EXCLUDE=TABLE_STATISTICS consistent=y

What I want:

  1. For RDM (or a script run from RDM) to open an input pop-up requesting the values for fields that change each time, such as:

    • dumpfile

    • logfile

    • JOB_NAME

    • schemas

  2. After filling in these values, the script should execute automatically with the provided input.

What I’ve tried so far:

  • Running the script directly in RDM, but it doesn’t support dynamic interactive input.

  • Looking for RDM script input parameters, but I couldn’t find clear examples for Oracle Data Pump.

Questions:

Does anyone know how to create this kind of interactive prompt in RDM to fill in script fields before execution? Or is there a way to automate this in RDM without manually editing the script every time?

Does anyone have a step-by-step guide or a valid link/tutorial showing how to create this kind of interactive input pop-up in RDM for scripts? Any example setup or instructions would be highly appreciated!

Thanks in advance for your help!

How to use ${PROMPT:NomeBase} in a Command-line Script sent to an SSH session?

avatar
avatar
avatar

Hello,

I’m trying to create a Command-line Script in Remote Desktop Manager that asks the user for a value using ${PROMPT:NomeBase} and then sends an expdp command to an active SSH session.

The final goal is to type a base name only once, and use it in all parameters of the export command.

Here is the command I want to run:

expdp directory=bkp \

dumpfile=${PROMPT:NomeBase}.dmp \

logfile=${PROMPT:NomeBase}_expdb.log \

JOB_NAME=${PROMPT:NomeBase} \

schemas=${PROMPT:NomeBase} \

EXCLUDE=TABLE_STATISTICS consistent=y

My doubt is:

Where exactly should I configure this command inside the Command-line entry so that ${PROMPT:NomeBase} works and the final command is properly sent to the SSH terminal?

I’m unsure whether I should use:

  • the Run field

  • the Arguments field

  • or the Command field inside the General tab

I also noticed that the Parameters tab with {1} {2} {3} inputs does not seem to apply to this case.

I have tried several combinations but the prompt is not triggering, or the command is not being sent correctly to SSH.

I’m attaching screenshots from the General, Parameters, and Advanced tabs for clarity.

Could you please guide me on the correct configuration for this scenario?

Thank you!

1 - 2 of 2 items