1.安裝時選擇的自動安裝,忘了使用者名稱和密碼導致現在試了幾個Oracle預設使用者名密碼後(表格中附帶預設使用者名及密碼),都提示無效的使用者名稱、密碼, Username Password Description See Also CTXSYS CTXSYS The Oracle Text account Oracle Text Reference DBSNMP DBSNMP The account used by the Management Agent component of
一.基本的查詢語句,特殊符號||。制定列的別名AS,唯一標示distinct1.字元串連符“||”與“+”符oracle:select 列名||'111111111111111' from 表名sql:select 列名+'111111111111111' from 表名T2“AS”符號oracle:select 列名 as 新列名 from 表名 (空格,不能有as)新表名sql:select 列名 as 新列名 from 表名T as(as可有可無)
那麼,現在如果給出一個許可權編號,要去檢索出用後這個許可權的使用者集合,就會需要在逗號分隔的多個許可權編號中去匹配給出的這個許可權編號。如果使用like去做,一則效率不高,二則匹配不精確。因此用到了逗號分隔列轉行的方法。目前該方法只適合在oracle資料庫中使用。該方法只需要sql語句就可以實現列轉行。 下面給出該方法的樣本:select a,b,c from(with test as (select 'aaa' a,'bbb' b,'1,2,3' c from dual)select a,
為了把事情變成簡單化,我在多個Oracle資料上建立統一的檢查資料庫賬戶,並且賬戶只能訪問特定的幾個視圖(需要查詢的sql已產生視圖),具體做法如下: root>sqlplus / as sysdba 用DBA的許可權進入資料庫,需要建立一個賬戶 http://www.jb51.net/article/20367.htm SQL>create user dbmonitor identified by "ty_sd_s"; 給賬戶授權 SQL>grant
1 The syntax of the SQL statement is verified. SQL的語法檢查 2 The data dictionary is searched to verify table and column definitions. 從資料字典檢查表名和欄位名 3 The data dictionary is searched to verify security privileges on relevant objects. 從資料字典中檢查許可權 4 Parse
查看錶空間的名稱及大小複製代碼 代碼如下:SQL>select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_size from dba_tablespaces t, dba_data_files d where t.tablespace_name = d.tablespace_name group by t.tablespace_name; 查看錶空間物理檔案的名稱及大小: 複製代碼 代碼如下:SQL>select