Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database links #115

Open
tyskjohan opened this issue Nov 5, 2019 · 2 comments
Open

Database links #115

tyskjohan opened this issue Nov 5, 2019 · 2 comments

Comments

@tyskjohan
Copy link
Contributor

Just checking if anyone has looked at managing database links from Ansible?

@oravirt
Copy link
Owner

oravirt commented Nov 10, 2019

I've been meaning to explore this but I literally have no time to do so at the moment.

@werner-s-germany
Copy link

actually I use create database link via oracle_sql:

# create dblink is not idempotent, so ignore errors 
- name: create dblink 
  oracle_sql: 
    hostname: "{{ oraclehost }}"
    port: "{{ oracleport }}"
    service_name: "{{ oracleservice }}"
    user: "{{ dblink_owner }}"
    password: "{{ schemapwd_rcsus_sync_std }}"
    sql: "CREATE DATABASE LINK {{ dblink_name }} CONNECT TO {{ remote_dbl_schema }} IDENTIFIED BY {{ schemapwd_remote_dbl_schema }} USING '{{ tns_remote_db }}'"
  environment: "{{ oracle_env }}"
  ignore_errors: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants