TimesTen In-Memory Database Cache 配置整理
TimesTen In-Memory Database Cache 配置其實在在TimesTen Quick Start有詳細說明,在這裡用自已的語言整理總結一下,方便查閱。這裡使用TimesTen 11.2.2在widnows平臺下操作(http://blog.csdn.net/cml2030)
一,oracle配置
(以:sqlplus [email protected] as sysdba)
1,在oracle建立一個專用表空間用於管理快取到timesten 的物件
create tablespace ttusers datafile 'ttusers.dbf' SIZE 40M;
2,建立timesten使用者:執行initCacheGlobalSchema.sql指令碼來建立使用者
@D:\TimesTen\tt1122_32\oraclescripts\initCacheGlobalSchema.sql 'ttusers'
3,建立一個cache管理使用者,這個使用者負責追蹤oracle database和cache database之間資料的改變
create user cacheadm identified by cacheadm
default tablespace ttusers
quota unlimited on ttusers
temporary tablespace temp;
4,授予系統管理許可權給cache管理使用者,即3,建立的cacheadm使用者 執行grantCacheAdminPrivileges.sql即可
@D:\TimesTen\tt1122_32\oraclescripts\grantCacheAdminPrivileges.sql
5,授予資料訪問許可權給cache管理使用者,即對錶的select, insert, update, delete之類的許可權
如:conn scott/tiger
grant select on scott.dept to cacheadm;
grant select,insert,update,delete on scott.emp to cacheadm;
grant select,insert,update,delete on scott.bonus to cacheadm;
二, TimesTen配置
1,建立一個DSN例項: OracleNetServiceName為oracle資料庫例項名。DatabaseCharacterSet與oracle資料庫一致。User ID:為與oracle一致的Cache Administration 使用者(建立時先不寫,等一下寫)
ttisql;
connect my_ttdb;
2,建立一個Cache Manager 使用者,授予admin或者cache_manager許可權,此使用者負責設定和管理cache grid 和cache group 操作,授與oracle配置3中使用者名稱一致.
create user cacheadm identified by cacheadm;
grant admin to cacheadm;
3,建立Cache Table 使用者,與oracle實際使用者一致.
create user scott identified by scott;
grant create session to scott;
4,將oracle cache管理使用者與timesten關聯
call ttcacheuidpwdset ('cacheadm','cacheadm');
call ttcacheuidget;
5,建立一個cache grid.
call ttcacheuidpwdset ('cacheadm','cacheadm');
call ttcacheuidget;檢視建立資訊
6,將cache database 和cache grid關聯
call ttgridnameset ('samplegrid');
- 三,新增快取組到記憶體資料庫
1,啟動cache agent快取記憶體代理,cache agent程序負責cache database之間的夠溝通,同時也負責oracle database 到cache database之間的資料流。
connect XX;
call ttcachestart;
2, 根據需要建立CREATE CACHE GROUP,如:
create readonly cache group ro autorefresh
interval 5 seconds mode incremental
from scott.dept(
deptno number(2) not null primary key,
dname varchar2(14),
loc varchar2(13));
3,啟動複製代理,如果資料庫中有asynchronous writethrough cache groups就必須要啟動這個agent,這個程序負責TT資料庫之間,TT和oracle之間的資料複製。
call ttrepstart;
4,將快取記憶體資料庫快取記憶體網格(只有噹噹前資料庫包含global cache groups或者需要進行global cache grid操作時才需要這一步驟,注:windows不支援)
call ttgridattach(1,'my_ttdb','liyanwei',9991);
call ttgridnodestatus;//
5,使用LOAD CACHE GROUP語句來預載入資料。如下
load cache group RO commit every 1 rows;
完成!
相關推薦
TimesTen In-Memory Database Cache 配置整理
TimesTen In-Memory Database Cache 配置其實在在TimesTen Quick Start有詳細說明,在這裡用自已的語言整理總結一下,方便查閱。這裡使用TimesTen 11.2.2在widnows平臺下操作(http://blog.csdn.
第九篇:Spark SQL 源碼分析之 In-Memory Columnar Storage源碼分析之 cache table
gravity base field eof 授權 葉子節點 command ref gist /** Spark SQL源碼分析系列文章*/ Spark SQL 可以將數據緩存到內存中,我們可以見到的通過調用cache table tableName即可將一張表緩
oracle 12c 列式存儲 ( In Memory 理論)
向量 啟動 pop 結果 olt 機制 接下來 記錄 節點 隨著Oracle 12c推出了in memory組件,使得Oracle數據庫具有了雙模式數據存放方式,從而能夠實現對混合類型應用的支持:傳統的以行形式保存的數據滿足OLTP應用;列形式保存的數據滿足以查詢為主的OL
[LeetCode] Design In-Memory File System 設計內存文件系統
format directory ring orm turn original all lee example Design an in-memory file system to simulate the following functions: ls: Give
最近進坑了DCS-3950雙層交換機鏈路聚合配置整理
交換機 雙層 交換機A上1-2端口對應交換機B上3-4端口PC1鏈接交換機A上23端口PC2鏈接交換機B上24端口命令如下:DCS-3950-28C>enDCS-3950-28C#conDCS-3950-28C(config)#hostname switchAswitchA(config)#%J
In-Memory:Hash Index
足夠 過大 lan 性能 平衡樹 res reg row 命令 SQL Server 2016支持哈希查找,用戶可以在內存優化表(Memory-Optimized Table)上創建Hash Index,使用Hash 查找算法,實現數據的極速查找。在使用上,Hash Ind
第十篇:Spark SQL 源碼分析之 In-Memory Columnar Storage源碼分析之 query
pro .net asn 解析 partition store exec attr_ array /** Spark SQL源碼分析系列文章*/ 前面講到了Spark SQL In-Memory Columnar Storage的存儲結構是基於列存儲的。 那
Script to Monitor Current User Activity in the Database
border his right anti for order loaded stat format Execution Environment: SQL, SQL*Plus, iSQL*Plus Access Privileges: Requ
WARNING: firstResult/maxResults specified with collection fetch; applying in memory!
lis else 並且 object use nat 警告 || 出現 QueryTranslatorImpl @Override public List list(SessionImplementor session, QueryParameters query
Configure Tomcat 7 to run Python CGI scripts in windows(Win7系統配置tomcat服務器,使用python進行cgi編程)
it is ram -i cto director 進行 comment XML env Pre-installation requirements1. Java2. Pythonsteps1. Download latest version of Tomcat (Tomc
ArcSDE for Oracle 12.1.0.2 In-Memory元件測試
如今,記憶體資料庫被大家廣泛認可,懂得技術的人都明白,資料從磁碟讀寫肯定比在記憶體中讀寫要慢很多,而且目前也有很多記憶體資料已經有非常成熟的實施經驗,當然,當今資料庫的老大Oracle更加不會無視這個市場,很早就渲染他們Oracle12c的記憶體元件多麼的牛叉,快到不行更是他們經常使用的詞彙。
588. Design In-Memory File System
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px "Helvetica Neue"; color: #454545 } p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px "Helvetica Neu
error LOADING Redis is loading the dataset in memory問題解決
分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!  
spring jdbc --注:c3p0資料庫連線池或druid連線池使用配置整理
是Maven配置檔案:pom.xml的程式碼內容: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sch
MyBatis Cache配置
MyBatis Cache配置 MyBatis提供了一級快取和二級快取 配置 全域性配置 配置 說明 預設值 可選值 cacheEnabled 全域性快取的開關 true true false
計算機組成原理--main memory 到 cache 對映機制
基本介紹 為了平衡高速的CPU與較慢的主存之間的差異,我們引入到了cache作為中間媒介,cache的主要作用說來可以理解成將主存中很有可能被CPU使用的小部分資料調入cache中,由於cache是很快的,則可以對系統的系統有較大提升。相關詳細情況可以參見計算機組成原理–c
Tomcat配置整理
1.訪問IP預設開啟專案,顯示的路徑是隻有IP: 將專案釋出到Tomcat的webapp下的Root目錄,刪除Root下的預設檔案,將釋出的專案拷貝進來。此時部署在Root目錄下,且訪問路徑是:IP;
spring boot配置整理
1.解決上傳檔案大小的限制: 將下列程式碼放置在啟動類就行: /** * 檔案上傳配置 * @return */ @Bean public Mult
In-Memory Computing Technology
With Oracle Autonomous Database, DBAs can avoid the mundane, embrace strategy, and schedule those m
Spring Boot Cache配置 序列化成JSON字串
當我們使用@Cacheable註解的時候會將返回的物件快取起來,我們會發現預設快取的值是二進位制的,不方便檢視,為此我們自定義序列化配置,改成JSON格式的 配置如下: pom.xml <?xml version="1.0" encoding="UTF-8