Skip to content
dbpm

dbpm resume

Re-run the deployment script for a package whose Core deployment status is R (running) or F (failed). Preserves the existing application registration and any data already written — this is the roll-forward path after a partial or failed deployment.

dbpm resume source [--env ENV] [--approve] [--dry-run]
[--package NAME] [--registry-url URL]
[--connect STRING] [--runner EXEC]
flowchart LR
command["command"] --> dbpm["dbpm"]
dbpm --> resume["resume"]
resume --> source["source"]
source --> options["{ option }"]
options --> end_node(("end"))
options -. expands to .-> option["option"]
option --> env["--env ENV"]
option --> approve["--approve"]
option --> dry_run["--dry-run"]
option --> package["--package NAME"]
option --> registry_url["--registry-url URL"]
option --> connect["--connect STRING"]
option --> runner["--runner EXEC"]
package -. only when source is a workspace root .-> package_note["selects workspace package"]
registry_url -. only for registry sources .-> registry_note["sets registry base URL"]
dry_run -. changes execution .-> dry_run_note["prints plan without executing"]
ArgumentDefaultDescription
sourcerequiredPackage source. See source types.
--envdevelopmentTarget environment name.
--approvefalseApprove policy-gated actions.
--dry-runfalsePrint the deployment plan as JSON without executing.
--packagenonePackage name or application name to select when source is a workspace root.
--registry-urlDBPM_REGISTRY_URL or https://registry.dbpm.ioRegistry base URL for registry: sources.
--connectDBPM_CONNECTConnect string.
--runnerDBPM_SQL_RUNNER or sqlplusSQL runner executable.

dbpm fails before running any script if:

  • The package is not installed → use dbpm install.
  • The package has a complete (C) deployment status → no resume needed.
  • The package has a status other than R or F.
ScenarioCommand
Deployment script failed partway throughdbpm resume
Deployment was interrupted (status R)dbpm resume
Package is not yet installeddbpm install
Want a clean-slate reinstalldbpm reinstall

Resume after a failed deployment:

Terminal window
dbpm resume ~/repos/utl_interval --connect user/pass@db

Resume from GitHub Packages:

Terminal window
dbpm resume \
gh-maven:512itconsulting/utl_interval:com.512itconsulting.database:utl_interval:1.0.0 \
--connect user/pass@db

Preview the resume plan:

Terminal window
dbpm resume ~/repos/utl_interval --dry-run --connect user/pass@db
  • resume re-runs the full deployment script from the beginning. Deployment scripts should be idempotent — safe to re-run after a partial execution.
  • resume does not call pkg_application.delete_application_p. Application registration and data are preserved.
  • For upgrade failures, resume re-runs all upgrade steps from step 1 (including chain steps). The same idempotency requirement applies.

Source: docs/commands/resume.md