>  기사  >  데이터 베이스  >  Oracle 配置 catalog

Oracle 配置 catalog

WBOY
WBOY원래의
2016-06-07 17:26:58956검색

Oracle 配置 catalog,catalog 数据库上创建表空间:这里面表空间名一定不要叫rman,如果叫rman,接下来操作会报错,因为rman是关

1: catalog 数据库上创建表空间:
 export Oracle_SID=ORCL
 
create tablespace rmants datafile '/home/oracle/rman/rmants.ora' size 20M;
 
注意:这里面表空间名一定不要叫rman,如果叫rman,接下来操作会报错,,因为rman是关键字;
 
2. catalog 数据库上创建用户:
 
SQL>Create user rman identified by rman default tablespace rmants
 
      2temporary  tablespace temp quota unlimited on rmants;
 
SQL>grant recovery_catalog_owner to rman;
 
本次举例子2个数据库在同一台服务器上。
 
接下来进入target数据库

1、 [oracle@aoracle admin]$ vi tnsnames.ora

catalog =
              (DESCRIPTION =
                      (ADDRESS_LIST =
                      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.190.140)(PORT = 1521))
                )
                  (CONNECT_DATA =
                        (SID = ORCL)
                    )
                )
 
2、[oracle@aoracle ~]$ tnsping catalog
 
看是否能连上。

linux

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.