SQL> create pfile from spfile;
修改pfile文件,添加隐含参数 *._enable_rename_user=‘TRUE‘,将数据库以restrict方式启动
1、[[email protected] ~]$ cd /u01/app/oracle/product/11.2.0/db1/dbs/
2、[[email protected] dbs]$ ls
hc_yoon.dat init.ora inityoon.ora lkYOON orapwyoon snapcf_yoon.f spfileyoon.ora
3、[[email protected] dbs]$ tail -1 initnode1.ora 即: vi inityoon.ora
添加
*._enable_rename_user=‘TRUE‘
4、SQL> startup restrict pfile=$ORACLE_HOME/dbs/inityoon.ora
5、SQL>alter user scott rename to yoonscott identified by tiger;
6、在用PLSQL Developer连接oracle会提示:ORA-12526:TNS:监听程序:所有适用例程都处于受限模式的问题
7、使用管理员权限:
ALTER SYSTEM DISABLE RESTRICTED SESSION;
时间: 2024-10-19 10:58:10