To add a bdomain the script API_REDADM.ADD_BDOMAIN is used. One only has to provide a name and description for the bdomain that should be created like in the command below.
EXECUTE SCRIPT API_REDADM.ADD_BDOMAIN(
'TESTING' -- p_bdomain
,'This is a Test-BDOMAIN' -- p_description
);
After issuing this command an entry is added to REDADM.RED_BDOMAINS.
BDOMAIN | description |
---|---|
TESTING | This is a Test-BDOMAIN |
If one wants to modify a bdomain, the script API_REDADM.MODIFY_BDOMAIN can be used. As the only two parameters of this function are the name of the bdomain and a description and the bdomain name is required and therefore cannot be changed, this script can only be used to modify the description of the bdomain.
EXECUTE SCRIPT API_REDADM.ADD_BDOMAIN(
'TESTING' -- p_bdomain
,'Changed description' -- p_description
);
The script above modifies the entry in the table REDADM.RED_BDOMAINS as follows:
BDOMAIN | description |
---|---|
TESTING | Changed description |
To remove a bdomain one only has to provide the name of the bdomain that should be removed to the script API_REDADM.REMOVE_BDOMAIN as can be seen in the example below.
EXECUTE SCRIPT API_REDADM.REMOVE_BDOMAIN (
'TESTING' -- p_bdomain
);
After the script above is issued the entry for the bdomain 'TESTING' is removed from the table REDADM.RED_BDOMAINS.