Oracle In-Memory Database Cache Testcases
We are implementing Oracle In-Memory Database Cache on an existing oracle database. We want to do some extensive testing on Oracle In-Memory Database. Can anybody please share some pointers in writing testcases ?
Best place to start is here:
http://www.oracle.com/technetwork/products/timesten/overview/index.html
In particular take a look at the Quickstart which is provided as part of the install of the product and can be accessed online here http://www.oracle.com/technetwork/products/timesten/learnmore/index.html via http://download.oracle.com/otn_hosted_doc/timesten/1122/quickstart/html/main/home.html
Take a look at the sample programs the tptbm program is a good place to start.
Tim
Similar Messages
-
Oracle TimesTen In-Memory Database VS Oracle In-Memory Database Cache
Hi,
What is difference in Oracle TimesTen In-Memory Database VS Oracle In-Memory Database Cache.
For 32 bit on windows OS i am not able to insert data's more than 500k rows with 150 columns (with combinations of CHAR,BINARY_DOUBLE,BINARY_FLOAT, TT_BIGINT,REAL,DECIMAL,NUMERIC etc).
[TimesTen][TimesTen 11.2.2.2.0 ODBC Driver][TimesTen]TT0802: Database permanent space exhausted -- file "blk.c", lineno 3450, procedure "sbBlkAlloc"
I have set Perm size as 700 mb,Temp size as 100mb
What is the max size we can given for PermSize,TempSize,LogBufMB for 32 bit on windows OS.
What is the max size we can given for PermSize,TempSize,LogBufMB for 64 bit on windows OS.
What is the Max configuration of TT for 32 bit what i can set for Perm size Temp size.
Thanks!They are the same product but they are licensed differently and the license limits what functionality you can use.
TimesTen In-Memory Database is a product in its own right allows you to use TimesTen as a standalone database and also allows replication.
IMDB Cache is an Oracle DB Enterprise Edition option (i.e. it can only be licensed as an option to an Oracle DB EE license). This includes all the functionality of TImesTen In-Memory Database but adds in cache functionality (cache groups, cache grid etc.).
32-bit O/S are in general a poor platform to try and create an in-memory database of any significant size (32-bit O/S are very limited in memory addressing capability) and 32-bit Windows is the worst example. The hard coded limit for total datastore size on 32-bit O/S is 2 GB but in reality you probably can;'t achieve that. On Windows the largest you can get is 1.1 GB and most often less than that. If you need something more than about 0.5 Gb on Windows then you really need to use 64-bit Windows and 64-bit TimesTen. There are no hard coded upper limit to database size on 64-bit TimesTen; the limit is the amount of free physical memory (not virtual memory) in the machine. I have easily created a 12 GB database on a Win64 machine with 16 GB RAM. On 64-bit Unix machines we have live database of over 1 TB...
Chris -
Oracle In-Memory Database Cache
Hi,
I was reading about Oracle in Memory database cache and i am wondering is this option available on 10g, from what i read it is only on 11g and it is extra option and have to pay for it.
Any more info, will be great.
thanksFrom here
The In-Memory Database Cache option of Oracle Database Enterprise Edition is based on Oracle TimesTen In-Memory Database.TimesTen is also available for 10g. -
"In-Memory Database Cache" option for Oracle 10g Enterprise Edition
Hi,
In one of our applications, we are using TimesTen 5.1.24 and Oracle 9i
databases (platform - Solaris 9i).
TimesTen holds application information which needs to be accessed quickly
and Oracle 9i is a master application database.
Now we are looking at an option of migrating from Oracle 9i to Oracle 10g
database. While exploring about Oracle 10g features, came to know about
"In-Memory Database Cache" option for Oracle Enterprise Edition. This made
me to think about using Oracle 10g Enterprise Edition with "In-Memory
Database Cache" option for our application.
Following are the advantages that I could visualize by adopting the
above-mentioned approach:
1. Data reconciliation between Oracle and TimesTen is not required (i.e.
data can be maintained only in Oracle tables and for caching "In-Memory
Database Cache" can be used)
2. Data maintenance is easy and gives one view access to data
I have following queries regarding the above-mentioned solution:
1. What is the difference between "TimesTen In-Memory Database" and
"In-Memory Database Cache" in terms of features and licensing model?
2. Is "In-Memory Database Cache" option integrated with Oracle 10g
installable or a separate installable (i.e. TimesTen installable with only
cache feature)?
3. Is "In-Memory Database Cache" option same as that of "TimesTen Cache
Connect to Oracle" option in TimesTen In-Memory Database?
4. After integrating "In-Memory Database Cache" option with Oracle 10g, data
access will happen only through Oracle sqlplus or OCI calls. Am I right here
in making this statement?
5. Is it possible to cache the result set of a join query in "In-Memory
Database Cache"?
In "Options and Packs" chapter in Oracle documentation
(http://download.oracle.com/docs/cd/B19306_01/license.102/b14199/options.htm
#CIHJJBGA), I encountered the following statement:
"For the purposes of licensing Oracle In-Memory Database Cache, only the
processors on which the TimesTen In-Memory Database component of the
In-Memory Database Cache software is installed and/or running are counted
for the purpose of determining the number of licenses required."
We have servers with the following configuration. Is there a way to get the
count of processors on which the Cache software could be installed and/or
running? Please assist.
Production box with 12 core 2 duo processors (24 cores)
Pre-production box with 8 core 2 duo processors (16 cores)
Development and test box with 2 single chip processors
Development and test box with 4 single chip processors
Development and test box with 6 single chip processors
Thanks & Regards,
VijayHi Vijay,
regarding your questions:
1. What is the difference between "TimesTen In-Memory Database" and
"In-Memory Database Cache" in terms of features and licensing model?
==> Product has just been renamed and integrated better with the Oracle database - Times-Ten == In-Memory-Cache-Database
2. Is "In-Memory Database Cache" option integrated with Oracle 10g
installable or a separate installable (i.e. TimesTen installable with only
cache feature)?
==> Seperate Installation
3. Is "In-Memory Database Cache" option same as that of "TimesTen Cache
Connect to Oracle" option in TimesTen In-Memory Database?
==> Please have a look here: http://www.oracle.com/technology/products/timesten/quickstart/cc_qs_index.html
This explains the differences.
4. After integrating "In-Memory Database Cache" option with Oracle 10g, data
access will happen only through Oracle sqlplus or OCI calls. Am I right here
in making this statement?
==> Please see above mentioned papers
5. Is it possible to cache the result set of a join query in "In-Memory
Database Cache"?
==> Again ... ;-)
Kind regards
Mike -
SQL Result Cache vs In-Memory Database Cache
Hi,
can anyone help me to understand the relations and differences between the 11 g new features of SQL Result Cache vs In-Memory Database Cache ?
ThanksI highly recommend you read the 11g New Features Guide. Here is a sample from it:
h4. 1.11.2.9 Query Result Cache
A separate shared memory pool is now used for storing and retrieving
cached results. Query retrieval from the query result cache is faster
than rerunning the query. Frequently executed queries will see
performance improvements when using the query result cache.
The new query result cache enables explicit caching of results in
database memory. Subsequent queries using the cached results will
experience significant performance improvements.
See Also:
[Oracle Database Performance Tuning Guide|http://download.oracle.com/docs/cd/B28359_01/server.111/b28274/memory.htm#PFGRF10121] for details
[Results Cache Concepts|http://download.oracle.com/docs/cd/B28359_01/server.111/b28274/memory.htm#PFGRF10121|Results Cache Concepts]
HTH! -
Using In-Memory Database Cache option need help
Hi,
I need some help:
I am using Oracle 10g Server Release 2
For Clientele activilty I am using Oracle Client where the Application resides.
For Better performance I want to use the In-Memory Database Cache option Times-Ten Database.
Is it possible to do so where there is Oracle Database Server Relaease 2 and in the Client there is Times-Ten In-Memory Database Cache?
Any help will be needful for meIn-Memory Cache is a server-side cache. I can not see where there would be any value putting it on the client side though given the license cost per CPU core I am sure the entire Oracle sales force would gladly disagree with me.
-
Oracle Portal & 9iAS Database Cache
Has anyone used Oracle 9iAS database cache to speed up document retrieval from Portal? Can Portal be used to cache Portal documents remotely??
Any help greatly appreciatedFrom here
The In-Memory Database Cache option of Oracle Database Enterprise Edition is based on Oracle TimesTen In-Memory Database.TimesTen is also available for 10g. -
Oracle ADF with HSQL In-Memory Database
Hi
I have been using J2EE applications and have several Junit test cases using Hibernate and HSQL in-memory database.
I am looking to migrate some of the modules in the project to ADF.
Can the unit test cases be implemented with ADF, running without Oracle Database?
In simple words will ADF work with HSQL in-memory database?
Thanks,
RamVinod
In the link http://vtkrishn.wordpress.com/2010/03/29/configure-hibernate-for-jdeveloper/
Hibernate is configured with Oracle database..Not with HSQL
So I am not very sure if ADF works with HSQL -
I have installed cache as part of installation of IAS. I have also configured cache orgin database. When i am trying to cache the table of origin database, it is giving the following error:
'Caching table LEARN.DEMON on cache ora_9i-cache ...
ERROR: Unable to cache table LEARN.DEMON on cache ora_9i-cache. WTE-03614 Error caching table LEARN.DEMON: Error importing dependencies to cache.
Processing failed with one error.'
any solutionshi
where did u install ur database server is it in the same machine?
if it is in the different machine u will find the oracle home of oracle/ora81 (origin database) in that machine
Hope this helps u
null -
Oracle TimesTen In-Memory Database Risk Matrix
Hi,
From the following web-site I can see two vulnerabilities listed against TimesTen --- CVE-2010-0873 and CVE-2010-0910
http://www.oracle.com/technetwork/topics/security/cpujul2010-155308.html
================================================================
Oracle TimesTen In-Memory Database Risk Matrix
CVE# Component Protocol Package and/or Privilege Required Remote Exploit without Auth.? CVSS VERSION 2.0 RISK (see Risk Matrix Definitions) Last Affected Patch set (per Supported Release) Notes
Base Score Access Vector Access Complexity Authentication Confidentiality Integrity Availability
CVE-2010-0873 Data Server TCP None Yes 10.0 Network Low None Complete Complete Complete 7.0.6.0 See Note 1
CVE-2010-0910 Data Server TCP None Yes 5.0 Network Low None None None Partial+ 7.0.6.0, 11.2.1.4.1 See Note 1
===========================================================================
Please let me know if I need to take any action on my current TimesTen deployment.
Im using TimesTen Release 11.2.1.8.4 and 7.0.5.16.0 in our customer sites.
Request you to respond with your valuable comments.
Regards
PratheejHi Pratheej,
These vulnerabilities were fixed in 11.2.1.6.1 and 7.0.6.2.0. As you are on 11.2.1.8.4 you are okay for 11.2.1 but the 7.0.5.16.0 release does contain the vulnerability. If you are concerned then you should upgrade those to 7.0.6.2.0 or later (check for the latest applicable 7.0 release in My Oracle Support).
Chris -
Hi
We are using Oracle 9iAS 9.0.3.
I am interested to confirm if the Database Cache technology supplied with previous versions of Oracle 9iAS app server has been phased out. Does Oracle 9iAS 9.0.3 support it?
Waiting for a quick reply.
Thanks All
nitinkishore, I don't see any problem installing iAS on two different machines, if that's what you mean. Whatever you install on the 'second' machine will not affect the first. Since they have the different oraInventory location.
-
After installing Data Base cache Succesfully.
I invoked my appilcation and runned some reports and forms. But I could not see any Hits/misses in the Cache manager statistics.
But if I am executing it in Back end at SQL Prompt, those are visible in Hit/Misses statistics.
1) How can I make my application to use Database Cache?
2) Also I want to Know if my application is using Web Cache or not. Is there any way to Check this out.
Pls. help me. I am running out of time
Gopi Kumar
nullThanks for your reply. Infact I saw your question before I posted my question. Actually that answer will not suffice for me.
I invoked my application and ran some reports. Since report contains SQL statements, The Hit/Misses statistics has to show whether that particular SQL is a Hit or Miss. But, its not showing anything, But if I run the SQL at Backend it's showing in the Statistics.
Now I dont know how to make my application to use database cache.
Any more clues.....
Gopi Kumar
null -
Application connection to TimesTen In-Memory Database
Hi All,
We're in the planing of creating TimesTen In-Memory Database for our production databases.Now we're in testing phase,we made one TimesTen In-Memory Database for one test database.
Now we don't want to put all database in memory, we've some selected tables for some users,we only want these tables will by in memory, so we create cache group & add theese tables in that.
Now some of my database is in memory & some database is not in memory,so I want to know that how the application users will connect to database ??
Is they connect to TimesTen In-Memory Database or our main database ???
If they connect to TimesTen In-Memory Database how they will access the procedures of functions etc from main database ???
Or If they connect to main database how these TimesTen In-Memory Database tables will access by users ???
Is TimesTen In-Memory Database will help only when we put whole database in memory ???
Thinks & Regards,
Atul Mandale.Hi Atul,
If you want to cache all your database then just create cache groups to encapsulate all your tables. That is the only way. However, I am far from sure this would be a good idea...
TimesTen is not a transparent, 'just plug it in' performance accelerator (such a thing does not exist and probably never will). It is intended to solve specific problems i.e. when some or all parts of an application need 'real time' access to some database data and the performance requirements (usually response time but sometimes throughput) are such that they either cannot be met at all, or cannot be met cost effectively, using Oracle DB or RAC alone. If one has that kind of situation then TimesTen may be able to help. It is unlikely to help a general application scenario just by plugging it in. Note that to successfully implement TimesTen it is almost always necessary to make both application and architectural changes. Why is this?
1. You are moving from a single DB to a multi-DB solution. Each item of data can be mastered (i.e. be updateable) in only one DB - Oracle or TimesTen. All parts of the system must understand this and enforce this or dat inconsistency may result.
2. All the data held in TimesTen must fit into physical memory. Data storage requirements often increase when moving a table from Oracle to TT. If you have a table that takes up 5 GB in Oracle it may well need 8 GB or more of memory in TimesTen. Unless your Oracle database is quite small you will need a machine with a very large amount of memory to cache the whole DB in TimesTen.
3. Queries and transactoons cannot span data in TT and Oracle. Any given query or transaction must execute entirely in TimesTen or Oracle.
4. Depending on which tables are cached and which are not, some application componenst may need to be aware of the location (TT or Oracle) of specific tables/data and go to the right place to get it. The TimesTen PassThrough feature can certainly help a lot with this but it does not necessarily address every possible issue.
5. Today, TimesTen only supports ODBC and JDBC APIs. If you have an application that uses OCI it must be recoded to use ODBC. The next major release of TimesTen does support OCI.
6. TimesTen does not support triggers or PL/SQL. The next major release supports PL/SQL and we have our own proprietary event notification API called XLA.
7. Although the SQL supported by TimesTen is a large subset of Oracle SQL there are still incompatibilities and some datatypes (e.g. CLOBS/BLOBS is on example) that TimesTen does not support.
While it may be possible to cache all your database it may not be a very practical, or beneficial, way to go. Can you share a bit of detal about the problem you are trying to solve with TimesTen so that maybe we can advise you of the best approach?
Chris -
Queue access method for In-memory databases
Hi,
I am trying to use the Queue access method for an in-memory database
with no backing file. Here is the how I've created the environment and
the database.
int env_flags_create = DB_CREATE | DB_INIT_LOG | DB_INIT_LOCK |
DB_INIT_MPOOL |DB_INIT_TXN |
DB_SYSTEM_MEM | DB_RECOVER | DB_THREAD ;
ret = env->set_shm_key(env, 17);
ret = env->open(env, R_"in-mem-env", env_flags, 0644);
int db_flags = DB_CREATE | DB_THREAD | DB_AUTO_COMMIT;
DB_MPOOLFILE *mpf = subs_db->get_mpf(subs_db);
mpf->set_flags(mpf, DB_MPOOL_NOFILE, 1);
ret = queue_db->set_re_len(queue_db, 512);
ret = queue_db->open(queue_db, NULL, NULL, "queue", DB_QUEUE,
db_flags, 0644);
My application has one reader threads and one writer thread. The
writer write to the queue with the "DB_APPEND" flag and the reader
consumes the queue using the "DB_CONSUME_WAIT" flag.
After inserting a few thousand messages the database fails to insert
any new records and starts returning the following error.
"unable to allocate space from the buffer cache"
From the db_stat -e output (attached below) I can see that none of
the buffer cache pages are ever being freed up.
149907 Requested pages found in the cache (99%)
3 Requested pages not found in the cache
2004 Pages created in the cache
0 Pages read into the cache
0 Pages written from the cache to the backing file
0 Clean pages forced from the cache
0 Dirty pages forced from the cache
0 Dirty pages written by trickle-sync thread
2004 Current total page count
0 Current clean page count
2004 Current dirty page count
4099 Number of hash buckets used for page location
153851 Total number of times hash chains searched for a page
BDB reference manual (http://www.oracle.com/technology/documentation/
berkeley-db/db/api_c/frame.html) says that the pages associated with a
queue can only be reclaimed by setting a queue extent by using the
"set_q_extentsize" method. When I try to use this method on my in-
memory database I get the following error.
" Extent size may not be specified for in-memory queue database"
Does this mean that I can never use the queue access method for in-
memory database? Because no matter how big of a shared memory pool I
allocate to the in-memory database it will eventually get used up by
the queue (if I'm inserting and consuming records) and there is no way
to free up the pages associated with the deleted records.
thx
ninaAs far as I know you can choose any method as long as print setting are set to "send to spool"
Regards
Juan -
Error in configuring database cache
Dear friends,
I installed Oracle 9ias on the original oracle 9i database on the same machine. When I configured database
database cache. The followings error message appeared when I use wtacce -create -typical:
ORA-01034: Oracle not available
ORA-27101: share memory realm doesn't exist
SVR4 error: no such file or directory.
How can I fix them?
Thank you in advanceDatabase Cache is being phased out in 9iAS release 2. Please post all Database Cache questions on the general database discussion forum.
Maybe you are looking for
-
Compability problem with Java and Python RSA algorithm implementation
I have client server application. Server is writtein in python, client in java. Client receives messages from server encrypted with RSA (http://stuvel.eu/rsa), and I'm unable to decrypt it. It seems that this is RSA algorithm compatibility problem. I
-
Can I get QuickLook to work as it did on 10.6?
Perhaps some 101 stuff here, but I am trying to regain some characteristics of QuickLook from 10.6. 1) Is QuickLook part of Preview (I think so)? 2) I want two things back: in grid view, names shown for each image; and all images shown at max height/
-
Hi, I've a problem while saving the waveform to a spreadsheet. The problem that I'm facing is that I'm not able to save/change the time-axis of the waveform graph into the excel spreadsheet. The attachments below are what I've programmed on. 1st file
-
When trying to instal a download,I'm told 'zero kb available', what do I do?
I try to update Firefox , but when I try to instal,the message 'zero K B available' what do I do? Also experiencing other problems with Firefox, like sudden blackout when watching TV , cursor freezing or no response when clicking on something. Is it
-
I am planning to appear for 1Z0-144 and I am not getting any material to study for this exam. Can you please provide me some help regarding this exam. Please provide me with your mail ID or please send me the study material to [email address removed