什么是 orradiag_<user>文件夹? [英] what is oradiag_<user> folder?

查看:40
本文介绍了什么是 orradiag_<user>文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装 Zend 框架后,我在我的 Linux 文件夹层次结构中看到了这些.

I see these in the my Linux folder hierarchy after installing the Zend Framework.

/oradiag_root/
/user/myuser/oradiag_myuser/
/user/myuser/oradiag_root/

这个名字让我想起了甲骨文.但是我没有找到任何有关此的官方文档.

This name reminds me of Oracle. But I did not find any official documentation about this.

我没有安装任何 Oracle 服务器.这是怎么回事?

I didn't install any Oracle server. What's going on here?

推荐答案

我从来没有在我的系统上安装过 Oracle,也不知道为什么这些目录一直被创建,但我终于设法阻止它们再次出现.这是它的完成方式.

I never installed Oracle on my system and don't know why these directories kept being created, but I finally managed to stop them from reappearing. Here's how it's done.

首先,前往:

cd ~/odiag_<用户名>/diag/clients/user_<用户名>/host_*/trace/

然后

head sqlnet.log

您应该会看到一条错误消息,抱怨目录不存在用于 r/w.对我来说,它是 /usr/lib/log.我创建了它抱怨的目录并删除了 odiag_<username> 目录,只是让它稍后重新出现;但是,sqlnet.log 文件现在抱怨不同的目录.

You should see an error message complaining about a directory not existing for r/w. For me, it was /usr/lib/log. I created the directory it was complaining about and deleted the oradiag_<username> directory, only to have it reappear later; however, the sqlnet.log file was now complaining about a different directory.

我重复了几次创建目录的过程,直到目录最终停止出现.在您的情况下,目录可能不同,但这是为我解决的问题:

I repeated this process of creating directories a few times until the directory finally stopped appearing. In your case, the directories may be different, but here's what solved it for me:

sudo mkdir /usr/lib/log/diag/clients
sudo chmod 777 /usr/lib/log/diag/clients

显然,只有 clients 目录需要是 777.

Only the clients directory needs to be 777, apparently.

现在只需清除当前出现的 odiag_ 目录.他们不应该再次为您弹出.

Now just wipe out the oradiag_<username> directories wherever they currently appear. They shouldn't pop up for you again.

如果您好奇,以下是最终写入丢失"目录的内容:

In case you're curious, here's what finally ended up being written to that "missing" directory:

mike@mike-ubuntu:/usr/lib/log/diag/clients$ ll -a
total 8
drwxrwxrwx 2 root root 4096 2011-08-24 10:34 .
drwxr-xr-x 3 root root 4096 2011-08-24 10:34 ..

太棒了.

这篇关于什么是 orradiag_&lt;user&gt;文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