Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What is fenced User-ID of a DB2 instance?
And also want some proper purpose of it as I got this link
How to determine fenced User-ID of a DB2 instance[^]
saying "The purpose of fenced user id is to protect DB2 from untested or malicious code from the external stored procedures, user defined functions etc."
But how it protects? is it works like a sandbox type or can say antivirus?
Posted
Updated 3-Mar-21 18:46pm

When a fenced stored procedure is run, it can use a fenced user to execute it in order to have less privileges for example at operating system level. Otherwise the fenced stored procedure is run by the same user account that is running DB2 agent.

In other words, by using a fenced user, you can ensure that certain type (fenced) procedures make no harm to the database since the privileges of a fenced procedure and user are typically much smaller.

For more info, see NOT FENCED Stored Procedures[^]
 
Share this answer
 
You can first login into the instance and then run the below command:

cat /home/INSTANCENAME/sqllib/ctrl/.fencedID

after which you can also run the below command to if db2fmp process is running.

ps -ef | grep -i db2fmp

and then run:

db2pd -fmp
 
Share this answer
 
Comments
CHill60 4-Mar-21 11:10am    
All very interesting but does not answer any of the questions ...
- What is fenced User-ID of a DB2 instance?
- proper purpose of it
- But how it protects?
- it works like a sandbox type or can say antivirus?
I admire your desire to help, but make sure you answer the question that was asked and don't just dump information that you happen to know.
It's also a good idea to stick to questions that are more recent, where the OP still needs help - this question is 8 years old

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900