Cache connect for Oracle
We have an application which calls PL/SQL stored procedures in an Oracle 9 Db. Is there any way to use the cache connector for Oracle where the application will use the TT DB instead of the Oracle DB without needing extensive changes to the application?
Any help is appreciated!
Hi user487815,
The TimesTen IMDB does not support PL/SQL stored procedures. For your application, you should select the performance critical procedures and convert them to either ODBC or JDBC SQL calls.
-scheung
Similar Messages
-
"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 -
Unable to use Cache connect to oracle
Hi Friends,
I am using TimesTen Cache connect to oracle to connect to Oracle 9i. When I tried to
Command> call ttCacheUidPwdSet('testuser','mypsswrd'); it gave me an error saying
"con1: Command> call ttCacheUidPwdSet('TestUser', 'prashant');
Warning 5105: OCI initialization failed: Error due to failure of ttOCIEnvNlsCre
ate (called from ttBDbEnvAlloc/ttBDbInit).
Warning 5109: Cache Connect general error: BDB connections not open."
can anybody tell me what could be the problem.
And to use cache connect is there a separate installation ? or setting ?
Thanks,
PrashantWhat exact version of Oracle client is installed on the TimesTen machine? Are the permissions for the Oracle client directory and files set correctly? Do you have your Oracle environment properly setup (i.e. can you connect to Oracle using SQL*PLUS)? When you installed TimesTen, did the user you used to install it have a valid Oracle environment?
This type of error is almost always due to an unsupported version of the client or an incorrect environment either at runtime or at installation time.
Chris -
Does TT cache connect support Oracle 8.1.7.4 as backend database?
Can TT (702) cache connect support Oracle 8.1.7.4?
thanksNo, I'm afraid not. We only support 9.2.0.8 or 10g. There is no longer support for 8i.
Sorry,
Chris -
Can't Create the ODBC connection for Oracle 10g
Hi,
I am working with Oracle 10g Database Release 2 in windows XP professional. I am trying to create an ODBC connection for oracle but become failure because its generating the following errors:
system error code 998
could not locate the setup or translator library
Please help me how can I solve this problem and create the ODBC connection for oracle 10g database.
Best Regards,mwz wrote:
I am trying to create an ODBC connection for oracle but become failure because its generating the following errors:
system error code 998
could not locate the setup or translator libraryThe symptom described is typical of an incorrect system env PATH setting (used by the data source admin tool), compared to that of the Oracle Home (specifically, path $OH/bin). The odbc driver config routine will search directories listed in PATH variable for necessary libraries (Client dll's). If some library fails to load (from e.g. oraoci*.dll or oraclient10.dll) it will probably error out, as in your case.
Are you creating the odbc dsn on the databse server host or on some other machine? I.e. are you using the db host as a client or not? -
How we build Java Database Connectivity for Oracle 8i Database
Can any one send me a sample code for Java Database Connectivity for Oracle 8i Database
it will be a grat help
Thanks & Regards
RasikaYou don't need a DSN if you use Oracle's JDBC driver.
You didn't read ANY of the previous replies. What makes you think this one willk help? Or any instruction, for that matter?
Sounds like you just want someone to give it to you. OK, I'll bite, but you have to figure out the rest:
import java.sql.*;
import java.util.*;
* Command line app that allows a user to connect with a database and
* execute any valid SQL against it
public class DataConnection
public static final String DEFAULT_DRIVER = "sun.jdbc.odbc.JdbcOdbcDriver";
public static final String DEFAULT_URL = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\Edu\\Java\\Forum\\DataConnection.mdb";
public static final String DEFAULT_USERNAME = "admin";
public static final String DEFAULT_PASSWORD = "";
public static final String DEFAULT_DRIVER = "com.mysql.jdbc.Driver";
public static final String DEFAULT_URL = "jdbc:mysql://localhost:3306/hibernate";
public static final String DEFAULT_USERNAME = "admin";
public static final String DEFAULT_PASSWORD = "";
/** Database connection */
private Connection connection;
* Driver for the DataConnection
* @param command line arguments
* <ol start='0'>
* <li>SQL query string</li>
* <li>JDBC driver class</li>
* <li>database URL</li>
* <li>username</li>
* <li>password</li>
* </ol>
public static void main(String [] args)
DataConnection db = null;
try
if (args.length > 0)
String sql = args[0];
String driver = ((args.length > 1) ? args[1] : DEFAULT_DRIVER);
String url = ((args.length > 2) ? args[2] : DEFAULT_URL);
String username = ((args.length > 3) ? args[3] : DEFAULT_USERNAME);
String password = ((args.length > 4) ? args[4] : DEFAULT_PASSWORD);
System.out.println("sql : " + sql);
System.out.println("driver : " + driver);
System.out.println("url : " + url);
System.out.println("username: " + username);
System.out.println("password: " + password);
db = new DataConnection(driver, url, username, password);
System.out.println("Connection established");
Object result = db.executeSQL(sql);
System.out.println(result);
else
System.out.println("Usage: db.DataConnection <sql> <driver> <url> <username> <password>");
catch (SQLException e)
System.err.println("SQL error: " + e.getErrorCode());
System.err.println("SQL state: " + e.getSQLState());
e.printStackTrace(System.err);
catch (Exception e)
e.printStackTrace(System.err);
finally
if (db != null)
db.close();
db = null;
* Create a DataConnection
* @throws SQLException if the database connection fails
* @throws ClassNotFoundException if the driver class can't be loaded
public DataConnection() throws SQLException,ClassNotFoundException
this(DEFAULT_DRIVER, DEFAULT_URL, DEFAULT_USERNAME, DEFAULT_PASSWORD);
* Create a DataConnection
* @throws SQLException if the database connection fails
* @throws ClassNotFoundException if the driver class can't be loaded
public DataConnection(final String driver,
final String url,
final String username,
final String password)
throws SQLException,ClassNotFoundException
Class.forName(driver);
this.connection = DriverManager.getConnection(url, username, password);
* Get Driver properties
* @param database URL
* @return list of driver properties
* @throws SQLException if the query fails
public List getDriverProperties(final String url)
throws SQLException
List driverProperties = new ArrayList();
Driver driver = DriverManager.getDriver(url);
if (driver != null)
DriverPropertyInfo[] info = driver.getPropertyInfo(url, null);
if (info != null)
driverProperties = Arrays.asList(info);
return driverProperties;
* Clean up the connection
public void close()
close(this.connection);
* Execute ANY SQL statement
* @param SQL statement to execute
* @returns list of row values if a ResultSet is returned,
* OR an altered row count object if not
* @throws SQLException if the query fails
public Object executeSQL(final String sql) throws SQLException
Object returnValue;
Statement statement = null;
ResultSet rs = null;
try
statement = this.connection.createStatement();
boolean hasResultSet = statement.execute(sql);
if (hasResultSet)
rs = statement.getResultSet();
ResultSetMetaData meta = rs.getMetaData();
int numColumns = meta.getColumnCount();
List rows = new ArrayList();
while (rs.next())
Map thisRow = new LinkedHashMap();
for (int i = 1; i <= numColumns; ++i)
String columnName = meta.getColumnName(i);
Object value = rs.getObject(columnName);
thisRow.put(columnName, value);
rows.add(thisRow);
returnValue = rows;
else
int updateCount = statement.getUpdateCount();
returnValue = new Integer(updateCount);
finally
close(rs);
close(statement);
return returnValue;
* Close a database connection
* @param connection to close
public static final void close(Connection connection)
try
if (connection != null)
connection.close();
connection = null;
catch (SQLException e)
e.printStackTrace();
* Close a statement
* @param statement to close
public static final void close(Statement statement)
try
if (statement != null)
statement.close();
statement = null;
catch (SQLException e)
e.printStackTrace();
* Close a result set
* @param rs to close
public static final void close(ResultSet rs)
try
if (rs != null)
rs.close();
rs = null;
catch (SQLException e)
e.printStackTrace();
* Close a database connection and statement
* @param connection to close
* @param statement to close
public static final void close(Connection connection, Statement statement)
close(statement);
close(connection);
* Close a database connection, statement, and result set
* @param connection to close
* @param statement to close
* @param rs to close
public static final void close(Connection connection,
Statement statement,
ResultSet rs)
close(rs);
close(statement);
close(connection);
}% -
[JTA_Start_0]Exception getting connection for Oracle DB
Hi All,
I am facing a problem when I am going to insert data in a table (Oracle DB) using JTA Command Action block. I have deployed the Oracle JDBC driver and Configured the data source in http://<server<:port>>/nwa->Configuration Management -> Infrastructure. But when I am trying to insert data using the JTA Command Action block for inserting data in a table it is throwing error.I am running with XMII 12.1 SP5 and Oracle 11g.
Here is the error details.
[ERROR] [JTA_Start_0]Exception getting connection for jdbc/ODS_ORACLE_SBX was ResourceException occurred in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.connector.exceptions.BaseResourceException: Cannot get connection for 0 seconds. Possible reasons: 1) Connections are cached within SystemThread(can be any server service or any code invoked within SystemThread in the SAP J2EE Engine) or they are allocated from a non transactional ConnectionFactory. In case of transactional ConnectionFactory used from Application Thread there is an automatic mechanism which detects unclosed connections, 2)The pool size of adapter "ODS_ORACLE_SBX" is not enough according to the current load of the system . In case 1) the solution is to check for cached connections using the Connector Service list_conns command or in case 2), to increase the size of the pool.
Note: ODS_ORACLE_SBX is the Data source name which I have configured.
If I increase the min pool size from 0 to 5 or more than 0 then Data source is getting red means not Available.
Can anybody provide any help.
Thanks in advance
Chandan
Edited by: Chandan Jash on May 3, 2011 4:25 AMYou set up your Oracle DB connection by following the path 'xMII Menu -> Data Services -> Data Servers -> New'.
Re: Configure Oracle in MII 12.0
Regards,
Chanti. -
i have timesten in windows xp. my timesten connect with my oracle database.
i have more 100 data in my database. if i open with timesten there are 1 or more data miss.
example i open employees table from user HR. there are 1 missoing data. or i open costumers table from sh.
no data show in timesten.
why? and any suggestion?
thanks before1. What kind of cache groups are youy using (READONLY, AWT, SWT etc.)?
2. When did you initially populate the cache groups from Oracle using LOAD CACHE GROUP?
3. Has the cache agent been running correctly since you first populated the cache groups?
4. Where have updates (insert/update/delete) been executed since you populated the cache groups? Oracle? TimesTen? Both?
Chris -
Hello Experts,
I'm having some trouble getting a JDBC connection to work correctly and I am in need of some advice.
Background:
I have setup a test Portal 7.00 SP14 with an Oracle 10.2.0.2.0 database on a Windows 2003 X64 server. The Portal system was up and running and connecting to a WAS6.20 systems. We do not have BI or XI in our landscape.
I needed to connect to an Oracle 10.2.0.3.0 database from visual composer to read some data from tables to do a proof of concept. From what I understand this connection will be a JDBC connection. I have setup a new system using the JDBC template, assisnged an alias, and entered the connection URL . I was unable to connect.
I read that I need to add the driver using Visual Composer. I did so with the following instructions:
Install JDBC Driver
Start the Visual Administrator
Logon at WebAS
Open: Server, Services, JDBC Connector, Drivers
Choose Create New Driver or DataSource on the toolbar
Specify an arbitrary name for your driver entry such as OracleDriver and click OK
Now search for the Oracle JDBC Driver JAR file on your local harddisk.
I restarted the Java instance with SMICM after completing this task Java will not start. Is there anyway to roll back that change to get Java back up and running?
Also is there a better way to go about making this oracle connection?
Best Regards,
Edited by: Troy Loseke on Feb 20, 2008 8:30 AMHi,
although [this guide|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/92d80512-0a01-0010-32a3-cd3735bd9275] is for Visual Composer I find it very helpful in setting up JDBC connections to databases. There is a very deltailed section about setting up a system to a MS SQL Server and the relevant data if you want to connect to Oracle:
4.2 BI JDBC Connector to Oracle
Located at:
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
Driver: oracle.jdbc.driver.OracleDriver
URL: jdbc:oracle:<drivertype>:@<database>
jdbc:oracle:thin:@myhost:1521:orcl
Hope this helps,
Holger. -
Odbc connectivity for oracle lite
Can Oracle lite be connected through ODBC for a windows front end application developed (other than developer 2000)
Hi
Can anyone please give the connect string to connect to Oracle Lite through ODBC driver from a VB.NET windows front end application?
Regards
Sangeetha -
SQL Navigator not connected for oracle 11 Client
Hi Team,
i used sql navigator 5.5 to connect database then it shows error that is "ORA-12541: TNS:no listener".
If connected local database, its connecting properly.
Actually, I have Installed Oracle 11g release 1. Client. Now i have connected local database and checked. then Database connected.
C:\Users\duvvuriv>sqlplus
SQL*Plus: Release 11.1.0.6.0 - Production on Fri Jun 8 14:47:30 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Enter user-name: / as sysdba
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> set lines 300
SQL> select name,open_mode,log_mode from V$database;
NAME OPEN_MODE LOG_MODE
ORCL READ WRITE NOARCHIVELOG
Please suggest,
Thanks & Regards,
VenkatI have installed on my pc Oracle 11g for windows 7 home edition 64 bit. Usually I use Navigator to develop
or manage my DB, Navaigator 3.0 can be use with a 64 bit client? I have some problem with my previous edition.I assume by "DB Navigator" you mean "SQL Developer" because that's what this forum's about. Or if it's the Jdeveloper
addon - go to the jdev fora.
What's stopping you going [url http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html]here and downloading the x86_64 version?
The licence is very liberal (for a proprietary product).
Paul...
Edited by: Paulie on Sep 2, 2011 11:37 AM -
Create database connection for oracle ver.8.1.7.4 unsucessful
I trying create a database connection with jdeveloper 11g to db oracle ver.8.1.7.4, but the connection return error "Test failed: Unsupported Oracle database version". I selected connection type: "Oracle (JDBC)" and initially selected driver: "thin", after exchange to driver: "oci8", but return error: "Test failed: no ocijdbc11 in java.library.path". Created on menu > Tools > Preferences > JDBC driver options a new driver: "some.jdbc.Driver" pointing to Driver class: "some.jdbc.Driver", library: "oracle.jdbc.OracleDriver", class path: "c:\...\oracle\jdbc\lib\ojdbc14.jar".
Tried to create with this driver with the option "Generic JDBC" pointing to this driver created and using jdbc url: "jdbc:oracle:thin:@//255.255.255.255:1521/ServerId", but return error: "Test failed: Driver class not found. Verify the Driver location"
Now, i don´t know to do!!!John,
i have the data corporate in this DB in this version. I have already tested with the oracle JDBC driver: "ojdbc14.jar" and works in the "Eclipse" IDE, but i want to use with jdev, understand? Can i test only with this jdbc driver if i set "generic JDBC"?, because if i set "oracle JDBC" this driver is pointing to oracle 11g driver. Is there a "step-by-step" to set this correct procedure? I cannot set "oracle JDBC" of list because the driver class is disabled. -
Server manager not connecting for Oracle 8i
I am not able to connect to SVRMGR30 on Windows NT 4.0 ....ERROR 12560 - TNS error in Adaptor ...This is URGENT ...Can any1 help ?
There is an 8.1.7.4 patchset for Windows.
If you take a look at the Instant Client forum, there are some discussions on this where one of the Oracle product managers (Mr. Jue) has chimed in. At present, only connections to 8.1.7.4 and higher are supported. It is expected that the first 10g patchset will fix this bug and allow connections to 8.1.7.0 and above databases.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
ODBC connectivity for ORACLE RDB
Hi,
I am trying to configure ODBC Agent with oracle to access ORACLE RDB.
I have installed ORACLE RDB ODBC driver and created SYSTEM DSN named
"dcprdb".
My configuration files are as follows
inithsodbc.ora (at E:\oracle\ora81\hs\admin)
HS_FDS_CONNECT_INFO = dcprdb
HS_FDS_TRACE_LEVEL = 0
HS_FDS_TRACE_FILE_NAME = hsodbc.trc
tnsnames.ora (at E:\oracle\ora81\network\ADMIN)
hsodbc =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ip_address)(PORT = 1527))
(CONNECT_DATA =
(SID = hsodbc)
(HS=)
listener.ora (at E:\oracle\ora81\network\ADMIN)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = hsodbc)
(ORACLE_HOME = E:\oracle\ora81)
(PROGRAM = hsodbc)
CONNECT_TIMEOUT_LISTENER = 0
I restarted the TNS Listener service. Then, I have created DB link using the following command:
CREATE DATABASE LINK hsodbc
CONNECT TO <user_name> IDENTIFIED BY <password>
USING 'hsodbc';
When I executed the following query, I am getting the following error message:
select * from model@hsodbc;
Error Message:
select * from modl@hsodbc
ERROR at line 1:
ORA-02068: following severe error from HSODBC
ORA-28511: lost RPC connection to heterogeneous remote agent using
SID=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=207.53.38.129)(PORT=
1527)))(CONNECT_DATA=(SID=hsodbc)))
I am using Windows 2000 OS and Oracle8i Enterprise Edition Release 8.1.7.0.0
When I executed "tnsping dcprdb" at E:\oracle\ora81\bin, it works well. (see, below)
E:\oracle\ora81\bin>tnsping dcprdb
TNS Ping Utility for 32-bit Windows: Version 8.1.7.0.0 - Production on 20-JAN-20
04 19:41:06
(c) Copyright 1997 Oracle Corporation. All rights reserved.
Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=ip_address)(PORT=1527))
OK (810 msec)
E:\oracle\ora81\bin>
Thanks in Advance
Thirutry to write into file
tnsnames.ora (at E:\oracle\ora81\network\ADMIN)
hsodbc =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ip_address)(PORT = 1527))
(CONNECT_DATA =
(SID = hsodbc)
(HS=OK) --this is important -
ODBC Connectivity for Oracle 8.1.6
Hi, I am trying to find odbc.ini file so as to connect using ODBC, but am not being successful. Can anybody help?
Are you trying to connect to a Linux database from a Windows client, or are you trying to connect from a Linux client? Which ODBC driver are you using?
Justin Cave
Maybe you are looking for
-
Hi all, I have downloaded the latest Abap trial version(SAP NetWeaver 7.01 SR1 SP3 ABAP Trial Version ) from the sdn site(Link Below). http://www.sdn.sap.com/irj/scn/downloads;jsessionid=(J2EE3417600)ID0310956450DB11549542238197911295End?rid=/library
-
How do I use my control key to highlight multiple options in a PDF?
How do you select multiple options from a selection field in a PDF form? I've tried control and mouse click as the directions indicate on the form. However, I am a new Mac user and I do not know if the control commands are the same. I viewed the comm
-
Can't get LELA w/ WRT160N to work
I can't get LELA to work. I was working fine from July to early September. Since then I have not been able to get it to work. Everything with the router works fine. In LELA, pretty much everything I try to click on comes up with an error message. "E
-
The ease of use of special characters has been a major strength of the Mac OS since the very foundation. Now I find in Lion I hvae to do a very Windoze-like thing and open a Special Characters dialog and search for the character I want from a confusi
-
Number of elements in TDMS file
Is there a way to determine the number of elements in a TDMS file? The files I am creating have several signals all of the same length. The only way I can think of is to do this is put it in a loop and read one element at a time until it reaches th