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
看是否能连上。

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号