timesten配置只讀同步
create tablespace ttusers datafile '/opt/oracle/oradata/data2db/ttusers_001.dbf' size 100m;
cd /opt/TimesTen/tt1122/oraclescripts/
cp initCacheGlobalSchema.sql /tmp
cp grantCacheAdminPrivileges.sql /tmp
cd /tmp
chmod 777 initCacheGlobalSchema.sql grantCacheAdminPrivileges.sql
su - oracle
cd /tmp
sqlplus / as sysdba
@initCacheGlobalSchema.sql
SQL> @initCacheGlobalSchema.sql
Please enter the tablespace where TIMESTEN user is to be created
ttusers
The value chosen for tablespace is ttusers
******* Creation of TIMESTEN schema and TT_CACHE_ADMIN_ROLE starts *******
1. Creating TIMESTEN schema
2. Creating TIMESTEN.TT_GRIDID table
3. Creating TIMESTEN.TT_GRIDINFO table
4. Creating TT_CACHE_ADMIN_ROLE role
5. Granting privileges to TT_CACHE_ADMIN_ROLE
** Creation of TIMESTEN schema and TT_CACHE_ADMIN_ROLE done successfully **
PL/SQL procedure successfully completed.
create user cacheadm identified by cacheadm
default tablespace ttusers
quota unlimited on ttusers
temporary tablespace temp;
@grantCacheAdminPrivileges.sql
------------
SQL> create user cacheadm identified by cacheadm
2 default tablespace ttusers
3 quota unlimited on ttusers
4 temporary tablespace temp;
User created.
SQL> @grantCacheAdminPrivileges.sql
Please enter the administrator user id
cacheadm
The value chosen for administrator user id is cacheadm
***************** Initialization for cache admin begins ******************
0. Granting the CREATE SESSION privilege to CACHEADM
1. Granting the TT_CACHE_ADMIN_ROLE to CACHEADM
2. Granting the DBMS_LOCK package privilege to CACHEADM
3. Granting the RESOURCE privilege to CACHEADM
4. Granting the CREATE PROCEDURE privilege to CACHEADM
5. Granting the CREATE ANY TRIGGER privilege to CACHEADM
6. Granting the DBMS_LOB package privilege to CACHEADM
7. Granting the SELECT on SYS.ALL_OBJECTS privilege to CACHEADM
8. Granting the SELECT on SYS.ALL_SYNONYMS privilege to CACHEADM
9. Checking if the cache administrator user has permissions on the default
tablespace
Permission exists
11. Granting the CREATE TYPE privilege to CACHEADM
12. Granting the SELECT on SYS.GV$LOCK privilege to CACHEADM (optional)
13. Granting the SELECT on SYS.GV$SESSION privilege to CACHEADM (optional)
14. Granting the SELECT on SYS.DBA_DATA_FILES privilege to CACHEADM (optional)
15. Granting the SELECT on SYS.USER_USERS privilege to CACHEADM (optional)
16. Granting the SELECT on SYS.USER_FREE_SPACE privilege to CACHEADM (optional)
17. Granting the SELECT on SYS.USER_TS_QUOTAS privilege to CACHEADM (optional)
18. Granting the SELECT on SYS.USER_SYS_PRIVS privilege to CACHEADM (optional)
********* Initialization for cache admin user done successfully *********
建立表空間ttusers
指令碼建立timesten使用者
手動建立cacheadm使用者
手動授權給cacheadm使用者需要同步到timesten中的表的相關許可權
SQL> create table ta(id int);
SQL> select * from ta;
no rows selected
SQL>
SQL>
SQL> insert into ta select 1 from dual;
1 row created.
SQL> commit;
Commit complete.
SQL> grant select on ta to cacheadm;
Grant succeeded.
SQL> grant update,delete,insert on ta to cacheadm;
Grant succeeded.
grant connect,resource,create any trigger to cacheadm;
grant dba to cacheadm;
tt配置
ttisql an_tt1122
create user cacheadm identified by cacheadm;
grant admin to cacheadm;
create user an identified by anbaisheng;
grant create session to an;
connect "dsn=an_tt1122;uid=cacheadm;oraclepwd=cacheadm";
call ttcacheuidpwdset ('cacheadm','cacheadm');
call ttcacheuidget;
call ttCacheStart;
call ttGridCreate('myGrid');
call ttGridNameSet('myGrid');
call ttCacheStart;
CREATE READONLY CACHE GROUP readcache
AUTOREFRESH
INTERVAL 1 SECONDS
FROM ta (id int not null primary key);
load cache group readcache commit every 1 rows;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13177610/viewspace-1306009/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MySQL 配置InnoDB為只讀操作MySql
- 2.2.3 關於配置Oracle-Home只讀模式Oracle模式
- 【記憶體資料庫】TimesTen記憶體資料庫
- 解決samba只讀,但無修改許可權的配置Samba
- Oracle 18c - 配置只讀 OracleHome / DBCA / Patching / Upgrade (文件 ID 2469646.1)Oracle
- 只讀表空間
- TypeScript 介面 只讀屬性TypeScript
- oracle的只讀事務Oracle
- easyui datebox 設定只讀UI
- 只讀儲存器ROM
- 直播網站程式原始碼,【openpyxl】只讀模式、只寫模式網站原始碼模式
- PostgreSQL建立只讀使用者SQL
- Oracle建立只讀使用者Oracle
- kubernetes高階之建立只讀檔案系統以及只讀asp.net core容器ASP.NET
- word只讀文件怎麼改成可編輯文件 word檔案怎樣取消只讀模式模式
- 文件被鎖定以只讀模式開啟怎麼取消 檔案只讀模式怎麼解除模式
- 資料庫同步利器 otter 雙A同步配置資料庫
- word檔案怎樣取消只讀模式 把只讀檔案轉化為可編輯檔案模式
- 同步你的 vscode 配置VSCode
- MySQL主從同步配置MySql主從同步
- MySQL設定資料庫為只讀MySql資料庫
- VSCode官方的配置同步方案VSCode
- VSCode 使用Settings Sync同步配置VSCode
- [20180626]延遲塊清除與只讀表.txt
- 管理(006):啟用只讀Oracle Home目錄Oracle
- 使用Spring Data建立只讀儲存庫 | BaeldungSpring
- 43. 連續空間的只讀性
- 重讀 ES6 - async+await 同步/非同步方案AI非同步
- PG 資料庫只讀使用者的建立。資料庫
- 【轉載】Vim儲存只讀模式下的修改模式
- C# 中的只讀結構體(readonly struct)C#結構體Struct
- Redis主從同步配置實踐Redis主從同步
- 利用 iCloud Drive 來同步 Xcode 配置CloudXCode
- Springboot非同步事件配置和使用Spring Boot非同步事件
- 使用laradock配置mysql主從同步MySql主從同步
- jquery星級評分外掛(支援各種回撥函式、自定義配置、只讀模式、最大星級等)jQuery函式模式
- 一篇文章讀懂阻塞,非阻塞,同步,非同步非同步
- python讀配置檔案配置資訊Python
- win10檔案出現只讀修改不了怎麼辦_win10檔案只讀取消不了的解決方法Win10