数据库
首页 > 数据库> > 【ORACLE21C】Oracle21c产品目录的变化

【ORACLE21C】Oracle21c产品目录的变化

作者:互联网

在Oracle21c之后,一些目录发生了变化,如监听配置文件、dbs目录。 示例如下:

Oracle21c安装之后,目录如下

  1. #$ORACLE_BASE目录下
  2. admin audit cfgtoollogs dbs diag homes oradata product
  3. [oracle@oracle21 oracle]$ pwd
  4. /u01/app/oracle
  5. # 19c $ORACLE_BASE目录下。ASM
  6. [oracle@rac19c oracle]$ ls
  7. admin audit cfgtoollogs checkpoints diag product
  8. #检查Oracle21c目录
  9. [oracle@oracle21 oracle]$ orabasehome
  10. /u01/app/oracle/homes/OraDB21Home1
  11. [oracle@oracle21 oracle]$ orabaseconfig
  12. /u01/app/oracle
  13. [oracle@oracle21 oracle]$
  14. #检查19c目录
  15. [oracle@rac19c ~]$ orabasehome
  16. /u02/app/oracle/product/19.0.0/db_1
  17. [oracle@rac19c ~]$ orabaseconfig
  18. /u02/app/oracle/product/19.0.0/db_1
  19. [oracle@rac19c ~]$ orabase
  20. /u02/app/oracle
  21. [oracle@rac19c ~]$
  22. #检查21c监听状态及文件位置,如下所示,已经在/homes/OraDB21Home1/network/admin/listener.ora目录下,配置tnsnames也需要在该目录下
  23. [oracle@oracle21 oracle]$ lsnrctl stat
  24. LSNRCTL for Linux: Version 21.0.0.0.0 - Production on 20-AUG-2021 13:52:09
  25. Copyright (c) 1991, 2021, Oracle. All rights reserved.
  26. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle21)(PORT=1521)))
  27. STATUS of the LISTENER
  28. ------------------------
  29. Alias LISTENER
  30. Version TNSLSNR for Linux: Version 21.0.0.0.0 - Production
  31. Start Date 20-AUG-2021 13:33:24
  32. Uptime 0 days 0 hr. 18 min. 45 sec
  33. Trace Level off
  34. Security ON: Local OS Authentication
  35. SNMP OFF
  36. Listener Parameter File /u01/app/oracle/homes/OraDB21Home1/network/admin/listener.ora
  37. Listener Log File /u01/app/oracle/diag/tnslsnr/oracle21/listener/alert/log.xml
  38. Listening Endpoints Summary...
  39. (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle21)(PORT=1521)))
  40. (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
  41. Services Summary...
  42. Service "c8209f27c6b16005e053362ee80ae60e" has 1 instance(s).
  43. Instance "mydb21", status READY, has 1 handler(s) for this service...
  44. Service "c9e6ddb27463ad21e0531550a8c0a46d" has 1 instance(s).
  45. Instance "mydb21", status READY, has 1 handler(s) for this service...
  46. Service "mydb21" has 1 instance(s).
  47. Instance "mydb21", status READY, has 1 handler(s) for this service...
  48. Service "mydb21XDB" has 1 instance(s).
  49. Instance "mydb21", status READY, has 1 handler(s) for this service...
  50. Service "mypdb21" has 1 instance(s).
  51. Instance "mydb21", status READY, has 1 handler(s) for this service...
  52. The command completed successfully
  53. [oracle@oracle21 oracle]$

检查数据库中一些信息

  1. --检查spfile文件,已不在原来的ORACLE_HOME目录下
  2. SQL> show parameter spfile
  3. NAME TYPE VALUE
  4. ------------------------------------ ----------- ------------------------------
  5. spfile string /u01/app/oracle/dbs/spfilemydb21.ora
  6. SQL>

虽然Oracle21c中想变化为只读目录,但目前查看目录权限,仍然可写。 权限如下:

  1. SQL> Disconnected from Oracle Database 21c Enterprise Edition Release 21.0.0.0.0 - Production
  2. Version 21.3.0.0.0
  3. [oracle@oracle21 oracle]$ pwd
  4. /u01/app/oracle
  5. [oracle@oracle21 oracle]$ ls -lrt
  6. total 32
  7. drwxr-xr-x. 3 oracle oinstall 4096 Aug 19 16:18 product
  8. drwxrwxr-x. 23 oracle oinstall 4096 Aug 19 16:35 diag
  9. drwxr-x---. 3 oracle oinstall 4096 Aug 19 16:35 homes
  10. drwxr-x---. 5 oracle oinstall 4096 Aug 19 16:42 cfgtoollogs
  11. drwxr-x---. 3 oracle oinstall 4096 Aug 19 16:53 admin
  12. drwxr-x---. 3 oracle oinstall 4096 Aug 19 16:53 oradata
  13. drwxr-x---. 3 oracle oinstall 4096 Aug 19 16:55 audit
  14. drwxr-x---. 2 oracle oinstall 4096 Aug 20 13:53 dbs
  15. [oracle@oracle21 oracle]$

目前Oracle21c已经将一些目录分离出来,权限管理可以越来越细化,更好保障数据库的安全,后续继续测试。

标签:oinstall,oracle21,4096,Aug,Oracle21c,app,产品目录,ORACLE21C,oracle
来源: https://www.cnblogs.com/chenguopa/p/15226532.html