ORACLE8I - COALESCING INDEXES
제품 : ORACLE SERVER
작성날짜 : 2004-08-16
[ORACLE8I] COALESCING INDEXES
==============================
PURPOSE
이 문서는 Oracle 8i의 new feature인 coalescing indexes에 대해 기술한다.
SCOPE
8i~10g Standard Edition 에서는 Index coalesce 기능을 지원하지 않는다.
Explanation
1. Index coalesce 개관
index fragmentation은 index rebuild나 coalesce로 조정 할 수 있다.
Oracle 8i의 신기능가운데 index를 rebuild 하는 대신
coalesce하는 기능이 추가되었다.
B-tree 형태의 인덱스를 사용할 경우 free 상태가 된
leaf block 들을 ALTER INDEX 명령의 coalesce옵션을
사용하여 병합할 수 있다.
2. 예제
ALTER INDEX SCOTT.EMP_IDX COALESCE;
ALTER INDEX 명령에서 coalesce는 병합 가능한 block중에서
기존에 사용중이던 index block의 내용을 병합할 수 있을
경우에만 적용된다.
3. COALESCE 옵션의 장단점
단점 : INDEX를 다른 tablespace로 옮길 수 없다.
장점 : 추가 disk 공간을 필요로 하지 않는다.
Tree의 동일한 branch상의 leaf block들만을 병합한다.
Leaf block을 신속하게 사용가능한 상태로 만든다.
4. REBUILD 옵션의 장단점
단점 : 추가 disk 공간이 필요하다. (내부적으로 지정된 tablespace에
create후 기존의 index를 drop하므로)
기존에 사용하던 index를 사용하는 것이 아니라
새로운 index를 생성한다.
장점 : 인덱스를 신속하게 다른 tablespace로 옮길수 있다.
Index를 drop시키지 않고도 storage나 tablespace관련
parameter를 변경할 수 있다.
Reference Ducumment
Note:99618.1
Oracle 8i Administrator's Guide Chapter 16
Can you post the exact error message? I thought function-based indexes were enabled by default, but it's probably a parameter in init.ora and the error might give us a clue about which one.
--> Steve
(My Oracle on Linux Installation HOWTO at www.zx81.org.uk)
Similar Messages
-
Index size keep growing while table size unchanged
Hi Guys,
I've got some simple and standard b-tree indexes that keep on acquiring new extents (e.g. 4MB per week) while the base table size kept unchanged for years.
The base tables are some working tables with DML operation and nearly same number of records daily.
I've analysed the schema in the test environment.
Those indexes do not fulfil the criteria for rebuild as follows,
- deleted entries represent 20% or more of the current entries
- the index depth is more then 4 levels
May I know what cause the index size keep growing and will the size of the index reduced after rebuild?
Grateful if someone can give me some advice.
Thanks a lot.
Best regards,
TimmyPlease read the documentation. COALESCE is available in 9.2.
Here is a demo for coalesce in 10G.
YAS@10G>truncate table t;
Table truncated.
YAS@10G>select segment_name,bytes from user_segments where segment_name in ('T','TIND');
SEGMENT_NAME BYTES
T 65536
TIND 65536
YAS@10G>insert into t select level from dual connect by level<=10000;
10000 rows created.
YAS@10G>commit;
Commit complete.
YAS@10G>
YAS@10G>select segment_name,bytes from user_segments where segment_name in ('T','TIND');
SEGMENT_NAME BYTES
T 196608
TIND 196608We have 10,000 rows now. Let's delete half of them and insert another 5,000 rows with higher keys.
YAS@10G>delete from t where mod(id,2)=0;
5000 rows deleted.
YAS@10G>commit;
Commit complete.
YAS@10G>insert into t select level+10000 from dual connect by level<=5000;
5000 rows created.
YAS@10G>commit;
Commit complete.
YAS@10G>select segment_name,bytes from user_segments where segment_name in ('T','TIND');
SEGMENT_NAME BYTES
T 196608
TIND 327680Table size is the same but the index size got bigger.
YAS@10G>exec show_space('TIND',user,'INDEX');
Unformatted Blocks ..................... 0
FS1 Blocks (0-25) ..................... 0
FS2 Blocks (25-50) ..................... 6
FS3 Blocks (50-75) ..................... 0
FS4 Blocks (75-100)..................... 0
Full Blocks ..................... 29
Total Blocks............................ 40
Total Bytes............................. 327,680
Total MBytes............................ 0
Unused Blocks........................... 0
Unused Bytes............................ 0
Last Used Ext FileId.................... 4
Last Used Ext BlockId................... 37,001
Last Used Block......................... 8
PL/SQL procedure successfully completed.We have 29 full blocks. Let's coalesce.
YAS@10G>alter index tind coalesce;
Index altered.
YAS@10G>select segment_name,bytes from user_segments where segment_name in ('T','TIND');
SEGMENT_NAME BYTES
T 196608
TIND 327680
YAS@10G>exec show_space('TIND',user,'INDEX');
Unformatted Blocks ..................... 0
FS1 Blocks (0-25) ..................... 0
FS2 Blocks (25-50) ..................... 13
FS3 Blocks (50-75) ..................... 0
FS4 Blocks (75-100)..................... 0
Full Blocks ..................... 22
Total Blocks............................ 40
Total Bytes............................. 327,680
Total MBytes............................ 0
Unused Blocks........................... 0
Unused Bytes............................ 0
Last Used Ext FileId.................... 4
Last Used Ext BlockId................... 37,001
Last Used Block......................... 8
PL/SQL procedure successfully completed.The index size is still the same but now we have 22 full and 13 empty blocks.
Insert another 5000 rows with higher key values.
YAS@10G>insert into t select level+15000 from dual connect by level<=5000;
5000 rows created.
YAS@10G>commit;
Commit complete.
YAS@10G>select segment_name,bytes from user_segments where segment_name in ('T','TIND');
SEGMENT_NAME BYTES
T 262144
TIND 327680Now the index did not get bigger because it could use the free blocks for the new rows. -
ORA-01418: specified index does not exist though the index exist !!
Hi all,
This problem occures only sometimes. I'm getting the list of indexes from the user_indexes table and later perform on them a rebuild operation by using the command :
Alter index index_name coalesce
This might cause on some indexes to the following error:
ORA-01418: specified index does not exist
I know these indexes exist and I didn't find any reson for this situation.
Does anyone have any idea about it ?
Thanks,
LitalThe index name can be created in sensitive case. Try to use double-quote.
Alter index "index_name" coalesce;That give something like this :
SCOTT@demo102> create index "Titi" on emp2(empno);
Index created.
SCOTT@demo102> alter index titi coalesce;
alter index titi coalesce
ERROR at line 1:
ORA-01418: specified index does not exist
SCOTT@demo102> alter index "Titi" coalesce;
Index altered.
SCOTT@demo102> Nicolas.
Add example
Message was edited by:
N. Gasparotto -
ORA-03001- unimplemented feature in 9.i
When I'm trying to create a table with BLOB datatype. I'm getting the error code ORA-03001: unimplemented feature.
example:
CREATE TABLE "GAR_ADMIN"."AAA"
("A1" NUMBER(10) NOT NULL,
"A2" BLOB NOT NULL,
PRIMARY KEY("A1"), UNIQUE("A1"))
TABLESPACE "TSPC_GAR_DAT_S01.DAT"
I'm running under Oracle 9.i (VMS Alpha)
Has anyone had the ORA-03001 unimplemented feature problem?SQL> create table hh ( c1 blob );
Table created.
SQL> col parameter format a50
SQL> col value format a20
SQL>
SQL> r
1* select * from v$option
PARAMETER VALUE
Partitioning FALSE
Objects TRUE
Parallel Server FALSE
Advanced replication TRUE
Bit-mapped indexes TRUE
Connection multiplexing TRUE
Connection pooling TRUE
Database queuing TRUE
Incremental backup and recovery TRUE
Instead-of triggers TRUE
Parallel backup and recovery TRUE
PARAMETER VALUE
Parallel execution TRUE
Parallel load TRUE
Point-in-time tablespace recovery TRUE
Fine-grained access control TRUE
N-Tier authentication/authorization TRUE
Function-based indexes TRUE
Plan Stability TRUE
Online Index Build TRUE
Coalesce Index TRUE
Managed Standby TRUE
Materialized view rewrite TRUE
PARAMETER VALUE
Materialized view warehouse refresh TRUE
Database resource manager TRUE
Spatial TRUE
Visual Information Retrieval TRUE
Export transportable tablespaces TRUE
Transparent Application Failover TRUE
Fast-Start Fault Recovery TRUE
Sample Scan TRUE
Duplexed backups TRUE
Java FALSE
OLAP Window Functions TRUE
33 rows selected.
SQL>
SQL> select * from v$version;
BANNER
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
PL/SQL Release 8.1.7.0.0 - Production
CORE 8.1.7.0.0 Production
TNS for Linux: Version 8.1.7.0.0 - Development
NLSRTL Version 3.4.1.0.0 - Production
SQL>
I can do it in my database, make a comparison of the options enable between your version and mine.
Joel Pérez -
What is the difference between OEE and OSE
What is the difference b/w
Oracle8i Enterprise Edition and Oracle8i Standard Edition?
Which version I choose to install the Oracle Server?The real difference between one and the another one are the options installed in the database. I have a document where you can see in detail what options have one and what options have the another one.
Which version I choose to install the Oracle Server?
r.- That is quite related to what options you need for your applications. Options like : partitioning, etc.
With this view you can see what options are available in your database.
SQL> select * from v$option;
PARAMETER VALUE
Partitioning TRUE
Objects TRUE
Real Application Clusters FALSE
Advanced replication TRUE
Bit-mapped indexes TRUE
Connection multiplexing TRUE
Connection pooling TRUE
Database queuing TRUE
Incremental backup and recover TRUE
y
PARAMETER VALUE
Instead-of triggers TRUE
Parallel backup and recovery TRUE
Parallel execution TRUE
Parallel load TRUE
Point-in-time tablespace recov TRUE
ery
Fine-grained access control TRUE
Proxy authentication/authoriza TRUE
tion
PARAMETER VALUE
Change Data Capture TRUE
Plan Stability TRUE
Online Index Build TRUE
Coalesce Index TRUE
Managed Standby TRUE
Materialized view rewrite TRUE
Materialized view warehouse re TRUE
fresh
Database resource manager TRUE
Spatial TRUE
PARAMETER VALUE
Visual Information Retrieval TRUE
Export transportable tablespac TRUE
es
Transparent Application Failov TRUE
er
Fast-Start Fault Recovery TRUE
Sample Scan TRUE
Duplexed backups TRUE
Java TRUE
PARAMETER VALUE
OLAP Window Functions TRUE
Block Media Recovery TRUE
Fine-grained Auditing TRUE
Application Role TRUE
Enterprise User Security TRUE
Oracle Data Guard TRUE
Oracle Label Security FALSE
OLAP TRUE
Heap segment compression TRUE
Join index TRUE
Trial Recovery TRUE
PARAMETER VALUE
Oracle Data Mining TRUE
Online Redefinition TRUE
Streams TRUE
Very Large Memory TRUE
File Mapping TRUE
48 rows selected.
SQL>
Joel P�rez -
Hi all,
I am facing 'ora-00001: Unique constraint(SYSMAN.MGMT_PRIV_GRANTS_PK) violated' while upgrading 10.2.0.4 database to 11.2.0.3 using DBUA. Need urgent help in resolving this.
Thanks
SandeepHi srini,
Yes, all the actions required by pre-upgrade tool are performed.
In our case dbua related logs are present in $ORACLE_BASE/cfgtoollogs/dbua/logs folder.
Files under this folder are:
1.) sqls.log 2.) trace.log
Last 100 lines from trace.log file
[Thread-52] [ 2012-10-24 13:59:01.749 GMT+05:30 ] [Util.<init>:95] Util Instance created.
[Thread-52] [ 2012-10-24 13:59:01.762 GMT+05:30 ] [OracleHome.getVersion:889] OracleHome.getVersion called. Current Version: null
[Thread-52] [ 2012-10-24 13:59:01.768 GMT+05:30 ] [InventoryUtil.getOUIInvSession:347] setting OUI READ level to ACCESSLEVEL_READ_LOCKLESS
[Thread-52] [ 2012-10-24 13:59:01.769 GMT+05:30 ] [OracleHome.getVersion:908] Homeinfo /nhi2/app/oracle11g/product/11.2.0/dbhome_1,7
[Finalizer thread] [ 2012-10-24 13:59:01.822 GMT+05:30 ] [Util.finalize:126] Util: finalized called for oracle.ops.mgmt.has.Util@a360a36
[Finalizer thread] [ 2012-10-24 13:59:01.822 GMT+05:30 ] [Util.finalize:126] Util: finalized called for oracle.ops.mgmt.has.Util@1700170
[Thread-52] [ 2012-10-24 13:59:01.960 GMT+05:30 ] [OracleHome.getVersion:936] OracleHome.server.getVersion Version: 11.2.0.3.0
[Thread-52] [ 2012-10-24 13:59:01.960 GMT+05:30 ] [OracleHome.getVersion:957] Current Version From Inventory: 11.2.0.3.0
[Thread-52] [ 2012-10-24 13:59:01.960 GMT+05:30 ] [OracleHome.getVersion:889] OracleHome.getVersion called. Current Version: 11.2.0.3.0
[Thread-52] [ 2012-10-24 13:59:01.961 GMT+05:30 ] [OracleHome.getVersion:957] Current Version From Inventory: 11.2.0.3.0
[Thread-52] [ 2012-10-24 13:59:01.961 GMT+05:30 ] [CommonUtils.createPasswordFile:604] calling new orapwd for 11.1 or higher
[Thread-52] [ 2012-10-24 13:59:01.963 GMT+05:30 ] [OsUtilsBase.execProg:2183] beginning execProg with input array.
[Thread-52] [ 2012-10-24 13:59:02.046 GMT+05:30 ] [OsUtilsBase.execProg:2220] finished execProg with input array. Status:0
[Thread-52] [ 2012-10-24 13:59:02.046 GMT+05:30 ] [OracleHome.initOptions:1236] Initializing Database Options with for dummy sid=DBUA5901749 using initfile=/nhi2/app/oracle11g/product/11.2.0/dbhome_1/dbs/initDBUA5901749.ora using pwdfile=/nhi2/app/oracle11g/product/11.2.0/dbhome_1/dbs/orapwDBUA5901749
[Thread-52] [ 2012-10-24 13:59:02.047 GMT+05:30 ] [OracleHome.getVersion:889] OracleHome.getVersion called. Current Version: 11.2.0.3.0
[Thread-52] [ 2012-10-24 13:59:02.047 GMT+05:30 ] [OracleHome.getVersion:957] Current Version From Inventory: 11.2.0.3.0
[Thread-52] [ 2012-10-24 13:59:02.047 GMT+05:30 ] [OracleHome.getVersion:889] OracleHome.getVersion called. Current Version: 11.2.0.3.0
[Thread-52] [ 2012-10-24 13:59:02.047 GMT+05:30 ] [OracleHome.getVersion:957] Current Version From Inventory: 11.2.0.3.0
[Thread-52] [ 2012-10-24 13:59:02.047 GMT+05:30 ] [OracleHome.getVersion:889] OracleHome.getVersion called. Current Version: 11.2.0.3.0
[Thread-52] [ 2012-10-24 13:59:02.048 GMT+05:30 ] [OracleHome.getVersion:957] Current Version From Inventory: 11.2.0.3.0
[Thread-52] [ 2012-10-24 13:59:02.048 GMT+05:30 ] [SQLPlusEngine.getCmmdParams:222] m_home 11.2.0.3.0
[Thread-52] [ 2012-10-24 13:59:02.048 GMT+05:30 ] [SQLPlusEngine.getCmmdParams:223] version > 112 true
[Thread-52] [ 2012-10-24 13:59:02.048 GMT+05:30 ] [SQLEngine.getEnvParams:555] Default NLS_LANG: AMERICAN_AMERICA.AL32UTF8
[Thread-52] [ 2012-10-24 13:59:02.049 GMT+05:30 ] [SQLEngine.getEnvParams:565] NLS_LANG: AMERICAN_AMERICA.AL32UTF8
[Thread-52] [ 2012-10-24 13:59:02.049 GMT+05:30 ] [SQLEngine.initialize:325] Execing SQLPLUS/SVRMGR process...
[Thread-52] [ 2012-10-24 13:59:02.087 GMT+05:30 ] [SQLEngine.initialize:362] m_bReaderStarted: false
[Thread-52] [ 2012-10-24 13:59:02.090 GMT+05:30 ] [SQLEngine.initialize:366] Starting Reader Thread...
[Thread-52] [ 2012-10-24 13:59:02.227 GMT+05:30 ] [OracleHome.initOptions:1248] executing: startup nomount pfile='/nhi2/app/oracle11g/product/11.2.0/dbhome_1/dbs/initDBUA5901749.ora'
[Thread-52] [ 2012-10-24 13:59:29.944 GMT+05:30 ] [OracleHome.initOptions:1259] executing: select parameter from v$option where value='TRUE'
[Thread-52] [ 2012-10-24 13:59:29.966 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Partitioning is ON
[Thread-52] [ 2012-10-24 13:59:29.967 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Objects is ON
[Thread-52] [ 2012-10-24 13:59:29.967 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Advanced replication is ON
[Thread-52] [ 2012-10-24 13:59:29.967 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Bit-mapped indexes is ON
[Thread-52] [ 2012-10-24 13:59:29.967 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Connection multiplexing is ON
[Thread-52] [ 2012-10-24 13:59:29.967 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Connection pooling is ON
[Thread-52] [ 2012-10-24 13:59:29.967 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Database queuing is ON
[Thread-52] [ 2012-10-24 13:59:29.968 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Incremental backup and recovery is ON
[Thread-52] [ 2012-10-24 13:59:29.968 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Instead-of triggers is ON
[Thread-52] [ 2012-10-24 13:59:29.968 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Parallel backup and recovery is ON
[Thread-52] [ 2012-10-24 13:59:29.968 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Parallel execution is ON
[Thread-52] [ 2012-10-24 13:59:29.968 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Parallel load is ON
[Thread-52] [ 2012-10-24 13:59:29.968 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Point-in-time tablespace recovery is ON
[Thread-52] [ 2012-10-24 13:59:29.969 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Fine-grained access control is ON
[Thread-52] [ 2012-10-24 13:59:29.969 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Proxy authentication/authorization is ON
[Thread-52] [ 2012-10-24 13:59:29.969 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Change Data Capture is ON
[Thread-52] [ 2012-10-24 13:59:29.969 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Plan Stability is ON
[Thread-52] [ 2012-10-24 13:59:29.969 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Online Index Build is ON
[Thread-52] [ 2012-10-24 13:59:29.972 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Coalesce Index is ON
[Thread-52] [ 2012-10-24 13:59:29.972 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Managed Standby is ON
[Thread-52] [ 2012-10-24 13:59:29.972 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Materialized view rewrite is ON
[Thread-52] [ 2012-10-24 13:59:29.973 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Database resource manager is ON
[Thread-52] [ 2012-10-24 13:59:29.973 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Spatial is ON
[Thread-52] [ 2012-10-24 13:59:29.973 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Export transportable tablespaces is ON
[Thread-52] [ 2012-10-24 13:59:29.973 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Transparent Application Failover is ON
[Thread-52] [ 2012-10-24 13:59:29.973 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Fast-Start Fault Recovery is ON
[Thread-52] [ 2012-10-24 13:59:29.974 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Sample Scan is ON
[Thread-52] [ 2012-10-24 13:59:29.974 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Duplexed backups is ON
[Thread-52] [ 2012-10-24 13:59:29.974 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Java is ON
[Thread-52] [ 2012-10-24 13:59:29.974 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option OLAP Window Functions is ON
[Thread-52] [ 2012-10-24 13:59:29.974 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Block Media Recovery is ON
[Thread-52] [ 2012-10-24 13:59:29.974 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Fine-grained Auditing is ON
[Thread-52] [ 2012-10-24 13:59:29.975 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Application Role is ON
[Thread-52] [ 2012-10-24 13:59:29.975 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Enterprise User Security is ON
[Thread-52] [ 2012-10-24 13:59:29.975 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Oracle Data Guard is ON
[Thread-52] [ 2012-10-24 13:59:29.975 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option OLAP is ON
[Thread-52] [ 2012-10-24 13:59:29.975 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Basic Compression is ON
[Thread-52] [ 2012-10-24 13:59:29.976 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Join index is ON
[Thread-52] [ 2012-10-24 13:59:29.976 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Trial Recovery is ON
[Thread-52] [ 2012-10-24 13:59:29.976 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Data Mining is ON
[Thread-52] [ 2012-10-24 13:59:29.976 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Online Redefinition is ON
[Thread-52] [ 2012-10-24 13:59:29.976 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Streams Capture is ON
[Thread-52] [ 2012-10-24 13:59:29.977 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option File Mapping is ON
[Thread-52] [ 2012-10-24 13:59:29.977 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Block Change Tracking is ON
[Thread-52] [ 2012-10-24 13:59:29.977 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Flashback Table is ON
[Thread-52] [ 2012-10-24 13:59:29.977 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Flashback Database is ON
[Thread-52] [ 2012-10-24 13:59:29.977 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Transparent Data Encryption is ON
[Thread-52] [ 2012-10-24 13:59:29.978 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Backup Encryption is ON
[Thread-52] [ 2012-10-24 13:59:29.978 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Unused Block Compression is ON
[Thread-52] [ 2012-10-24 13:59:29.978 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Result Cache is ON
[Thread-52] [ 2012-10-24 13:59:29.978 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option SQL Plan Management is ON
[Thread-52] [ 2012-10-24 13:59:29.978 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option SecureFiles Encryption is ON
[Thread-52] [ 2012-10-24 13:59:29.979 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Real Application Testing is ON
[Thread-52] [ 2012-10-24 13:59:29.979 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Flashback Data Archive is ON
[Thread-52] [ 2012-10-24 13:59:29.979 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option DICOM is ON
[Thread-52] [ 2012-10-24 13:59:29.992 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Active Data Guard is ON
[Thread-52] [ 2012-10-24 13:59:29.992 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Server Flash Cache is ON
[Thread-52] [ 2012-10-24 13:59:29.992 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Advanced Compression is ON
[Thread-52] [ 2012-10-24 13:59:29.992 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option XStream is ON
[Thread-52] [ 2012-10-24 13:59:29.993 GMT+05:30 ] [OracleHome.initOptions:1265] Database Option Deferred Segment Creation is ON
[Thread-52] [ 2012-10-24 13:59:29.993 GMT+05:30 ] [OracleHome.initOptions:1269] executing: select version from v$timezone_file
[Thread-52] [ 2012-10-24 13:59:29.997 GMT+05:30 ] [OracleHome.initOptions:1275] Timezone file version is 14
[Thread-52] [ 2012-10-24 13:59:31.019 GMT+05:30 ] [SQLEngine.done:2189] Done called
[Thread-52] [ 2012-10-24 13:59:31.020 GMT+05:30 ] [OsUtilsBase.deleteFile:1863] OsUtilsBase.deleteFile: /nhi2/app/oracle11g/product/11.2.0/dbhome_1/dbs/initDBUA5901749.ora
[Thread-52] [ 2012-10-24 13:59:31.034 GMT+05:30 ] [OsUtilsBase.deleteFile:1863] OsUtilsBase.deleteFile: /nhi2/app/oracle11g/product/11.2.0/dbhome_1/dbs/orapwDBUA5901749
[Thread-52] [ 2012-10-24 13:59:31.042 GMT+05:30 ] [OracleHome.initOptions:1316] Diag cleanup /nhi2/app/oracle11g/product/11.2.0/dbhome_1/log/diag/rdbms/dbua5901749
[Thread-52] [ 2012-10-24 13:59:31.564 GMT+05:30 ] [OracleHome.initOptions:1324] Database Options queried: 60
[Thread-52] [ 2012-10-24 13:59:31.564 GMT+05:30 ] [CompManager.setLoggingDirForDB:6992] Create logging folder for database=baan
[Thread-52] [ 2012-10-24 13:59:31.565 GMT+05:30 ] [CompManager.createUniqueDirs:6953] create createUniqueDirs logging folder=/nhi2/app/oracle11g/cfgtoollogs/dbua/baan/upgrade
[Thread-52] [ 2012-10-24 13:59:31.566 GMT+05:30 ] [CompManager.createUniqueDirs:6965] create createUniqueDirs logging folder=/nhi2/app/oracle11g/cfgtoollogs/dbua/baan/upgrade1
[Thread-52] [ 2012-10-24 13:59:31.574 GMT+05:30 ] [CompManager.createUniqueDirs:6973] create SUCCESS for folder=/nhi2/app/oracle11g/cfgtoollogs/dbua/baan/upgrade1
Thanks,
Sandeep Vadlamudi -
Oracle standard editon vs standard editon one
Hi experts
How can we determine whether we have oracle standard editon vs standard editon one installed
this is for 11g Rel 2
thanksso if
SQL> show parameter cluster_database
NAME TYPE VALUE
cluster_database boolean FALSE
cluster_database_instances integer 1
does it means it is SE and not SE1
select * from v$option
Partitioning FALSE
Objects TRUE
Real Application Clusters FALSE
Advanced replication FALSE
Bit-mapped indexes FALSE
Connection multiplexing TRUE
Connection pooling TRUE
Database queuing TRUE
Incremental backup and recovery TRUE
Instead-of triggers TRUE
Parallel backup and recovery FALSE
Parallel execution FALSE
Parallel load TRUE
Point-in-time tablespace recovery FALSE
Fine-grained access control FALSE
Proxy authentication/authorization TRUE
Change Data Capture FALSE
Plan Stability TRUE
Online Index Build FALSE
Coalesce Index TRUE
Managed Standby FALSE
Materialized view rewrite FALSE
Materialized view warehouse refresh FALSE
Database resource manager FALSE
Spatial FALSE
Automatic Storage Management FALSE
Export transportable tablespaces FALSE
Transparent Application Failover TRUE
Fast-Start Fault Recovery FALSE
Sample Scan TRUE
Duplexed backups FALSE
Java TRUE
OLAP Window Functions TRUE
Block Media Recovery FALSE
Fine-grained Auditing FALSE
Application Role FALSE
Enterprise User Security FALSE
Oracle Data Guard FALSE
Oracle Label Security FALSE
OLAP FALSE
Basic Compression FALSE
Join index FALSE
Trial Recovery FALSE
Data Mining FALSE
Online Redefinition FALSE
Streams Capture FALSE
File Mapping FALSE
Block Change Tracking FALSE
Flashback Table FALSE
Flashback Database FALSE
Transparent Data Encryption FALSE
Backup Encryption FALSE
Unused Block Compression FALSE
Oracle Database Vault FALSE
Result Cache FALSE
SQL Plan Management FALSE
SecureFiles Encryption FALSE
Real Application Testing FALSE
Flashback Data Archive FALSE
DICOM TRUE
Active Data Guard FALSE
Server Flash Cache FALSE
Advanced Compression FALSE
XStream FALSE
Deferred Segment Creation FALSE
Edited by: 912919 on 29-Jun-2012 06:02 -
Cannot enable flashback database??
I am using 10gR2 10.2.0.1
Under EM Home: it shows under " High Availability ":
Last Backup Apr 14, 2007 8:03:33 PM
Usable Flash Recovery Area (%) 92.35
Flashback Logging Disabled
When I get to the "recovery settings", I have make sure I have turned on Archivelogmode, however, the "enable flashback database" section was missing.
What's wrong about my database settings?
I have tried to explicitly do the standard code and have got the following errors:
SQL> SHUTDOWN IMMEDIATE;
SQL>STARTUP MOUNT EXCLUSIVE;
//report: obsolete/deprecated parameter specified"
SQL> ALTER SYSTEM SET DB_FLASHBACK_RETENTION_TARGET=2800 SCOPE=BOTH;
//no error
SQL>ALTER DATABASE FLASHBACK ON;
//error: ORA-00439: feature not enabled, flashback database
Message was edited by:
gilbert.laiDear Satish,
The results of v$version:
BANNER
Oracle Database 10g Release 10.2.0.1.0 - Production
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
The results of v$option:
PARAMETER VALUE
Partitioning FALSE
Objects TRUE
Real Application Clusters FALSE
Advanced replication FALSE
Bit-mapped indexes FALSE
Connection multiplexing TRUE
Connection pooling TRUE
Database queuing TRUE
Incremental backup and recovery TRUE
Instead-of triggers TRUE
Parallel backup and recovery FALSE
Parallel execution FALSE
Parallel load TRUE
Point-in-time tablespace recovery FALSE
Fine-grained access control FALSE
Proxy authentication/authorization TRUE
Change Data Capture FALSE
Plan Stability TRUE
Online Index Build FALSE
Coalesce Index FALSE
Managed Standby FALSE
Materialized view rewrite FALSE
Materialized view warehouse refresh FALSE
Database resource manager FALSE
Spatial FALSE
Visual Information Retrieval FALSE
Export transportable tablespaces FALSE
Transparent Application Failover TRUE
Fast-Start Fault Recovery FALSE
Sample Scan TRUE
Duplexed backups FALSE
Java TRUE
OLAP Window Functions TRUE
Block Media Recovery FALSE
Fine-grained Auditing FALSE
Application Role FALSE
Enterprise User Security FALSE
Oracle Data Guard FALSE
Oracle Label Security FALSE
OLAP FALSE
Table compression FALSE
Join index FALSE
Trial Recovery FALSE
Data Mining FALSE
Online Redefinition FALSE
Streams Capture FALSE
File Mapping FALSE
Block Change Tracking FALSE
Flashback Table FALSE
Flashback Database FALSE
Data Mining Scoring Engine FALSE
Transparent Data Encryption FALSE
Backup Encryption FALSE
Unused Block Compression FALSE
The strange thing is that whenever I issued
startup force;
or
startup mount exclusive;
with SYSDBA privileges, it reports: "obsolete / deprecate parameters specified ", is there sth wrong with the init parameters? -
Usint Intermedia text to search within ORDMultiMedia object
I atempted using the following querry after I setup up an index and accompaying preferences .
select id, score(99)
from VideoStorage V
where
CONTAINS(V.vsrc.comments, '(John Doe) WITHIN MOVIECASTTAG',
99) > 0;
It returned the following error message,
ERROR at line 1:
ORA-29900: operator binding does not exist
ORA-06553: PLS-561: character set mismatch on value for parameter 'A0'
Thanks for your help in advance.
Venura
null1. These are the contents of V$OPTION.
PARAMETER VALUE
Partitioning TRUE
Objects TRUE
Parallel Server FALSE
Advanced replication TRUE
Bit-mapped indexes TRUE
Connection multiplexing TRUE
Connection pooling TRUE
Database queuing TRUE
Incremental backup and recovery TRUE
Instead-of triggers TRUE
Parallel backup and recovery TRUE
Parallel execution TRUE
Parallel load TRUE
Point-in-time tablespace recovery TRUE
Fine-grained access control TRUE
N-Tier authentication/authorization TRUE
Function-based indexes TRUE
Plan Stability TRUE
Online Index Build TRUE
Coalesce Index TRUE
Managed Standby TRUE
Materialized view rewrite TRUE
Materialized view warehouse refresh TRUE
Database resource manager TRUE
Spatial TRUE
Visual Information Retrieval TRUE
Export transportable tablespaces TRUE
Transparent Application Failover TRUE
Fast-Start Fault Recovery TRUE
Sample Scan TRUE
Duplexed backups TRUE
Java FALSE
OLAP Window Functions TRUE
2. I tried to make a lexer preference but was not succesfull.
May be you know the answer? -
Does JServer support EJB/Entity beans
What version of JServer lives in the following applications, and does it support EJB/Entity Beans or when will it.
8.1.5 OAS
8.1.5 8i
8.1.6 OAS
8.1.6 8iCheck out the following link for details about the Beta Program: http://technet.oracle.com/products/oracle8i/java_beta/index.htm
New features that will be available in the Beta include support for Entity Beans, and support for Servlets. It also includes JServer Accelerator (JServer's Native Compiler). -
Installed components in 8.x
I'm trying to find the components installed in the 8.x database. I know I can find this information in the dba_registry table in 9.x database. Where would I find the same kind of information in 8.x
Hi,
There is v$option
select from v$version;
Partitioning TRUE
Objects TRUE
Parallel Server FALSE
Advanced replication TRUE
Bit-mapped indexes TRUE
Connection multiplexing TRUE
Connection pooling TRUE
Database queuing TRUE
Incremental backup and recovery TRUE
Instead-of triggers TRUE
Parallel backup and recovery TRUE
Parallel execution TRUE
Parallel load TRUE
Point-in-time tablespace recovery TRUE
Fine-grained access control TRUE
N-Tier authentication/authorization TRUE
Function-based indexes TRUE
Plan Stability TRUE
Online Index Build TRUE
Coalesce Index TRUE
Managed Standby TRUE
Materialized view rewrite TRUE
Materialized view warehouse refresh TRUE
Database resource manager TRUE
Spatial TRUE
Visual Information Retrieval TRUE
Export transportable tablespaces TRUE
Transparent Application Failover TRUE
Fast-Start Fault Recovery TRUE
Sample Scan TRUE
Duplexed backups TRUE
Java FALSE
OLAP Window Functions TRUEYou can find any info into V$Compatibility too.
Nicolas. -
Prformance Pack and Diagnostic Pack Options with Oracle EE 10g, 11g
For advance performance tuning Oracle supplies performance pack and diagnostic pack. which costs thousands of $$$.
Is there a programmatic or system oriented way or a table in database that would tell me whether a particular site has this option installed in their Oracle EE installation or not?
Thanks,
Rs there a programmatic or system oriented way or a table in database that would tell me whether a particular site has this option installed in their Oracle EE installation or not?Its in the v$option view, following is the output of my 11201 db (EE) .
http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/dynviews_2084.htm#REFRN30167
SQL> l
1* select * from V$option
SQL> /
PARAMETER VALUE
Partitioning TRUE
Objects TRUE
Real Application Clusters FALSE
Advanced replication TRUE
Bit-mapped indexes TRUE
Connection multiplexing TRUE
Connection pooling TRUE
Database queuing TRUE
Incremental backup and recovery TRUE
Instead-of triggers TRUE
Parallel backup and recovery TRUE
Parallel execution TRUE
Parallel load TRUE
Point-in-time tablespace recovery TRUE
Fine-grained access control TRUE
Proxy authentication/authorization TRUE
Change Data Capture TRUE
Plan Stability TRUE
Online Index Build TRUE
Coalesce Index TRUE
Managed Standby TRUE
Materialized view rewrite TRUE
Materialized view warehouse refresh TRUE
Database resource manager TRUE
Spatial TRUE
Automatic Storage Management FALSE
Export transportable tablespaces TRUE
Transparent Application Failover TRUE
Fast-Start Fault Recovery TRUE
Sample Scan TRUE
Duplexed backups TRUE
Java TRUE
OLAP Window Functions TRUE
Block Media Recovery TRUE
Fine-grained Auditing TRUE
Application Role TRUE
Enterprise User Security TRUE
Oracle Data Guard TRUE
Oracle Label Security FALSE
OLAP TRUE
Basic Compression TRUE
Join index TRUE
Trial Recovery TRUE
Data Mining TRUE
Online Redefinition TRUE
Streams Capture TRUE
File Mapping TRUE
Block Change Tracking TRUE
Flashback Table TRUE
Flashback Database TRUE
Transparent Data Encryption TRUE
Backup Encryption TRUE
Unused Block Compression TRUE
Oracle Database Vault FALSE
Result Cache TRUE
SQL Plan Management TRUE
SecureFiles Encryption TRUE
Real Application Testing TRUE
Flashback Data Archive TRUE
DICOM TRUE
Active Data Guard TRUE
Server Flash Cache TRUE
Advanced Compression TRUE
XStream TRUE
Deferred Segment Creation TRUE
65 rows selected.
SQL>HTH
Aman.... -
Coalesce or compress this index? what is the best solution in this case?
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64biI have executed the following query on a specific index that I suspected to be smashed and got the following result
select
keys_per_leaf, count(*) blocks
from (
select sys_op_lbid (154813, 'L', jus.rowid) block_id,
count (*) keys_per_leaf
from xxx_table jus
where jus.id is not null
or jus.dat is not null
group by sys_op_lbid (154813, 'L', jus.rowid)
group by keys_per_leaf
order by keys_per_leaf;
keys_per_leaf blocks
1 80
2 1108
3 2816
4 3444
5 3512
6 2891
7 2579
8 2154
9 1943
10 1287
11 1222
12 1011
13 822
14 711
15 544
16 508
17 414
18 455
19 425
20 417
21 338
22 337
23 327
24 288
25 267
26 295
27 281
28 266
29 249
30 255
31 237
32 259
33 257
34 232
35 211
36 209
37 204
38 216
39 189
40 194
41 187
42 200
43 183
44 167
45 186
46 179
47 179
48 179
49 171
50 164
51 174
52 157
53 181
54 192
55 178
56 162
57 155
58 160
59 153
60 151
61 133
62 177
63 156
64 167
65 162
66 171
67 154
68 162
69 163
70 153
71 189
72 166
73 164
74 142
75 177
76 148
77 161
78 164
79 133
80 158
81 176
82 189
83 347
84 369
85 239
86 239
87 224
88 227
89 214
90 190
91 230
92 229
93 377
94 276
95 196
96 218
97 217
98 227
99 230
100 251
101 266
102 298
103 276
104 288
105 638
106 1134
107 1152
229 1
230 1 This is a 5 columns unique key index on (id number, dat date, id2 number, dat2 date type number).
Furthermore, a space analysis of this index using dbms_space.space_usage gives the following picture
Number of blocks with at least 0 to 25% free space = 0 -------> total bytes = 0
Number of blocks with at least 25-50% free space = 75 -------> total bytes = ,5859375
Number of Blocks with with at least 50 to 75% free space = 0 -------> Total Bytes = 0
number of blocks with at least 75 to 100% free space = 0 -------> total bytes = 0
Number of full blocks with no free space = 99848 -------> total bytes = 780,0625
Total blocks ______________________________
99923
Total size MB______________________________
799,384It seems for me that this index needs to be either coalesced or compressed.
Then, what would be the best option in your opinion?
Thanks in advance
Mohamed Houri
Edited by: Mohamed Houri on 12-janv.-2011 1:18So let me continue my case
I first compressed the index as follows
alter index my_index rebuild compress 2;which immediately presents two new situations
(a) index space
Number of blocks with at least 0 to 25% free space = 0 -------> total bytes = 0
Number of blocks with at least 25-50% free space = 40 -------> total bytes =, 3125
Number of Blocks with at least 50 to 75% free space = 0 -------> total Bytes = 0
Number of blocks with at least 75 to 100% free space = 0 -------> total bytes = 0
Number of full blocks with no free space = 32361 -------> total bytes = 252, 8203125
Total blocks ______________________________
32401
Total size Mb______________________________
259,208meaning that the compress command freed up 67487 leaf blocks and reduced the size of the index from to 799,384 MB to 259,208 MB.
It also shows a relative nice pictue of number of keys per leaf block (when compared to the previous situation)
(b) on the number of key per leaf block
KEYS_PER_LEAF BLOCKS
4 1
6 1
13 1
15 1
25 1
62 1
63 1
88 1
97 1
122 1
123 3
124 6
125 4
126 2
289 4489
290 3887
291 3129
292 2273
293 1528
294 913
295 442
296 152
297 50
298 7
299 1 In a second step, I have coalesced the index as follows
alter index my_index coalesce;which produces the new figure
Number of blocks with at least 0 to 25% free space = 0 -------> total bytes = 0
Number of blocks with at least 25-50% free space = 298 -------> total bytes = 2,328125
Number of Blocks with at least 50 to 75% free space = 0 -------> Total Bytes = 0
Number of blocks with at least 75 to 100% free space = 0 -------> total bytes = 0
Number of full blocks with no free space = 32375 -------> total bytes = 252, 9296875
Total blocks ______________________________
32673
Total size MB______________________________
261,384meaning the the coalesce command has made
(a) 298-40 = 258 new blocks with 25-50% of free space
(b) 32375-32361 = 14 new additional blocks which have been made full
(c) The size of the index increased by 2,176MB (261,384-259,208)
While the number of key per leaf block keeps in the same situation
KEYS_PER_LEAF BLOCKS
4 2
5 3
9 1
10 2
12 1
13 1
19 1
31 1
37 1
61 1
63 1
73 1
85 1
88 1
122 1
123 4
124 4
125 3
126 1
289 4492
290 3887
291 3125
292 2273
293 1525
294 913
295 441
296 152
297 50
298 7
299 1 Could you please through some light on the difference between the compress and the coalesce on the effect they have made on
(a) the number of keys per leaf blocks within my index
(b) the space and size of my index?
Best regards
Mohamed Houri -
Normal Indexes created for Primary/Unique Keys in Oracle8/8i
I remeber prior to Oracle8, when we create a Primary/Unique Key constraints, an unique index will be created by default. But I am noticing now in 8/8i when we create either Primary or Unique key, only normal/simple index is created. We are not able to override this normal index either by dropping and recreating the index alone. I believe it would be pretty much better in case of performance if we have a unique index for this columns. Can anybody help why is it changed so in 8/8i??
Thanks,
R. M.Dear Rob,
since your answer was helpful and since it was the only one I will grant you full points on that.
Thanks again for your input. In case other developers should look this thread up being confronted
with the same kind of problem, here is how we solved it:
We added an artificial primary key (a number of type NUMC 8) to the table which is supposed to
include the structure. This key alone takes care of the uniqueness of eacht entry.
All the others fields that we want to have available for a fast direct access, including the ones
from the included structure, are put together in a secondary index.
best regards
Andreas -
hi masters.,
this is egarding index management. i am facing the problem regarding one sql query with union and order by clause.
when i remove order by clause, the query runs faster,than with order by clause.
is this the problem regarding index????
i know that indexes rarely need rebuild,thats why i am thinking of coalesce.is this the right decision??
what may be the problem else????
i am using oracle 9i. and i dont have statpack report coz the client is offshore.\
thanks and regards
VDVikrant,
Index is not picked by order by clause. Index entries are already sorted. See here a demo where I have used the index in a column.If I give order by clause, I explicitly get a Sort Order By in the plan.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
SQL> create table sampletable as select * from scott.emp;
Table created.
SQL> create index idx on sampletable(empno);
Index created.
SQL> exec dbms_stats.gaher_table_stats(
BEGIN dbms_stats.gaher_table_stats(; END;
ERROR at line 1:
ORA-06550: line 1, column 36:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
( ) - + case mod new not null <an identifier>
<a double-quoted delimited-identifier> <a bind variable>
table continue avg count current exists max min prior sql
stddev sum variance execute multiset the both leading
trailing forall merge year month day hour minute second
timezone_hour timezone_minute timezone_region timezone_abbr
time timestamp interval date
<a string literal with character set specification>
SQL> exec dbms_stats.gaher_table_stats('AMAN','SAMPLETABLE');
BEGIN dbms_stats.gaher_table_stats('AMAN','SAMPLETABLE'); END;
ERROR at line 1:
ORA-06550: line 1, column 18:
PLS-00302: component 'GAHER_TABLE_STATS' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
SQL> exec dbms_stats.gather_table_stats('AMAN','SAMPLETABLE');
PL/SQL procedure successfully completed.
SQL> set autot trace exp
SQL> select * from sampletable order by empno;
Execution Plan
Plan hash value: 5644182
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time
|
| 0 | SELECT STATEMENT | | 14 | 504 | 4 (25)| 00:00:01
|
| 1 | SORT ORDER BY | | 14 | 504 | 4 (25)| 00:00:01
|
| 2 | TABLE ACCESS FULL| SAMPLETABLE | 14 | 504 | 3 (0)| 00:00:01
|
SQL> select * from sampletable order by empno where empno in (7369,7422);
select * from sampletable order by empno where empno in (7369,7422)
ERROR at line 1:
ORA-00933: SQL command not properly ended
SQL> select * from sampletable where empno in (7369,7422);
Execution Plan
Plan hash value: 3966318501
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)
| Time |
| 0 | SELECT STATEMENT | | 2 | 72 | 1 (0)
| 00:00:01 |
| 1 | INLIST ITERATOR | | | |
| |
| 2 | TABLE ACCESS BY INDEX ROWID| SAMPLETABLE | 2 | 72 | 1 (0)
| 00:00:01 |
|* 3 | INDEX RANGE SCAN | IDX | 2 | | 0 (0)
| 00:00:01 |
Predicate Information (identified by operation id):
3 - access("EMPNO"=7369 OR "EMPNO"=7422)
SQL> select * from sampletable where empno in (7369,7422) order by empno;
Execution Plan
Plan hash value: 3966318501
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)
| Time |
| 0 | SELECT STATEMENT | | 2 | 72 | 1 (0)
| 00:00:01 |
| 1 | INLIST ITERATOR | | | |
| |
| 2 | TABLE ACCESS BY INDEX ROWID| SAMPLETABLE | 2 | 72 | 1 (0)
| 00:00:01 |
|* 3 | INDEX RANGE SCAN | IDX | 2 | | 0 (0)
| 00:00:01 |
Predicate Information (identified by operation id):
3 - access("EMPNO"=7369 OR "EMPNO"=7422)
SQL>The point that I was making is that it may be happening that you are doing an over sort sort of thing which is causing the query to be slow. Using index for returning rows in the ordered manner is not a good thing as Oracle always say that for a guaranteed ordered result, one must use an order by clause. So either you can choose to remove the order by clause or can choose to rewrite the query without using the Union operator.
But these all are just guess works. Its not possible to say what's happening specifically in your case as long as you don't post the plan for your query both,with and without the use of index.
HTH
Aman....
Maybe you are looking for
-
I dropped my phone into the bath last night and it was working perfectly fine the hole day, I went to put it on charge and now it won't charge or even turn on what do I do
-
2015 mazda cx-5 bluetooth issues
I just purchased a 2015 Mazda CX-5. I have an iPhone 6 and every time I get into the car, the bluetooth downloads my phone contacts. Shouldn't it remember my contacts? Why is it having to download every time? It's annoying to have to wait for thi
-
Count of updated rows after an UPDATE command
Hi, is there any way to know how many rows have been updated after an UPDATE statement in a PL/SQL program (i know it is possible in Pro*C. Thanks.
-
Results recording tab not appearing in QA32
hi, can anyone tell me why results tab not appearing in QA32 , is there any authorisation missing?
-
Hi, I am looking form some information about the badi FAGL_COFI_LNITEM_SEL. I want to know how does it work. I did not find any note, neither any explanation, about it. Thanks, Cecilia