Changing Security Role Password in Oracle GoldenGate 12.3 Microservices
One of the nice things about Oracle GoldenGate 12.3 Microserivces, is the flexibility we now have to interact with Oracle GoldenGate. Additionally, what comes with Oracle GoldenGate 12.3 Microservices is a new role based security frame work.
When you first setup Oracle GoldenGate 12.3 Microservices, you setup your ServiceManager and initial deployment. Upon setting this up, you will assign a new administrator to the frame work. This is a different user than the Oracle GoldenGate user within the database. This user is the user assigned to the security role (highest role). This user is the equivalent of the SYS user in the Oracle Database and has access to everything within the security framework of Oracle GoldenGate 12.3 Microservices. It should be a no-brainer to keep the password for this user secure and to as few people as possible.
Now, when you look at the user from inside of the Administration Server (AdminServer); notice there is not an update button under the Action category (Figure 1).
Figure 1:
So how do we update this password for a user in the security role, much less any other role? Remember, when I said Oracle GoldenGate 12.3 Microservices was “flexible”? We have to use the RESTful API to update the password.
The exact end-point that you have to use is: /services/v2/authorizations/{role}/{user}. More info can be found here.
The way that I update the password is by using a JSON document and a simple cURL command. Below is a simple JSON document example:
{
“credential”:”welcome1″
}
Then the cURL command I use is:
curl -u oggadmin:********* -H “Content-Type:application/json” -H “Accept:application/json” -X PATCH http://localhost:16001/services/v2/authorizations/security/oggadmin -d @update_security_password.json| python -mjson.tool
After running the cURL command, the password for the oggadmin user is updated. You should see some similiar output to this output.
{
“$schema”: “api:standardResponse”,
“links”: [
{
“href”: “http://localhost:16001/services/v2/authorizations/security/oggadmin”,
“mediaType”: “application/json”,
“rel”: “canonical”
},
{
“href”: “http://localhost:16001/services/v2/authorizations/security/oggadmin”,
“mediaType”: “application/json”,
“rel”: “self”
}
],
“messages”: [],
“response”: {
“links”: [
{
“href”: “http://localhost:16001/services/v2/authorizations/security/oggadmin”,
“mediaType”: “application/json”,
“rel”: “self”
}
]
}
}
Hope this helps you understand how to change a user password from REST within the Oracle GoldenGate 12.3 Microservices Architecture.
Enjoy!!!
Bobby Curtis
I’m Bobby Curtis and I’m just your normal average guy who has been working in the technology field for awhile (started when I was 18 with the US Army). The goal of this blog has changed a bit over the years. Initially, it was a general blog where I wrote thoughts down. Then it changed to focus on the Oracle Database, Oracle Enterprise Manager, and eventually Oracle GoldenGate.
If you want to follow me on a more timely manner, I can be followed on twitter at @dbasolved or on LinkedIn under “Bobby Curtis MBA”.
Heya i am for the primary time here. I came across this board and I find It truly helpful & it helped me out a lot.
I am hoping to provide something back and aid others such
as you aided me.
Here is my web blog :: eharmony special coupon code 2025
hello there and thank you for your information – I’ve definitely
picked up something new from right here. I did however expertise
some technical issues using this web site, as I experienced to reload
the site lots of times previous to I could get it to load properly.
I had been wondering if your web host is OK? Not that I am
complaining, but sluggish loading instances times will often affect your placement in google and can damage your high-quality score if ads and marketing with Adwords.
Well I am adding this RSS to my email and could look out for a lot more of your respective exciting content.
Make sure you update this again soon.
Here is my homepage … vpn
Wonderful goods from you, man. I’ve take into account your stuff prior to and you are just extremely wonderful.
I really like what you’ve acquired right here, certainly like what you’re saying and the best way during
which you say it. You make it entertaining and you still take care of to keep it smart.
I can not wait to read much more from you. This is really a tremendous
site. https://tinyurl.com/23ww4xyv gamefly free trial
Please let me know if you’re looking for a article author for your site.
You have some really good posts and I think I would be a good asset.
If you ever want to take some of the load off,
I’d absolutely love to write some material for your blog
in exchange for a link back to mine. Please send me
an e-mail if interested. Thank you! How does vpn work https://tinyurl.com/2xsenm6a