1select decode(count(*),1,‘spfile’,‘pfile’) from v$spparameter where rownum=1 and isspecified = ‘TRUE’;
2show spfile如果不为空就是用的spfile
3查看alert日志,alert日志中可以看到启动是使用什么文件
另外如果当前使用的是pfile,想要知道pfile文件的位置,也可以在alert文件中看到使用的pfile文件的位置。
1select decode(count(*),1,‘spfile’,‘pfile’) from v$spparameter where rownum=1 and isspecified = ‘TRUE’;
2show spfile如果不为空就是用的spfile
3查看alert日志,alert日志中可以看到启动是使用什么文件
另外如果当前使用的是pfile,想要知道pfile文件的位置,也可以在alert文件中看到使用的pfile文件的位置。