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
- 【PDB】 為Oracle pdb新增服務(pdb add service)Oracle
- 【Oracle19c】Oracle19c rman使用簡單測試Oracle
- Oracle 建立PDB-Plugging In an Unplugged PDBOracle
- 【Oracle19c】Oracle19c RAC 升級 ru:19.3-19.6Oracle
- kettl連線oracle12c 可插拔資料庫pdbOracle資料庫
- 【PDB】pdb閃回,Oracle還原點Oracle
- 【PDB】Oracle跨PDB檢視查詢Oracle
- 【PDB】Oracle PDB資源管理參考Oracle
- 【PDB】Oracle pdb維護常用sql命令OracleSQL
- 【PDB】Oracle 建立pdb說明(create pluggable database)OracleDatabase
- Oracle 12.2 新特性: Online PDB relocate (PDB hot move)Oracle
- Windows 安裝Oracle19CWindowsOracle
- ORACLE19C RAC+DGOracle
- oracle19c安裝_cdbOracle
- Oracle19c orapwd修改密碼之後連線資料庫報ORA-12154Oracle密碼資料庫
- kubernetes之PDB
- noncdb轉pdb
- 1.3.2.2 Creation of a PDB by Plugging In(通過插入的方式建立PDB)
- 【DATAGUARD】Oracle19c Data Guard BrokerOracle
- oracle19C技術架構Oracle架構
- Z001-001 從 PDB$SEED 種子容器建立 PDB
- Oracle 12.2新特性: PDB級閃回資料庫(Flashback PDB)Oracle資料庫
- RochyLinux 8.6安裝Oracle19c ClientLinuxOracleclient
- 2.6.2 Overview of Flashback PDB in a CDBView
- 2.2.7 Overview of PDB Lockdown ProfilesView
- 2.1.3. PDB型別型別
- pdb受限解決思路
- Oracle:PDB 引數管理Oracle
- Oracle 18C新特性之PDB snapshot Carousel--PDB快照輪播Oracle
- 【DATAGUARD】Oracle19c dataguard新特性及部署Oracle
- 【PDB】Oracle資料庫如何檢查和設定pdb最大儲存大小Oracle資料庫
- 1.3.2. 建立一個PDB
- 1.3.2.4 建立一個代理PDB
- 1.3.2.2.1. 插拔方式建立PDB
- Oracle 建立PDB-from ScratchOracle
- Oracle 建立PDB-本地克隆Oracle