Enable Table
void enableTable(String tableName)
Function
When a DISABLED table goes online, the status becomes ENABLED, once successful, the table can be read and written normally
Method parameters
1.tableName : String : required
Method return value
void
Exception error code
INTERNAL_ERROR(1): Server exception
ACCESS_DENIED(4): No permission to enable table permissions
RESOURCE_NOT_FOUND(9): Enabled table does not exist
RESOURCE_UNAVAILABLE(11) : There are other DDL operations under this account. Does not allow DDL operations at the same time
Limitation
Only the table owner can enable table operations
Only when the table is DISABLED can this operation be performed
Example
With the Example table, the sample code for enabling table is provided below
$tableName = 'php-note';
$adminClient->enableTable($tableName);