Oracle安装配置的一些问题
1:配置了tnsname后访问不了远程服务器。
1)关闭远程服务器的DHCP。
2)关闭远程服务器的防火墙。
3)telnet远程服务器的1521端口,telnet通过则计算机之前通信正常。
3)tnsping [sid],如果失败检查tns文件。
2:不能在本机使用sysdba访问远程服务器。
SQL> show parameter pass,检查远程登录设置
www.2cto.com
在服务器下的product\11.2.0\dbhome_1\dbs\ini.ora文件中有一句:
Html代码
remote_login_passwordfile='EXCLUSIVE'
修改为shared
a、none
Oracle ignores any password file. Therefore, privileged users must be authenticated by the operating system
不允许sysdba用户组成员远程登录访问数据库
b、 exclusive
The password file can be used by only one database. The password file can contain SYS as well as non-SYS users.
只允许口令文件用于本数据 库,允许sysdba用户组成员远程登录访问数据库
c、shared
One or more databases can use the password file. The password file can contain SYS as well as non-SYS users. www.2cto.com
允许其他数据库使用该口令文件,允许sysdba用户组成员远程登录访问数据库
修改配置remote_login_passwordfile=exclusive(这是个静态参数要修改spfile文件),sysdba用 户(及拥有其角色的普通用户)可以远程登录。
Html代码
SQL> alter system set remote_login_passwordfile=exclusive scope=spfile;
System altered.
重启数据库
Html代码
SQL>oracle账号 startup force;
作者 silly_sinba