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]$

未完...找时间做完

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31405474/viewspace-2149951/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/31405474/viewspace-2149951/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值