辅助实例是创建副本数据库的重要一步,一般而言会有下列几个步骤,有些你已经听说了,有些,你还从未听过。。。。。。。:

一、创建辅助实例的密码文件(Create an Oracle Password File for the Auxiliary Instance)

  • Oracle 提供了一个创建密码文件的命令:ORAPWD。该命令有两种调用 方式 ,带参调用和不带参调用。

    不带参调用时,会返回该命令的调用方式 和参数形式 。

    • F:/oracle>orapwd

      Usage: orapwd file= password= entries= force=

        where

          file - name of password file (mand),

          password - password for SYS (mand),

          entries - maximum number of distinct DBA and     force - whether to overwrite existing file (opt),OPERs (opt),

        There are no spaces around the equal-to (=) character.

    File 表示文件名称和路径,password表示sys用户密码,entries指定拥有sys权限的用户最大数,force表示如果文件存在是否覆盖。File和password为必填参。

    该命令使用非常简单,不详述了,举示例如下:

    • F:/oracle> orapwd  file=F:/oracle/product/10.2.0/db_1/database/PWDjssdup.ora password=verysafe:) entries=30

二、 连接到实例(Establish Oracle Net Connectivity to the Auxiliary Instance)

  • 注意,如果是windows环境,需要首先通过ORADIM命令创建一个新的OracleServiceÿ