It is found that oracle11g provides the new feature of user rename. In a 10g environment, if you want to rename a user, it is generally to create a new user and authorize the original
It is found that oracle 11g provides new features for user rename. In a 10g environment, if you want to rename a user, it is generally to create a new user and authorize it first, and then
I recently looked at a blog and found that Oracle 11g provided the new feature of user rename. In a 10g environment, if you want to rename a user, you should first create a new user and authorize it, import all objects under the original user and delete the old user! Next we will introduce this new feature in the 11g rac environment!
1. Create a test user xxx and write the test data. The spfile file generates the pfile file to close the rac database.
2. Modify the pfile file and add the implicit parameter *. _ enable_rename_user = 'true' to start the database in restrict mode.
3. Change xxx user name to yyy
4. Use spfile to start rac
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
[Oracle @ node1 dbs] $ srvctl start database-d rac
[Oracle @ node1 dbs] $ srvctl status database-d rac
Instance node1 is running on node node1
Instance node2 is running on node node2
V. connection test. Therefore, the user's rename operation can inherit the original permissions.