Skip to content

Instantly share code, notes, and snippets.

View shadabshaukat's full-sized avatar
🕶️

Shadab Mohammad shadabshaukat

🕶️
View GitHub Profile
@shadabshaukat
shadabshaukat / Service_Health_Summary.sh
Created May 24, 2022 16:54
Service_Health_Summary
curl -u <user>:"<password>"
-H "Content-Type: application/json"
-H "Accept: application/json"
-X GET https://pxxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/config/health/check
curl -X "POST" "https://pxxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/credentials/{domain}/{alias} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-u 'user:password' \
-d $'{
"userid": "oggadmin@//localhost:1521/ORCL",
"password": "oggadmin"
}'
@shadabshaukat
shadabshaukat / Critical_Events_Replication_Process.sh
Created May 24, 2022 16:35
Critical_Events_Replication_Process
curl -u <user>:"<password>"
-H "Content-Type: application/json"
-H "Accept: application/json"
-X GET https://pxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/logs/events
@shadabshaukat
shadabshaukat / View_Discard_File_Replicat.sh
Created May 24, 2022 16:21
View_Discard_File_Replicat
curl -u <user>:"<password>"
-H "Content-Type: application/json"
-H "Accept: application/json"
-X GET https://pxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/replicats/<replicat name>/info/reports/<replicat name>.dsc
@shadabshaukat
shadabshaukat / View_Discard_File_Extract.sh
Created May 24, 2022 16:19
View_Discard_File_Extract.sh
curl -u <user>:"<password>"
-H "Content-Type: application/json"
-H "Accept: application/json"
-X GET https://pxxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/extracts/<extract name>/info/reports/<extract name>.dsc
curl -X "POST" "https://pxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/replicats/<replicat name>/command" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-u 'user:password' \
-d $'{
"command": "GETLAG"
}'
curl -X "POST" "https://pxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/extracts/<extract name>/command" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-u 'user:password' \
-d $'{
"command": "GETLAG"
}'
@shadabshaukat
shadabshaukat / Add_Tran_Data_Source_Schema.sh
Created May 22, 2022 16:05
Add_Tran_Data_Source_Schema
curl -u <user>:"<password>" -H "Content-Type: application/json" -H "Accept: application/json" -X POST https://<deployment URL>:<port>/services/v2/connections/<domain>.<credential>/trandata/schema -d '{ "operation":"add", "schemaName":"<schema>" }'
curl -u <user>:"<password>"
-H "Content-Type: application/json"
-H "Accept: application/json"
-X POST https://pxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/connections/OracleGoldenGate.ggashburn/trandata/schema -d '{ "operation":"add", "schemaName":"admin" }'
curl -u <user>:"<password>"
-H "Content-Type: application/json"
-H "Accept: application/json"
-X GET https://pxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/connections
@shadabshaukat
shadabshaukat / View_Report_Replicat.sh
Last active May 23, 2022 03:11
View_Report_Replicat
curl -u <user>:"<password>"
-H "Content-Type: application/json"
-H "Accept: application/json"
-X GET https://pxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/replicats/<replicat name>/info/reports/<replicat name>.rpt