前提條件是:
1. oracle database 11g r2 database 已經安裝。
我們可以使用下面兩個步驟建立ilm_admin使用者。
sqlplus / as sysdba
create user ilm_admin identified by ilm_admin default tablespace ilm;
sql> @grant_privs ilm_admin
session altered.
session altered.
old 1: grant manage tablespace to &ilm_user
new 1: grant manage tablespace to ilm_admin
grant succeeded.
old 1: grant alter tablespace to &ilm_user
new 1: grant alter tablespace to ilm_admin
grant succeeded.
old 1: grant alter any table to &ilm_user
new 1: grant alter any table to ilm_admin
grant succeeded.
old 1: grant drop any table to &ilm_user
new 1: grant drop any table to ilm_admin
grant succeeded.
pl/sql procedure successfully completed.
old 1: grant advisor to &ilm_user
new 1: grant advisor to ilm_admin
grant succeeded.
old 1: grant alter any table to &ilm_user
new 1: grant alter any table to ilm_admin
grant succeeded.
old 1: grant drop any table to &ilm_user
new 1: grant drop any table to ilm_admin
grant succeeded.
old 1: grant manage tablespace to &ilm_user
new 1: grant manage tablespace to ilm_admin
grant succeeded.
old 1: grant alter tablespace to &ilm_user
new 1: grant alter tablespace to ilm_admin
grant succeeded.
old 1: grant execute on ilm_toolkit.ilm_toolkit to &ilm_user
new 1: grant execute on ilm_toolkit.ilm_toolkit to ilm_admin
grant succeeded.
creating the ilm$$user package for immutability features...
old 2: l_username varchar2(30) := '&ilm_user';
new 2: l_username varchar2(30) := 'ilm_admin';
declare
*error at line 1:
ora-01435: user does not exist
ora-06512: at line 51
--- 注意這個地方。使用者名稱要大寫。
sql> @grant_privs ilm_admin
session altered.
session altered.
old 1: grant manage tablespace to &ilm_user
new 1: grant manage tablespace to ilm_admin
grant succeeded.
old 1: grant alter tablespace to &ilm_user
new 1: grant alter tablespace to ilm_admin
grant succeeded.
old 1: grant alter any table to &ilm_user
new 1: grant alter any table to ilm_admin
grant succeeded.
old 1: grant drop any table to &ilm_user
new 1: grant drop any table to ilm_admin
grant succeeded.
pl/sql procedure successfully completed.
old 1: grant advisor to &ilm_user
new 1: grant advisor to ilm_admin
grant succeeded.
old 1: grant alter any table to &ilm_user
new 1: grant alter any table to ilm_admin
grant succeeded.
old 1: grant drop any table to &ilm_user
new 1: grant drop any table to ilm_admin
grant succeeded.
old 1: grant manage tablespace to &ilm_user
new 1: grant manage tablespace to ilm_admin
grant succeeded.
old 1: grant alter tablespace to &ilm_user
new 1: grant alter tablespace to ilm_admin
grant succeeded.
old 1: grant execute on ilm_toolkit.ilm_toolkit to &ilm_user
new 1: grant execute on ilm_toolkit.ilm_toolkit to ilm_admin
grant succeeded.
creating the ilm$$user package for immutability features...
old 2: l_username varchar2(30) := '&ilm_user';
new 2: l_username varchar2(30) := 'ilm_admin';
pl/sql procedure successfully completed.
測試:使用ilm_admin使用者登入系統。
輸入ilm_admin和密碼:
正確的話應該返回如下介面:
在ILMA中建立乙個新的管理使用者!
前提條件是 1.oracle database 11g r2 database 已經安裝。我們可以使用下面兩個步驟建立ilm admin使用者。sqlplus as sysdba create user ilm admin identified by ilm admin default tables...
建立乙個新的Content Provider
通過擴充套件 contentprovider 類來建立乙個新的 content provider 重寫oncreate 方法來開啟或初始化你要通過這個 provider 提供的底層資料來源。新的 content provider 的框架 如下所示 import android.content.imp...
用Xcode6建立乙個新的工程
我的目的是用xcode6建立乙個工程,對iphone6及6plus用的還是5s的尺寸,即320x568.這樣就可以不用做那麼多適配。當然,這只是暫時的。如果要ui完美,一定要重新適配這兩種機型的。步驟 2.開啟info.plist,刪除裡面的launch screen inte ce file ba...