MS Access Query to Oracle
Hi Gurus
I am trying to convert a MS Access query to Oracle query, Having some trouble Need some help Please.
This is the MS Access Query:
Sum(IIf(LOAD1!ARRIVDATE<+Date()+7,LOADLINE1!QTY,0)/ITEM1!UOM) AS Loadtbl
What would be the Oracle Query???
Thank you
Hello,
well, the problem is the name of the column, ARRIVDATE< - while MS Access allows the "<" inside a column name, Oracle doesn't if you don't be careful. Please see this:
SQL> create table testtab1 (arrivdate varchar2(100));
Table created.
SQL> desc testtab1
Name Null? Type
ARRIVDATE VARCHAR2(100)
SQL> create table testtab2 (arrivdate< varchar2(100));
create table testtab2 (arrivdate< varchar2(100))
ERROR at line 1:
ORA-00902: invalid datatype
But this works:
SQL> create table testtab2("ARRIVDATE<" varchar2(100));
Table created.
SQL> desc testtab2
Name Null? Type
ARRIVDATE< VARCHAR2(100)
So your query might work if you put ARRIVDATE< in double quotes:
Sum(DECODE(LOAD1."ARRIVDATE<"+SYSDATE+7,LOADLINE1.QTY,0)/ITEM1.UOM) AS Loadtbl
Regards
Wolfgang
Edited by: wkobargs on Aug 8, 2012 7:51 AM
Edited by: wkobargs on Aug 8, 2012 7:59 AM
Edited by: wkobargs on Aug 8, 2012 8:00 AM
Similar Messages
-
Access Query to Oracle Query conversion
I am converting an Access database to Oracle 8.1.6.
There are lot of reports in Access. HOw can I convert the Access
query to Oracle equivalent query??? Is there any tool available
for conversion???FYI,
Microsoft Access is using ANSI SQL. And Oracle has introduced ANSI SQL from Oracle 9i so, it is also in 10g.
Oracle 10g does not stop backward compatibilty so, It is depends on person. And I am not forcing you to migrate query from ACCESS to Oracle. I have simply answer the question which you have asked. Whether you want to perform efficiently or not it's your choice.
But one thing is sure, ORACLE (9i or 10g) provides ANSI SQL and MS ACCESS is using ANSI sql so, this task is feasible. No doubt about it. -
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 -
Access Query to Oracle View Tool
We have a Access Database which creates forms and reports. It has lots of queries. we want the similar funtionalities in Oracle. Is there any tool that will convert these access queries to Oracle views. I used Migration workbench to convert the database but it can't convert the query.
FYI,
Microsoft Access is using ANSI SQL. And Oracle has introduced ANSI SQL from Oracle 9i so, it is also in 10g.
Oracle 10g does not stop backward compatibilty so, It is depends on person. And I am not forcing you to migrate query from ACCESS to Oracle. I have simply answer the question which you have asked. Whether you want to perform efficiently or not it's your choice.
But one thing is sure, ORACLE (9i or 10g) provides ANSI SQL and MS ACCESS is using ANSI sql so, this task is feasible. No doubt about it. -
Converting a MS Access Query to Oracle SQL
Hi,
We have a large number of MS Access (2000) queries (mostly select queries -Some containing sub queries-) that need to be converted to Oracle's syntax to be used on our intranet instead of the existing Access frontend.
Do you know of a tool that can do this?
We understand that conversion tools are not always reliable, but even if 75% of the queries are converted for us we can then focus on the ones that pose problems.
Regards,
Charles McGrottyHi Charles,
The next release of OMWB ( version 92017, due at the end of this year) will contain some support for Select and Action queries. In that version, we will load queries from the source MS Access database into the OMWB repository. Since the MS Access plugin for OMWB does not currently contain a parser, the query text will be commented out and surrounded in an Oracle View stub - this means that the queries can, at least, be migrated to Oracle and then manually converted by the migrator from within the Oracle database. Often, the body text for a select query exactly matches the syntax for an Oracle view, so the manual work required to convert the queries may be minimal. This will be the first step in migrating MS Access Queries that the OMWB provides.
I hope this information is useful,
Tom. -
How to convert Access query to Oracle?
I am trying to convert this query into an Oracle 8i query: -
SELECT *
FROM EMPLOYEE
LEFT JOIN ATTENDANCE ON EMPLOYEE.EMPID = ATTENDANCE.EMPID
WHERE ATTENDANCE.COL1="#"
AND ATTENDANCE.COL2>=#1/1/2007#
AND ATTENDANCE.COL2<Now()
GROUP BY EMPLOYEE.EMPID, EMPLOYEE.EMPNO;
How do I put the above query in plain Oracle join operator (+) notation? Thanks for the help.Hi,
Let us take a look at the solution you had suggested -
EMPLOYEE.EMPID = ATTENDANCE.EMPID (+)
AND ATTENDANCE.COL1="#"
AND ATTENDANCE.COL2 >= TO_DATE ('1/1/2007','dd/mm/yyyy')
AND ATTENDANCE.COL2< SYSDATE;
Since we are outer joining ATTENDANCE but not using the (+) operator in the later filter conditions; it will still be a normal join i.e. it will not outer join on ATTENDANCE. That is my question. -
Convert ms access query to oracle view
I was able to get bits and pieces of it to work, but not the whole thing. Let me know if you need the table structures.
/* Show some summary information about the open problems in the Security Info table */
select
"Monthly report hide"
, "Tracking id"
, "Status"
/* Show the date appropriate to the item status, if the item is open then show the */
/* open date, if the item is closed, show the closed date */
, decode("Status"='Closed',"Date closed","Date opened")
as "Item date"
, "Identifier"
, "TicketNumber"
/* Format deu date as ddd, m/d/yy */
, "Due Date"
/* show the person's name, id is kept in the table, DIR has cross ref */
, (SELECT DIR.COMMON_NAME_LAST
FROM DIR
WHERE "Primary id" = ID
) as "Primary Staff"
/* A separate table holds the status information for each problem, use the last */
/* entry for this tracking id */
, (select LAST("Status info")
from SECINFOSTATUS
where "Tracking id" = "Tracking id ref"
group by
) as "Status Info"
/* The next three fields are taken from the referenced organization links. There */
/* are multipe entries for each tracking id in the referenced organization links */
/* table. Use the first entry for the referenced tracking id. The first entry is */
/* the one with the lowest "Ref link id" in SECINFOREFDORGLINKS. */
, (select "Ref name"
from SECINFOREFDORGLINKS
where "Tracking id" = "Tracking id ref"
and "Ref link id" = (select min("Ref link id")
from SECINFOREFDORGLINKS
where "Tracking id" = "Tracking id ref")
) as "Primary Ref Org"
, (select "Ref reference number"
from SECINFOREFDORGLINKS
where "Tracking id" = "Tracking id ref"
and "Ref link id" = (select min("Ref link id")
from SECINFOREFDORGLINKS
where "Tracking id" = "Tracking id ref")
) as "Primary Ref Id"
, (select "Ref link"
from SECINFOREFDORGLINKS
where "Tracking id" = "Tracking id ref"
and "Ref link id" = (select min("Ref link id")
from SECINFOREFDORGLINKS
where "Tracking id" = "Tracking id ref")
) as "Primary Ref Link"
from SECINFO
/* Report only open problems. */
where "Status" = 'Open'
order by "Tracking id" DESCWith some formatting (not easy in this forum at the moment I admit) it looks like this:
SELECT "Monthly report hide"
, "Tracking id"
, "Status"
, DECODE("Status",
'Closed',"Date closed", "Date opened") AS "Item date"
, "Identifier"
, "TicketNumber"
, "Due Date"
, ( SELECT dir.common_name_last
FROM dir
WHERE "Primary id" = id ) AS "Primary Staff"
, ( SELECT LAST("Status info")
FROM secinfostatus
WHERE "Tracking id" = "Tracking id ref"
GROUP BY ??? ) AS "Status Info"
, ( SELECT "Ref name"
FROM secinforefdorglinks
WHERE "Tracking id" = "Tracking id ref"
AND "Ref link id" =
( SELECT MIN("Ref link id")
FROM secinforefdorglinks
WHERE "Tracking id" = "Tracking id ref" ) ) AS "Primary Ref Org"
, ( SELECT "Ref reference number"
FROM secinforefdorglinks
WHERE "Tracking id" = "Tracking id ref"
AND "Ref link id" =
( SELECT MIN("Ref link id")
FROM secinforefdorglinks
WHERE "Tracking id" = "Tracking id ref") ) AS "Primary Ref Id"
, ( SELECT "Ref link"
FROM secinforefdorglinks
WHERE "Tracking id" = "Tracking id ref"
AND "Ref link id" =
( SELECT MIN("Ref link id")
FROM secinforefdorglinks
WHERE "Tracking id" = "Tracking id ref" ) ) AS "Primary Ref Link"
FROM secinfo
WHERE "Status" = 'Open'
ORDER BY "Tracking id" DESC;It's made harder by those quoted column names - if you can change them to Oracle-standard names it should be easier to work with.
As Khurram points out the main problem is that LAST() expression with half a GROUP BY clause. I'm guessing you want the last "Status info" value in order of some date or sequence key? -
MS Access Crosstab to Oracle SQL
Gurus,
I am trying to convert MS Access Query to Oracle SQL, What would be the Oracle query for this MS Access Crosstab Query?
I am working on Oracle 10g so, I can't take advantage of oracle PIVOT function.
Thank you
Edited by: 951334 on Aug 10, 2012 6:52 AM
Edited by: 951334 on Aug 13, 2012 5:51 AMif your crosstab columns are static you can use well-known technique like
select tablespace_name,
sum(case segment_type when 'TABLE' then bytes end) TABLES_BYTES,
sum(case segment_type when 'INDEX' then bytes end) INDEXES_BYTES,
sum(case segment_type when 'LOBSEGMENT' then bytes end) LOB_BYTES
from dba_segments
group by tablespace_name;
for dynamic crosstab columns you require to build this query dynamically in application -
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 -
How to connect access database through oracle sql prompt
i want to connect access database via oracle , i am trying to import all the data in Access table into oracle table how it is possible .
A.RThe simplest way, if You have already created tables in Oracle DB, is to open the Access MDB, link Oracle tables via ODBC and build a query to append rows reading from Access tables to Oracle tables.
Hope this helps
Max -
Convert IIF Access SQL to Oracle SQL...
I am in the process of converting a MS Access application to VB.Net with Oracle database behind. However I am having a problem converting an MS Access Query that contains IIF statements into an Oracle SQL command. Below is the MS Access SQL code:
SELECT PDTABLE_132.UNIQUE_CLASH_ID, CISClashStatusTbl.Approval_Type AS Clash_Status, CISClashTypeTbl.Clash_Type, *IIf([TEMP_ACTION_DISCIPLINE] Is Null,"UNALOCATED",[TEMP_ACTION_DISCIPLINE]) AS ACTION_DISCIPLINE*, *IIf([CISDisciplineTbl].[Discipline] Is Null,[PD_2910A_PDTABLE_111].[DISCIPLINE_NAME],[CISDisciplineTbl].[Discipline]) AS TEMP_ACTION_DISCIPLINE*
FROM ((((((((((((PDTABLE_132 INNER JOIN PD_2910A_PDTABLE_113 ON PDTABLE_132.MODEL_INDEX_NO_A = PD_2910A_PDTABLE_113.MODEL_INDEX_NO) INNER JOIN PD_2910A_PDTABLE_113 AS PD_2910A_PDTABLE_113_1 ON PDTABLE_132.MODEL_INDEX_NO_B = PD_2910A_PDTABLE_113_1.MODEL_INDEX_NO) INNER JOIN PDTABLE_119 ON PD_2910A_PDTABLE_113.MODEL_INDEX_NO = PDTABLE_119.MODEL_INDEX_NO) INNER JOIN PDTABLE_119 AS PDTABLE_119_1 ON PD_2910A_PDTABLE_113_1.MODEL_INDEX_NO = PDTABLE_119_1.MODEL_INDEX_NO) LEFT JOIN CISClashStatusTbl ON PDTABLE_132.IF_APPROVAL_STATUS = CISClashStatusTbl.Approval_Code) LEFT JOIN CISClashTypeTbl ON PDTABLE_132.RECENT_CLASH_TYPE = CISClashTypeTbl.Clash_Code) INNER JOIN PD_2910A_PDTABLE_112 ON PD_2910A_PDTABLE_113.AREA_INDEX_NO = PD_2910A_PDTABLE_112.AREA_INDEX_NO) INNER JOIN PD_2910A_PDTABLE_112 AS PD_2910A_PDTABLE_112_1 ON PD_2910A_PDTABLE_113_1.AREA_INDEX_NO = PD_2910A_PDTABLE_112_1.AREA_INDEX_NO) LEFT JOIN CISOwnerTbl ON PDTABLE_132.UNIQUE_CLASH_ID = CISOwnerTbl.UNIQUE_CLASH_ID) LEFT JOIN CISDisciplineTbl ON CISOwnerTbl.Discipline_Code = CISDisciplineTbl.Discipline_Code) LEFT JOIN PD_2910A_PDTABLE_111 ON PDTABLE_132.ACTION_DISCIPLINE = PD_2910A_PDTABLE_111.DISCIPLINE_INDX_NO) LEFT JOIN PD_2910A_PDTABLE_111 AS PD_2910A_PDTABLE_111_1 ON PDTABLE_132.DISCIPLINE_INDEX_A = PD_2910A_PDTABLE_111_1.DISCIPLINE_INDX_NO) LEFT JOIN PD_2910A_PDTABLE_111 AS PD_2910A_PDTABLE_111_2 ON PDTABLE_132.DISCIPLINE_INDEX_B = PD_2910A_PDTABLE_111_2.DISCIPLINE_INDX_NO
ORDER BY PDTABLE_132.UNIQUE_CLASH_ID;
Any help would really be appreshiated.
Thanks in advance
Simon
Edited by: user8275408 on 21-Jan-2010 07:25Hi, Simon,
Welcome to the forum!
An Oracle equivalent of
IIf(TEMP_ACTION_DISCIPLINE Is Null,"UNALOCATED",TEMP_ACTION_DISCIPLINE) AS ACTION_DISCIPLINEis
CASE
WHEN TEMP_ACTION_DISCIPLINE Is Null
THEN 'UNALOCATED'
ELSE TEMP_ACTION_DISCIPLINE
END AS ACTION_DISCIPLINE, This assumes that temp_action_discipline is a string. (All THEN and ELSE clauses must return the same data type, or at least compatable types.)
CASE is the most general way of doing IF-THE-ELSE logic in Oracle SQL.
For certain special situations, there may be shorter ways.
Testing a variable to see whether it is NULL or not is one of those situations, so you could also say
NVL2 ( TEMP_ACTION_DISCIPLINE
, TEMP_ACTION_DISCIPLINE
, 'UNALOCATED'
This site noramally compresses whitespace. Whenever you post formatted text here (and code should always be formatted), type these 6 characters:
(all small letters, inside curly brackets) before and after formatted sections.
Edited by: Frank Kulash on Jan 21, 2010 10:41 AM
After reading Bluefrog's answer, I realized that you're testing and possibly returning the same thing, temp_action_discipline.
In that case, NVL, like Bluefrog suggested, is the best thing to do. CASE and NVL2, as shown above, will give the right results, but they're more complicated than you need for this job. -
Accessing Postgres from Oracle using DG4ODBC and psqlodbc very slow
I have set up DG4ODBC on a Windows 2003 32-bit 11g Oracle database to access a Windows 2008 64-bit 9.1 Postgres database, using the psqlodbc driver (32-bit).
I am able to issue queries, but they are very slow. The reason is that the where clause of the query is being removed somewhere along the line (I have seen the actual queries run by Postgres using pgAdmin server status screen), and all the rows in the table are retrieved from Postgres. Naturally with tables bigger than a few rows that means doing a full table scan in Postgres, as well as transferring lots of bytes through the network.
For instance, if I query from Oracle like this: select * from "dps_user"@pg where "id" = '2423', the sql run at Postgres is this: select * from dps_user, which retrieves all rows on the table! When I get the query result in Oracle, I only get the row with id 2423, so I assume that Oracle gets the whole table, and does the filtering at its end.
In a 32-bit Windows XP separate machine I have set up the same psqlodbc driver, and I have run the same query using Microsoft Query. In this case, the query run in Postgres contains the where clause, and therefore it is much faster because a unique index scan is performed in Postgres, and only one row is transferred back to Microsoft Query.
Could you help me, please?
Thanks a lot,
CarlosHi Mike,
Thanks a lot for your help. The gateway version must be 11.2.0.3 since the Oracle database has patchset 11.2.0.3 applied.
This is the ini file once I changed the trace level:
HS_FDS_CONNECT_INFO = pg
HS_FDS_TRACE_LEVEL = 255
I tried this query:
select *
from dps_user
where id = 'W106606';
Where dps_user is a view on the Oracle database which translates to this:
CREATE OR REPLACE FORCE VIEW dps_user (ID,
login,
first_name,
last_name,
lastactivity_date,
registration_date,
email,
email_status,
receive_email
AS
SELECT "id", "login", "first_name", "last_name", "lastactivity_date",
"registration_date", "email", "email_status", "receive_email"
FROM "dynamo_web"."dps_user"@pg.es.lladro.com;
The generated trace file is:
Oracle Corporation --- JUEVES MAY 09 2013 18:13:35.968
Heterogeneous Agent Release
11.2.0.3.0
Oracle Corporation --- JUEVES MAY 09 2013 18:13:35.968
Version 11.2.0.3.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
setting HS_FDS_RECOVERY_PWD to default value
setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
setting HS_IDLE_TIMEOUT to default of 0
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "UCS2"
setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
setting HS_FDS_DATE_MAPPING to default of "DATE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
setting HS_FDS_QUOTE_IDENTIFIER to default of "TRUE"
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
Default value of 32 assumed for HS_FDS_SQLLEN_INTERPRETATION
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
setting HS_FDS_DELAYED_OPEN to default of "TRUE"
setting HS_FDS_WORKAROUNDS to default of "0"
Exiting hgosdip, rc=0
ORACLE_SID is "PG"
Product-Info:
Port Rls/Upd:3/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.2.0.3.0_0011, Instance:PG
Exiting hgogprd, rc=0
hostmstr: 2051219456: HOA After hoagprd
hostmstr: 2051219456: HOA Before hoainit
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=178
HOCXU_DRV_NCHAR=1000
HOCXU_DB_CSET=873
HS_LANGUAGE not specified
rc=1000 attempting to get LANG environment variable.
HOCXU_SEM_VER=112000
Entered hgolofn at 2013/05/09-18:13:36
Exiting hgolofn, rc=0 at 2013/05/09-18:13:36
HOSGIP for "HS_OPEN_CURSORS" returned "50"
HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
Invalid value of 32 given for HS_FDS_SQLLEN_INTERPRETATION
treat_SQLLEN_as_compiled = 1
Exiting hgoinit, rc=0 at 2013/05/09-18:13:36
hostmstr: 2051219456: HOA After hoainit
hostmstr: 2051219456: HOA Before hoalgon
Entered hgolgon at 2013/05/09-18:13:36
reco:0, name:dynamoselect, tflag:0
Entered hgosuec at 2013/05/09-18:13:36
Exiting hgosuec, rc=0 at 2013/05/09-18:13:36
HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using dynamoselect as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
Entered hgocont at 2013/05/09-18:13:36
HS_FDS_CONNECT_INFO = "pg"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2013/05/09-18:13:36
dsn:pg, name:dynamoselect
optn:
Entered hgocip at 2013/05/09-18:13:36
dsn:pg
Exiting hgocip, rc=0 at 2013/05/09-18:13:36
##>Connect Parameters (len=40)<##
## DSN=pg;
#! UID=dynamoselect;
#! PWD=*
Exiting hgogenconstr, rc=0 at 2013/05/09-18:13:36
Entered hgolosf at 2013/05/09-18:13:36
ODBC Function-Available-Array 0xFFFE 0x01FF 0xFF00 0xFA7F 0x03DF 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0xFE00 0x3B5C
Exiting hgolosf, rc=0 at 2013/05/09-18:13:36
DriverName:PSQLODBC35W.DLL, DriverVer:09.01.0100
DBMS Name:PostgreSQL, DBMS Version:9.1.7
Exiting hgocont, rc=0 at 2013/05/09-18:13:36
SQLGetInfo returns Y for SQL_CATALOG_NAME
SQLGetInfo returns 0 for SQL_MAX_CATALOG_NAME_LEN
Exiting hgolgon, rc=0 at 2013/05/09-18:13:36
hostmstr: 2049228800: HOA After hoalgon
RPC Calling nscontrol(0), rc=0
hostmstr: 2049228800: RPC Before Upload Caps
hostmstr: 2049228800: HOA Before hoaulcp
Entered hgoulcp at 2013/05/09-18:13:36
Entered hgowlst at 2013/05/09-18:13:36
Exiting hgowlst, rc=0 at 2013/05/09-18:13:36
SQLGetInfo returns 0x1d for SQL_OWNER_USAGE
TXN Capable:2, Isolation Option:0xa
SQLGetInfo returns 64 for SQL_MAX_SCHEMA_NAME_LEN
SQLGetInfo returns 64 for SQL_MAX_TABLE_NAME_LEN
SQLGetInfo returns 0 for SQL_MAX_PROCEDURE_NAME_LEN
HOSGIP returned value of "TRUE" for HS_FDS_QUOTE_IDENTIFIER
SQLGetInfo returns " (0x22) for SQL_IDENTIFIER_QUOTE_CHAR
2 instance capabilities will be uploaded
capno:1989, context:0x00000000, add-info: 0
capno:1992, context:0x0001ffff, add-info: 0
Exiting hgoulcp, rc=0 at 2013/05/09-18:13:36
hostmstr: 2049228800: HOA After hoaulcp
hostmstr: 2049228800: RPC After Upload Caps
hostmstr: 2049228800: RPC Before Upload DDTR
hostmstr: 2049228800: HOA Before hoauldt
Entered hgouldt at 2013/05/09-18:13:36
NO instance DD translations were uploaded
Exiting hgouldt, rc=0 at 2013/05/09-18:13:36
hostmstr: 2049228800: HOA After hoauldt
hostmstr: 2049228800: RPC After Upload DDTR
hostmstr: 2049228800: RPC Before Begin Trans
hostmstr: 2049228800: HOA Before hoabegn
Entered hgobegn at 2013/05/09-18:13:36
tflag:0 , initial:1
hoi:0x12f090, ttid (len 39) is ...
00: 44455341 322E4553 2E4C4C41 44524F2E [DESA2.ES.LLADRO.]
10: 434F4D2E 65336530 30323865 2E31312E [COM.e3e0028e.11.]
20: 332E3133 303836 [3.13086]
tbid (len 36) is ...
00: 44455341 322E4553 2E4C4C41 44524F2E [DESA2.ES.LLADRO.]
10: 434F4D5B 31312E33 2E313330 38365D5B [COM[11.3.13086][]
20: 312E345D [1.4]]
Exiting hgobegn, rc=0 at 2013/05/09-18:13:36
hostmstr: 2049228800: HOA After hoabegn
hostmstr: 2049228800: RPC After Begin Trans
hostmstr: 2049228800: RPC Before Describe Table
hostmstr: 2049228800: HOA Before hoadtab
Entered hgodtab at 2013/05/09-18:13:36
count:1
table: dynamo_web.dps_user
Allocate hoada[0] @ 033A88D4
Entered hgopcda at 2013/05/09-18:13:36
Column:1(id): dtype:-9 (WVARCHAR), prc/scl:40/0, nullbl:0, octet:80, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:2(login): dtype:-9 (WVARCHAR), prc/scl:100/0, nullbl:0, octet:200, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:3(auto_login): dtype:12 (VARCHAR), prc/scl:5/0, nullbl:1, octet:-1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:4(password): dtype:-9 (WVARCHAR), prc/scl:35/0, nullbl:1, octet:70, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:5(member): dtype:12 (VARCHAR), prc/scl:5/0, nullbl:1, octet:-1, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:6(first_name): dtype:-9 (WVARCHAR), prc/scl:60/0, nullbl:1, octet:120, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:7(middle_name): dtype:-9 (WVARCHAR), prc/scl:40/0, nullbl:1, octet:80, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:8(last_name): dtype:-9 (WVARCHAR), prc/scl:60/0, nullbl:1, octet:120, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:9(user_type): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:10(locale): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:11(lastactivity_date): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:12(registration_date): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:13(email): dtype:-9 (WVARCHAR), prc/scl:100/6, nullbl:1, octet:200, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:14(email_status): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:15(receive_email): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:16(gender): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:17(date_of_birth): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
Entered hgopcda at 2013/05/09-18:13:36
Column:18(securitystatus): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2013/05/09-18:13:36
The hoada for table dynamo_web.dps_user follows...
hgodtab, line 1092: Printing hoada @ 033A88D4
MAX:18, ACTUAL:18, BRC:1, WHT=6 (TABLE_DESCRIBE)
hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR,0x400:UNICODE_COLUMN,0x20:NEGATIVE_HOADADTY,0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
12 VARCHAR N 80 80 128/ 40 1000 0 440 id
12 VARCHAR N 200 200 128/100 1000 0 440 login
-1 LONGVARCHAR Y 0 0 0/ 0 0 0 220 auto_login
12 VARCHAR Y 70 70 128/ 35 1000 0 440 password
-1 LONGVARCHAR Y 0 0 0/ 0 0 0 220 member
12 VARCHAR Y 120 120 128/ 60 1000 0 440 first_name
12 VARCHAR Y 80 80 128/ 40 1000 0 440 middle_name
12 VARCHAR Y 120 120 128/ 60 1000 0 440 last_name
-5 BIGINT Y 8 8 0/ 0 0 0 20 user_type
-5 BIGINT Y 8 8 0/ 0 0 0 20 locale
91 DATE Y 16 16 0/ 0 0 0 0 lastactivity_date
91 DATE Y 16 16 0/ 0 0 0 0 registration_date
12 VARCHAR Y 200 200 128/100 1000 0 440 email
-5 BIGINT Y 8 8 0/ 0 0 0 20 email_status
-5 BIGINT Y 8 8 0/ 0 0 0 20 receive_email
-5 BIGINT Y 8 8 0/ 0 0 0 20 gender
91 DATE Y 16 16 0/ 0 0 0 0 date_of_birth
-5 BIGINT Y 8 8 0/ 0 0 0 20 securitystatus
Exiting hgodtab, rc=0 at 2013/05/09-18:13:36
hostmstr: 2048180224: HOA After hoadtab
hostmstr: 2048180224: HOA Before hoadafr
Entered hgodafr, cursor id 0 at 2013/05/09-18:13:36
Free hoada @ 033A88D4
Exiting hgodafr, rc=0 at 2013/05/09-18:13:36
hostmstr: 2048180224: HOA After hoadafr
hostmstr: 2048180224: RPC After Describe Table
hostmstr: 2048180224: RPC Before SQL Bundling
hostmstr: 2048180224: HOA Before hoxpars
Entered hgopars, cursor id 1 at 2013/05/09-18:13:36
type:0
SQL text from hgopars, id=1, len=152 ...
00: 53454C45 43542022 6964222C 226C6F67 [SELECT "id","log]
10: 696E222C 22666972 73745F6E 616D6522 [in","first_name"]
20: 2C226C61 73745F6E 616D6522 2C226C61 [,"last_name","la]
30: 73746163 74697669 74795F64 61746522 [stactivity_date"]
40: 2C227265 67697374 72617469 6F6E5F64 [,"registration_d]
50: 61746522 2C22656D 61696C22 2C22656D [ate","email","em]
60: 61696C5F 73746174 7573222C 22726563 [ail_status","rec]
70: 65697665 5F656D61 696C2220 46524F4D [eive_email" FROM]
80: 20226479 6E616D6F 5F776562 222E2264 [ "dynamo_web"."d]
90: 70735F75 73657222 [ps_user"]
Exiting hgopars, rc=0 at 2013/05/09-18:13:56
hostmstr: 2001973248: HOA After hoxpars
hostmstr: 2001973248: HOA Before hoxopen
Entered hgoopen, cursor id 1 at 2013/05/09-18:13:56
hgoopen, line 87: NO hoada to print
Deferred open until first fetch.
Exiting hgoopen, rc=0 at 2013/05/09-18:13:56
hostmstr: 2001973248: HOA After hoxopen
hostmstr: 2001973248: HOA Before hoxdscr
Entered hgodscr, cursor id 1 at 2013/05/09-18:13:56
Allocate hoada @ 033A88BC
Entered hgodscr_process_sellist_description at 2013/05/09-18:13:56
Entered hgopcda at 2013/05/09-18:13:56
Column:1(id): dtype:-9 (WVARCHAR), prc/scl:40/0, nullbl:0, octet:80, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:56
Entered hgopcda at 2013/05/09-18:13:56
Column:2(login): dtype:-9 (WVARCHAR), prc/scl:100/0, nullbl:0, octet:200, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:56
Entered hgopcda at 2013/05/09-18:13:57
Column:3(first_name): dtype:-9 (WVARCHAR), prc/scl:60/0, nullbl:1, octet:120, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
Entered hgopcda at 2013/05/09-18:13:57
Column:4(last_name): dtype:-9 (WVARCHAR), prc/scl:60/0, nullbl:1, octet:120, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
Entered hgopcda at 2013/05/09-18:13:57
Column:5(lastactivity_date): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:120, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
Entered hgopcda at 2013/05/09-18:13:57
Column:6(registration_date): dtype:93 (TIMESTAMP), prc/scl:26/6, nullbl:1, octet:120, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
Entered hgopcda at 2013/05/09-18:13:57
Column:7(email): dtype:-9 (WVARCHAR), prc/scl:100/0, nullbl:1, octet:200, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
Entered hgopcda at 2013/05/09-18:13:57
Column:8(email_status): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:200, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
Entered hgopcda at 2013/05/09-18:13:57
Column:9(receive_email): dtype:-5 (BIGINT), prc/scl:19/0, nullbl:1, octet:200, sign:1, radix:0
Exiting hgopcda, rc=0 at 2013/05/09-18:13:57
hgodscr, line 464: Printing hoada @ 033A88BC
MAX:9, ACTUAL:9, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR,0x400:UNICODE_COLUMN,0x20:NEGATIVE_HOADADTY)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
12 VARCHAR N 80 80 128/ 40 1000 0 440 id
12 VARCHAR N 200 200 128/100 1000 0 440 login
12 VARCHAR Y 120 120 128/ 60 1000 0 440 first_name
12 VARCHAR Y 120 120 128/ 60 1000 0 440 last_name
91 DATE Y 16 16 0/ 0 0 0 0 lastactivity_date
91 DATE Y 16 16 0/ 0 0 0 0 registration_date
12 VARCHAR Y 200 200 128/100 1000 0 440 email
-5 BIGINT Y 8 8 0/ 0 0 0 20 email_status
-5 BIGINT Y 8 8 0/ 0 0 0 20 receive_email
Exiting hgodscr, rc=0 at 2013/05/09-18:13:57
hostmstr: 2001973248: HOA After hoxdscr
hostmstr: 2001973248: RPC After SQL Bundling
hostmstr: 2001973248: RPC Before Fetch Row
hostmstr: 2001973248: HOA Before hoaftch
Entered hgoftch, cursor id 1 at 2013/05/09-18:13:57
hgoftch, line 133: Printing hoada @ 033A88BC
MAX:9, ACTUAL:9, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR,0x400:UNICODE_COLUMN,0x20:NEGATIVE_HOADADTY)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
12 VARCHAR N 80 80 128/ 40 1000 0 440 id
12 VARCHAR N 200 200 128/100 1000 0 440 login
12 VARCHAR Y 120 120 128/ 60 1000 0 440 first_name
12 VARCHAR Y 120 120 128/ 60 1000 0 440 last_name
91 DATE Y 16 16 0/ 0 0 0 0 lastactivity_date
91 DATE Y 16 16 0/ 0 0 0 0 registration_date
12 VARCHAR Y 200 200 128/100 1000 0 440 email
-5 BIGINT Y 8 8 0/ 0 0 0 20 email_status
-5 BIGINT Y 8 8 0/ 0 0 0 20 receive_email
Performing delayed open.
SQLBindCol: column 1, cdatatype: -8, bflsz: 82
SQLBindCol: column 2, cdatatype: -8, bflsz: 202
SQLBindCol: column 3, cdatatype: -8, bflsz: 122
SQLBindCol: column 4, cdatatype: -8, bflsz: 122
SQLBindCol: column 5, cdatatype: 93, bflsz: 16
SQLBindCol: column 6, cdatatype: 93, bflsz: 16
SQLBindCol: column 7, cdatatype: -8, bflsz: 202
SQLBindCol: column 8, cdatatype: -25, bflsz: 8
SQLBindCol: column 9, cdatatype: -25, bflsz: 8
SQLFetch: row: 1, column 1, bflsz: 82, bflar: 14
SQLFetch: row: 1, column 1, bflsz: 82, bflar: 14, (bfl: 80, mbl: 80)
SQLFetch: row: 1, column 2, bflsz: 202, bflar: 54
SQLFetch: row: 1, column 2, bflsz: 202, bflar: 54, (bfl: 200, mbl: 200)
SQLFetch: row: 1, column 3, bflsz: 122, bflar: 10
SQLFetch: row: 1, column 3, bflsz: 122, bflar: 10, (bfl: 120, mbl: 120)
SQLFetch: row: 1, column 4, bflsz: 122, bflar: 8
SQLFetch: row: 1, column 4, bflsz: 122, bflar: 8, (bfl: 120, mbl: 120)
SQLFetch: row: 1, column 5, bflsz: 16, bflar: -1
SQLFetch: row: 1, column 5, bflsz: 16, bflar: SQL_NULL_DATA
SQLFetch: row: 1, column 6, bflsz: 16, bflar: 16
SQLFetch: row: 1, column 6, bflsz: 16, bflar: 16, (bfl: 16, mbl: 16)
SQLFetch: row: 1, column 7, bflsz: 202, bflar: 44
SQLFetch: row: 1, column 7, bflsz: 202, bflar: 44, (bfl: 200, mbl: 200)
SQLFetch: row: 1, column 8, bflsz: 8, bflar: 8
SQLFetch: row: 1, column 8, bflsz: 8, bflar: 8, (bfl: 8, mbl: 8)
SQLFetch: row: 1, column 9, bflsz: 8, bflar: 8
SQLFetch: row: 1, column 9, bflsz: 8, bflar: 8, (bfl: 8, mbl: 8)
SQLFetch: row: 2, column 1, bflsz: 82, bflar: 14
SQLFetch: row: 2, column 1, bflsz: 82, bflar: 14, (bfl: 0, mbl: 80)
(I have clipped it because it is huge, since all rows from the table are brought into Oracle. In fact, the query did not finish yet because the process dg4odbc.exe is busy writing the trace file, I may have to kill it ).
Thanks a lot,
Carlos -
Oracle Streams b/w MS-Access 2007 and Oracle 10g.
Can we set up Oracle Streams between MS-Access 2007 and Oracle 10g? Ms-Access as source and Oracle 10g as destination database. If so, can any one please give me little heads up with supported doc's or any source of info.
Help Help....!!!
-
Hello,
I need to provide access to a Oracle (v 8) table via MS Access 2000. I am doing so via Link Tables in MS Access.
But I am not able to see the new tables that I created, in the list of tables available for linking from the Oracle schema, in Access.
How can I rectify this?
Thank you.
Raj
Message was edited by:
user492218I think you'd need to contact Oracle support to get access to older versions of the driver.
Since 8.0.5 isn't supported any longer, however, is it possible for you to update your Oracle client to one of the supported releases-- 8.1.7 or 9i?
Justin -
How can i view the data from Access DB in oracle
pls tell me that how can i view the data of MS ACCESS DATABASE in ORACLE.i was use ODBC of ACCESS DATABASE AND THEN CREATE DATABASE LINK IN ORACLE BUT NOT YET SUCCEEDED.PLS TELL ME THE PROCEDURE.
regard'shi,
u nedd to use Oracle Hetrogeneous Services,,
full details of the procedure u may fing on metalink
Regards
Maybe you are looking for
-
I really, really need to convert a VOB video file to some other format so I can edit it. This is a studio produced televised interview which I want to chop into 304 minute segments and post on Youtube and my web site. I read the discussion (#1936489)
-
Resize a multiple page document in Indesign CC
How do you resize a multiple page document in Indesign CC so the content stays centered. If I do it from Document Setup it resizes from the top left. This use to work from Indesign CS6. Thanks, Rod
-
PLanning Values GP12N ( GL Accounts)
Hello, Kindly guide me how we can enter PLanning values for General Ledger Accounts. PLs let me know what is the procedure or necessary things we need to do before posting planning values for GL Accounts. Thanks... Regards, Venkat
-
Messed up menu button with Libreoffice 4.4.0 and Plasma 5.2
Libreoffice 4.4 menus look like this when using Plasma 5.2: http://imgur.com/CJ9hKIL It does not depend on the libreoffice icon theme. Is there something I can do to fix this or should I report a bug (to whom? KDE or Libreoffice?) Last edited by Wu (
-
Special effects software to complement imovie
Anyone know of affordable special effects software that is easy to use. Blender has been frustrating. I am looking to add special effects to my movies and then format them in imovie. Thanks in advance for any suggestions.