SQL> show parameter pfile;

/picclife/app/oracle/product/11.2.0/dbhome_1/dbs/spfilehukou.ora

SQL> show parameter audit_file_dest

/picclife/app/oracle/admin/hukou/adump

[oracle@yang ~]$ cd /picclife/app/oracle/product/11.2.0/dbhome_1/dbs/

[oracle@yang dbs]$ vi inithukou.ora

*.audit_file_dest='$ORACLE_BASE/admin/huko/adump'        hukou=>改为huko

Oracle: sqlplus / as sysdba

SQL> create spfile from pfile;

SQL> startup nomount;

---以上修改参数文件audit_file_dest参数文件,重启库后,sqlplus / as sysdba报错

[oracle@yang dbs]$ sqlplus / as sysdba

ERROR:
ORA-09925: Unable to create audit trail file
Linux-x86_64 Error: 2: No such file or directory
Additional information: 9925
ORA-01075: you are currently logged on

[oracle@yang dbs]$ vi inithukou.ora

*.audit_file_dest='$ORACLE_BASE/admin/hukou/adump'

[oracle@yang dbs]$ mv spfilehukou.ora spfilehukou.ora.bak

--但是呢,你很尴尬的发现,因为现在数据库最少启动到了Nomount的阶段,你SQLPLUS登录一直提示你操作系统验证无法进入;

很尴尬对吧,无法进入sql*plus就无法修改参数文件,就无法启动数据库;

----------

解决方法:[oracle@yang ~]$ ps -ef|grep ora_smon_hukou             ora_进程名称:SMON,PMON,DBWR,LGWR,CKPT,  oracle_sid=hukou
oracle    7438  7262  0 04:58 pts/0    00:00:00 grep *pmon*

[oracle@yang ~]$ kill -s 9 7438

会话包括实例都被干掉了;

SQL> create spfile from pfile;

SQL> shutdown immediate;

SQL> startup

SQL> show parameter pfile;

/picclife/app/oracle/product/11.2.0/dbhome_1/dbs/spfilehukou.ora

---审计目录,干啥用的?

SQL> show parameter audit_file_dest

/picclife/app/oracle/admin/hukou/adump

[root@yang adump]# cd /picclife/app/oracle/admin/hukou/adump/

[root@yang adump]# ls

[root@yang adump]# rm -f *

[oracle@yang ~]$ sqlplus / as sysdba

[root@yang adump]# ls
hukou_ora_8423_20171102051747052914143795.aud

[root@yang adump]# cat hukou_ora_8423_20171102051747052914143795.aud Audit file /picclife/app/oracle/admin/hukou/adump/hukou_ora_8423_20171102051747052914143795.aud Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options ORACLE_HOME = /picclife/app/oracle/product/11.2.0/dbhome_1 System name:    Linux Node name:      yang Release:        2.6.32-100.26.2.el5 Version:        #1 SMP Tue Jan 18 20:11:49 EST 2011 Machine:        x86_64 Instance name: hukou Redo thread mounted by this instance: 1 Oracle process number: 19 Unix process pid: 8423, image: oracle@yang (TNS V1-V3)

Thu Nov  2 05:17:47 2017 +08:00 LENGTH : '160' ACTION :[7] 'CONNECT' DATABASE USER:[1] '/' PRIVILEGE :[6] 'SYSDBA' CLIENT USER:[6] 'oracle' CLIENT TERMINAL:[5] 'pts/0' STATUS:[1] '0' DBID:[10] '3862096839'

总结:使用sysdba身份登录,都会在审计文件目录中,自动生成一个审计文件,如果目录指向未知,则无法使用sysdba身份登录;

偏外:告警日志:alert.log

SQL> show parameter dump

background_dump_dest    alert.log日志存放路径

user_dump_dest                用户审计文件,例如: SQL>alter session set events 'immediate trace name controlf level 12';--sid_ora_xx.trc

