You execute various operations to manage the administration objects. Chapter 3, "searchadmin Commands," provides the syntax of these operations and command examples. The same operations are available as XML documents in the Web services interface, described in Chapter 4, "Web Service Operations."
The commands have this general syntax for universal object types:
operation object_type [parameters] [options]
The syntax for creatable types includes the object key for operations performed on a single object:
operation object_type [object_key] [parameters] [options]
For example, the following command activates clustering. The clustering object is a universal object type, and the command consists only of the required operation
and object_type
:
activate clustering
The next command updates the clustering configuration. This command requires the path to the input XML file with the new configuration settings and an update method:
update clustering --INPUT_FILE=clustering.xml --UPDATE_METHOD=overwrite
Most parameters and some common options have a shortcut notation. The previous update command can also be expressed with this syntax:
update clustering -i clustering.xml -a overwrite
Sources are creatable, so the command to change the configuration of a source requires the object key. For sources, the object key is the name. The following command also includes the INPUT_FILE
parameter.
update source --NAME="Doc Library" --UPDATE_METHOD=overwrite --INPUT_FILE=sources.xml
The shortcut notation looks like this:
update source -n "Doc Library" -a overwrite -i sources.xml
The message logs can help you debug problems executing an operation.
The searchadmin
command logs messages in
ORACLE_HOME/search/log/searchadmin/searchadmin.log.
The WebLogic server for Web services logs messages in
ORACLE_HOME/search/base_domain/servers/AdminServer/logs/AdminServer.out.
The Administration API uses Apache log4j logging services. The configuration file sets the logging level and other properties. To change the settings, edit
ORACLE_HOME/search/config/searchadmin/log4j.properties.
Table 1-5 describes the properties.
Property | Description |
---|---|
|
Sets the level of detail:
|
|
Path to the log file, initially set to ORACLE_HOME/search/log/searchadmin/searchadmin.log. |
|
Set to append messages to the file (default), or |
|
Maximum size of the log file, initially set to |
|
Number of backup files. Initially set to |
|
Describes the layout of the messages. |
See Also:
Documentation for Apache Logging Services log4j 1.2:Use these operations to manage creatable administration objects:
Table 1-7 Operations on Creatable Objects
Operation | Description |
---|---|
|
Creates an object from an XML file. |
|
Creates all the objects of a particular type from an XML file. |
|
Deletes a single object. |
|
Deletes all objects of a particular type. |
|
Deletes a list of objects of a particular type. |
|
Returns the XML description of an object. |
|
Returns the XML descriptions of all objects of a particular type. |
|
Returns the XML descriptions of a list of objects of a particular type. |
|
Sets the parameters of an object from an XML file. |
|
Sets the parameters of all objects of a particular type from an XML file. |
Use these operations to manage both universal and creatable administration objects with state properties.
Table 1-8 Operations on Objects With State Properties
Operation | Description |
---|---|
|
Enables an object. Objects that can be enabled have a |
|
Disables an object. Objects that can be disabled have a |
|
Returns the current state of all objects of a particular type as an XML document. |
|
Returns the state of an object as an XML document. |
|
Returns the state of a list of objects of a particular type as an XML document. |
|
Initiates the starting process of an object. |
|
Initiates the stopping process of an object. |
Operations that involve multiple objects, such as createAll
, deleteAll
and deleteList
, return status codes for each processed object, as described in Table 1-9.
Status Code | Description |
---|---|
|
The object cannot be created. |
|
The object was successfully created. |
|
The object cannot be deleted. |
|
The object was successfully deleted. |
|
The object already existed. The operation ignored the pre-existing object. |
|
The object already existed. The operation overwrote the pre-existing object. |
|
The object was ignored because it was in an invalid state. |
|
The object did not exist. The operation created the object. |
|
The object did not exist. The operation ignored the object. |
|
The object cannot be updated. |
|
The object was successfully updated. |