SlideShare a Scribd company logo
+++++++++++++++++++++++++++++++++++++++
++ + Create a TimesTen in memory database +++
+++++++++++++++++++++++++++++++++++++++
Assumption: TimesTen database software has been installed
Oracle user has been used for TimesTen installed. So OS user Oracle is the administrator user for
creating TimesTen database.
1. Define a Data Source Name (DSN)
==============================
DSN defines the configuration of the database and must be defined before creating Database.

Modify the sys.odbc.ini [Add DSN anywhere in the ODBC DATA Sources section]
2. Specify New data Source definition
===================================
edit sys.odbc.ini to add source definition and save
Driver - location of the TimesTen direct linked ODBC driver
DataSource - location and name of the database files
LogDir - directory for the transaction logs
PermSize - Permanent partition of the database size in MB
TempSize -Temporary partition of the database size in MB
DatabaseCharacterSet - Character Set of the database

3. Verify that database daemon is running
================================
4. ttisql to connect database and create the database store
============================================
So mono_ttdb database has been created and loaded into memory.
Check the TimesTen in memory Database status
+++++++++++++++++++++++++++++++++++++
[oracle@cloud bin]$ ./ttstatus
TimesTen status report as of Tue Nov 19 05:09:33 2013
Daemon pid 4161 port 53396 instance tt1122
TimesTen server pid 4170 started on port 53397
-----------------------------------------------------------------------Data store /u01/app/ttdata/datastores/mono_ttdb
There are no connections to the data store
Replication policy : Manual
Cache Agent policy : Manual
PL/SQL enabled.
-----------------------------------------------------------------------Accessible by group dba
End of report
[oracle@cloud bin]$ ./ttisql mono_ttdb
Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
Type ? or "help" for help, type "exit" to quit ttIsql.
connect "DSN=mono_ttdb";
Connection successful:
DSN=MONO_TTDB;UID=oracle;DataStore=/u01/app/ttdata/datastores/mono_ttdb;DatabaseCh
aracterSet=AL32UTF8;ConnectionCharacterSet=US7ASCII;DRIVER=/home/oracle/TimesTen/t
t1122/lib/libtten.so;LogDir=/u01/app/ttdata/logs;PermSize=40;TempSize=32;TypeMode=0;
(Default setting AutoCommit=1)
Current size of the permanent and temporary data stores
+++++++++++++++++++++++++++++++++++++++++
Command> dssize
PERM_ALLOCATED_SIZE:
40960
PERM_IN_USE_SIZE:
9389
PERM_IN_USE_HIGH_WATER: 9389
TEMP_ALLOCATED_SIZE:
32768
TEMP_IN_USE_SIZE:
9442
TEMP_IN_USE_HIGH_WATER: 9505
Create a user and then object under that user
=================================
Now check the DataStore and LogDir
============================
[oracle@cloud datastores]$ ls -ltra
total 56224
drwxr-xr-x 2 oracle dba 4096 Nov 19 04:39 mono_ttdb
drwxr-xr-x 4 oracle dba 4096 Nov 19 04:40 ..
drwxr-xr-x 3 oracle dba 4096 Nov 19 05:02 .
-rw-rw---- 1 oracle dba 28733432 Nov 19 05:18 mono_ttdb.ds0
-rw-rw---- 1 oracle dba 28758536 Nov 19 05:20 mono_ttdb.ds1

Note: TimesTen maintain two complete images on the disk and known as checkpoints
Transaction logs for recovery
======================
[oracle@cloud logs]$ ls -ltra
total 212348
drwxr-xr-x 4 oracle dba 4096 Nov 19 04:40 ..
-rw-rw---- 1 oracle dba 67108864 Nov 19 05:02 mono_ttdb.res0
-rw-rw---- 1 oracle dba 67108864 Nov 19 05:02 mono_ttdb.res1
-rw-rw---- 1 oracle dba 67108864 Nov 19 05:02 mono_ttdb.res2
drwxr-xr-x 2 oracle dba 4096 Nov 19 05:02 .
-rw-rw---- 1 oracle dba 15880192 Nov 19 05:20 mono_ttdb.log0

More Related Content

What's hot (20)

PPTX
Database administration commands
Varsha Ajith
 
PPTX
Oracle: Binding versus caging
BertrandDrouvot
 
PDF
Robert Bernier - Recovering From A Damaged PostgreSQL Cluster @ Postgres Open
PostgresOpen
 
PDF
Better than you think: Handling JSON data in ClickHouse
Altinity Ltd
 
PDF
MYSQLCLONE Introduction
Zhaoyang Wang
 
PDF
Database decommission process
K Kumar Guduru
 
PDF
MariaDB and Clickhouse Percona Live 2019 talk
Alexander Rubin
 
PPTX
Montreal User Group - Cloning Cassandra
Adam Hutson
 
