[20170512]No ADR base is set.txt

简介: [20170512]No ADR base is set.txt --//生产系统一台机器,使用adrci包如下提示No ADR base is set.虽然我可以 $ rlwrap adrci ADRCI: Release 11.

[20170512]No ADR base is set.txt

--//生产系统一台机器,使用adrci包如下提示No ADR base is set.虽然我可以
$ rlwrap adrci
ADRCI: Release 11.2.0.4.0 - Production on Fri May 12 10:50:50 2017
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
No ADR base is set

--//虽然我设置base能正常使用,
adrci> set base /u01/app/oracle
adrci> show homes
ADR Homes:
diag/clients/user_oracle/host_3910336104_80
diag/tnslsnr/xxxxx/listener
diag/rdbms/xxxxx/xxxxx

$ strace -f -o /tmp/adrci.txt adrci
ADRCI: Release 11.2.0.4.0 - Production on Fri May 12 10:54:47 2017
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
No ADR base is set
adrci> quit

$ grep open /tmp/adrci.txt
....

11620 open("init.adi", O_RDONLY)        = -1 ENOENT (No such file or directory)
11620 open("/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/mesg/diaus.msb", O_RDONLY) = 4
11620 open("/proc/self/fd/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 5
11620 open("/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/mesg/diaus.msb", O_RDONLY) = 6
11620 open("/home/oracle/diag", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory)
11620 open("/u01/app/oracle/product/11.2.0/dbhome_1/log/diag/adrci_dir.mif", O_RDONLY) = 7
11620 open("/u01/app/oracle/product/11.2.0/dbhome_1/log/diag", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 8
11620 open("/etc/localtime", O_RDONLY)  = 9
11620 open("/u01/app/oracle/product/11.2.0/dbhome_1/log/diag/rdbms", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 9
11620 open("/u01/app/oracle/product/11.2.0/dbhome_1/oracore/mesg/lrmus.msb", O_RDONLY) = 3

--//开始以为init.adi不存在的问题,但是我查询我正常工作的机器这个文件也不存在.

$ hexdump -C -v /u01/app/oracle/product/11.2.0/dbhome_1/log/diag/adrci_dir.mif
00000000  2f 75 30 31 2f 61 70 70  2f 6f 72 61 63 6c 65 2f  |/u01/app/oracle/|
00000010  70 72 6f 64 75 63 74 2f  31 31 2e 32 2e 30 2f 64  |product/11.2.0/d|
00000020  62 68 6f 6d 65 5f 31 2f  6c 6f 67 00              |bhome_1/log.|
0000002c

--//而我看了我的能正常工作的机器,保存的内容如下:

$ hexdump -C -v $(locate adrci_dir.mif)
00000000  2f 75 30 31 2f 61 70 70  2f 6f 72 61 63 6c 65 00  |/u01/app/oracle.|
00000010

--//我看了几台能正常访问的机器都是保存"/u01/app/oracle",注意后面有asci(0).猜测问题在这里.
$ cd /u01/app/oracle/product/11.2.0/dbhome_1/log/diag
$ cp adrci_dir.mif adrci_dir.mif_bak
--//然后从别的机器拷贝过来,在测试ok.

$ rlwrap adrci
ADRCI: Release 11.2.0.4.0 - Production on Fri May 12 11:13:46 2017
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
ADR base = "/u01/app/oracle"

--//什么会产生这个错误,真是不得而之.

目录
相关文章
|
7月前
Tp5 SplFileObject::__construct(/tmp/phpvuOdFd): failed to open stream: No such file or director解决方法
Tp5 SplFileObject::__construct(/tmp/phpvuOdFd): failed to open stream: No such file or director解决方法
|
7月前
InvalidJobConfException: Output directory not set
InvalidJobConfException: Output directory not set
27 0
|
10月前
|
Windows
UE INI File Operation [ Read / Write ] Plug-in description
UE INI File Operation [ Read / Write ] Plug-in description
37 0
ROOT_DIR=os.path.abspath(os.path.join(p, '..', 'data/raw/'))代码含义
这行代码的作用是设置一个名为 ROOT_DIR 的变量,其值为指向项目根目录下的"data/raw/"目录的绝对路径。下面是对每个部分的详细解释: os.path.abspath():这个函数返回参数路径的绝对路径,也就是完整路径,包括盘符或根目录和所有子目录。 os.path.join(p, '..', 'data/raw/'):这个函数使用操作系统特定的路径分隔符将参数连接起来,并返回一个新的路径。这里,它连接了当前工作目录(也就是代码所在的目录)的父目录("..") 和"data/raw/",生成了一个相对路径。 p:这是一个之前定义过的变量,代表了当前工作目录的路径。 ROOT_DI
perhaps your file is in a different file format and youneed to use a different restore operator?
perhaps your file is in a different file format and youneed to use a different restore operator?
100 0
? error: cannot open C:\Users???\AppData\Local\Temp\main.obj.5136.0.jom for write
? error: cannot open C:\Users???\AppData\Local\Temp\main.obj.5136.0.jom for write
261 0
Can‘t read file : End of file found 文件:txn_current、current svn无法正常读取文件
Can‘t read file : End of file found 文件:txn_current、current svn无法正常读取文件
Can‘t read file : End of file found 文件:txn_current、current svn无法正常读取文件
|
Oracle 关系型数据库 测试技术
[20171227]关于参数db_file_name_convert 6
[20171227]关于参数db_file_name_convert 6.txt --//前面我测试如果在备库修改db_file_name_convert,导致日志无法应用,而我当时的测试是没有问题的.
1209 0
|
Oracle 关系型数据库 数据库
[20171226]关于参数db_file_name_convert 4
[20171226]关于参数db_file_name_convert 4.txt --//昨天给dg添加磁盘修改db_file_name_convert参数,导致dg无法应用,无法定位一些数据文件.
1054 0