温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

oracle 11g如何构建physical DG

发布时间:2021-11-11 11:41:57 来源:亿速云 阅读:119 作者:小新 栏目:关系型数据库

小编给大家分享一下oracle 11g如何构建physical DG,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!


把主库打开,创建一个最新的pfile,如果已经有pfile此命令会覆盖之前的pfile成为最新的pfile

  1. [root@slow ~]# su - oracle

  2. [oracle@slow ~]$ !sql

  3. sqlplus / as sysdba


  4. SQL*Plus: Release 11.2.0.4.0 Production on Tue Jan 9 20:15:45 2018


  5. Copyright (c) 1982, 2013, Oracle. All rights reserved.


  6. Connected to an idle instance.


  7. SQL> startup

  8. ORACLE instance started.


  9. Total System Global Area  521936896 bytes

  10. Fixed Size            2254824 bytes

  11. Variable Size          377489432 bytes

  12. Database Buffers      138412032 bytes

  13. Redo Buffers            3780608 bytes

  14. Database mounted.

  15. Database opened.

  16. SQL> create pfile from spfile;


  17. File created.


  18. SQL>

切到oracle用户$ORACLE_HOME/dbs路径下,查看刚才创建好的pifle文件,再复制一份成备库的pfile文件

  1. [root@slow ~]# su - oracle

  2. [oracle@slow ~]$ cd $ORACLE_HOME/dbs

  3. [oracle@slow dbs]$ ls

  4. hc_slow.dat  init.ora  initslow.ora  lkSLOW  orapwslow  spfileslow.ora

  5. [oracle@slow dbs]$ ll

  6. total 24

  7. -rw-rw---- 1 oracle oinstall 1544 Jan  9 20:15 hc_slow.dat

  8. -rw-r--r-- 1 oracle oinstall 2851 May 15  2009 init.ora

  9. -rw-r--r-- 1 oracle oinstall  731 Jan  9 20:16 initslow.ora

  10. -rw-r----- 1 oracle oinstall   24 Dec 24 23:10 lkSLOW

  11. -rw-r----- 1 oracle oinstall 1536 Dec 24 22:31 orapwslow

  12. -rw-r----- 1 oracle oinstall 2560 Jan  9 20:15 spfileslow.ora

  13. [oracle@slow dbs]$ cp initslow.ora initgotime.ora

  14. [oracle@slow dbs]$ ls

  15. hc_slow.dat  initgotime.ora  init.ora  initslow.ora  lkSLOW  orapwslow  spfileslow.ora

  16. [oracle@slow dbs]$

以上是“oracle 11g如何构建physical DG”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI