如何查看内核trace

如何查看内核trace,第1张

oracle的trace文件路径是通过系统参数 user_dump_dest 参数来指定的。

可以通过以下方式查看:

1、 show parameter user_dump_dest

2、select * from v$parameter where name='user_dump_dest'

alter system set user_dump_dest='path' 可以修改参数

一般来说默认的trace路径是 $ORACLE_BASE/diag/rdbms/SID/SID/trace/

楼上说的不对,出的错与单引号无关,是编码的问题。你的代码本身没错,把你现在的文件删掉,重新建一个就行。下面和你的一样,只是换了路径,测试可行

1234567891011121314src_path = 'E:\\test_0.txt'des_path = 'E:\\test_1.txt' file_wait_to_read = open(src_path, 'r')file_wait_to_write = open(des_path, 'w') <a href="https://www.baidu.com/s?wd=sat&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBuhF9PAnsuh7Bm1m4nHfY0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6K1TL0qnfK1TL0z5HD0IgF_5y9YIZ0lQzqlpA-bmyt8mh7GuZR8mvqVQL7dugPYpyq8Q1mzn1fsrj61PWn4rHD1njmsP0" target="_blank" class="baidu-highlight">sat</a>= raw_input('Please input the selected <a href="https://www.baidu.com/s?wd=sat&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBuhF9PAnsuh7Bm1m4nHfY0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6K1TL0qnfK1TL0z5HD0IgF_5y9YIZ0lQzqlpA-bmyt8mh7GuZR8mvqVQL7dugPYpyq8Q1mzn1fsrj61PWn4rHD1njmsP0" target="_blank" class="baidu-highlight">sat</a>ellite: ')for line in file_wait_to_read.readlines():if line.startswith(<a href="https://www.baidu.com/s?wd=sat&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBuhF9PAnsuh7Bm1m4nHfY0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6K1TL0qnfK1TL0z5HD0IgF_5y9YIZ0lQzqlpA-bmyt8mh7GuZR8mvqVQL7dugPYpyq8Q1mzn1fsrj61PWn4rHD1njmsP0" target="_blank" class="baidu-highlight">sat</a>):file_wait_to_write.write(line) file_wait_to_write.flush()file_wait_to_read.close()file_wait_to_write.close()


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/11293864.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-15
下一篇 2023-05-15

发表评论

登录后才能评论

评论列表(0条)

保存