標籤: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
標籤: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---------- ---------- ------------------------------ ----------
標籤:[[email protected] ~]$ lsnrctl status LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 06-OCT-2015 21:10:05 Copyright (c) 1991, 2009, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))
標籤:[[email protected] ~]$ vi .bash_profile # .bash_profile # Get the aliases and functionsif [ -f ~/.bashrc ]; then . ~/.bashrcfi # User specific environment and startup programs PATH=$PATH:$HOME/bin
標籤:以啟動DB12為例子 $ sqlplus ‘/as sysdba‘SQL*Plus: Release 12.1.0.2.0 Production on Sun Nov 1 15:48:15 2015Copyright (c) 1982, 2014, Oracle. All rights reserved.Connected to an idle instance.1.nomount階段SQL> startup nomount;
標籤:--絕對值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
標籤:索引B_Tree結構 請參照 響應圖例索引是一種允許直接存取資料表中某一資料行的樹形結構,為了提高查詢效率而引入,是獨立於表的對象,可以存放在與表不同的資料表空間中。索引記錄中存有索引關鍵字和指向表中資料的指標(地址)對索引進行的I/O操作比對錶進行操作要少得多索引一旦被建立就將被oracle系統自動維護,查詢語句中不用指定使用哪一個索引ROWID:偽列,唯一標識一條資料記錄,可以理解為行記錄的地址select rownum,rowid,username from
標籤:一、AWR報告 AWR 是通過對比兩次快照(snapshot)收集到的統計資訊,來產生報表資料,產生的報表包括多個部分,這點與Statspack產生的報告非常類似。不過AWR在產生報告時,可以選擇產生TXT或HTML兩種格式的報告,相對來說,HTML更利於閱讀,而TXT的適用性更廣(即使在不能使用瀏覽器的機器上也能看)。