Every Oracle BI Administrator should know the WLST. Eventually, the need will arise to use some advanced features against the application server - WLS - that hosts Oracle BI in order to automate or make short work of repetitive functions. In Oracle BI 12c, it's the lifecycle-management tools where administrators will make the most use of WLST. WLST is one of the ways in which you can interface with the application server. WLST is fairly straightforward to use. Its command-line interface is launched from a directory underneath the ORACLE_HOME
installation root of Oracle BI 12c; typically, on the server for which the installation resides. However, WLST, when located on a networked server, may communicate with any another WebLogic Server located on the network.
Let's conduct a quick exercise that will show you how to launch the WLST interface. In addition, you'll run a few quick commands to return some simple data from the WLS server.
<ORACLE_HOME>oracle_commoncommoninwlst.cmd
:Example: C:obieeoracle_commoncommoninwlst.cmd
On a Nix OS, launch WLST using the./wlst.sh
command in the similar path, <ORACLE_HOME>/oracle_common/common/bin/
.
The script first attempts to load a series of environment variables into the Terminal session so that WLST's required libraries can be assessed. This is all part of the program's procedure before the WLST engine can be ready for use on the command prompt or Terminal. As the launch message states, it can take up to a few minutes for the WLST prompt to ready itself for use.
Once the environment variables have been loaded, you will be presented with a command-prompt cursor and are ready to access the WLST program in offline mode.
connect('weblogic', '<password>','<server_name>:<port>');
Example:
connect('weblogic', 'Admin123','localhost:9500');
If the WLS server is running and the credentials are valid, a successful connection message will be returned. With a successful online connection, there are many commands that could be entered to explore the WebLogic Server, and to a small degree the Oracle BI server. To keep your first foray into WLST simple but powerful, let's programmatically create an embedded WLS LDAP user.
dauth=cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider("DefaultAuthenticator")
dauth.createUser('obi12cbook','Admin123','OBI 12c Book User')
LDAP
directory.DefaultAuthenticator
.dauth
object and calls the createUser
function, passing three arguments to the parameters: username
, password
, and username alias
.
18.119.104.160