Additional query... on Oracle Lite
Dear All,
I have a few additional queries on the question I posted before
ADditional queries :
==================
1) What software does lie on the Windows CE platform and how do we install it, because if we install Oracle lite for handheld devices it installs it on the PC?
2) How can the replication be done with the Polite.odb on windows CE device in the simplest possible way?
3) If I want to connect to this polite.odb how can i do that from my PC?
Previous question :
==================
I am working on a prototype between Oracle Lite and Oralce 8i database. I have managed to install oracle lite on PC and also manage the replication between the Oracle database and Oracle Lite database. I can also connect to the Oracle Lite database (It is a ODB file) through SQL plus. But I am having a few problems :
1) While connecting to Oracle Lite database I get a message
"Server not available or version too low for this feature" without any oracle error number. The versions are as follows : Oracle Open Client Adapter for ODBC 6.0.5.3.0
Oracle Lite ORDBMS 4.0.0.2.0
Oracle8i Enterprise Edition Release 8.1.5.0.0 - Production
With the Partitioning and Java options
PL/SQL Release 8.1.5.0.0 - Production
To connect to Oracle Lite database, your give the userid/password@odbc:<<oracle lite dbname>>
What can be the possible reasons?
2) I tried to create a database link between the Oracle Lite database and Oracle database and when I try to fire a select on a table in Oracle Lite database I get an error
"ORA-06401: NETCMN: invalid driver designator"
so how dow we create a database link between these 2 databases?
Thanks in advance
Please send your mails to [email protected] and/or [email protected]
Regards
Sohil
null
Hi Aman,
I was going through Oracle® Database Concepts 11g Release 2, Chapter 12 Logical Storage Structures (link below):
http://docs.oracle.com/cd/E11882_01/server.112/e25789/logical.htm#i19599
*Automatic Segment Space Management*
The ASSM method uses bitmaps to manage space. Bitmaps provide the following advantages:
•Simplified administration
ASSM avoids the need to manually determine correct settings for many storage parameters. Only one crucial SQL parameter controls space allocation: PCTFREE. This parameter specifies the percentage of space to be reserved in a block for future updates (see "Percentage of Free Space in Data Blocks").
•Increased concurrency
Multiple transactions can search separate lists of free data blocks, thereby reducing contention and waits. For many standard workloads, application performance with ASSM is better than the performance of a well-tuned application that uses MSSM.
•Dynamic affinity of space to instances in an Oracle Real Application Clusters (Oracle RAC) environment
ASSM is more efficient and is the default for permanent, locally managed tablespaces.Regards,
Ankit Rathi
Similar Messages
-
Help needed in changing Access query to Oracle query
hello folks,
I have already posted this question and got some help previously but i have additional query being added to the previous one so thought of seeking some help.here it goes
Am having an access report which comes from a query. the current query behind the report is a consolidated one and comes from quite a few tables . My requirement is to develop a crystal report( which comes with a native oracle db driver) which should look same as the access report. But am unable to use the access query becoz of its format or something. So anyone please throw some light on this. Any help would be kindly appreciated.
SELECT Debtor . EVENT_ID,
Debtor . MEDCAP#,
Debtor . Client Name,
Debtor . CLIENT,
Debtor . Provider ID,
Debtor . GROUPNUMBER,
"OPEN" AS Status,
(IIf(clip_file = "Y", "Clip", "Open")) AS clipStatus,
IIf(collect_only = "Y", "Collection Only", "Regular Collections") AS Collect ?,
IIf(IsNull(Principal), 0, principal,
IIf(IsNull(PAR_FLAG), "N", IIf(PAR_FLAG <> "N", "P", PAR_FLAG)) AS PAR_NPAR_FLAG,
Right(PatientMemberID, 2) AS Patient Suffix
FROM Period, Debtor
INNER JOIN LOB_subtypes ON Debtor . SUBTYPE = LOB_subtypes . SUBTYPE
WHERE (((Debtor . CLIENT) = "CV1") And ((Period . PeriodName) Is Not Null) And
((Debtor . STATUS) = "OPEN") And ((LOB_subtypes . LOB) = "PBA"));
ThanksThe expression...
IIf(IsNull(Principal), 0, principal) - IIf(IsNull(PRORATED_TRANAMT), 0, prorated_tranamt)...is equivalent to...
NVL(PRINCIPAL, 0) - NVL(PRORATED_TRANAMT, 0)Does that answer your question?
As for...
IIf(IsNull(PAR_FLAG), "N", IIf(PAR_FLAG<>"N", "P", PAR_FLAG))...you might try...
CASE
WHEN PAR_FLAG IS NULL THEN 'N'
WHEN PAR_FLAG != 'N' THEN 'P'
ELSE 'N'
END -
Bad Performance with Oracle Lite 4.0.1
I have a table in Oracle Lite with 17000 records and 110 fields. A SELECT on this table needs 1 minute to finish. The same table and query only needs 1 second on Oracle 8i Server. MSDE also needs 1 second. All the relevant fields are indexed. Are there any parameters in Oracle Lite that we can tweak? Is there something else I'm forgetting?
Hi Shivek,
An excellent solution for this is provided in the metalink Note:455905.1.
Let me know if you have more questions.
Thanks
Vishnu -
Update statement in Oracle Lite
Hi
I'm having a problem when I do an Update on the database.
if I set a column which is a primary key in the table with the same value I get a foreign key error.
Ex: update company set company_id = 1 where company_id = 1;
in Oracle 8i there is no problem ,but when I run it in 8i Lite a get the foreign key error.
I appreciate any helpIs it necessary to update the entire record in Oracle Lite, or should it be possible to update select columns only when performing an update query?
Thanks,
Allen -
Does Oracle Lite embeded XML DB feature???
Please tell me, whether the Oracle lite enabled XML DB feature??? Thanks!!!!
As far as I know the Oracle Lite product does not currently support any of the XML features of the Oracle Database. What features were you looking for. Was it just XML storeage and queryiability or was it SQL <--> XML interaction. For a pure XML capability you might want to look at Sleepcat's DB-XML product. It's a programming API that lets you store, index and query XML documents. As you may have seen in the news Oracle recently purchased Sleepcat.
-
Sql-92 syntax in Oracle Lite 8i
The Oracle Lite documentation instructs the developer to enact this change to polite.ini to use sql-92 syntax:
Running SQL-92 on Oracle Lite
As mentioned in the preceding section,
Oracle Lite uses Oracle SQL by default.
However, if you want to support SQL-92 by
default instead of Oracle SQL, you can
change the SQL compatibility parameter in
the POLITE.INI file to SQL-92. To change
the parameter, add the following in the
POLITE.INI file:
SQLCOMPATIBILITY=SQL92
See the Oracle Lite User's Guide for more
information about the POLITE.INI file.
However this does not appear to have any effect. For instance, this query in the polite sample database:
select product.descrip,price.stdprice
from product FULL OUTER JOIN price
ON product.prodid = price.prodid;
generates a syntax error:
ERROR at line 1:
OCA-30021: error preparing/executing SQL
statement
[POL-5228] syntax error
Is there more steps needed to make Oracle 8i Lite SQL-92 Compatible???Hello,
SELECT 'x'
FROM EMP,DEPT
WHERE
EMP.dept_id = DEPT.dept_id
AND
ROWNUM = 1;Francois -
Oracle Lite: How to create data subsetting parameters?
I need to know:
how to create data subsetting parameters?
I need these parameters for use of a restricting predicate in an item publication.
I were looking the forum and i found topics about "how to set?" but i don't found how to create a data subsetting parameter.
I am replacing SQL server 2000 and SQL server CE by oracle 9i and oracle lite 5.0.2.
Thanks in advance.
PCIDHad problems with the parameters shown on pages webtogo in the datasubsettings section because none of them were "defined", but in sections 1.4.1.2 I found these lines:
Template: select * from master.task where CustCity = :city
Then click OK. This brings you back to the previous screen. The template query contains a variable (subscription parameter) named "city". Later, when you provision the application to a user, you will be prompted to enter the value for it.
I found out how to put a parameter to restrict registries that download to the pocket pc from each user.
Thank you very much!!! -
Oracle apps configuration required to install oracle lite database
Hi,
Can any one suggest me the oracle apps setups and configuration required for installing the oracle lite databse in my laptop.
The olite databse must sink with my existing oracle apps.
thanks in advance...user596857 wrote:
Dear Experts, (I'm far from expert, but I possess enough shreds of knowledge to answer your question, so here goes. ;-) )
1a)
My server has Oracle version 11.1.0.6.0, but the matrix says it wants 11.1.0.7.
I should get a warning right?
Can I just proceed with the install, over-riding the warning?
1b)
If so, what is the procedure to install into the existing database?
It wasn't obvious in the (150 page) install docs. The EBS install delivers its own ORACLE_HOME for the database. There isn't an option to install into an existing database as far I know. The installer will ask where to put the new ORACLE_HOME for the EBS database. You might get a warning if you try to install to a pre-existing ORACLE_HOME, and I don't recommend ignoring that warning. The result will either be ugly immediately or, even worse, ugly later when it's harder to figure out why. ;-)
Do an upgrade?Won't really help. The ORACLE_HOME that's bundled with the installer usually comes with additional patches pre-installed, as well as EBS-friendly configuration options. You're much better off taking what it gives you so you can get down to the real fun of learning EBS. :-)
Or, do regular install, but not Express/Rapid Install?I recommend doing a Vision install for learning EBS.
Can I choose not to install the database software?Nope (unless my memory is really that bad), and there's no real benefit to doing so. All you'd save is a couple GB of disk, and as a percentage of the total install footprint of EBS, the database ORACLE_HOME is relatively tiny.
Regards,
John P.
http://only4left.jpiwowar.com -
9iLite 5.0.2.8
Do in-line queries work?
example
select level, a.col_a, b.col_b
from tab_A, (select col_b
from tab_c
where col_c = 1 ) b
where a.col_D = 1
start with a.col_a = 0
connect by b.col_b = prior a.col_a
We have more complex queries that work on an enterprise verison of the DB, but these sql statements all fail when executed on 9iLite.
Assuimg their are limitations to the complexity of
the sql that can run on 9iLite, is there a document
which hi-lites these limitations and possible work-arounds. I have read the SQL Reference for 9iLite - it documents what syntax is allowed very well.
I am suspecting that temporary objects in 9iLite sql may not be allowed.
Thanks in advance for any input.The actual syntax is ...
select level, cls.isActive, cls.application_class_id,
menu.application_class_id_parent, menu.menu_order,
menu.menu_id
from application_class cls,
( select *
from application_menu
where menu_profile = 1 ) menu
where menu.application_class_id (+) =
cls.application_class_id
and isActive = 1
start with (cls.application_class_id = 0 or
menu.application_class_id_parent is null )
connect by menu.application_class_id_parent = prior
cls.application_class_id
and cls.application_class_id != 0
The error from oLite is ...
Exception:
java.sql.SQLException: [POL-5185] can't establish a join with CONNECT BY
at oracle.lite.poljdbc.LiteEmbPreparedStmt.jniPrepare(Native Method)
at oracle.lite.poljdbc.LiteEmbPreparedStmt.prepare(Unknown Source)
at oracle.lite.poljdbc.POLJDBCPreparedStatement.(Unknown Source)
at oracle.lite.poljdbc.POLJDBCPreparedStatement.(Unknown Source)
at oracle.lite.poljdbc.OraclePreparedStatement.(Unknown Source)
at oracle.lite.poljdbc.POLJDBCConnection.prepareStatement(Unknown Source)
at oracle.lite.web.JupConnection.prepareStatement(JupConnection.java:174)
at hccadi_on._test._select._jspService(_select.java:70)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.lite.web.JupServlet.service(JupServlet.java:235)
at oracle.lite.web.JspRunner.service(JspRunner.java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at oracle.lite.web.JupServlet.service(JupServlet.java:235)
at oracle.lite.web.MimeServletHandler.handle(MimeServletHandler.java:99)
at oracle.lite.web.JupApplication.service(JupApplication.java:523)
at oracle.lite.web.JupHandler.handle(JupHandler.java:102)
at oracle.lite.web.HTTPServer.process(HTTPServer.java:309)
at oracle.lite.web.HTTPServer.handleRequest(HTTPServer.java:162)
at oracle.lite.web.JupServer.handle(JupServer.java:308)
at oracle.lite.web.SocketListener.process(SocketListener.java:178)
at oracle.lite.web.ClientListener.process(ClientListener.java:64)
at oracle.lite.web.SocketListener$ReqHandler.run(SocketListener.java:232)
This sql works on an EE version of the DB. I do agree that
in-line queries work. I cut this sql up to be just an in-line query and it does work. The problem seems to be around the use of "connect by" with an in-line. I do know that "connect by" works.
Thanks in advance for any input. -
Oracle.lite.sync.Consolidator.PubItemProps = isLogBased ?
Hi All,
I am a little confuse about isLogBased.
Doc said:
isLogBased
If true, log based (automatic) publication item will be created
Does it mean that if isLogBased = true, then Oracle Lite does not use trigger process, but capture data
in redo logs (like streams) ?
Of course this does not work whith Standard Edition main db , only with enterpriseEdition ?
If it is clear for you, thak you for your clarification.
All the best.
FabriceHi all,
I was completely lost.
Setting "isLogBased" to True enables automatic sync for a pub item.
The following example uses the automatic synchronization version of createPublicationItem method, which uses the PubItemProps class to define all publication item definitions, including automatic synchronization, as follows:
PubItemProps pi_props = new PubItemProps();
pi_props.owner = "MASTER"; // owner schema
pi_props.store = STORES[0]; // store
pi_props.refresh_mode = "F"; //default // uses fast refresh
pi_props.select_stmt = // specify select statement for snapshot
"SELECT * FROM "+"MASTER"+"."+STORES[i][0]+ " WHERE C1 =:CLIENTID";
pi_props.cl2log_rec_stmt = "SELECT base.C1 FROM " // client sub-query to
+ "MASTER"+"."+STORES[i][0] + " base," // return unique clientids
+ "MASTER"+".CLG$"+STORES[i][0] + " log"
+ " WHERE base.ID = log.ID";
// Setting "isLogBased" to True enables automatic sync for this pub item.
pi_props.isLogBased = true;
// If doChangeNtf is true, automatic publication item sends notifications
// from server about new/modified records
pi_props.doChangeNtf = true;
cm.createPublicationItem(PUBITEMS[i], pi_props);
cm.addPublicationItem(PUB,PUBITEMS[i],null,null,"S",null,null);
Regards.
Fabrice -
I am new for Oracle Lite so, may be some question incorrect.
1. Where I can downlaod O8iLite for testing?
2. Which version of Oracle Lite is J2EE compliance?
3. Which version of Oracle Lite support Chinese?
Regards, and thanks for any reply
NicholasThere is some documentation cut, may be this help you.
2.7 Language Issues (CCJK stands for China, Taiwan (Chinese Taipei), Japan, Korea)
Mobile Client for EPOC and Mobile Development Kit for EPOC is not supported for CCJK countries
Mobile Client for Windows CE and Mobile Development Kit for Windows CE with x86 is not supported for CCJK countries
Branch Office is not supported for CCJK countries
2.8 CCJK Supplemental Information
This release is a MLE (Multi Language Edition) release. This release supports CCJK (Chinese, Taiwanese, Japanese, Korean) languages in addition to English and European language. This section provides CCJK specific information for the release.
2.8.1 Character Sets
2.8.1.1 Supported Character Sets For Database Kernels
Oracle Lite Database is NOT a NLS component. In order to reduce the kernel size, it is built for each language which supports native character sets for Windows. Which means, each language has each kernel. Here are the character sets supported by this release:
Chinese : MS936 CodePage (Simplified Chinese GBK, ZHS)
Taiwanese: MS950 CodePage (Traditional Chinese Big5, ZHT)
Japanese : MS932 CodePage (Japanese Shift-JIS, JA)
Korean : MS949 CodePage (Korean, Ko)
The database kernel for each language in this list only supports its corresponding character set. Other multibyte character sets are not supported.
2.8.1.2 Supported Character Sets for Mobile Server
Mobile Server components (including Mobile SDK, mSync) is NLS components. These components are built based on Java technology and support all character sets which Java technology supports. But there are some restrictions. See "Restrictions of CCJK" subsection.
2.8.2 NLS Parameters in POLITE.INI
In order to handle the proper language, some NLS related parameter need to be set as written in POLITE.INI. NLS related parameters are set in POLITE.INI. These parameters are set by default during installation.
2.8.2.1 NLS_LOCALE
Oracle Lite database refers NLS_LOCALE parameter. This parameter affects the behavior for calendar and currency unit handling and must be set in each language specific value. The actual value for NLS_LOCALE parameter are:
For ZHS (China) : CHINESE-SIMPLIFIED
For ZHT (Taiwan): CHINESE-TRADITIONAL
For Ja (Japan) : JAPANESE
For KO (Korea) : KOREAN
=Siarhej= -
hi....
i have installed oracle lite webtogo BC4J.I have developed an application using jdeveloper JSF ADF BC techology and deployed it on to the mobile server.Now when i use mobile client web server and open this application.Can i use it in disconnected mode.i.e can i use the application in offline mode????Marcel,
You are correct, Webtogo does not support JSF. JSP/Servlets/Struts/Tiles are the only things supported. Also correct that it is not a J2EE container, but why would you require enterprise components in a disconnected mode?
I read over the ADF/BC4J tutorial and it doesn't mention any additional install that would have to happen. I would think that the JARs would be downloaded to the client accordingly.
For your JDBC connection you can use either the Webtogo driver or the Polite driver. Your application, once deployed should be using the Webtogo driver.
// Using the webtogo driver
public Connection getConnection()
Class.forName("oracle.lite.web.WTGJdbcDriver");
conn = DriverManager.getConnection("jdbc:oracle:webtogo");
return conn;
// Using the polite driver
public Connection getConnection()
Class.forName("oracle.lite.poljdbc.POLJDBCDriver");
conn = DriverManager.getConnection("jdbc:polite:USERID_dbdsn");
return conn;
} -
Oracle Lite vs. MobiLink DB synchronisation
Hi all
I have the task to analyse several synchronisation solutions on the
market. The analysis will play an important part in the decision for
which solution a quite big company will go for when building mobile
applications.
Up to know I manly focused on Oracle Lite and MobiLink.
I am sure that some of you guys did the same analysis. May you can give
me some good and important facts I have to take into consideration in
the analysis.
thx for any useful hints.
cheers,
Michel
Message was edited by:
Michel77Michel,
Having an Oracle enterprise database is an important first step. It'd be harder to choose Oracle Lite over MobiLink if you also had to be convinced to switch to Oracle in the backend.
A second important comparison IMO is the client database and application development tools (prior to analyzing the synchronization technologies themselves). Both products only support their own client databases (MobiLink and SQL Anywhere/UltraLite or OLite Mobile Server and client database). I'd start by evaluating the client database in each case to ensure it matches with your requirements. Items to consider are:
- Target platform support
- Datatype requirements
- Footprint requirements
- Logic requirements
- Driver support
- other items important to you
I think another important item to review before evaluating the synchronization process itself is the tools involved for building and deploying your application. If the site that will build and deploy the application is already familiar with many Oracle tools such as App Server, OC4J, etc. they may find Oracle Lite a much more familiar environment to work within, which could be a sufficient benefit in time to develop and deploy the application.
In comparing synchronization, I think you'll find both tools have the same basic features. You might consider a few of these items to compare the technologies:
1) Performance - this might be hard to measure without planning and developing a few test scripts. For a full sync, the upload, apply, download phases in MobiLink are synchronous; each one relying on the completion of the prior to move on in the synchronization process. Oracle Lite's methodology is asynchronous. Your client modifications are uploaded/downloaded from a queue, which in turn works to apply and compose changes from and into the Oracle. This means your client is not forced to wait for upload transactions to commit to Oracle before it can continue with downloading its changes. On a small scale (numbers of users, small amount of data, infrequent transactions to Oracle), the difference in this methodoloy will not display much in terms of performance impact. If you plan to scale up or out, or are working with a very busy Oracle database, you'll find Oracle Lite's methodology will scale better.
2) Remote administration: It's worth checking into the functionality each product provides to remotely administer the client database. Consider basic use case scenarios now and in the future that might require remote administration and compare the tools each provides to accomplish.
3) Integration with Oracle: Mapping the differences for Oracle specific features (sequences, etc) is often important.
4) Consider how the two products handle an interruption of a user synchronization, which can be especially important if you are synchronizing large sets of data.
5) Check how to manage conflicts and errors in each product and see how that works for your particular use cases. The nuances and application of this is different for each product.
This should help you get started. I'll post some additional thoughts if they come to me.
HTH
Gabe -
Query in timesten taking more time than query in oracle database
Hi,
Can anyone please explain me why query in timesten taking more time
than query in oracle database.
I am mentioning in detail what are my settings and what have I done
step by step.........
1.This is the table I created in Oracle datababase
(Oracle Database 10g Enterprise Edition Release 10.2.0.1.0)...
CREATE TABLE student (
id NUMBER(9) primary keY ,
first_name VARCHAR2(10),
last_name VARCHAR2(10)
2.THIS IS THE ANONYMOUS BLOCK I USE TO
POPULATE THE STUDENT TABLE(TOTAL 2599999 ROWS)...
declare
firstname varchar2(12);
lastname varchar2(12);
catt number(9);
begin
for cntr in 1..2599999 loop
firstname:=(cntr+8)||'f';
lastname:=(cntr+2)||'l';
if cntr like '%9999' then
dbms_output.put_line(cntr);
end if;
insert into student values(cntr,firstname, lastname);
end loop;
end;
3. MY DSN IS SET THE FOLLWING WAY..
DATA STORE PATH- G:\dipesh3repo\db
LOG DIRECTORY- G:\dipesh3repo\log
PERM DATA SIZE-1000
TEMP DATA SIZE-1000
MY TIMESTEN VERSION-
C:\Documents and Settings\dipesh>ttversion
TimesTen Release 7.0.3.0.0 (32 bit NT) (tt70_32:17000) 2007-09-19T16:04:16Z
Instance admin: dipesh
Instance home directory: G:\TimestTen\TT70_32
Daemon home directory: G:\TimestTen\TT70_32\srv\info
THEN I CONNECT TO THE TIMESTEN DATABASE
C:\Documents and Settings\dipesh> ttisql
command>connect "dsn=dipesh3;oraclepwd=tiger";
4. THEN I START THE AGENT
call ttCacheUidPwdSet('SCOTT','TIGER');
Command> CALL ttCacheStart();
5.THEN I CREATE THE READ ONLY CACHE GROUP AND LOAD IT
create readonly cache group rc_student autorefresh
interval 5 seconds from student
(id int not null primary key, first_name varchar2(10), last_name varchar2(10));
load cache group rc_student commit every 100 rows;
6.NOW I CAN ACCESS THE TABLES FROM TIMESTEN AND PERFORM THE QUERY
I SET THE TIMING..
command>TIMING 1;
consider this query now..
Command> select * from student where first_name='2155666f';
< 2155658, 2155666f, 2155660l >
1 row found.
Execution time (SQLExecute + Fetch Loop) = 0.668822 seconds.
another query-
Command> SELECT * FROM STUDENTS WHERE FIRST_NAME='2340009f';
2206: Table SCOTT.STUDENTS not found
Execution time (SQLPrepare) = 0.074964 seconds.
The command failed.
Command> SELECT * FROM STUDENT where first_name='2093434f';
< 2093426, 2093434f, 2093428l >
1 row found.
Execution time (SQLExecute + Fetch Loop) = 0.585897 seconds.
Command>
7.NOW I PERFORM THE SIMILAR QUERIES FROM SQLPLUS...
SQL> SELECT * FROM STUDENT WHERE FIRST_NAME='1498671f';
ID FIRST_NAME LAST_NAME
1498663 1498671f 1498665l
Elapsed: 00:00:00.15
Can anyone please explain me why query in timesten taking more time
that query in oracle database.
Message was edited by: Dipesh Majumdar
user542575
Message was edited by:
user542575TimesTen
Hardware: Windows Server 2003 R2 Enterprise x64; 8 x Dual-core AMD 8216 2.41GHz processors; 32 GB RAM
Version: 7.0.4.0.0 64 bit
Schema:
create usermanaged cache group factCache from
MV_US_DATAMART
ORDER_DATE DATE,
IF_SYSTEM VARCHAR2(32) NOT NULL,
GROUPING_ID TT_BIGINT,
TIME_DIM_ID TT_INTEGER NOT NULL,
BUSINESS_DIM_ID TT_INTEGER NOT NULL,
ACCOUNT_DIM_ID TT_INTEGER NOT NULL,
ORDERTYPE_DIM_ID TT_INTEGER NOT NULL,
INSTR_DIM_ID TT_INTEGER NOT NULL,
EXECUTION_DIM_ID TT_INTEGER NOT NULL,
EXEC_EXCHANGE_DIM_ID TT_INTEGER NOT NULL,
NO_ORDERS TT_BIGINT,
FILLED_QUANTITY TT_BIGINT,
CNT_FILLED_QUANTITY TT_BIGINT,
QUANTITY TT_BIGINT,
CNT_QUANTITY TT_BIGINT,
COMMISSION BINARY_FLOAT,
CNT_COMMISSION TT_BIGINT,
FILLS_NUMBER TT_BIGINT,
CNT_FILLS_NUMBER TT_BIGINT,
AGGRESSIVE_FILLS TT_BIGINT,
CNT_AGGRESSIVE_FILLS TT_BIGINT,
NOTIONAL BINARY_FLOAT,
CNT_NOTIONAL TT_BIGINT,
TOTAL_PRICE BINARY_FLOAT,
CNT_TOTAL_PRICE TT_BIGINT,
CANCELLED_ORDERS_COUNT TT_BIGINT,
CNT_CANCELLED_ORDERS_COUNT TT_BIGINT,
ROUTED_ORDERS_NO TT_BIGINT,
CNT_ROUTED_ORDERS_NO TT_BIGINT,
ROUTED_LIQUIDITY_QTY TT_BIGINT,
CNT_ROUTED_LIQUIDITY_QTY TT_BIGINT,
REMOVED_LIQUIDITY_QTY TT_BIGINT,
CNT_REMOVED_LIQUIDITY_QTY TT_BIGINT,
ADDED_LIQUIDITY_QTY TT_BIGINT,
CNT_ADDED_LIQUIDITY_QTY TT_BIGINT,
AGENT_CHARGES BINARY_FLOAT,
CNT_AGENT_CHARGES TT_BIGINT,
CLEARING_CHARGES BINARY_FLOAT,
CNT_CLEARING_CHARGES TT_BIGINT,
EXECUTION_CHARGES BINARY_FLOAT,
CNT_EXECUTION_CHARGES TT_BIGINT,
TRANSACTION_CHARGES BINARY_FLOAT,
CNT_TRANSACTION_CHARGES TT_BIGINT,
ORDER_MANAGEMENT BINARY_FLOAT,
CNT_ORDER_MANAGEMENT TT_BIGINT,
SETTLEMENT_CHARGES BINARY_FLOAT,
CNT_SETTLEMENT_CHARGES TT_BIGINT,
RECOVERED_AGENT BINARY_FLOAT,
CNT_RECOVERED_AGENT TT_BIGINT,
RECOVERED_CLEARING BINARY_FLOAT,
CNT_RECOVERED_CLEARING TT_BIGINT,
RECOVERED_EXECUTION BINARY_FLOAT,
CNT_RECOVERED_EXECUTION TT_BIGINT,
RECOVERED_TRANSACTION BINARY_FLOAT,
CNT_RECOVERED_TRANSACTION TT_BIGINT,
RECOVERED_ORD_MGT BINARY_FLOAT,
CNT_RECOVERED_ORD_MGT TT_BIGINT,
RECOVERED_SETTLEMENT BINARY_FLOAT,
CNT_RECOVERED_SETTLEMENT TT_BIGINT,
CLIENT_AGENT BINARY_FLOAT,
CNT_CLIENT_AGENT TT_BIGINT,
CLIENT_ORDER_MGT BINARY_FLOAT,
CNT_CLIENT_ORDER_MGT TT_BIGINT,
CLIENT_EXEC BINARY_FLOAT,
CNT_CLIENT_EXEC TT_BIGINT,
CLIENT_TRANS BINARY_FLOAT,
CNT_CLIENT_TRANS TT_BIGINT,
CLIENT_CLEARING BINARY_FLOAT,
CNT_CLIENT_CLEARING TT_BIGINT,
CLIENT_SETTLE BINARY_FLOAT,
CNT_CLIENT_SETTLE TT_BIGINT,
CHARGEABLE_TAXES BINARY_FLOAT,
CNT_CHARGEABLE_TAXES TT_BIGINT,
VENDOR_CHARGE BINARY_FLOAT,
CNT_VENDOR_CHARGE TT_BIGINT,
ROUTING_CHARGES BINARY_FLOAT,
CNT_ROUTING_CHARGES TT_BIGINT,
RECOVERED_ROUTING BINARY_FLOAT,
CNT_RECOVERED_ROUTING TT_BIGINT,
CLIENT_ROUTING BINARY_FLOAT,
CNT_CLIENT_ROUTING TT_BIGINT,
TICKET_CHARGES BINARY_FLOAT,
CNT_TICKET_CHARGES TT_BIGINT,
RECOVERED_TICKET_CHARGES BINARY_FLOAT,
CNT_RECOVERED_TICKET_CHARGES TT_BIGINT,
PRIMARY KEY(ORDER_DATE, TIME_DIM_ID, BUSINESS_DIM_ID, ACCOUNT_DIM_ID, ORDERTYPE_DIM_ID, INSTR_DIM_ID, EXECUTION_DIM_ID,EXEC_EXCHANGE_DIM_ID),
READONLY);
No of rows: 2228558
Config:
< CkptFrequency, 600 >
< CkptLogVolume, 0 >
< CkptRate, 0 >
< ConnectionCharacterSet, US7ASCII >
< ConnectionName, tt_us_dma >
< Connections, 64 >
< DataBaseCharacterSet, AL32UTF8 >
< DataStore, e:\andrew\datacache\usDMA >
< DurableCommits, 0 >
< GroupRestrict, <NULL> >
< LockLevel, 0 >
< LockWait, 10 >
< LogBuffSize, 65536 >
< LogDir, e:\andrew\datacache\ >
< LogFileSize, 64 >
< LogFlushMethod, 1 >
< LogPurge, 0 >
< Logging, 1 >
< MemoryLock, 0 >
< NLS_LENGTH_SEMANTICS, BYTE >
< NLS_NCHAR_CONV_EXCP, 0 >
< NLS_SORT, BINARY >
< OracleID, NYCATP1 >
< PassThrough, 0 >
< PermSize, 4000 >
< PermWarnThreshold, 90 >
< PrivateCommands, 0 >
< Preallocate, 0 >
< QueryThreshold, 0 >
< RACCallback, 0 >
< SQLQueryTimeout, 0 >
< TempSize, 514 >
< TempWarnThreshold, 90 >
< Temporary, 1 >
< TransparentLoad, 0 >
< TypeMode, 0 >
< UID, OS_OWNER >
ORACLE:
Hardware: Sunos 5.10; 24x1.8Ghz (unsure of type); 82 GB RAM
Version 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
Schema:
CREATE MATERIALIZED VIEW OS_OWNER.MV_US_DATAMART
TABLESPACE TS_OS
PARTITION BY RANGE (ORDER_DATE)
PARTITION MV_US_DATAMART_MINVAL VALUES LESS THAN (TO_DATE(' 2007-11-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_07_NOV_D1 VALUES LESS THAN (TO_DATE(' 2007-11-11 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_07_NOV_D2 VALUES LESS THAN (TO_DATE(' 2007-11-21 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_07_NOV_D3 VALUES LESS THAN (TO_DATE(' 2007-12-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_07_DEC_D1 VALUES LESS THAN (TO_DATE(' 2007-12-11 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_07_DEC_D2 VALUES LESS THAN (TO_DATE(' 2007-12-21 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_07_DEC_D3 VALUES LESS THAN (TO_DATE(' 2008-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_08_JAN_D1 VALUES LESS THAN (TO_DATE(' 2008-01-11 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_08_JAN_D2 VALUES LESS THAN (TO_DATE(' 2008-01-21 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_08_JAN_D3 VALUES LESS THAN (TO_DATE(' 2008-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE TS_OS,
PARTITION MV_US_DATAMART_MAXVAL VALUES LESS THAN (MAXVALUE)
LOGGING
NOCOMPRESS
TABLESPACE TS_OS
NOCACHE
NOCOMPRESS
NOPARALLEL
BUILD DEFERRED
USING INDEX
TABLESPACE TS_OS_INDEX
REFRESH FAST ON DEMAND
WITH PRIMARY KEY
ENABLE QUERY REWRITE
AS
SELECT order_date, if_system,
GROUPING_ID (order_date,
if_system,
business_dim_id,
time_dim_id,
account_dim_id,
ordertype_dim_id,
instr_dim_id,
execution_dim_id,
exec_exchange_dim_id
) GROUPING_ID,
/* ============ DIMENSIONS ============ */
time_dim_id, business_dim_id, account_dim_id, ordertype_dim_id,
instr_dim_id, execution_dim_id, exec_exchange_dim_id,
/* ============ MEASURES ============ */
-- o.FX_RATE /* FX_RATE */,
COUNT (*) no_orders,
-- SUM(NO_ORDERS) NO_ORDERS,
-- COUNT(NO_ORDERS) CNT_NO_ORDERS,
SUM (filled_quantity) filled_quantity,
COUNT (filled_quantity) cnt_filled_quantity, SUM (quantity) quantity,
COUNT (quantity) cnt_quantity, SUM (commission) commission,
COUNT (commission) cnt_commission, SUM (fills_number) fills_number,
COUNT (fills_number) cnt_fills_number,
SUM (aggressive_fills) aggressive_fills,
COUNT (aggressive_fills) cnt_aggressive_fills,
SUM (fx_rate * filled_quantity * average_price) notional,
COUNT (fx_rate * filled_quantity * average_price) cnt_notional,
SUM (fx_rate * fills_number * average_price) total_price,
COUNT (fx_rate * fills_number * average_price) cnt_total_price,
SUM (CASE
WHEN order_status = 'C'
THEN 1
ELSE 0
END) cancelled_orders_count,
COUNT (CASE
WHEN order_status = 'C'
THEN 1
ELSE 0
END
) cnt_cancelled_orders_count,
-- SUM(t.FX_RATE*t.NO_FILLS*t.AVG_PRICE) AVERAGE_PRICE,
-- SUM(FILLS_NUMBER*AVERAGE_PRICE) STAGING_AVERAGE_PRICE,
-- COUNT(FILLS_NUMBER*AVERAGE_PRICE) CNT_STAGING_AVERAGE_PRICE,
SUM (routed_orders_no) routed_orders_no,
COUNT (routed_orders_no) cnt_routed_orders_no,
SUM (routed_liquidity_qty) routed_liquidity_qty,
COUNT (routed_liquidity_qty) cnt_routed_liquidity_qty,
SUM (removed_liquidity_qty) removed_liquidity_qty,
COUNT (removed_liquidity_qty) cnt_removed_liquidity_qty,
SUM (added_liquidity_qty) added_liquidity_qty,
COUNT (added_liquidity_qty) cnt_added_liquidity_qty,
SUM (agent_charges) agent_charges,
COUNT (agent_charges) cnt_agent_charges,
SUM (clearing_charges) clearing_charges,
COUNT (clearing_charges) cnt_clearing_charges,
SUM (execution_charges) execution_charges,
COUNT (execution_charges) cnt_execution_charges,
SUM (transaction_charges) transaction_charges,
COUNT (transaction_charges) cnt_transaction_charges,
SUM (order_management) order_management,
COUNT (order_management) cnt_order_management,
SUM (settlement_charges) settlement_charges,
COUNT (settlement_charges) cnt_settlement_charges,
SUM (recovered_agent) recovered_agent,
COUNT (recovered_agent) cnt_recovered_agent,
SUM (recovered_clearing) recovered_clearing,
COUNT (recovered_clearing) cnt_recovered_clearing,
SUM (recovered_execution) recovered_execution,
COUNT (recovered_execution) cnt_recovered_execution,
SUM (recovered_transaction) recovered_transaction,
COUNT (recovered_transaction) cnt_recovered_transaction,
SUM (recovered_ord_mgt) recovered_ord_mgt,
COUNT (recovered_ord_mgt) cnt_recovered_ord_mgt,
SUM (recovered_settlement) recovered_settlement,
COUNT (recovered_settlement) cnt_recovered_settlement,
SUM (client_agent) client_agent,
COUNT (client_agent) cnt_client_agent,
SUM (client_order_mgt) client_order_mgt,
COUNT (client_order_mgt) cnt_client_order_mgt,
SUM (client_exec) client_exec, COUNT (client_exec) cnt_client_exec,
SUM (client_trans) client_trans,
COUNT (client_trans) cnt_client_trans,
SUM (client_clearing) client_clearing,
COUNT (client_clearing) cnt_client_clearing,
SUM (client_settle) client_settle,
COUNT (client_settle) cnt_client_settle,
SUM (chargeable_taxes) chargeable_taxes,
COUNT (chargeable_taxes) cnt_chargeable_taxes,
SUM (vendor_charge) vendor_charge,
COUNT (vendor_charge) cnt_vendor_charge,
SUM (routing_charges) routing_charges,
COUNT (routing_charges) cnt_routing_charges,
SUM (recovered_routing) recovered_routing,
COUNT (recovered_routing) cnt_recovered_routing,
SUM (client_routing) client_routing,
COUNT (client_routing) cnt_client_routing,
SUM (ticket_charges) ticket_charges,
COUNT (ticket_charges) cnt_ticket_charges,
SUM (recovered_ticket_charges) recovered_ticket_charges,
COUNT (recovered_ticket_charges) cnt_recovered_ticket_charges
FROM us_datamart_raw
GROUP BY order_date,
if_system,
business_dim_id,
time_dim_id,
account_dim_id,
ordertype_dim_id,
instr_dim_id,
execution_dim_id,
exec_exchange_dim_id;
-- Note: Index I_SNAP$_MV_US_DATAMART will be created automatically
-- by Oracle with the associated materialized view.
CREATE UNIQUE INDEX OS_OWNER.MV_US_DATAMART_UDX ON OS_OWNER.MV_US_DATAMART
(ORDER_DATE, TIME_DIM_ID, BUSINESS_DIM_ID, ACCOUNT_DIM_ID, ORDERTYPE_DIM_ID,
INSTR_DIM_ID, EXECUTION_DIM_ID, EXEC_EXCHANGE_DIM_ID)
NOLOGGING
NOPARALLEL
COMPRESS 7;
No of rows: 2228558
The query (taken Mondrian) I run against each of them is:
select sum("MV_US_DATAMART"."NOTIONAL") as "m0"
--, sum("MV_US_DATAMART"."FILLED_QUANTITY") as "m1"
--, sum("MV_US_DATAMART"."AGENT_CHARGES") as "m2"
--, sum("MV_US_DATAMART"."CLEARING_CHARGES") as "m3"
--, sum("MV_US_DATAMART"."EXECUTION_CHARGES") as "m4"
--, sum("MV_US_DATAMART"."TRANSACTION_CHARGES") as "m5"
--, sum("MV_US_DATAMART"."ROUTING_CHARGES") as "m6"
--, sum("MV_US_DATAMART"."ORDER_MANAGEMENT") as "m7"
--, sum("MV_US_DATAMART"."SETTLEMENT_CHARGES") as "m8"
--, sum("MV_US_DATAMART"."COMMISSION") as "m9"
--, sum("MV_US_DATAMART"."RECOVERED_AGENT") as "m10"
--, sum("MV_US_DATAMART"."RECOVERED_CLEARING") as "m11"
--,sum("MV_US_DATAMART"."RECOVERED_EXECUTION") as "m12"
--,sum("MV_US_DATAMART"."RECOVERED_TRANSACTION") as "m13"
--, sum("MV_US_DATAMART"."RECOVERED_ROUTING") as "m14"
--, sum("MV_US_DATAMART"."RECOVERED_ORD_MGT") as "m15"
--, sum("MV_US_DATAMART"."RECOVERED_SETTLEMENT") as "m16"
--, sum("MV_US_DATAMART"."RECOVERED_TICKET_CHARGES") as "m17"
--,sum("MV_US_DATAMART"."TICKET_CHARGES") as "m18"
--, sum("MV_US_DATAMART"."VENDOR_CHARGE") as "m19"
from "OS_OWNER"."MV_US_DATAMART" "MV_US_DATAMART"
where I uncomment a column at a time and rerun. I improved the TimesTen results since my first post, by retyping the NUMBER columns to BINARY_FLOAT. The results I got were:
No Columns ORACLE TimesTen
1 1.05 0.94
2 1.07 1.47
3 2.04 1.8
4 2.06 2.08
5 2.09 2.4
6 3.01 2.67
7 4.02 3.06
8 4.03 3.37
9 4.04 3.62
10 4.06 4.02
11 4.08 4.31
12 4.09 4.61
13 5.01 4.76
14 5.02 5.06
15 5.04 5.25
16 5.05 5.48
17 5.08 5.84
18 6 6.21
19 6.02 6.34
20 6.04 6.75 -
Oracle Lite + Resin + jdk1.2.2 or jdk 1.3.1 problem
Hi!
Can some one help me this the following:
I used Oracle Lite database, Resin app server and jdk1.2.2
When I try to connect my database through simple java-application, all goes fine! But, when I trying to get database communication from my application server and problem arise. First of all dll's such as
OLJDBC40.DLL, OLAD2040.DLL, OLOBJ40.DLL, OLOD2040.DLL OLSQL40.DLL are in the Path and JVM loads them at runtime. I got connection to DB. Than I try to get some DatabaseMetaData info and got EXCEPTION_ACCESS_VIOLATION (for jdk1.3) and "java.exe has generated error (for jdk1.2.2)" errors from VM.
So, any idea?
Any help apriciated...
RGS,
parasolkoHi,
I have got the similar problem when I used MS SQL server + Tomcat + JDK1.3.0 via JdbcOdbc driver. In that configuration the JVM crashs very often. It seems that JdbcOdbc's got unstable problem. Then, I tried other type 4 JDBC driver, it works fine and JVM won't crash. Try Sprinta 2000 JDBC driver, it's a type 4 driver and fast stable.
Ma
Maybe you are looking for
-
Five days ago I received an anonymous email with the subject: Your Apple ID was just used to buy full album Elton John £12.99.Your receipt No.37930343160405752 The content started: Content-Transfer-Encoding: base64 From:(my email address) followed by
-
Generate an error message in UIX
Dear sirs... how can i use ActionErrors in the UIX page to view a custom error message? thanks for any help.
-
RG1 report-Ztable_entries insertion
Hi Folks, Inorder to create a RG1 report the previous development team has created a ztable of the same strcuture as J_2IRG1BAL.But I was not able to find out how they are inserting the entires into this ztable. 1.Is there any possibility that they
-
Thick line through page text Ubuntu 12.04 FF 14.0.1
Using Ubuntu 12.04, FireFox 14.0.1 When displaying web pages there is a 'thick line' through page text. Unable to take a snapshot, the distortion disappears. This also happens if I reload the page. If I scroll up/down the distortion comes back. I uni
-
HP Probook: Trying to do factory reset from recovery drive
Hi I have a HP Probook 4510s I would like to do a factory recovery on. CDplayer doesnt work. When hitting F11 it will boot into a boot manager status 0xc0000225 error. Inside the Recovery partion there is a 7,3 GB HPFactory.wim file located at D:\sy