標籤:1.將用於複製的PDB至於唯讀狀態:startup open read onlySQL> select con_id,name,open_mode from v$pdbs; CON_ID NAME OPEN_MODE---------- ------------------------------ ---------- 2 PDB$SEED READ ONLY
標籤:oracle 查詢最近執行過的 SQL語句select sql_text,last_load_time from v$sql order by last_load_time desc; SELECT sql_text, last_load_time FROM v$sql WHERE last_load_time IS NOT NULL and sql_text like ‘select%‘ ORDER BY
標籤:sqlplus連結資料庫: 1、sqlplus 使用者名稱/密碼@IP地址/資料庫名稱 2、sqlplus 使用者名稱/密碼@資料庫名稱 註:第二種方法要在tnsnames.oRA檔案中設定資料庫名稱 連結取消連結:connect/disconnect 建立使用者:create user user_name identified by user_password 分配許可權:grant dba to user_name 刪除使用者:drop user user_name
標籤:Connect to the remote CDB and prepare the remote PDB for cloning.SQL> select con_id,dbid,name,open_mode from v$pdbs; CON_ID DBID NAME OPEN_MODE---------- ---------- ------------------------------ ----------
標籤:--絕對值select abs(-100) from dual;--取餘select mod(8,3) from dual;--取整,大於該數的最小整數(上限值)select ceil(12.0) from dual;select ceil(12.5) from dual;--取整,小於該數的最大整數(下限值)select floor(12.5) from dual;--四捨五入,選擇需要保留的小數位select round(12.456,0) from
標籤:ADR路徑由參數diagnostic_dest參數決定:SQL> show parameter diagnostic_dest NAME TYPE VALUE------------------------------------ ----------- ------------------------------diagnostic_dest
標籤: --create the tablespaceCREATE SMALLFILE TABLESPACE "TABLE_CONTAINER" --建立資料表空間 DATAFILE ‘E:\ORACLE\ORADATA\ORCL\table_01.DBF‘ --建立資料檔案,資料檔案的檔案位置SIZE 100M --資料檔案的初始大小AUTOEXTEND ON NEXT 100M --資料檔案增量大小 MAXSIZE UNLIMITED --資料檔案大小無限制LOGGING