PDF
Oracle goldengate 11g schema replication from standby database
uzzal basak
 
PDF
Your first ClickHouse data warehouse
Altinity Ltd
 
PDF
Webinar: Strength in Numbers: Introduction to ClickHouse Cluster Performance
Altinity Ltd
 
PDF
Restore MySQL database from mysqlbackup
AllDatabaseSolutions
 
DOC
Rac nonrac clone
stevejones167
 
DOCX
Exadata - BULK DATA LOAD Testing on Database Machine
Monowar Mukul
 
PDF
Plmce 14 be a_hero_16x9_final
Marco Tusa
 
PDF
Development of Fault-Tolerant Failover Tools with MySQL Utilities - MySQL Con...
Paulo Jesus
 
PDF
Dangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEO
Altinity Ltd
 
PPTX
Automatic Storage Management (ASM) metrics are a goldmine: Let's use them!
BertrandDrouvot
 
PDF
Writing A Foreign Data Wrapper
psoo1978
 
PDF
MySQL Document Store
I Goo Lee
 
Database administration commands
Varsha Ajith
 
Oracle: Binding versus caging
BertrandDrouvot
 
Robert Bernier - Recovering From A Damaged PostgreSQL Cluster @ Postgres Open
PostgresOpen
 
Better than you think: Handling JSON data in ClickHouse
Altinity Ltd
 
MYSQLCLONE Introduction
Zhaoyang Wang
 
Database decommission process
K Kumar Guduru
 
MariaDB and Clickhouse Percona Live 2019 talk
Alexander Rubin
 
Montreal User Group - Cloning Cassandra
Adam Hutson
 
Oracle goldengate 11g schema replication from standby database
uzzal basak
 
Your first ClickHouse data warehouse
Altinity Ltd
 
Webinar: Strength in Numbers: Introduction to ClickHouse Cluster Performance
Altinity Ltd
 
Restore MySQL database from mysqlbackup
AllDatabaseSolutions
 
Rac nonrac clone
stevejones167
 
Exadata - BULK DATA LOAD Testing on Database Machine
Monowar Mukul
 
Plmce 14 be a_hero_16x9_final
Marco Tusa
 
Development of Fault-Tolerant Failover Tools with MySQL Utilities - MySQL Con...
Paulo Jesus
 
Dangerous on ClickHouse in 30 minutes, by Robert Hodges, Altinity CEO
Altinity Ltd
 
Automatic Storage Management (ASM) metrics are a goldmine: Let's use them!
BertrandDrouvot
 
Writing A Foreign Data Wrapper
psoo1978
 
MySQL Document Store
I Goo Lee
 

Viewers also liked (20)

DOCX
SOA Fusion Middleware installation
Monowar Mukul
 
DOCX
Exadata Cell metrics
Monowar Mukul
 
DOCX
Exadata - Smart Scan Testing
Monowar Mukul
 
DOCX
Exadata I/O Resource Manager (Exadata IORM)
Monowar Mukul
 
PDF
Oracle 12c RAC (Advanced installation - Flex ASM)
Monowar Mukul
 
PPTX
Edtc6341 63 esther_sauceda_practice_test5
esauceda12
 
DOCX
Oracle 12c far sync standby instance
Monowar Mukul
 
PDF
1247g3hg1238 2011
Kittikul Kengkla
 
DOCX
12c Flex ASM: Moving to Flex ASM
Monowar Mukul
 
DOCX
Advanced installation 12c rac
Monowar Mukul
 
DOCX
Moving 12c database from NON-ASM to ASM
Monowar Mukul
 
DOCX
12c: Testing audit features for Data Pump (Export & Import) and RMAN jobs
Monowar Mukul
 
PPT
Copyright Crash Course 1st revised ppt 6340.64 Sonia Aldape
soniaaldape
 
DOCX
12c database migration from ASM storage to NON-ASM storage
Monowar Mukul
 
DOCX
Upgrade database using cloud_control Provisioning
Monowar Mukul
 
DOC
Migration Database from SQL SERVER 2012 to Oracle12c with Pluggable Database
Monowar Mukul
 
PDF
GMO OILBOOSTER Proposal (Eng)
GMO OIL
 
DOCX
Oracle AWR baseline - Basic
Monowar Mukul
 
DOCX
Oracle EM12c Edit or Create Incident rules and Setup SMS alert
Monowar Mukul
 
DOCX
Testing Orachk for Database Health Monitoring
Monowar Mukul
 
SOA Fusion Middleware installation
Monowar Mukul
 
Exadata Cell metrics
Monowar Mukul
 
Exadata - Smart Scan Testing
Monowar Mukul
 
Exadata I/O Resource Manager (Exadata IORM)
Monowar Mukul
 
