Oracle is a relational DBMS (Database Management System) created by Oracle Corporation.
3
votes
1answer
20 views
How can I make my XML schema robust?
I am attempting to develop an XML schema (XSD) to represent a set of unit tests for some code. (Specifically, I am testing Oracle PL/SQL stored procedures.)
I would like to have something that ...
2
votes
1answer
74 views
Self Join Exercise. Have I over-complicated it?
This my 3rd question on the same exercise, but by no means a duplicate. The two previous questions were posted on StackOverflow here and here.
Now I'm posting my Oracle solution (below) that works. ...
0
votes
1answer
20 views
Is it always we have to take help of PL/SQL for storing string having 4000 and more characters in oracle?
Only the following statement worked rather than straight query or stored procedure for me for storing string that has 4000 and more characters. But why ?
declare tempVal varchar2(32767) := 'long ...
1
vote
0answers
46 views
More than 4000 chars gives string literal too long error on oracle [closed]
I am currently using oci8 driver on Codeigniter.
While updating a field that will have more than 4000 chars, I was given a error :
ORA-01704: string literal too long
So, going through few blogs, I ...
1
vote
1answer
227 views
Need to improve performance while merge CSV data into database drastically. What to do?
Kindly consider below scenario,
Base Functionality
Reading CSV file and insert in database after replacing values with web macro.
Reading values from csv @ first header information NO,NAME next to ...
0
votes
1answer
90 views
Simplify Oracle SQL Unions
I have the following SQL query I am trying to use (save/make easy future modifications to) that is essentially the same query over and over and over, UNIONed each time, with only minor changes to the ...
1
vote
2answers
186 views
How to optimize this SQL delete
I want to optimize the performance of this SQL query. If I populate this hashtable with one million keys the query will take around minute. How I can optimize this Java method for faster execution?
...
0
votes
1answer
83 views
Oracle Simple Stored Procedure issue [closed]
I have been having trouble compiling this SP:
CREATE OR REPLACE PROCEDURE CONTACT_CLEANUP()
IS
BEGIN
DELETE FROM CONTACT WHERE SEQID IN (SELECT SEQID FROM PURGE_CONTACT);
DELETE FROM DETAIL WHERE ...
3
votes
1answer
141 views
Parsing Oracle errors with a ksh function
Some time ago I wrote a small routine to run some quick n' dirty queries (and with that I mean it is not used for large queries) against an Oracle DB, but also wanted to do it a bit easier to parse ...
2
votes
1answer
113 views
Slow Oracle to MSSQL migration
I wrote a method that gathers data from an Oracle server, formats and encrypts the data then inserts it into a MS SQL server. The method moves about 60000 records and takes a bit long and is a little ...
3
votes
2answers
356 views
Oracle PL/SQL decryption function breaking index?
I have a package called pkg_crypto.
My select looks like this:
SELECT "SEQ", pkg_crypto.decrypt("NAME", 'secret') name, pkg_crypto.decrypt("TEL", 'secret') tel
FROM MYTABLE
ORDER BY "SEQ" DESC
...
1
vote
2answers
503 views
SQL query for adding column value to compare with other column
I have two tables
table_inventory
List item
inventory_rack_key(primarykey)
node_key
rack_id
inventory_item_key
in_coming_qty,locked_qty
quantity
table_item
...