I need to move data from tst DBaaS to acc DBaaS, DBaaS are not connected as azure resource or something like that.
Im trying to select some data from DBaaS A and insert it in DBaaS B using Linux Agent. I have connections and passwords, user names are valid, i can see selected data in logs.
But how to make SELECT X FROM A and then INSERT X INTO B?
pool: name: LinuxAgent
variables:
name: a_name value: a_value
name: a_connection value: a_connection
name: b_name value: b_value
name: b_connection value: b_connection
stages:
- stage: pull
displayName: Pull data from DBaaS
jobs:
- job: pull
steps:
- task: Bash@3 displayName: Pull data inputs: targetType: 'inline' script: | sqlplus ${{ variables.a_name }}/PASSWORD@'${{ variables.a_connection }}' <<< "select query"
- job: pull
steps:
- stage: push
displayName: Push data to DBaaS
dependsOn:
- pull condition: succeeded() jobs:
- job: push
steps:
- task: Bash@3 displayName: Push data inputs: targetType: 'inline' script: | sqlplus ${{ variables.b_name }}/PASSWORD@'${{ variables.b_connection }}' <<< "insert query"`
My pipeline knowledge is pretty poor so beside of log query statement i have no idea how to store it and pass further...please help :)