Oracle 12c RAC (Advanced installation - Flex ASM)
Monowar Mukul
 
Edtc6341 63 esther_sauceda_practice_test5
esauceda12
 
Oracle 12c far sync standby instance
Monowar Mukul
 
1247g3hg1238 2011
Kittikul Kengkla
 
12c Flex ASM: Moving to Flex ASM
Monowar Mukul
 
Advanced installation 12c rac
Monowar Mukul
 
Moving 12c database from NON-ASM to ASM
Monowar Mukul
 
12c: Testing audit features for Data Pump (Export & Import) and RMAN jobs
Monowar Mukul
 
Copyright Crash Course 1st revised ppt 6340.64 Sonia Aldape
soniaaldape
 
12c database migration from ASM storage to NON-ASM storage
Monowar Mukul
 
Upgrade database using cloud_control Provisioning
Monowar Mukul
 
Migration Database from SQL SERVER 2012 to Oracle12c with Pluggable Database
Monowar Mukul
 
GMO OILBOOSTER Proposal (Eng)
GMO OIL
 
Oracle AWR baseline - Basic
Monowar Mukul
 
Oracle EM12c Edit or Create Incident rules and Setup SMS alert
Monowar Mukul
 
Testing Orachk for Database Health Monitoring
Monowar Mukul
 
Ad

Similar to TimesTen in memory database Creation (20)

PDF
Discard inport exchange table & tablespace
Marco Tusa
 
PPTX
Oracle-12cData-Guard-Broker-Session-4.pptx
naveencl4
 
TXT
oracle dba
uday jampani
 
PPT
Collaborate 2011– Leveraging and Enriching the Capabilities of Oracle Databas...
djkucera
 
PDF
20201106 hk-py con-mysql-shell
Ivan Ma
 
PDF
Terraform Tips and Tricks - LAOUC 2022
Nelson Calero
 
PDF
BIWA2015 - Bringing Oracle Big Data SQL to OBIEE and ODI
Mark Rittman
 
PPT
Tony Jambu (obscure) tools of the trade for tuning oracle sq ls
InSync Conference
 
DOCX
Oracle 12c Automatic Data Optimization (ADO) - ILM
Monowar Mukul
 
PDF
Pluggable Databases: What they will break and why you should use them anyway!
Guatemala User Group
 
PPTX
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
Alex Zaballa
 
PPTX
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
Alex Zaballa
 
PDF
Oracle Enterprise Manager 12c - OEM12c Presentation
Francisco Alvarez
 
PDF
User Defined Partitioning on PlazmaDB
Kai Sasaki
 
DOCX
Physical_Standby_Database_R12.2.4
mohammed shahnawaz ahmed
 
PDF
SequoiaDB Distributed Relational Database
wangzhonnew
 
PDF
Oracle Database Backup
Handy_Backup
 
PDF
Attacking Oracle with the Metasploit Framework
Chris Gates
 
PDF
Long live to CMAN!
Ludovico Caldara
 
PPTX
My SYSAUX tablespace is full - please help
Markus Flechtner
 
Discard inport exchange table & tablespace
Marco Tusa
 
Oracle-12cData-Guard-Broker-Session-4.pptx
naveencl4
 
oracle dba
uday jampani
 
Collaborate 2011– Leveraging and Enriching the Capabilities of Oracle Databas...
djkucera
 
20201106 hk-py con-mysql-shell
Ivan Ma
 
Terraform Tips and Tricks - LAOUC 2022
Nelson Calero
 
BIWA2015 - Bringing Oracle Big Data SQL to OBIEE and ODI
Mark Rittman
 
Tony Jambu (obscure) tools of the trade for tuning oracle sq ls
InSync Conference
 
Oracle 12c Automatic Data Optimization (ADO) - ILM
Monowar Mukul
 
Pluggable Databases: What they will break and why you should use them anyway!
Guatemala User Group
 
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
Alex Zaballa
 
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
Alex Zaballa
 
Oracle Enterprise Manager 12c - OEM12c Presentation
Francisco Alvarez
 
User Defined Partitioning on PlazmaDB
Kai Sasaki
 
Physical_Standby_Database_R12.2.4
mohammed shahnawaz ahmed
 
SequoiaDB Distributed Relational Database
wangzhonnew
 
Oracle Database Backup
Handy_Backup
 
Attacking Oracle with the Metasploit Framework
Chris Gates
 
Long live to CMAN!
Ludovico Caldara
 
My SYSAUX tablespace is full - please help
Markus Flechtner
 
Ad

Recently uploaded (20)

PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PDF
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
PPTX
Controller Request and Response in Odoo18
Celine George
 
PPTX
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
PPTX
TRANSLATIONAL AND ROTATIONAL MOTION.pptx
KIPAIZAGABAWA1
 
