oracle

How to use Oracle without transactions?

MySQL has special table type MyISAM that does not support transactions. Does Oracle has something like this? I'd like to create write-only database(for logging) that needs to be very fast(will store a lot of data) and doesnt need transactions. ...

How should date-based queries in Oracle be parameterised

ResultSet rs=st.executeQuery( "select j.vc_jo_no, j.dt_jo_date, p.vc_product_name from mst_jobcard j, mst_prod p where j.vc_product_code=p.vc_product_code and j.dt_jo_date=to_char("+tdate+","+"'"+dd-mm-yy+"'"+") "); In my specified query it should display the records based o...

Problems with TransactionScope and Oracle

Hello, we have written a C# 3.5 client talking to an Oracle database (11g) using the ODP.NET. This application has a batch process where a long running task is performed making various calls to the database within a TransactionScope. On our development environment all goes well, but at the UAT environment of one of our clients (who ha...

how to check up/down status of oracle reports server?

To check the status of database servers, I use tnsping utility. Is there any similar utility for checking reports server? Thanks. ...

Problems connecting to Oracle database from Java classes (ocijdbc11.dll)

I have some database import and export ant scripts that run little java programs to import and export data to and from oracle 11g. The scripts used to work on Vista 32 bit, but stopped working with Windows 7 64 bit. There are two versions of ocijdbc11.dll that I can use. When I use the 64bit version the error message is: java.lang.Unsa...

is there a tricky way to optimize this query

I'm working on a table that has 3008698 rows exam_date is a DATE field. But queries I run want to match only the month part. So what I do is: select * from my_big_table where to_number(to_char(exam_date, 'MM')) = 5; which I believe takes long because of function on the column. Is there a way to avoid this and make it faster? other ...

Oracle: Store "5-" as a number

SHORT VERSION: What is the best way of casting "5-" as a number for storing into a table as a number? LONG VERSION: Here is the issue, I have a table I am reading from primary made up of VARCHAR2s. I am grabbing the data from some fields and storing them in another table without modification. In one field I am getting "5-" and trying to...

How to archive a distributed (database) transaction between a java and c++ application?

I'd like to know how to archive a distributed (database) transaction between a java and a c++ application. Are there some frameworks/jdbc extensions to do this? What pitfalls may arise? The solution may be oracle-specific, but a more general approach (at least on the java side) would be prefered, if equal. ...

how to convert global temp table to collection/type in oracle procedure

I have a procedure that is using a temp table. I want to get rid of the temp table and use a collection to remove I/O. it has about 5000 records. I want to insert data into this collection then I want to access the collection like: select * from table(my_type_for_gtt) I could not find an example of this. I'm confused, do I have to fi...

count() query taking more than 20 seconds

Table_a = 7022536 rows Table_b (GTT) = 5601 rows Query: SELECT COUNT (a.ssn_head) FROM table_a a, table_b b WHERE b.hoh = a.head AND a.flag = 'Y'; takes 20+ seconds to bring 17214 records. Explain plan is: Plan hash value: 1901401324 -------------------------------------------------------------------------------- | Id |...

Are there OCI8 replacements for ADO MoveFirst and EOF, BOF?

I am researching the possibility of porting an application written in classic ASP with ADO record sets and an Oracle database to PHP5 and OCI8. We have lots of stored procedures and queries with bind variables for performance. My problem is that we have become lazy from using the ADO classes and the EOF and BOF indicators along with Mo...

How to implement database views in Ruby on Rails

I'm just wondering how to implement database views in Ruby on Rails. Can you guys put some working example? And thank you for every advises and examples. ...

Oracle Fusion Middleware comaprison with other leading middleware products in market

Hello, Anyone please provide "Oracle Fusion Middleware comaprison with other leading middleware products in market" based on features, cost, etc. ...

CTE With Insert In Oracle

i am running a query in oracle with CTE. When i execute the query it works fine in select statement but when i use insert statement it takes ample of time to execute.Any help here is the code INSERT INTO port_weeklydailypricesTest (co_code,start_dtm,end_dtm) SELECT * FROM ( WITH CTE(co_code, start_dtm, end_dtm) AS...

How to store an array of bytes in Oracle?

Hi, I want to store a short array of 64 bytes in Oracle database (a password hash). I thought char(64 byte) is what I need, but it seems like it doesn't work. In Microsoft SQL, I use binary and varbinary types. What type do I need to use in Oracle? Every example I've found uses blob to store binary data, but I suppose blob is intended ...

are there any ways to reverse engineer Oracle trigger or sort of decompile it?

Hi, Are there any way to decompile or reverse engineer Oracle trigger? Any tools available, any free ones? Thanks! ...

update multiple records in multiple nested tables in oracle

I have an oracle table with nested tables in some of the columns. Now, I need to be able to update all the records in each nested table, in each of the records of the main table. How is this accomplished? Any of the ways that I've tried, I get errors about either not be able to perform updates on that view, or single row subquery returns...

Database field definitions

Hi, I need to do a data migration from a data base and I'm not too familiar with databases so I would like some clarification. I have some documentation that could apply to either an Oracle or a SQL database and it has a column defined as NUMBER(10,5). I would like to know what this means. I think it means that the number has 10 digits ...

iBatis error when applying parameter map - Caused by SQLException: Cursor is closed

I am debugging an issue with a null ResultsMap returned from calling a stored procedure via iBatis for java. Here is a truncated copy of the exception I'm receiving. DataAccessException: Exception calling procedure Caused by: com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in ibatis-map.xml. --- The error ...

What datatype should I bind as query parameter to use with NUMBER(15) column in Oracle ODBC?

I have just been bitten by issue described in SO question Binding int64 (SQL_BIGINT) as query parameter causes error during execution in Oracle 10g ODBC. I'm porting a C/C++ application using ODBC 2 from SQL Server to Oracle. For numeric fields exceeding NUMBER(9) it uses __int64 datatype which is bound to queries as SQL_C_SBIGINT. Appa...