run cuc dbquery
This command runs an SQL query and displays the results.
run cuc dbquery database_name sql_query [page]
Syntax Description
Parameters | Description | ||
---|---|---|---|
database_name |
Specifies the database that sql_statement operates on.
Connection databases include: unitydirdb: Contains the directory and configuration data. unitydyndb: Contains dynamic data that Connection uses internally. unitymbxdb1 to unitymbxdb5: Contains the data about the current voice messages in the corresponding mailbox store. This data includes pointers to the audio files that are stored in the file system. If only one mailbox store is configured, the name of the mailbox store database is always unitymbxdb1. unityrptdb: Contains audit log data. |
||
sql_query |
Specifies the SQL query that you want to run. |
||
page |
Shows the output one page at a time.
|
Command Modes
Administrator (admin:)
Usage Guidelines
You can also use the run cuc dbquery command with the csp_ConfigurationModify procedure, which configures the Wait for Blind Transfer Ringing timer. The command usage for this timer is as follows:
run cuc dbquery unitydirdb execute procedure
csp_ConfigurationModify(pFullName='System.Telephony.WaitForBlindTransferLongTimeoutMs',pvaluelong="new value"
where, new value specifies the value of the Wait for Blind Transfer Ringing Timer parameter. The default and minimum value of this parameter is 500ms. The maximum value of this parameter can be 5000ms.
Requirements
Command privilege level: 1
Allowed during upgrade: Yes
Applies to: Cisco Unity Connection
Example
admin: run cuc dbquery unitydirdb select alias from vw_usertemplate
alias
---------------------
AdministratorTemplate
VoiceMailUserTemplate