PDF
Introduction presentation of the patentbutler tool
MIPLM
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
PPTX
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
PPTX
Difference between write and update in odoo 18
Celine George
 
PPTX
infertility, types,causes, impact, and management
Ritu480198
 
PDF
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
PPTX
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
PPTX
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
PDF
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
PPTX
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
PPTX
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PDF
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
Controller Request and Response in Odoo18
Celine George
 
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
TRANSLATIONAL AND ROTATIONAL MOTION.pptx
KIPAIZAGABAWA1
 
Introduction presentation of the patentbutler tool
MIPLM
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
Difference between write and update in odoo 18
Celine George
 
infertility, types,causes, impact, and management
Ritu480198
 
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 

TimesTen in memory database Creation

  • 1. +++++++++++++++++++++++++++++++++++++++ ++ + Create a TimesTen in memory database +++ +++++++++++++++++++++++++++++++++++++++ Assumption: TimesTen database software has been installed Oracle user has been used for TimesTen installed. So OS user Oracle is the administrator user for creating TimesTen database. 1. Define a Data Source Name (DSN) ============================== DSN defines the configuration of the database and must be defined before creating Database. Modify the sys.odbc.ini [Add DSN anywhere in the ODBC DATA Sources section]
  • 2. 2. Specify New data Source definition =================================== edit sys.odbc.ini to add source definition and save Driver - location of the TimesTen direct linked ODBC driver DataSource - location and name of the database files LogDir - directory for the transaction logs PermSize - Permanent partition of the database size in MB TempSize -Temporary partition of the database size in MB DatabaseCharacterSet - Character Set of the database 3. Verify that database daemon is running ================================
  • 3. 4. ttisql to connect database and create the database store ============================================
  • 4. So mono_ttdb database has been created and loaded into memory. Check the TimesTen in memory Database status +++++++++++++++++++++++++++++++++++++ [oracle@cloud bin]$ ./ttstatus TimesTen status report as of Tue Nov 19 05:09:33 2013 Daemon pid 4161 port 53396 instance tt1122 TimesTen server pid 4170 started on port 53397 -----------------------------------------------------------------------Data store /u01/app/ttdata/datastores/mono_ttdb There are no connections to the data store Replication policy : Manual Cache Agent policy : Manual PL/SQL enabled. -----------------------------------------------------------------------Accessible by group dba End of report [oracle@cloud bin]$ ./ttisql mono_ttdb Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved. Type ? or "help" for help, type "exit" to quit ttIsql.
  • 5. connect "DSN=mono_ttdb"; Connection successful: DSN=MONO_TTDB;UID=oracle;DataStore=/u01/app/ttdata/datastores/mono_ttdb;DatabaseCh aracterSet=AL32UTF8;ConnectionCharacterSet=US7ASCII;DRIVER=/home/oracle/TimesTen/t t1122/lib/libtten.so;LogDir=/u01/app/ttdata/logs;PermSize=40;TempSize=32;TypeMode=0; (Default setting AutoCommit=1) Current size of the permanent and temporary data stores +++++++++++++++++++++++++++++++++++++++++ Command> dssize PERM_ALLOCATED_SIZE: 40960 PERM_IN_USE_SIZE: 9389 PERM_IN_USE_HIGH_WATER: 9389 TEMP_ALLOCATED_SIZE: 32768 TEMP_IN_USE_SIZE: 9442 TEMP_IN_USE_HIGH_WATER: 9505 Create a user and then object under that user =================================
  • 6. Now check the DataStore and LogDir ============================ [oracle@cloud datastores]$ ls -ltra total 56224 drwxr-xr-x 2 oracle dba 4096 Nov 19 04:39 mono_ttdb drwxr-xr-x 4 oracle dba 4096 Nov 19 04:40 .. drwxr-xr-x 3 oracle dba 4096 Nov 19 05:02 . -rw-rw---- 1 oracle dba 28733432 Nov 19 05:18 mono_ttdb.ds0 -rw-rw---- 1 oracle dba 28758536 Nov 19 05:20 mono_ttdb.ds1 Note: TimesTen maintain two complete images on the disk and known as checkpoints Transaction logs for recovery ====================== [oracle@cloud logs]$ ls -ltra total 212348 drwxr-xr-x 4 oracle dba 4096 Nov 19 04:40 .. -rw-rw---- 1 oracle dba 67108864 Nov 19 05:02 mono_ttdb.res0 -rw-rw---- 1 oracle dba 67108864 Nov 19 05:02 mono_ttdb.res1 -rw-rw---- 1 oracle dba 67108864 Nov 19 05:02 mono_ttdb.res2 drwxr-xr-x 2 oracle dba 4096 Nov 19 05:02 . -rw-rw---- 1 oracle dba 15880192 Nov 19 05:20 mono_ttdb.log0