- Thursday, July 1, 2010, 22:06
- How-To, Oracle
- 235 views
Most of the times, production data is not available in development environments. Here, I would like to share a single sql command which can generate random data. But before that, let's address another issue faced by a lot of new oracle users. We need to generate a sequence of numbers using a sql statement. This will generate a number sequence. ...
Full story
- Thursday, June 24, 2010, 14:21
- How-To, Oracle
- 1,152 views
Deleting duplicate rows from tables is one of the common task oracle developers come across. The data might get duplicated because of missing primary/unique key on the table or batch file getting loaded multiple times. Here I have tried to summarize different ways of deleting this duplicated data. Please note that this is not an extensive list ...
Full story
- Monday, June 21, 2010, 18:29
- Oracle
- 568 views
The effective usage of an index is always a big question. There are instances in production environments, where an index may help the performance of just a single query, while it can degrade the performance of a number of queries. Always the Optimizer can’t guarantee the best suitable index required for the query in an environment ...
Full story
- Wednesday, June 16, 2010, 19:59
- How-To, Oracle
- 363 views
As the data grows in relational databases (new business requirements, managing audit data etc), the cost associated with the disk systems to store that data and the resources required to manage them becomes vital. Oracle understands this requirement and it is continuously implementing and improving on the compression techniques and algorithms while simultaneously meeting the application scalability ...
Full story
- Tuesday, February 16, 2010, 20:21
- Database, Oracle
- 1,801 views
The Primary Key(PK) constraint is the most basic concept of any RDBMS (I am particularly interested in Oracle). Yet, I have noticed people getting confused when it comes to the practical usage and asking questions like:
- I have disabled PK and now oracle is doing full table scan.
- How PK constraints and indexes are related/different?
- How ...
Full story
- Tuesday, September 22, 2009, 14:13
- Database, J2EE
- 5,682 views
Database Connection Pooling is a great technique used by lot of application servers to optimize the performance. Database Connection creation is a costly task thus it impacts the performance of application. Hence lot of application server creates a database connection pool which are pre initiated db connections that can be leverage to increase performance.
Apache Tomcat ...
Full story
- Wednesday, August 12, 2009, 17:42
- Database, Oracle
- 2,825 views
Although I work mainly in Java/J2EE, recently I had a requirement in Oracle to take temporary backup of a table and compare the data of original table with this backup table. So I had to copy the data from table A to a temp table TA.
First I tried creating temp table normally and copied the ...
Full story
- Monday, May 18, 2009, 18:46
- Database
- 4,565 views
Ever thought why would one need to fetch random rows from a database table? You may want to display some random information (like articles/pages/links) to your user.
I had a requirement wherein I had to fetch 10 random rows from MySQL database and display it on screen. I used following simple query for retrieving random records ...
Full story
- Wednesday, April 22, 2009, 18:45
- How-To, MySQL
- 2,659 views
Have you ever thought how does the search functionality is implemented in all the websites! Most of the internet blogs and websites are powered by MySQL database. MySQL provides a wonderful way (Full-text Search) of implementing a little search engine in your website. All you have to do is to have MySQL 4.x and above. MySQL ...
Full story
- Monday, March 16, 2009, 10:57
- MySQL, PHP, Web 2.0
- 12,587 views
The basic idea this time is to present a way to form a tag cloud from user input text and text entered in the past. A tag cloud is a visual depiction of user-generated tags, or simply the word content of a site, used typically to describe the content of web sites.
for this we will create an HTML form that will accept user text & also ...
Full story