ORA-09925: Unable to create audit trail file带来的sqlplus / as sysdba无法连接的更多相关文章

  1. ORA-09925: Unable to create audit trail file汇总

    今天一兄弟的库报ORA-09925: Unable to create audit trail file,当时查 df -h有可用空间,文件夹的权限也正确,未df -i查看Inodes使用情况,审计文 ...

  2. sqlplus链接数据库报ORA-09925: Unable to create audit trail file

    [localhost.localdomain]:[/oracle11/app/oracle11/product/11.2.0/dbhome_1/dbs]$ sqlplus / as sysdba SQ ...

  3. Oracle案例01——ORA-09925: Unable to create audit trail file

    2018年春节后第一天上班就遇到一个审计日志无法写入的问题,具体解决思路如下. 一.错误日志 数据库错误日志内容: Fri Feb 23 11:16:30 2018OS Audit file coul ...

  4. ORA-09925: Unable to create audit trail file

    当我修改ORACLE_SID为新的SID,想进行数据库还原时,用sqlplus报如下错误 [oracle@dbtest ~]$ sqlplus / as sysdba SQL Production : ...

  5. ORA-09925:Unable to create audit trail file 数据库启动失败

    问题描述:生产库停机加内存和CPU,重启完服务器,启动数据库报错. ORA-09925: Unable to create audit trail file Linux-x86_64 Error 2: ...

  6. [问题解决] initAndListen: 10309 Unable to create/open lock file: /data/db/mongod.lock

    错误: 在linux下开启mongoDB的 $ >bin: ./mongod 时报错:initAndListen: 10309 Unable to create/open lock file: ...

  7. Warning: File upload error - unable to create a temporary file in Unknown on line 0

    upload_tmp_dir 临时文件夹问题 上传文件提示 Warning: File upload error - unable to create a temporary file in Unkn ...

  8. File upload error - unable to create a temporary file

    php上传图片的时候会报错: File upload error - unable to create a temporary file 文件上传错误 - 无法创建一个临时文件 你只需要打开你的php ...

  9. PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0

    代码在本地运行一切都OK,放到服务器上,网站访问正常,上传就出现该错误. 提示:PHP Warning: File upload error - unable to create a temporar ...

随机推荐

  1. ClickOnce清单签名取消后依然读取证书的问题

    在 http://www.cnblogs.com/heroius/p/8270004.html 和 http://www.cnblogs.com/heroius/p/8278796.html中,通过编 ...

  2. Redis单例、主从模式、sentinel以及集群的配置方式及优缺点对比

    https://my.oschina.net/zhangxufeng/blog/905611

  3. WebPack的安装

    一.前提因为webpack是一个基于node的项目,所以首先需要确保你的电脑里面已经安装了node.js,以及npm.在这里我使用的版本是:node:v5.8.0 ,npm:3.7.3,若是版本问题, ...

  4. 关于VR开发中的穿墙问题随想

    在VR开发中,用户将以第一人称的视角进入虚拟世界,即用户同时身处两个坐标系:1. 现实世界坐标系(如房间的坐标系),用户的身体处于这个坐标系 2. VR世界坐标系,用户的感官处于这个坐标系,即用户觉得 ...

  5. 分享:docker swarm集群搭建

    [Y_H]实践原创 三台虚拟机:1台centOS , 2台ubuntu.   网上有用docker-machine创建虚拟机做的例子.   这里直接用VMware创建这三台虚拟机,然后用xshell连 ...

  6. Python报错TypeError: '<' not supported between instances of 'str' and 'int'

    n = input() if n>=100:print(int(n)/10) else:print(int(n)*10) 报错内容: Traceback (most recent call la ...

  7. RPC原理解析

    1.RPC原理解析 1.1 什么是RPC RPC(Remote Procedure Call Protocol) --远程过程调用协议,它是一种通过网络从远程计算机程序上请求服务,而不需要了解底层网络 ...

  8. Leetcode 35——Search Insert Position

    Given a sorted array and a target value, return the index if the target is found. If not, return the ...

  9. 听翁恺老师mooc笔记(2)-第一个程序--&运算符

    使用devC++写hello world 第一步:文件-新建-源代码.然后输入"输出hello world"程序: 注意:写程序时关闭中文输入法,否则语句输入的分号可能会被识别为错 ...

  10. Beta 第三天

    今天遇到的困难: 组员对github极度的不适应 github的版本控制和协同化编程确实操作起来需要一定的熟练度,我们缺乏这种熟练度 Android Studio版本不一致项目难以打开的问题仍然无法解 ...