YMatrix
Quick Start
Connecting
Benchmarks
Deployment
Data Usage
Manage Clusters
Upgrade
Global Maintenance
Expansion
Monitoring
Security
Best Practice
Technical Principles
Data Type
Storage Engine
Execution Engine
Streaming Engine(Domino)
MARS3 Index
Extension
Advanced Features
Advanced Query
Federal Query
Grafana
Backup and Restore
Disaster Recovery
Guide
Performance Tuning
Troubleshooting
Tools
Configuration Parameters
SQL Reference
Change the definition of user map for external servers.
ALTER USER MAPPING FOR { username | USER | CURRENT_USER | PUBLIC }
SERVER servername
OPTIONS ( [ ADD | SET | DROP ] option ['value'] [, ... ] )
ALTER USER MAPPING Changes the definition of user mapping for external servers.
The owner of an external server can change the user mapping of that server for any user. Similarly, users who are granted USAGE privileges on the server can change the user mapping of their own username.
username
servername
OPTIONS ( [ ADD | SET | DROP ] option ['value'] [, ... ] )
Change the password of user map bob, server foo:
ALTER USER MAPPING FOR bob SERVER foo OPTIONS (SET password 'public');
ALTER USER MAPPING complies with ISO/IEC 9075-9 (SQL/MED). There is a subtle syntax problem: the standard omits the FOR keyword. Since both CREATE USER MAPPING and DROP USER MAPPING use FOR in similar locations, YMatrix is different from the standard here for consistency and interoperability.