ORA-14086: a partitioned index cannot be reconstructed as a whole
HelloI'm trying to rebuld index had error below.
SQL > alter index rms12. PRICE_HIST_I1 regeneration;
ALTER index rms12. PRICE_HIST_I1 rebuild
*
ERROR on line 1:
ORA-14086: a partitioned index cannot be reconstructed as a whole
Select index_name, separated from dba_indexes where table_name = 'PRICE_HIST '.
o/p
Index_name partitioned
PRICE_HIST_I2 YES
PRICE_HIST_I1 YES
Thank you
If you need to find the names of partition in dba_ind_paritions.
------
Sybrand Bakker
Senior Oracle DBA
Tags: Database
Similar Questions
-
deletion of a partitioned index
Hi friends,
I use 10.2.0.4 oracle on solaris.
I have several partitioned index with the 2011 created on a daily basis. I tried to drop one of the indexes and got the below error.
SQL > ALTER INDEX QOSDEV. PK_RATE_CISCOMEMORYPOOL DROP PARTITION 'OCTOBER 5, 2012 '.
ALTER INDEX QOSDEV. PK_RATE_CISMEPOOL DROP PARTITION 'OCTOBER 5, 2012 '.
Error on line 2
ORA-14076: submitted alter index partition/subpartition operation is not valid for local partitioned indexes
Script done on line 2.
I ask you how to remove these partitions.
Thank you
DBApps
Hello
Try-
ALTER drop partition table RATE_CISCOMEMORYPOOL 'October 5, 2012;
Anand
-
Why the partitioned table cannot create?
Why the partitioned table cannot successfully create?SQL> create table hr.gps_log_his 2 (id number, 3 name varchar2(10), 4 time date) 5 tablespace ts_log_his 6 PARTITION BY RANGE (TIME) 7 (PARTITION udp_part2009110707 VALUES LESS THAN (TO_DATE('2009110708','yyyymmddhh24')), 8 PARTITION udp_part2009110708 VALUES LESS THAN (TO_DATE('2009110709','yyyymmddhh24')), 9 PARTITION udp_part2009110709 VALUES LESS THAN (TO_DATE('2009110710','yyyymmddhh24')), 10 ); ) * Error in line 10: ORA-14004: Missing PARTITION key word.
Hello
Your problem is the comma ending line 9. Delete this.
Concerning
Peter -
partitioning and partitioned index
I created 1 table with partitions.
CREATE TABLE SAMPLE_ORDERS
(NUMBER OF ORDER_NUMBER,
ORDER_DATE DATE,
NUMBER OF CUST_NUM
NUMBER OF TOTAL_PRICE
NUMBER OF TOTAL_TAX
NUMBER OF TOTAL_SHIPPING)
PARTITION OF RANGE (ORDER_DATE)
(
SO99Q1 PARTITION VALUES LESS THAN (TO_DATE (APRIL 1, 1999 ',' MON-DD-YYYY "")),
SO99Q2 PARTITION VALUES LESS THAN (TO_DATE (1 JULY 1999 ',' MON-DD-YYYY "")),
SO99Q3 PARTITION VALUES LESS THAN (TO_DATE (OCTOBER 1, 1999 ',' MON-DD-YYYY "")),
SO99Q4 PARTITION VALUES LESS THAN (TO_DATE (JANUARY 1, 2000 ',' MON-DD-YYYY "")),
SO00Q1 PARTITION VALUES LESS THAN (TO_DATE (APRIL 1, 2000 ',' MON-DD-YYYY "")),
SO00Q2 PARTITION VALUES LESS THAN (TO_DATE (JULY 1, 2000 ',' MON-DD-YYYY "")),
SO00Q3 PARTITION VALUES LESS THAN (TO_DATE (OCTOBER 1, 2000 ',' MON-DD-YYYY "")),
SO00Q4 PARTITION VALUES LESS THAN (TO_DATE (JANUARY 1, 2001 ',' MON-DD-YYYY ""))
)
;
Few questions is now.
1. How can I create indexes on the table.
2. How can I rebuild the index if it is partitioned index?
3. What is the impact of the reconstruction of indexes on the table (all table locks or just locks partitioned index)
4. If I want to create partition for future purposes, for example for each month do I need to partition manually created for the same thing?
Thank youWhen you create an Index with the keyword LOCAL and do not specify the names of each partition, Oracle uses the default Partition of Table name.
For example, to rebuild the index corresponding to the first partition of the table, partition
alter index sales_orders_ndx_l rebuild partition SO99Q1 ;
DML may continue to run against the other partitions of the table (and their corresponding indices).
When you do the maintenance of the score as the addition of a new Partition or split an existing Partition, for each Partition of the 'new' Table, a corresponding Index Partition will be automatically created.
In order to ensure that the affected Index partitions are not left in a State UNUSABLE but are also rebuilt with maintaining the Table Partition, add the clause INDEX of UPDATE of the ALTER TABLE statement you use. -
Table partition and no partition indexes
Hello
I have the partition table that contains about 1 ml recods and he have daily score.
This partition table have only a unique index that is a partition No.
CREATE UNIQUE INDEX xxxxxx WE yyyyyy
(ITEM_GUID, IMAGE_SIDE)
LOGGING
TABLESPACE zzzzzz
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE)
INITIAL 170M
ACCORDING TO 1 M
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
DEFAULT USER_TABLES
)
NOPARALLEL;
I drop very first partition of
Fall of ALTER TABLE wwww.yyyyy SCORE PT_20080706;
But this isn't my unique INVALID index.
Is it normal to have a VALID unique index after the fall of any partition?
Do I have to rebuild a unique index again?
DB: oracle 10.2.0.3
platform: solaris
Thanks in advanceAccording to the Oracle doc, if you drop the bulkhead with an overall index,.
All index global, or all partitions of global partitioned indexes are marked UNUSABLE unless one of the following are true:
You specify the UPDATE INDEX (cannot be specified for tables organized by index. Use GLOBAL updating INDEXES.)
The dropped partition or its subparts are empty
more info here
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14231/partiti.htm#sthref2751Check ALL_PART_INDEXES and ALL_INDEXES to check the State of your indexes.
-
Move the partition of the table and get ORA-14006: invalid partition name
I'm using oracle 11.2.0.4 and I am trying to move a partitioned table to one tablespace to another. I checked may times and I have the correct table name and the name of the partition. However, I get the error ora-14006.
Can see everything what could be the problem?
SQL > ALTER TABLE GWPROD. QRY_TES_ROLLINGCUREDITS MOVE PARTITION 201112 TABLESPACE GW_PROD_T2 PARALLEL (DEGREE 4) NOLOGGING;
ALTER TABLE GWPROD. QRY_TES_ROLLINGCUREDITS MOVE PARTITION TABLESPACE GW_PROD_T2 PARALLEL (DEGREE 4) NOLOGGING 201112
*
ERROR on line 1:
ORA-14006: invalid partition name
Thanks in advance.
Names that begin with numbers are not legal partition names. A fool created by placing them between double quotes. You will need to do the same.
-
ORA-07217: sltln: environment variable cannot be evaluated.
Hi all;
DLOG = 'date + "a_ hour" ' export DLOG
RMAN > backup backupset incremental compressed level 0 DATABASE FORMAT ' / u04/oradata/PDT003/weekly_bkp_$ (DLOG)'
TAG WEEKLY_BACKUP INCLUDE CURRENT CONTROLFILE;
Please watch this above command of rman backup that I run with a bash script. It gives me following error.
channel ORA_DISK_1: starting piece 1 at 18 - SEP-15RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 18/09/2015 03:21:19
ORA-07217: sltln: environment variable cannot be evaluated.
No idea how to overcome? He took my 3 days from now.
Hello
1. it is tag format that should be unique - http://docs.oracle.com/cd/B28359_01/backup.111/b28273/rcmsubcl010.htm
Check out the demo below, the sound works perfectly for me
#! / bin/sh
DLOG = ' date + «a_ hour»»
Export DLOG
echo "setting of my variable: $DLOG"echo "launched backup."
RMAN target /.<>
backup incremental backupset compressed level 0 FORMAT of DATABASE ' / u03/backup/weekly_bkp_$ (DLOG)' TAG WEEKLY_BACKUP INCLUDE CURRENT CONTROLFILE;
"exit";
EXPRESSIONS OF FOLKLOREecho "Backup complete".
Wrong Code always my backup script - test scenario
=================================[backup oracle@primary] $ sh test.sh
My variable definition: a_19
Backup started
test.sh: line 9: DLOG: command not foundRecovery Manager: release 11.2.0.3.0 - Production Wed Sep 23 19:46 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: PROD (DBID = 300203881)
RMAN >
From backup to 23-SEP-15
using the control file of the target instead of recovery catalog database
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 37 type device = DISK
channel ORA_DISK_1: starting from compressed backup set incremental level 0 datafile
channel ORA_DISK_1: specifying datafile (s) in the backup set
Enter a number of file datafile = 00001 name=/u03/prod/prod_pr/system01.dbf
Enter a number of file datafile = name=/u03/prod/prod_pr/sysaux01.dbf 00002
Enter a number of file datafile = 00005 name=/u03/prod/prod_pr/example01.dbf
Enter a number of file datafile = name=/u03/prod/prod_pr/undotbs01.dbf 00003
Enter a number of file datafile = name=/u03/prod/prod_pr/users01.dbf 00004
channel ORA_DISK_1: starting piece 1 to 23 - SEP-15
channel ORA_DISK_1: finished piece 1 to 23 - SEP-15
total, handle = / backup/u03/weekly_bkp_ tag = comment WEEKLY_BACKUP = NONE
channel ORA_DISK_1: complete set of backups, time: 00:00:55
channel ORA_DISK_1: starting from compressed backup set incremental level 0 datafile
channel ORA_DISK_1: specifying datafile (s) in the backup set
including the current control in the backup set file
including current SPFILE in the backup set
channel ORA_DISK_1: starting piece 1 to 23 - SEP-15
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 23/09/2015-19:46:59
ORA-19504: cannot create the file ' / u03/backup/weekly_bkp_.
ORA-27038: created file already exists
Additional information: 1RMAN >
Complete recovery manager.
Backup is completeRMAN > list backup;
using the control file of the target instead of recovery catalog database
List of backup sets
===================Time of accomplishment BS key Type LV size device Type elapsed time
------- ---- -- ---------- ----------- ------------ ---------------
1 incr 0 M DISK 00:00:49 23-SEVEN 289,91.-15
BP key: 1 location: AVAILABLE Tablet: YES Tag: WEEKLY_BACKUP[backup oracle@primary] $ ls-l
Total 296888
-rwxr-xr-x. 1 oracle oinstall 317 23 Sep 19:45 test.sh
-rw - r-. 1 oracle oinstall 304005120 23 Sep 19:46 weekly_bkp_backup incremental backupset compressed level 0 DATABASE FORMAT ' / u03/backup/weekly_bkp_$ (DLOG)' TAG WEEKLY_BACKUP INCLUDE CURRENT CONTROLFILE;... WrongCode of $(DLOG)
Fix the Code - test scenario 2
==============
1 code .fixing now
2. change of $(DLOG)... $DLOGRMAN target /.<>
backup incremental backupset compressed level 0 DATABASE FORMAT ' / u03/backup/weekly_bkp_$ DLOG' TAG WEEKLY_BACKUP INCLUDE CURRENT CONTROLFILE;[backup oracle@primary] $ sh test.sh
My variable definition: a_19
Backup startedRecovery Manager: release 11.2.0.3.0 - Production Wed Sep 23 19:48:58 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: PROD (DBID = 300203881)
RMAN >
From backup to 23-SEP-15
using the control file of the target instead of recovery catalog database
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 27 type device = DISK
channel ORA_DISK_1: starting from compressed backup set incremental level 0 datafile
channel ORA_DISK_1: specifying datafile (s) in the backup set
Enter a number of file datafile = 00001 name=/u03/prod/prod_pr/system01.dbf
Enter a number of file datafile = name=/u03/prod/prod_pr/sysaux01.dbf 00002
Enter a number of file datafile = 00005 name=/u03/prod/prod_pr/example01.dbf
Enter a number of file datafile = name=/u03/prod/prod_pr/undotbs01.dbf 00003
Enter a number of file datafile = name=/u03/prod/prod_pr/users01.dbf 00004
channel ORA_DISK_1: starting piece 1 to 23 - SEP-15
channel ORA_DISK_1: finished piece 1 to 23 - SEP-15
total, handle = / backup/u03/weekly_bkp_a_19 tag = comment WEEKLY_BACKUP = NONE
channel ORA_DISK_1: complete set of backups, time: 00:00:55
channel ORA_DISK_1: starting from compressed backup set incremental level 0 datafile
channel ORA_DISK_1: specifying datafile (s) in the backup set
including the current control in the backup set file
including current SPFILE in the backup set
channel ORA_DISK_1: starting piece 1 to 23 - SEP-15
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03009: failure of the backup command on the ORA_DISK_1 channel to 23/09/2015-19:49:56
ORA-19504: cannot create the file ' / u03/backup/weekly_bkp_a_19.
ORA-27038: created file already exists
Additional information: 1RMAN >
Complete recovery manager.
Backup is complete
[backup oracle@primary] $ ls - tl
296924 total
-rw - r-. 1 oracle oinstall 304046080 Sep 23 19:49 weekly_bkp_a_19 - naming convention good code wise but not with the prospect of rman
-rwxr-xr-x. 1 oracle oinstall 315 23 September 19:48 test.shNow the format that we cannot solve the format fixed for rman, you need to change it if you see above error
Change to generated %U...systemTest case 3 - worked perfectly
RMAN target /.< eof="">
backup incremental backupset compressed level 0 FORMAT of DATABASE ' / u03/backup/weekly_bkp_${DLOG}_%U' WEEKLY_BACKUP TAG INCLUDE CURRENT CONTROLFILE;.. reason format[backup oracle@primary] $ sh test.sh
My variable definition: a_19
Backup startedRecovery Manager: release 11.2.0.3.0 - Production Wed Sep 23 19:53:02 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: PROD (DBID = 300203881)
RMAN >
From backup to 23-SEP-15
using the control file of the target instead of recovery catalog database
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 36 type device = DISK
channel ORA_DISK_1: starting from compressed backup set incremental level 0 datafile
channel ORA_DISK_1: specifying datafile (s) in the backup set
Enter a number of file datafile = 00001 name=/u03/prod/prod_pr/system01.dbf
Enter a number of file datafile = name=/u03/prod/prod_pr/sysaux01.dbf 00002
Enter a number of file datafile = 00005 name=/u03/prod/prod_pr/example01.dbf
Enter a number of file datafile = name=/u03/prod/prod_pr/undotbs01.dbf 00003
Enter a number of file datafile = name=/u03/prod/prod_pr/users01.dbf 00004
channel ORA_DISK_1: starting piece 1 to 23 - SEP-15
channel ORA_DISK_1: finished piece 1 to 23 - SEP-15
total, handle = / backup/u03/weekly_bkp_05qht9kv_1_1 tag = comment WEEKLY_BACKUP = NONE
channel ORA_DISK_1: complete set of backups, time: 00:00:55
channel ORA_DISK_1: starting from compressed backup set incremental level 0 datafile
channel ORA_DISK_1: specifying datafile (s) in the backup set
including the current control in the backup set file
including current SPFILE in the backup set
channel ORA_DISK_1: starting piece 1 to 23 - SEP-15
channel ORA_DISK_1: finished piece 1 to 23 - SEP-15
total, handle = / backup/u03/weekly_bkp_06qht9mm_1_1 tag = comment WEEKLY_BACKUP = NONE
channel ORA_DISK_1: complete set of backups, time: 00:00:01
Backup finished 23-SEP-15RMAN >
Complete recovery manager.
Backup is complete
[backup oracle@primary] $[backup oracle@primary] $ ls - tl
Total 298188
-rw - r-. 1 oracle oinstall 1097728 23 Sep 19:58 weekly_bkp_a_19_08qht9v5_1_1
-rw - r-. 1 oracle oinstall 304242688 23 Sep 19:58 weekly_bkp_a_19_07qht9te_1_1
-rwxr-xr-x. 1 oracle oinstall 320 23 September 19:57 test.sh
It could be that useful now
-Pavan Kumar N
-
IKM Partition Oracle Exchange Error loading - ORA-14006: invalid partition name
Hello
I use ODI Standalone Edition Version 11.1.1
I've created an interface, the target table's partition.
DDL script
CREATE TABLE big_table2)
ID NUMBER (10),
CREATED_DATE DATE,
lookup_id NUMBER (10),
given VARCHAR2 (50)
)
PARTITION OF RANGE (created_date)
(PARTITION big_table_2007 VALUES LESS THAN (MAXVALUE));
the performance of the interface error: -.
Internal CZ_SC_CONSULTING jar:file:/D:/Oracle/middleware/Oracle_ODI1/oracledi/client/jdev/extensions/Oracle.ODI.Navigator.jar!/com/Sunopsis/graphical/gif/State/f_error.gif 2015-01-28 10:58:38.0 2015-01-28 10:59:08.0 30 14006 ODI-1226: step INT_EXCH_PART fails after 1 attempt. ODI-1240: Flow INT_EXCH_PART fails during an operation of integration. This flow of charge table BIG_TABLE2 target.
ODI-1228: failed INT_EXCH_PART (integration) task on the target of ORACLE ODI_STAGE connection.
Caused by: java.sql.SQLException: ORA-14006: invalid partition name
ORA-06512: at line 2
Please can I know what is the problem.
Put your name of the partition in upper case and double coate as:
'BIG_TABLE_2007 '.
The capital should not be a problem, but it is better to be like that because it will store like this in the table USER or ALL_TAB_PARTITIONS.
This makes it easier to compare if you need to check if a partition already exists or not.
Hope this can help you.
-
Using Oracle 11.2.0.3
We are evalauating partitiong stragetegies with a view to the realization of gains from perfomnace in reports in particular.
How effeicient are partitioned indexes in this by example anti-terrorism just partitioned index aan table is not partitioned.
One big fact to durrogate keys that have bitmpa indxese table which link to accentuate associated key dimensions.
Patitioning given bitmap index which links to the largest dimension and partitiong Kay dimesnion dimension laregts.
Reflections on partitioned indexes would be particularly useful.
Thank youuser5716448 wrote:
Using Oracle 11.2.0.3We are evalauating partitiong stragetegies with a view to the realization of gains from perfomnace in reports in particular.
How effeicient are partitioned indexes in this by example anti-terrorism just partitioned index aan table is not partitioned.
One big fact to durrogate keys that have bitmpa indxese table which link to accentuate associated key dimensions.
Patitioning given bitmap index which links to the largest dimension and partitiong Kay dimesnion dimension laregts.
Reflections on partitioned indexes would be particularly useful.
Thank you
It is not possible to create a partitioned index bitmp on a non-partitioned table. Bitmap indexes can be local partitioned only.
--
John Watson
Oracle Certified Master s/n
http://skillbuilders.com -
FDPSTP failed due to the ORA-02149: specified partition does not exist
EBS R12.1.3
Database 11.2.0.2
Error message
**Starts**23-JUL-2012 16:49:21 ORACLE error 2149 in FDPSTP Cause: FDPSTP failed due to ORA-02149: Specified partition does not exist ORA-06512: at "SYSTEM.AD_DDL", line 165 ORA-06512: at "APPS.MSC_MANAGE_PLAN_PARTITIONS", line 371 ORA-14074: partition bound must collate higher than th +---------------------------------------------------------------------------+ Start of log messages from FND_FILE +---------------------------------------------------------------------------+ j := 1 table := MSC_ATP_SUMMARY_SO partition_name : ATP_SUMMARY_SO__1 l_count := 1 Partition for instance 1 already exists table := MSC_ATP_SUMMARY_SD partition_name : ATP_SUMMARY_SD__1 l_count := 1 Partition for instance 1 already exists l_share_partition := N plan count := 0 After Create Partitions +---------------------------------------------------------------------------+ End of log messages from FND_FILE +---------------------------------------------------------------------------+
901629 wrote:
EBS R12.1.3
Database 11.2.0.2
Error message**Starts**23-JUL-2012 16:49:21 ORACLE error 2149 in FDPSTP Cause: FDPSTP failed due to ORA-02149: Specified partition does not exist ORA-06512: at "SYSTEM.AD_DDL", line 165 ORA-06512: at "APPS.MSC_MANAGE_PLAN_PARTITIONS", line 371 ORA-14074: partition bound must collate higher than th +---------------------------------------------------------------------------+ Start of log messages from FND_FILE +---------------------------------------------------------------------------+ j := 1 table := MSC_ATP_SUMMARY_SO partition_name : ATP_SUMMARY_SO__1 l_count := 1 Partition for instance 1 already exists table := MSC_ATP_SUMMARY_SD partition_name : ATP_SUMMARY_SD__1 l_count := 1 Partition for instance 1 already exists l_share_partition := N plan count := 0 After Create Partitions +---------------------------------------------------------------------------+ End of log messages from FND_FILE +---------------------------------------------------------------------------+
How do you get this error?
Please see (INSTALLER ALERT - setting the APS scores upward and Instance of Collections of data in R12 [552415.1 ID]).
Thank you
Hussein -
ORA-07391: sftopn: fopen error, cannot open the text file.
Hello
The last 3 days, we get the error in the alert below log.
[ORA-00600: internal error code, arguments: [kmgs_parameter_update_timeout_1], [27091] [] [] [], [], []]
ORA-27091: unable to queue I/O
ORA-27072: IO file error
I check as the same partners to it in metalink I found permission to check the directory solution. (DOC ID367619.1)
I got permission from ORACLE_HOME\dbs $ to 777, but still m making the same mistake.
also I try to recreate spfile so that I try to create pfile first
create pfile from spfile
I get the error below.
ORA-07391: sftopn: fopen error, cannot open the text file.
ls - lrt sp * in the below output shows $ORACLE_HOME
-rwxrwxrwx 1 ora10g 3584 20 September dba10 05:42 < SID > spfile .ora
Help, please.
Thanks in advanceuser8757749 wrote:
The output of ls - lrt is in the path $ORACLE_HOME\dbs onlyWe also have the database version 10.2.0.4 that the spfile even uses everyday cold backup of the database.
also, I put the 777 permission to the file.
OK, I guess there will be corruption of the SPFILE as if edited manually or in any other cases too.
You have a backup of SPFILE? backup of the file PFILE or?
then starting using this SPFILE, if any backup then start with PFILE and then create SPFILE from PFILE.
Otherwise, you can copy the contnets of the parameters of the alert log file initialization and paste in the editor and the instance of starutp.
These are the options.
-
Error: ORA-06533 beyond County index
Hello
I am trying to create a varray of strings using items returned from a nested table, but get the error ora-06533, can someone pls help me over come this
I use a script like below:
' declare
number of Time_start;
number of Time_end;
type text_nt is table of the cpw_account_info % rowtype;
v_eName_nt text_nt;
term_acc type is varray (5000) of varchar2 (5000);
term_acc_stmnt term_acc;--:=term_acc();
cursor c_emp is select * from cpw_account_info;
Start
Open c_emp;
Time_start: = dbms_utility.get_time;
loop
C_emp fetch bulk collect within the limits of v_eName_nt 500;
Dbms_output.put_line ('v_eName_nt.count: ' | v_eName_nt.) (Count);
Dbms_output.put_line('===');
because me in 1.v_eName_nt.count
loop
Dbms_output.put_line (v_ename_nt (i). ACCOUNT_NUM | «, » || v_ename_nt (i). END_DAT | «, » || v_ename_nt (i). TERMINATION_REASON_ID | «, » || v_ename_nt (i). ERLY_TERM_CHRG_BOO);
term_acc_stmnt:=term_acc();
term_acc_stmnt.extend (v_eName_nt. (Count);
-create the string array using varray
term_acc_stmnt: = term_acc('ACC.) TERMACC('||)
v_ename_nt (i). ACCOUNT_NUM | «, » ||
v_ename_nt (i). END_DAT | «, » ||
v_ename_nt (i). TERMINATION_REASON_ID | «, » ||
v_ename_nt (i). ERLY_TERM_CHRG_BOO |
');'
);
dbms_output.put_line (' put an end to the string of API: ' | term_acc_stmnt (i));
end loop;
When the exit c_emp % NOTFOUND;
end loop;
Time_end: = dbms_utility.get_time;
dbms_output.put_line ('time_start: ' |) Time_start);
dbms_output.put_line ('time_end: ' |) Time_end);
dbms_output.put_line (' time in ms: ' |) (Time_end-Time_start)/100 * 1000);
close c_emp;
end;
/'
DBMS_OUTPUT:
v_eName_nt. Count: 5
*=====================================*
* 123455, 09-JUL-11, 1, F *.
Finish the string API: VAC. TERMACC(123455,09-JUL-11,1,F);
* 123456, 09-JUL-11, 1, F *.
* ora-06533 beyond County index *.
* / * out with this error script errors when I'm waiting for the script to go ahead and produce strings as *.
Finish the string API: VAC. TERMACC(99999,09-JUL-11,1,F);
Finish the string API: VAC. TERMACC(11111,09-JUL-11,1,F);
Complete the string API: VAC. TERMACC(22222,09-JUL-11,1,F); /*
I guess I'm getting married a mistak of accessin varray in a nested table loop, your suggestions please
Published by: Camilla July 9, 2011 21:28declare time_start number; time_end number; type text_nt is table of cpw_account_info%rowtype; v_eName_nt text_nt; type term_acc is varray(5000) of varchar2(5000); term_acc_stmnt term_acc :=term_acc(); cursor c_emp is select * from cpw_account_info; begin open c_emp; time_start:=dbms_utility.get_time; loop fetch c_emp bulk collect into v_eName_nt limit 500; DBMS_OUTPUT.put_line('v_eName_nt.count: '||v_eName_nt.count); DBMS_OUTPUT.put_line('====================================='); for i in 1..v_eName_nt.count loop DBMS_OUTPUT.put_line(v_ename_nt(i).ACCOUNT_NUM||','||v_ename_nt(i).END_DAT||','|| v_ename_nt(i).TERMINATION_REASON_ID||','||v_ename_nt(i).ERLY_TERM_CHRG_BOO); term_acc_stmnt.extend; term_acc_stmnt(term_acc_stmnt.count) := 'ACC.TERMACC('|| v_ename_nt(i).ACCOUNT_NUM ||','|| v_ename_nt(i).END_DAT ||','|| v_ename_nt(i).TERMINATION_REASON_ID||','|| v_ename_nt(i).ERLY_TERM_CHRG_BOO || ');'; dbms_output.put_line('Terminate API String: '|| term_acc_stmnt(i)); end loop; exit when c_emp%NOTFOUND; end loop; time_end:=dbms_utility.get_time; dbms_output.put_line('time_start: '||time_start); dbms_output.put_line('time_end: '||time_end); dbms_output.put_line('time elapsed in ms: '||(time_end-time_start)/100*1000); close c_emp; end; / v_eName_nt.count: 5 ===================================== 123455,09-JUL-11,1,F Terminate API String: ACC.TERMACC(123455,09-JUL-11,1,F); 123456,09-JUL-11,1,F Terminate API String: ACC.TERMACC(123456,09-JUL-11,1,F); 123457,09-JUL-11,1,F Terminate API String: ACC.TERMACC(123457,09-JUL-11,1,F); 123458,09-JUL-11,1,F Terminate API String: ACC.TERMACC(123458,09-JUL-11,1,F); 123459,09-JUL-11,1,F Terminate API String: ACC.TERMACC(123459,09-JUL-11,1,F); time_start: 8172625 time_end: 8172625 time elapsed in ms: 0 PL/SQL procedure successfully completed. SQL>
SY.
-
Hi all
I created 2 local partitioned index. The indexes are indexes of function. the table size is 2.3 T.
I created the first clue that it took 14 hours to create, and even to analyze and it works fine now. Then, I created second index. But now it does not.
What should I do?
version 11.1.0.6
RAC, ASM
Thanks in advance
Published by: disaster on April 10, 2011 21:43
Published by: disaster on April 10, 2011 21:51Dear Sir
---------------------------------------------------------------------------------------------------------- | Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | Reads | ---------------------------------------------------------------------------------------------------------- | 1 | PARTITION RANGE SINGLE| | 1 | 1 | 82 |00:03:37.92 | 534K| 534K| |* 2 | TABLE ACCESS FULL | TBL | 1 | 1 | 82 |00:03:37.92 | 534K| 534K| ----------------------------------------------------------------------------------------------------------
It is the plan of the real explanation followed by the SQL engine to run your query
The Oracle optimizer is the estimate (based on the statistics that you have collected about index and table) that your query will return only 1 rank (E-lines = 1) while in reality (when the query has been executed) it's return of 82 lines (A-Rows = 82) within 3 minutes and 37 seconds (A-Time = 00:03:37.92)
It is clear that your index function that is not used.
You should be aware that when you create a function based index, oracle will create a virtual column that is hidden behind the scene.
Try to gather statistics on this column using dbms_stats.
Please, try first to TEST
BEGIN DBMS_STATS.gather_table_stats (ownname => user, tabname => 'TBL', CASCADE => TRUE, method_opt => 'FOR ALL HIDDEN COLUMNS SIZE 1' ); END; /
and re - run your query and post once again the new plan explain him like you did before
Best regards
Mohamed Houri
-
Is it possible to create an index of global partitioned hash on the columns of the primary key of a table that is not partitioned itself?
If a table has a PK constraint there an index generated automatically on the PK columns.
Y at - it a syntax to make the overall index partitioned hash when creating the constraint of PK,.
or syntax to MODIFY the indexes after the creation of the constraint?When you add a Pk to a table, you can choose a place already in the index. Something like
alter table t1 add constraint T_PK primary key (col1) using index T_IDX;
Create the partitioned index as you like with the same columns as the primary key and use the foregoing.
-
Count (*) using partitioned index gives incorrect results
I have a table partitioned by hash with 4 index the.
Table name: store_assortment
clues the: idx1 (master_id), idx2 (store), idx3 (item), idx4 (request_id)
When I run this query result is 13649:
SELECT COUNT (*)
OF store_assortment
WHERE to store = 6010
ORDER BY point;
When I run this query result is 13648:
SELECT COUNT (*)
OF store_assortment
WHERE store = 6010;
I rebuild all indexes, but the results are the same. Can anyone point to a bug or something that can explain this?
I dropped and recreated the indices and values are correct now. Reconstruction did not work.
Thanks for all the help.
Maybe you are looking for
-
6s still with disabled data roaming
Recently, I was in Vancouver, and even if I had roaming turned off voice and data on my iphone 6, I was still receiving service. Then I am responsible for roaming by Verizon. I called Verizon, they said, that can't happen. But that was certainly the
-
No panic here, but I would be grateful for some advice if anyone has time to help. First of all, I was convinced, by Microsoft, for Windows 8 to 10 Windows. If it's an improvement is a matter of opinion. Windows 10 has made some of my existing st
-
How to activate the port HMDI to pay on an Aspire V5 - 571?
Hi have the Aspire V5-571 and until today could play DVD or movies downloaded from Itunes on my Samsung TV. Now, I can't. I used the HDMI cables down to the Mexico on another tv with no problems, but now I can't even watch a DVD on the tv to the lap
-
not found Bluetooth software license
HP Pavilion g7-1310US for windows 7 64 bit laptop. whenever I reboot the message (Bluetooth software license not found [2]).
-
Are EcoVision Tech - representatives of Microsoft?
I received a call from a lady by the name of Portia. This lady had a strong Indian accent but spoke excellent English. She informed me that she works for a company called EcoVision Tech and they have an authorized representative and under license of