Skip to main content

Posts

Showing posts from December, 2017

COUNT STOPKEY ROWNUM optimization

No COUNT STOPKEY in explain plan :- ROWNUM optimization Product :- Oracle Server (Rdbms) Range of versions believed to be affected:-   12.1 confirmed affected:- 1. 11.1.0.7                                         2. 10.2.0.4 Platforms affected:-         all So i was doing explain plan for below SQL on database version 11.2.0.1.0  :- select * from test where rownum = 0; no rows selected Execution Plan ---------------------------------------------------------- Plan hash value: 1829668517 ------------------------------------------------------------------------------------- | Id  | Operation           | Name          | Rows  | Bytes | Cost (%CPU)| Time     | ------------------------------------------------------------------------------------- |   0 | SELECT STATEMENT...

SQL*Loader

SQL*Loader What is this? SQL*Loader loads data to an oracle database.With the help of SQL*Loader you can load data from external files to Oracle database. With the powerful data parsing engine that puts little limitation on the format of the data in the datafile. Below key points taken from Oracle documention:- 1. Load data across a network. This means that you can run the SQL*Loader client on a different system from the one that is running the SQL*Loader server. 2. Load data from multiple datafiles during the same load session. 3. Load data into multiple tables during the same load session. 4. Specify the character set of the data. 5. Selectively load data (you can load records based on the records' values). 6. Manipulate the data before loading it, using SQL functions. 7. Generate unique sequential key values in specified columns. 8. Use the operating system's file system to access the datafiles. 9. Load data from disk, tape, or named pipe. 10. Generate sophisticated error re...