vi /home/oracle/.bashrc export ORACLE_HOME=/opt/oracle/product/19c/dbhome_1 export PATH=$PATH:$ORACLE_HOME/bin export ORACLE_SID=ORCLCDB
sqlplus / as sysdba
# 创建自动启动pdb的触发器 CREATE TRIGGER open_all_pdbs AFTER STARTUP ON DATABASE BEGIN EXECUTE IMMEDIATE 'alter pluggable database all open' END open_all_pdbs; /
LISTENER_ORCLCDB = (ADDRESS = (PROTOCOL = TCP)(HOST = master)(PORT = 2345)) sqlplus / as sysdba show parameter local_listener; alter system set local_listener="(address=(protocol=tcp)(host=master)(port=2345))" exit;