dbpm check-core
Verify that Core is installed in the target database and optionally meets a minimum version requirement. This is a read-only command — it makes no changes.
Syntax
Section titled “Syntax”dbpm check-core [--minimum-version VERSION] [--connect STRING | --connect-name NAME] [--runner EXEC]EBNF diagram
Section titled “EBNF diagram”flowchart LR command["command"] --> dbpm["dbpm"] dbpm --> check_core["check-core"] check_core --> options["{ option }"] options --> end_node(("end"))
options -. expands to .-> option["option"] option --> minimum_version["--minimum-version VERSION"] option --> connect["--connect STRING or --connect-name NAME"] option --> runner["--runner EXEC"]
minimum_version -. constrains success .-> version_note["Core must be at least VERSION"]Arguments
Section titled “Arguments”| Argument | Default | Description |
|---|---|---|
--minimum-version | none | Minimum acceptable Core version, such as 3.2.0. If omitted, any installed Core version passes. |
--connect | DBPM_CONNECT | Raw SQL*Plus/SQLcl connect string, such as user/pass@service. Mutually exclusive with --connect-name. |
--connect-name | DBPM_CONNECT_NAME | SQLcl saved connection name. Requires SQLcl via --runner or DBPM_SQL_RUNNER. |
--runner | DBPM_SQL_RUNNER or sqlplus | SQL runner executable. |
Output
Section titled “Output”On success:
CORE_VERSION=3.5.0On failure, dbpm exits with code 2 and prints an error to stderr.
Examples
Section titled “Examples”Check that any Core version is installed:
dbpm check-core --connect user/pass@dbCheck that Core meets a minimum version:
dbpm check-core --minimum-version 3.2.0 --connect user/pass@dbUsing environment variables:
export DBPM_CONNECT=user/pass@dbunset DBPM_CONNECT_NAMEdbpm check-core --minimum-version 3.0.0Using a SQLcl saved connection:
unset DBPM_CONNECTexport DBPM_CONNECT_NAME="Development Database (APP_USER)"export DBPM_SQL_RUNNER=sqldbpm check-coreOr pass the saved connection name directly:
dbpm check-core \ --connect-name "Development Database (APP_USER)" \ --runner sql- Run
check-corebefore any non-Core deployment to verify the substrate is ready. - Core must be bootstrapped with
dbpm bootstrap-corebefore ordinary package installs can run. - SQLcl saved connections are local to the OS user running dbpm.
- Do not put a SQLcl saved connection name in
DBPM_CONNECT; useDBPM_CONNECT_NAMEor--connect-name.
Source: docs/commands/check-core.md