Oracle DataBase connection module
maintainer: | Vladimir Bormotov <bormotov@gmail.com> |
---|---|
maturity: | new |
depends: | cx_Oracle |
platform: | all |
configuration: | module provide connections for multiple Oracle DB instances. OS Environment ORACLE_HOME: path to oracle product
PATH: path to Oracle Client libs need to be in PATH
pillar oracle.dbs: list of known based
oracle.dbs.<db>.uri: connection credentials in format:
user/password@host[:port]/sid[ as {sysdba|sysoper}]
|
salt.modules.oracle.
client_version
()Oracle Client Version
CLI Example:
salt '*' oracle.client_version
salt.modules.oracle.
run_query
(db, query)Run SQL query and return result
CLI Example:
salt '*' oracle.run_query my_db "select * from my_table"
salt.modules.oracle.
show_dbs
(*dbs)Show databases configuration from pillar. Filter by *args
CLI Example:
salt '*' oracle.show_dbs
salt '*' oracle.show_dbs my_db
salt.modules.oracle.
show_env
()Show Environment used by Oracle Client
CLI Example:
salt '*' oracle.show_env
Note
at first _connect() NLS_LANG
will forced to '.AL32UTF8'
Generated on February 25, 2019 at 06:53:47 MST.
You are viewing docs for the previous stable release, 2017.7.8. Switch to docs for the latest stable release, 2018.3.3, or to a recent doc build from the develop branch.
© 2019 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy