oracle19c連pdb
1、SQL plus連線cdb,然後
切換到pdb
SQL> show pdbs CON_ID CON_NAME OPEN MODE RESTRICTED ---------- ------------------------------ ---------- ---------- 2 PDB$SEED READ ONLY NO 3 PDB READ WRITE NO SQL> alter session set container = pdb; Session altered.
SQL> alter session set container = pdb; Session altered. SQL> show pdbs CON_ID CON_NAME OPEN MODE RESTRICTED ---------- ------------------------------ ---------- ---------- 3 PDB READ WRITE NO SQL>
2、修改tnsnames.ora,直接連pdb
[oracle@dbserver admin]$ cat tnsnames.ora # tnsnames.ora Network Configuration File: /u01/app/oracle/product/19c/db_1/network/admin/tnsnames.ora # Generated by Oracle configuration tools. PROD = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = dbserver)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = prod) ) ) PDB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = dbserver)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = pdb) ) ) LISTENER_PROD = (ADDRESS = (PROTOCOL = TCP)(HOST = dbserver)(PORT = 1521))
然後就可以直接透過sqlplus登入
[oracle@dbserver admin]$ sqlplus sys/oracle@pdb as sysdba SQL*Plus: Release 19.0.0.0.0 - Production on Tue Nov 30 16:14:31 2021 Version 19.3.0.0.0 Copyright (c) 1982, 2019, Oracle. All rights reserved. Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.3.0.0.0 SQL> show pdbs CON_ID CON_NAME OPEN MODE RESTRICTED ---------- ------------------------------ ---------- ---------- 3 PDB READ WRITE NO
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70004783/viewspace-2844933/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle19c dblink連結mysql8.0OracleMySql
- oracle 12c PDB隨CDB啟動和連結PDB的方式Oracle
- 【Oracle19c】Oracle19c rman使用簡單測試Oracle
- Oracle 12C 建立使用者連線pdbOracle
- Oracle12c多租戶如何連線到CDB或PDB、CDB與PDB容器切換Oracle
- 【PDB】 為Oracle pdb新增服務(pdb add service)Oracle
- 【Oracle19c】Oracle19c RAC 升級 ru:19.3-19.6Oracle
- 【PDB】Oracle跨PDB檢視查詢Oracle
- 【PDB】Oracle PDB資源管理參考Oracle
- 【PDB】pdb閃回,Oracle還原點Oracle
- 【PDB】Oracle pdb維護常用sql命令OracleSQL
- ORACLE19C RAC+DGOracle
- oracle19c安裝_cdbOracle
- kettl連線oracle12c 可插拔資料庫pdbOracle資料庫
- 【DATAGUARD】Oracle19c Data Guard BrokerOracle
- oracle19C技術架構Oracle架構
- Oracle 建立PDB-Plugging In an Unplugged PDBOracle
- 【PDB】Oracle 建立pdb說明(create pluggable database)OracleDatabase
- Oracle 12C -- 使用seed PDB建立新的pdbOracle
- Oracle19c orapwd修改密碼之後連線資料庫報ORA-12154Oracle密碼資料庫
- oracle 12c 多租戶 pdb 恢復(單個pdb資料檔案、非系統pdb表空間、整個pdb資料庫)Oracle資料庫
- 【DATAGUARD】Oracle19c dataguard新特性及部署Oracle
- RochyLinux 8.6安裝Oracle19c ClientLinuxOracleclient
- Oracle 12.2 新特性: Online PDB relocate (PDB hot move)Oracle
- Oracle 12C RMAN transport tablespace from PDB of RAC CDB to remote PDBOracleREM
- Oracle 12.2新特性: PDB級閃回資料庫(Flashback PDB)Oracle資料庫
- 2.1.3. PDB型別型別
- 2.6.2 Overview of Flashback PDB in a CDBView
- 2.2.7 Overview of PDB Lockdown ProfilesView
- pdb受限解決思路
- Oracle:PDB 引數管理Oracle
- PDB檔案的用途
- 【INDEX】Oracle19c 自動索引技術初探IndexOracle索引
- 多租戶:防止意外建立可插拔資料庫(PDB)- Lone-PDB資料庫
- Oracle 12c 多租戶 手工建立 pdb 與 手工刪除 pdbOracle
- Oracle 18C新特性之PDB snapshot Carousel--PDB快照輪播Oracle
- 【PDB】Oracle資料庫如何檢查和設定pdb最大儲存大小Oracle資料庫
- Oracle 12c 多租戶在 CDB 中 Plug A PDB,Unplugging A PDBOracle