oracle

Alternatives to connect to ORACLE database server without install the Oracle client.

i am looking for an Delphi component to connect to an ORACLE database server in an direct way without install the oracle client. i knew the Oracle Data Access (ODAC) from DevArt. there are any other component with this capability? ODAC offers two connection modes to the Oracle server: connection through the Oracle Call Interface...

Is there an equivalent to sp_getapplock, sp_releaseapplock in oracle

I need the ability to use custom locks at a session level (outside the scope of a transaction) in oracle. In MSSQL I am using sp_getapplock, sp_releaseapplock. How can I achieve the same functionality in Oracle? ...

Comma Separated values in Oracle

I have a column with comma separated values like 6,7,99.3334. I need write a PL SQL procedure that will give me these values separately. The Length of the column is 40. Can anyone help me with this? ...

How do you find out about deprecated features in a new release of Oracle?

Friends, If I want to know about the new features of Oracle 11gR2 Database I can use the New Features Guide. Is there such a guide that lists functionality, features, parameters etc. that I should no longer be using because they have been superseded or deprecated? If there isn't such a guide, which I suspect, what do you do to find ...

Download Oracle Database 10g Release 10.1.0.2.0

Hi, where could I find such edition of Oracle? I need exact this and as I saw oracle.com doesn't support it anymore. ...

sorting two tables (full join)

i'm joining tables like: select * from tableA a full join tableB b on a.id = b.id But the output should be: row without null fields row with null fields in tableB row with null fields in tableA Like: a.id a.name b.id b.name 5 Peter 5 Jones 2 Steven 2 Pareker 6 Paul null null 4 Ivan null null null...

make multiple, composite query in oracle

How can i make multiple, composite query in oracle? for example this several queries in one step? 1 CREATE TABLE test (id NUMBER PRIMARY KEY, name VARCHAR2(30)); 2 CREATE SEQUENCE test_sequence START WITH 1 INCREMENT BY 1; 3 CREATE OR REPLACE TRIGGER test_trigger BEFORE INSERT ON test REFERENCING NEW AS NEW FOR EACH ROW BEGIN SE...

django setup with Apache, mod_wsgi and cx_Oracle

Hi, I need to setup the same django project on several identical servers. Details: - os - free edition of oracle enterprise linux 5 - Apache / mod_wsgi - python - custom python2.6 installation - oracle db with cx_Oracle What is the simplest way to set it up? Would you recommend creating a system user for the django project and use daem...

Converting table columns to key value pairs

I am writing a PL/SQL procedure that loads some data from Schema A into Schema B. They are both very different schemas and I can't change the structure of Schema B. Columns in various tables in Schema A (joined together in a view) need to be inserted into Schema B as key=>value pairs in 2 columns in a table, each on a separate row. For ...

SQLPlus - spooling to multiple files from PL/SQL blocks

I have a query that returns a lot of data into a CSV file. So much, in fact, that Excel can't open it - there are too many rows. Is there a way to control spool to spool to a new file everytime 65000 rows have been processed? Ideally, I'd like to have my output in files named in sequence, such as large_data_1.csv, large_data_2.csv, large...

How do I return count and not count in a SQL query?

Hi, If I have a table AgentID | IsNew | TeamID 1 N 1 2 Y 2 3 Y 2 4 N 2 5 Y 1 I want to return the following from a query: Team | CountIsNew = N | CountIsNew = Y 1 1 1 2 1 2 Is there a way I can do this? Using Oracle 10 ...

How to avoid this very heavy query that slows down the application?

Hi, We have a web application running in a production enviroment and at some point the client complained about how slow the application got. When we checked what was going on with the application and the database we discover this "precious" query that was being executed by several users at the same time (thus inflicting an extremely hi...

Better way to set unix permissions when deploying war file

We have a vendor application where we download their updates and deploy a war file. We are deploying the war file on a unix application server running oracle application server 9i. I believe when we deploy the war file, we remove the previous install and then deploy the new war file. When we deploy the war file, sometimes we have to m...

Oracle 10g - Determine the average of concurrent connections

Hello all, Is it possible to determine the average of concurrent connections on a 10g large database installation? Any ideas?? ...

How do I load the Oracle schema into memory instead of the hard drive?

I have a certain web application that makes upwards of ~100 updates to an Oracle database in succession. This can take anywhere from 3-5 minutes, which sometimes causes the webpage to time out. A re-design of the application is scheduled soon but someone told me that there is a way to configure a "loader file" which loads the schema into...

What is the MySQL equivelent of Oracle's Enterprise Manager

I understand that Oracle will at some point add support for MySQL to its Enterprise Manager software. However I'd like to know perhaps from other Oracle to MySQL migrants what tools are available for monitoring the queries, activity and resource usage happening on a MySQL database instance. ...

Rails: constraint violation on create but not on update

Note: This is a "railsier" (and more succinct) version of this question, which was getting a little long. I'm getting Rails behavior on a production server that I can't replicate on the development server. The codebases are identical save for credentials and caching settings, and both are powered by Oracle 10g databases with identical s...

Help required on Random Access with Oracle Outside In Technology (Stellent Content Access)

I am trying to use the Stellent (Oracle Outside In Technology) to extract/export data out of various files & archives. Now, I heard that in the later version I can use Stellent APIs to randomly access/parse to a particular file. Now this approach would be helpful when compared to the sequential approach. Can you kindly point me to some...

how to create unique keyword in the oracle db?

hi, i am using autocomplete with oracle Db,how to create unique keyword for the table. KEYWORD VARCHAR2(100) COUNT NUMBER(18) how can i make as unique can plz tell the query ...

How to use SQL trigger to record the affected column's row number

I want to have an 'updateinfo' table in order to record every update/insert/delete operations on another table. In oracle I've written this: CREATE TABLE updateinfo ( rnumber NUMBER(10), tablename VARCHAR2(100 BYTE), action VARCHAR2(100 BYTE), UPDATE_DATE date ) DROP TRIGGER TRI_TABLE; CREATE OR REPLACE TRIGGER TRI_TABLE AFTER DELETE ...