建立catalog並註冊資料庫
一、環境說明:
1、catalog資料庫
sid:catalog
username:rman
password:rman
2、備份資料庫
sid:orcl
二、操作步驟
1、在catalog資料庫上建立使用者
]> export ORACLE_SID=catalog
]> sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Mar 27 06:10:11 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
> create user rman identified by rman;
User created.
> alter user rman quota unlimited on users;
User altered.
> grant recovery_catalog_owner to rman;
Grant succeeded.
> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
2、編輯tnsnames.ora,增加catalog的tns
]> cd $ORACLE_HOME/network/admin
]> ls
samples shrept.lst sqlnet.ora tnsnames.ora
]> vi tnsnames.ora
catalog =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
)
(SID = catalog)
)
)
orcl =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
)
(SID = orcl)
)
)
]> tnsping catalog
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 27-MAR-2009 06:12:00
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/oracle/app/10g/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))) (CONNECT_DATA = (SID = catalog)))
OK (10 msec)
3、建立catalog,並註冊資料庫
]> export ORACLE_SID=orcl
]> rman target / catalog
Recovery Manager: Release 10.2.0.1.0 - Production on Fri Mar 27 06:12:35 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: ORCL (DBID=1210313093)
connected to recovery catalog database
RMAN> create catalog tablespace users;
recovery catalog created
RMAN> register database;
database registered in recovery catalog
starting full resync of recovery catalog
full resync complete
RMAN> exit
Recovery Manager complete.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22049049/viewspace-1023818/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 資料庫-Duckdb-catalog和schema資料庫
- 10.註冊和登入功能實現(3)—— 註冊資料寫入資料庫資料庫
- mogoose 建立資料庫並增刪改查Go資料庫
- javaweb專案(1)連線資料庫,登入註冊JavaWeb資料庫
- 建立資料庫資料庫
- mysql到sqlserver資料庫實時同步工具syncnavigator註冊使用MySqlServer資料庫
- mysql建立使用者並且對資料庫授權MySql資料庫
- 從cmd中匯入.SQL檔案並建立資料庫SQL資料庫
- 又一巨頭為資料庫業務註冊獨立公司資料庫
- KIDataGrip連線Mysql並建立資料庫的方法實現ztpMySql資料庫
- 建立資料庫表資料庫
- Mysql建立資料庫MySql資料庫
- Laravel 自定義登入註冊頁面並使用 Ajax 進行資料傳輸Laravel
- linux使用gitlab-runner,並註冊gitLabLinuxGitlab
- RazorSQL for Mac(資料庫查詢工具) v10.4.6註冊啟用版SQLMac資料庫
- swing 實現使用者登入註冊介面(不使用資料庫)資料庫
- 資料庫無法註冊至監聽服務解決辦法資料庫
- 【資料庫資料恢復】mdb_catalog.wt檔案丟失的MongoDB資料恢復案例資料庫資料恢復MongoDB
- 使用免費的Oracle雲服務-建立並使用ADW資料庫Oracle資料庫
- XamarinSQLite教程建立資料庫aSQLite資料庫
- 建立資料mysql庫流程MySql
- 小黑框建立資料庫資料庫
- 資料庫 建立 3表資料庫
- mongodb 如何建立資料庫MongoDB資料庫
- 資料庫之建立索引資料庫索引
- 將Oracle 12c資料庫註冊到Oracle 19c Grid InfrastructureOracle資料庫ASTStruct
- Python + Tkinter簡單實現註冊登入(連線本地MySQL資料庫)PythonMySql資料庫
- MySQL建立資料表並建立主外來鍵關係MySql
- 如何使用 abp 建立 module 並應用單獨的資料庫遷移資料庫
- 支援 Laravel/Lumen 下控制器註釋生成 API 文件,生成資料庫字典, 註冊路由呈現LaravelAPI資料庫路由
- GITHUB賬號註冊、提交、下載、建立分支Github
- oracle資料庫建立資料庫例項-九五小龐Oracle資料庫
- SQL Server實戰二:建立、修改、複製、刪除資料庫表並加以資料處理SQLServer資料庫
- 2 建立和配置資料庫資料庫
- 2.8.1.4 建立資料庫服務資料庫
- 2.2.1 資料庫建立計劃資料庫
- 2.1 關於建立資料庫資料庫
- SQL建立資料庫和表SQL資料庫
- mongodb資料庫如何建立索引?MongoDB資料庫索引