YMatrix
Quick Start
Standard Cluster Deployment
Data Modeling
Connecting to The database
Data Migration
Data Query
Maintenance and Monitoring
Performance Tuning
Troubleshooting
Reference Guide
SQL Reference
FAQ
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.