ORA-03001: unimplemented feature while run_job, job_type= 'CHAIN'
Hello,
I'm trying to run a chain manually with option run_job, to be able to run the job with use_current_session => TRUE.
I've read documentation, but I'm not able to understand the error message nor why it happens.
ERROR at line 1:
ORA-03001: unimplemented feature
ORA-06512: at "SYS.DBMS_ISCHED", line 185
ORA-06512: at "SYS.DBMS_SCHEDULER", line 486
ORA-06512: at line 2
Here is the code used.
-- Create Program
-- BEGIN
dbms_scheduler.create_program(
program_name => 'PROGRAM_TASK',
program_type => 'STORED_PROCEDURE',
program_action => 'my_shrink_prog',
number_of_arguments => 1,
enabled => FALSE,
comments => 'sample code that enable row movement');
END;
create or replace procedure my_shrink_prog( par in varchar2) authid current_user as
BEGIN
EXECUTE IMMEDIATE 'alter table ' || par || ' enable row movement';
END;
BEGIN
DBMS_SCHEDULER.define_program_argument (
program_name => 'PROGRAM_TASK',
argument_position => 1,
argument_type => 'VARCHAR2',
DEFAULT_VALUE => 'T1'
dbms_scheduler.enable('PROGRAM_TASK');
END;
BEGIN -- Create Chain with only one step (to simplify the test).
DBMS_SCHEDULER.CREATE_CHAIN (chain_name => 'MY_CHAIN2');
DBMS_SCHEDULER.DEFINE_CHAIN_STEP('MY_CHAIN2', 'STEP1', 'PROGRAM_TASK');
DBMS_SCHEDULER.DEFINE_CHAIN_RULE ('MY_CHAIN2', 'TRUE', 'START STEP1');
DBMS_SCHEDULER.DEFINE_CHAIN_RULE ('MY_CHAIN2', 'STEP1 COMPLETED', 'END');
DBMS_SCHEDULER.ENABLE ('MY_CHAIN2');
END;
-- Job that would run the chain
begin
dbms_scheduler.create_job(
job_name=>'CHAIN_JOB_1'
, auto_drop=>TRUE
, job_type=>'CHAIN'
, job_action=>'MY_CHAIN2'
, repeat_interval=>'freq=daily;byhour=13;byminute=0;bysecond=0'
, enabled=>TRUE
end;
-- Now I try to run the CHAIN with run_job, before daily scheduled time (13:00 pm). In theory it should work, but fails.
begin
dbms_scheduler.run_job('CHAIN_JOB_1',TRUE);
end;
ERROR at line 1:
ORA-03001: unimplemented feature
ORA-06512: at "SYS.DBMS_ISCHED", line 185
ORA-06512: at "SYS.DBMS_SCHEDULER", line 486
ORA-06512: at line 2
__Note 1:_
- The scheduled job really works. At 13:00 pm the scheduled job starts and complete the chain steps as defined.
Many thanks in advance.
Regards Luis Gomez
Edited by: user12011387 on 07-sep-2012 4:14
Thanks for the reply, but my question is related to RUN_JOB.
I've read again documentation. NOW, I've seen the real reason why my error message while try to run a chain via a job.
http://docs.oracle.com/cd/B28359_01/server.111/b28310/scheduse009.htm#CHDHFACE
Extracted from that document:
Running Chains
You can use the following two procedures to run a chain immediately:
RUN_JOB
RUN_CHAIN
If you already created a chain job for a chain, you can use the RUN_JOB procedure to run that job (and thus run the chain), but you must set the use_current_session argument of RUN_JOB to FALSE.
... End Text Extracted
- Based on what said in document, I can not run_job with use_current_session => TRUE, as I was trying to do.
- Tested and confirmed:
SQL> begin
2 dbms_scheduler.run_job('CHAIN_JOB_1',FALSE);
3 end;
4 /
PL/SQL procedure successfully completed.
Regards
Luis Gomez
Similar Messages
-
PL/SQL: ORA-03001: unimplemented feature
hi i am just trying to understand the bulk binding feature of oracle
this is the test code that i am trying
set serveroutput on
set timing on
declare
src_obj src;
begin
SELECT srcip BULK COLLECT INTO src_obj
FROM rawcdr ;
insert into rawcdr1(srcip) values src_obj;
end;
i am using oracle 10 g std edition
and i get this error
insert into rawcdr1(srcip) values src_obj;
ERROR at line 6:
ORA-06550: line 6, column 25:
PL/SQL: ORA-03001: unimplemented feature
ORA-06550: line 6, column 5:
PL/SQL: SQL Statement ignored
is it something related to the db version
or i m misin on basics
please helphey thanks william
it does work but why was it giving unimplemented feature before
SRC by the way is table type .
now i want to perform some string function on the returned data
what i tried was
SELECT srcip BULK COLLECT INTO src_obj
FROM rawcdr
WHERE srcip='220.227.46.130';
FORALL i IN src_obj.FIRST..src_obj.LAST
if (instr(src_obj(i),'00')=5) then
INSERT INTO rawcdr1 (srcip) VALUES (src_obj(i));
end if;
i get this error
if (instr(src_obj(i),'00')=5) then
ERROR at line 7:
ORA-06550: line 7, column 6:
PLS-00103: Encountered the symbol "IF" when expecting one of the following:
. ( * @ % & - + / at mod remainder rem select update with
<an exponent (**)> delete insert || execute multiset save
merge
ORA-06550: line 11, column 0:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
end not pragma final instantiable order overriding static
member constructor map
Elapsed: 00:00:00.03
is it not possible to use the string function in this context
please help whats the right way to do the same -
ORA-03001: unimplemented feature. How to find the reason.
RDBMS version: 10.1.0.5.0
Sometimes our application raise the error ORA-03001.
We need to get more information about the problem because we are not able to find the reason of this error.
Someone suggests me to set the event:
alter system set event = '3001 trace name ERRORSTACK level 3' SCOPE=SPFILE
What do you think about it?
Edited by: user600979 on 14-ago-2009 5.36user600979 wrote:
RDBMS version: 10.1.0.5.0
Sometimes our application raise the error ORA-03001.
We need to get more information about the problem because we are not able to find the reason of this error.
Someone suggests me to set the event:
alter system set event = '3001 trace name ERRORSTACK level 3' SCOPE=SPFILEI'm not sure if setting this event will help but you can test it!
First of all the SCOPE=SPFILE will require to bounce the database. You might first consider setting and testing the event in Memory.
Then you can run a little script to see if the error is trackable and if the tracked information is useful.
SQL> create procedure test_error as
2 e_test_error exception;
3 pragma exception_init (e_test_error, -3001);
4 begin
5 raise e_test_error;
6 end;
7 /
Procedure created.
SQL>
SQL> execute test_error;
BEGIN test_error; END;
ERROR at line 1:
ORA-03001: unimplemented feature
ORA-06512: at "CDM_USER.TEST_ERROR", line 5
ORA-06512: at line 1
SQL> Then check the alert log/trace whatever you use. -
"ORA-03001: unimplemented feature" in Oracle 8.1.7
When I'm trying to run even the simplest mappings in OWB 9.2 I'm getting the error code ORA-03001: unimplemented feature.
I am running under Oracle 8.1.7 with 8.1.7 as source and target. I have tried to debug the package manually in Oracle but I can't seem to get to what exactly is unimplemented.
I can't compile the Olap and Match Merge functions but shouldn't have to since I'm not using them(?).
Has anyone had the ORA-03001: unimplemented feature problem?I don't know exactly what caused it to fail, I just know that removing the double quotes removes the problem.
Examples of repeated quotes are:
IF get_audit_level = AUDIT_ERROR_DETAILS OR get_audit_level = AUDIT_COMPLETE THEN
WB_RT_MAPAUDIT.error(
p_rta=>get_runtime_audit_id,
p_step=>0,
p_rtd=>batch_auditd_id,
p_rowkey=>0,
p_table=>'"DIM_ACCOUNT"',
p_column=>'*',
or
WB_RT_MAPAUDIT.error_source(
p_rta=>get_runtime_audit_id,
p_rowkey=>get_rowkey + error_index - 1,
p_seq=>10,
p_instance=>1,
p_table=>SUBSTR('"STAGE_ACCOUNT"',0,80),
p_column=>SUBSTR('STAGE_ACCOUNT_0_CUSTOMER_SEX',0,80),
p_value=>SUBSTR("STAGE_ACCOUNT_0_CUSTOMER_SEX"(error_index),0,2000),
p_step=>get_step_number,
p_role=>'S'
error_stmt := SUBSTR('"DIM_ACCOUNT_0_CLI"("DIM_ACCOUNT_i") :="STAGE_ACCOUNT_0_CLI"("STAGE_ACCOUNT_i");',0,2000);
error_column := SUBSTR('"DIM_ACCOUNT_0_CLI"',0,80);
error_value := SUBSTR("STAGE_ACCOUNT_0_CLI"("STAGE_ACCOUNT_i"),0,2000);
or in a procedure:
PROCEDURE "STAGE_ACCOUNT_t" IS
-- Constants for this map
get_map_name CONSTANT VARCHAR2(40) := '"STAGE_ACCOUNT_t"';
get_source_name CONSTANT VARCHAR2(2000) := '"STAGE_ACCOUNT"';
get_source_uoid CONSTANT VARCHAR2(2000) := '"STAGE_ACCOUNT"';
get_step_number CONSTANT NUMBER(22) := 1;
Thanks, -
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 -
ORA-03001: unimplemented feature (ADDM)
When i am looking at diagonastic summary at 10g OEM there is 5 findings in the performance area when i drill down it ADDM has identified a number of performance issue which are sequels when i click on these individaul sequels and run advisor ,after running it gives me no recommendation for some sequel and mostly give ORA-03001: unimplemented feature in the recommendations pane for others sequel ,why ADDM is giving no recommendation and error ,is there any missing configuration with ADDM?
ORA-03001: unimplemented featureKhurramwhich relases of version 10g you are in ?
SQL> SELECT banner FROM v$version
2 /
BANNER
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
PL/SQL Release 10.1.0.2.0 - Production
CORE 10.1.0.2.0 Production
TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
NLSRTL Version 10.1.0.2.0 - Production
What is the value of compatible parameter?Jaffar Bahi i am not getting what do you mean by compatible parameter??
Khurram
Message was edited by:
Khurram Siddiqui -
ORA-03001: unimplemented feature (SQLDev 1.5.0.53.38)
Hi,
I found this error:
An error was encountered performing the requested operation:
ORA-03001: unimplemented feature
03001. 00000 - "unimplemented feature"
*Cause: This feature is not implemented.
*Action: None.
Error at Line:1 Column:53
when I was trying to execute the following query:
select (1000 -sum(decode(:dummy, 'CASH', 15, 7))) -
(sum(decode(:dummy, 'TAX', 6, 0)) +
sum(decode(:dummy, 'RETN', 2, 0)))
from dual;
seems like a bug to me, I don't know, that's why I'm opening this thread.Hi sartigas ,
It is the continuation character '-' feature:
Input:
variable dummy varchar2
begin
:dummy := 'TAX';
end;
select (1000 -sum(decode(:dummy, 'CASH', 15, 7))) -
(sum(decode(:dummy, 'TAX', 6, 0)) +
sum(decode(:dummy, 'RETN', 2, 0)))
from dual;
select (1000 -sum(decode(:dummy, 'CASH', 15, 7))) - /* */
(sum(decode(:dummy, 'TAX', 6, 0)) +
sum(decode(:dummy, 'RETN', 2, 0)))
from dual;
Output:
anonymous block completed
Error starting at line 6 in command:
select (1000 -sum(decode(:dummy, 'CASH', 15, 7))) (sum(decode(:dummy, 'TAX', 6, 0)) +
sum(decode(:dummy, 'RETN', 2, 0)))
from dual
Error at Command Line:6 Column:51
Error report:
SQL Error: ORA-03001: unimplemented feature
03001. 00000 - "unimplemented feature"
*Cause: This feature is not implemented.
*Action: None.
(1000-SUM(DECODE(:DUMMY,'CASH',15,7)))-/**/(SUM(DECODE(:DUMMY,'TAX',6,0))+SUM(DECODE(:DUMMY,'RETN',2,0)))
987
1 rows selected
-Turloch -
Error- ORA-03001: unimplemented feature
Hi,
I am getting ORA-03001:unimplemented feature error in my code.My code is generatiing a clob object.
I have used(Xmlelement
"ABC",
Xmlforest
nvl(to_char(Column_name, 'HHMMSS' ),' ')
The same code is working in other database.But in my current Database i am getting the above error.And moreover both the database has same version(11g release2)
Can any one please let me know what might be the root cause whether any utility pkg is not installed properly or any other issue.Post exact version and a snippet of SQL*Plus showing your statement along with all errors. For example:
SQL> select *
2 from v$version
3 /
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> select Xmlelement(
2 "ABC",
3 Xmlforest(
4 nvl(to_char(hiredate,'HHMMSS' ),' ') d
5 )
6 )
7 from emp
8 /
XMLELEMENT("ABC",XMLFOREST(NVL(TO_CHAR(HIREDATE,'HHMMSS'),'')D))
<ABC><D>121200</D></ABC>
<ABC><D>120200</D></ABC>
<ABC><D>120200</D></ABC>
<ABC><D>120400</D></ABC>
<ABC><D>120900</D></ABC>
<ABC><D>120500</D></ABC>
<ABC><D>120600</D></ABC>
<ABC><D>120400</D></ABC>
<ABC><D>121100</D></ABC>
<ABC><D>120900</D></ABC>
<ABC><D>120500</D></ABC>
XMLELEMENT("ABC",XMLFOREST(NVL(TO_CHAR(HIREDATE,'HHMMSS'),'')D))
<ABC><D>121200</D></ABC>
<ABC><D>121200</D></ABC>
<ABC><D>120100</D></ABC>
14 rows selected.
SQL> SY. -
ORA-03001 "unimplemented feature" error for SQL when using view
Our ERP allows us (IT staff) to create Information Access Layers which are basically views. These can be "live" where the view is like your tradiitonal one or non-live, where a table of data is replicated on a schedule and a view is available over that table.
The following SQL runs fine with a non-live IAL but gives an ORA-03001 error when using a live one.
Any ideas why please? We are using 9.2.0.6
Thanks
with
d_list as
select territory, customer_name, order_no, sum(buy_qty_due) || ' x ' || catalog_desc d, sum(total_line_price_less_disc) v
from
ifsinfo.cust_ord_salescodes
where
site LIKE 'OKM' || '%'
and
line_date_entered >=TO_DATE ('01/06/2007','DD/MM/YYYY')
AND
line_date_entered <ADD_MONTHS (TO_DATE ('01/06/2007','DD/MM/YYYY'),2)+(1-1/(60*60*24))
AND
sub_division = 'GAS'
AND
line_item_no <= 0
AND
line_status != 'Cancelled'
group by
territory, customer_name, order_no, catalog_desc
select
d_list.territory,
d_list.customer_name,
d_list.order_no,
d,
0 as sum_value,
d_list.v
from
(select d_list.order_no, sum(V) sv from d_list having sum(V) > max(3000) group by d_list.order_no) s_list,
d_list
where
s_list.order_no=d_list.order_no
order by
d_list.territory, d_list.customer_name, d_list.order_no,d
/Note: If I run the following it is fine, but obviously does not provide what I want:
with
d_list as
select territory, customer_name, order_no, sum(buy_qty_due) || ' x ' || catalog_desc d, sum(total_line_price_less_disc) v
from
ifsinfo.cust_ord_salescodes
where
site LIKE 'OKM' || '%'
and
line_date_entered >=TO_DATE ('01/06/2007','DD/MM/YYYY')
AND
line_date_entered <ADD_MONTHS (TO_DATE ('01/06/2007','DD/MM/YYYY'),2)+(1-1/(60*60*24))
AND
sub_division = 'GAS'
AND
line_item_no <= 0
AND
line_status != 'Cancelled'
group by
territory, customer_name, order_no, catalog_desc
select
d_list.territory,
d_list.customer_name,
d_list.order_no,
d,
0 as sum_value,
d_list.v
from
--(select d_list.order_no, sum(V) sv from d_list having sum(V) > max(3000) group by d_list.order_no) s_list,
d_list
--where
--s_list.order_no=d_list.order_no
order by
d_list.territory, d_list.customer_name, d_list.order_no,d
/Thanks David. The actual SQL is as follows:
with
p_list as
(select * from
(select 'OKM' p_company,
'GAS' p_subdiv,
'01/06/2007' p_startdate,
2 p_months,
3000 p_minval,
DECODE(UPPER('OKM'),'OKM','DD/MM/YYYY','KMI','DD/MM/YYYY','OIA','MM/DD/YYYY') p_datefmt
from dual)
d_list as
select territory, customer_name, order_no, sum(buy_qty_due) || ' x ' || catalog_desc d, sum(total_line_price_less_disc) v
from
ifsinfo.cust_ord_salescodes,
p_list
where
site LIKE p_company || '%'
and
line_date_entered >=TO_DATE (p_startdate,p_datefmt)
AND
line_date_entered <ADD_MONTHS (TO_DATE (p_startdate,p_datefmt),p_months)+(1-1/(60*60*24))
AND
sub_division = p_subdiv
AND
line_item_no <= 0
AND
line_status != 'Cancelled'
group by
territory, customer_name, order_no, catalog_desc
select d_list.territory, d_list.customer_name, d_list.order_no, d, decode(lag(d_list.order_no) over (order by d_list.territory, d_list.customer_name, d_list.order_no),d_list.order_no,0,s_list.sv) as sum_value, d_list.v from
(select d_list.order_no, sum(V) sv from d_list, p_list having sum(V) > max(p_minval) group by d_list.order_no) s_list,
d_list
where
s_list.order_no=d_list.order_no
order by
d_list.territory, d_list.customer_name, d_list.order_no,d
/the mystery is why it works for a view over a table (created by SQL A) but not a view (which is SQL A).
The actual VIEW is:
SELECT
SUBSTR(co.contract,1,3) company,
co.contract site,
co.order_no order_no,
co.order_id order_type_code,
co.currency_code currency_code,
ROUND(1/col.currency_rate,x_curr_rounding_dp) currency_rate,
co.customer_po_no customer_po_no,
co.date_entered head_date_entered,
co.authorize_code coordinator,
NVL(co.market_code,coc.market_code) customer_market_code,
NVL(co.district_code,x_def_district_code) customer_district_code,
co.customer_no customer_no,
ifsapp.cust_ord_customer_api.get_name(co.customer_no) customer_name,
co.state head_status,
decode(co.state,'Cancelled','N','Invoiced/Closed','N','Y')
head_open_status,
ROUND (
ifsapp.customer_order_api.get_total_base_price(co.order_no)
,x_rounding_dp) total_order_value,
------- co.salesman_code head_salesman_code,
col.line_no line_no,
col.rel_no rel_no,
col.line_item_no line_item_no,
NVL(col.part_no,x_def_inv_part) inventory_part_no,
col.catalog_no sales_part_no,
col.catalog_desc catalog_desc,
col.date_entered line_date_entered,
col.catalog_type sales_part_type,
col.planned_ship_date line_planned_ship_date,
col.planned_delivery_date line_planned_delivery_date,
col.promised_delivery_date line_promised_delivery_date,
col.real_ship_date,
------- col.ref_id line_salesman_code,
col.state line_status,
decode(col.state,'Cancelled','N','Invoiced/Closed','N','Y')
line_open_status,
nvl(col.ref_id,co.salesman_code) salesman_code,
nvl(col.C_Salesman_Region_Code,sps.region_code) region_code,
nvl(col.C_Salesman_Division,sps.division) division,
nvl(col.C_Salesman_Sub_Division,sps.sub_division) sub_division,
nvl(col.C_Salesman_Territory,sps.territory) territory,
NVL2 (
ifsapp.customer_group_api.get_description(co.priority),co.priority,coc.cust_grp
) customer_group_code,
NVL(col.discount,0) discount_percentage,
NVL(col.order_discount,0) order_discount_percentage,
(1-NVL(col.discount,0)/100) *
(1-NVL(col.order_discount,0)/100) discount_factor,
1-(1-NVL(col.discount,0)/100) *
(1-NVL(col.order_discount,0)/100) less_discount_factor,
ROUND (
(DECODE(SIGN(col.line_item_no),1,0,col.buy_qty_due*col.base_sale_unit_price*col.price_conv_factor)*(1-(1-NVL(col.discount,0)/100)*(1-NVL(col.order_discount,0)/100)))
,x_rounding_dp) line_discount_amount,
ROUND (
greatest(col.buy_qty_due-col.qty_invoiced,0)*(DECODE(SIGN(col.line_item_no),1,0,col.base_sale_unit_price*col.price_conv_factor)*(1-(1-NVL(col.discount,0)/100)*(1-NVL(col.order_discount,0)/100)))
,x_rounding_dp) rem_line_discount_amount,
col.buy_qty_due buy_qty_due,
col.qty_invoiced qty_invoiced,
greatest(
col.buy_qty_due-col.qty_invoiced,0
) qty_remaining,
qty_shipped,
greatest(
col.buy_qty_due-col.qty_shipped,0
) qty_not_shipped,
ROUND (
DECODE(SIGN(col.line_item_no),1,0,col.base_sale_unit_price*col.price_conv_factor)
,x_rounding_dp) unit_line_price,
ROUND (
DECODE(SIGN(col.line_item_no),1,0,col.base_sale_unit_price*col.price_conv_factor)-
ROUND (
(DECODE(SIGN(col.line_item_no),1,0,col.buy_qty_due*col.base_sale_unit_price*col.price_conv_factor)*(1-(1-NVL(col.discount,0)/100)*(1-NVL(col.order_discount,0)/100)))
,x_rounding_dp)
,x_rounding_dp) unit_line_price_less_disc,
ROUND (
DECODE(SIGN(col.line_item_no),1,0,col.buy_qty_due*col.base_sale_unit_price*col.price_conv_factor)
,x_rounding_dp) total_line_price,
ROUND (
DECODE(SIGN(col.line_item_no),1,0,col.buy_qty_due*col.base_sale_unit_price*col.price_conv_factor)-
ROUND (
(DECODE(SIGN(col.line_item_no),1,0,col.buy_qty_due*col.base_sale_unit_price*col.price_conv_factor)*(1-(1-NVL(col.discount,0)/100)*(1-NVL(col.order_discount,0)/100)))
,x_rounding_dp)
,x_rounding_dp) total_line_price_less_disc,
ROUND (
DECODE(SIGN(col.line_item_no),1,0,greatest(col.buy_qty_due-col.qty_invoiced,0)*col.base_sale_unit_price*col.price_conv_factor)
,x_rounding_dp) rem_total_line_price,
ROUND (
DECODE(SIGN(col.line_item_no),1,0,greatest(col.buy_qty_due-col.qty_invoiced,0)*col.base_sale_unit_price*col.price_conv_factor)-
ROUND (
greatest(col.buy_qty_due-col.qty_invoiced,0)*(DECODE(SIGN(col.line_item_no),1,0,col.base_sale_unit_price*col.price_conv_factor)*(1-(1-NVL(col.discount,0)/100)*(1-NVL(col.order_discount,0)/100)))
,x_rounding_dp)
,x_rounding_dp) rem_total_line_price_less_disc,
NVL(co.commission_percentage,0) commission_percent,
1-NVL(co.commission_percentage,0)/100 commission_factor,
NVL(co.commission_percentage,0)/100 less_commission_factor,
col.cost
FROM
ifsapp.customer_order_line col,
ifsapp.customer_order co,
ifsapp.sales_part_salesman sps,
ifsapp.cust_ord_customer coc,
(select
2 x_rounding_dp,
6 x_curr_rounding_dp,
'9999999' x_def_inv_part,
'Domestic' x_def_district_code
from
dual) constants
WHERE
col.order_no=co.order_no
AND
co.customer_no = coc.customer_no
AND
(NVL(col.ref_id,co.salesman_code) = sps.salesman_code or sps.salesman_code is null)
------AND
------ co.state != 'Cancelled'
------AND
------ col.state !='Cancelled'
------AND
------ col.line_item_no <=0I suspect it is the level of complexity that Oracle cannot handle. I have seen notes about Oracle errors with views generating that ORA 03001, maybe I should log it with Oracle... -
ORA-03001: unimplemented feature
Hi all,
i have a column with number(5,2). If i try to insert 1200 will get the above error message. This is also the case if i try to insert -120.22, or 120.33.
I am using oracle 10g R2 under window.
Have anyone a solution.Hi,
Hi,
I did not faced any issue..
17:20:06 rel15_real_p>select * from v$version
17:20:33 2 ;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for Linux: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
17:20:35 rel15_real_p>create table test1 no number(9));
create table test1 no number(9))
ERROR at line 1:
ORA-00922: missing or invalid option
17:20:57 rel15_real_p>create table test1 (no number(9));
Table created.
17:21:05 rel15_real_p>insert into test1 values (1);
1 row created.
I did not faced any issue What is the reason behind. that ??
Thanks
Pavan Kumar N -
Ora 03001 unimplemented feature in Discoverer viewer
Hi ,
I created a report in Desktop and all reports are run using discoverer viewer.
User are able to run detail worksheets but not summary sheets for these details reports in discoverer viewer or plus.
If I login as same user I can run in desktop.
Any help is highly appricated.Hi All,
I opened SR and oracle suggested these steps and it worked.
1.) Backup the pref.txt file in the $ORACLE_HOME/discoverer/util/ directory ;
2.) Stop the Discoverer and Oc4j instance (you can use "opmnctl stopall" command)
3.) Edit the parameters in the pref.txt to be :
EnhancedAggregationStrategy= 0
UseNoRewriteHint=0
UseOptimizerHints = 1
then save the file.
4.) Once the file is successfully edited, run the applypreferences.sh file in the same directory to get the new preferences into ef
fect.
5.) Start Discoverer and Oc4j instance (you can use "opmnctl startall" command).
It works.
Thanks
Ameen -
ORA-03001 Unimplemented feature error
Hi,
I have created a small procedure and getting above mentioned error, but couldnt find any helpful comments to fix this issue on google, hope grues from this site could help me
<code>
CREATE OR REPLACE PROCEDURE pr_back_bulk (TABLENAME IN VARCHAR2)
AUTHID CURRENT_USER
IS
type c_type is table of ALL_TAB_COLUMNS%ROWtype;
rec1 c_type;
start_time number;
SQLST VARCHAR2(250);
BEGIN
start_time:=dbms_utility.get_time;
SQLST:='select column_name BULK COLLECT INTO REC1 FROM all_tab_columns where table_name=';
SQLST:=SQLST|| ''''||TABLENAME||''' and data_type= ''VARCHAR2''' ;
DBMS_OUTPUT.PUT_LINE(SQLST);
EXECUTE IMMEDIATE SQLST;
--forALL indx in REC1.FIRST..REC1.LAST
--INSERT INTO TT (ATTR) VALUES REC1(INDX);
--dbms_output.put_line(' time difference ='||(dbms_utility.get_time-start_time)/100);
END pr_back_bulk;
</code>901887 wrote:
<code>
SQLST:='select column_name BULK COLLECT INTO REC1 FROM all_tab_columns where table_name=';
SQLST:=SQLST|| ''''||TABLENAME||''' and data_type= ''VARCHAR2''' ;
EXECUTE IMMEDIATE SQLST;
</code>Isn't proper syntax.
SQLST:='select column_name FROM all_tab_columns where table_name=';
SQLST:=SQLST|| ''''||TABLENAME||''' and data_type= ''VARCHAR2''' ;
EXECUTE IMMEDIATE SQLST BULK COLLECT INTO REC1;Should be the proper syntax (i'm guessing here, you should be able to google or check the documentation ... but i'm pretty sure i'm right).
Or to be even more proper and avoid any SQL Injection possibilities (bind variables are your friend).
SQLST:='select column_name FROM all_tab_columns where table_name= :x and data_type = ''VARCHAR2'' ';
EXECUTE IMMEDIATE SQLST BULK COLLECT INTO REC1 using tablename; -
Oracle 9i and xmltype, ora-03001
I get this message: 'ora-03001 unimplemented feature' when i
trying to create a table with this statement: create table
purchaseorder(podocument sys.xmltype);
-The user has the following roles:
connect, resource, javauserpriv, query rewrite, create any
directory.
-And execute privilege on xmlparser and xmldom (granted by sys).
-The init.ora file is included with query_rewrite_enabled=true,
query_rewrite_integrity=trusted.
What's wrong?Colleague, I had problem the same that its, also with the postagem of a message here in this forum. I have the successfully installed Oracle 9i EE, after two weeks of very work, in IBM to xServer 220, with SuSE 7.2 This error occurred due to the fact of incorrect parameters of the init.ora, as well as, through some definite parameters incorrectly, in that if it says respect the 0 variable of environment of the ORACLE. One remembers to modify parameter REMOTE_LOGIN... of EXCLUSIVE for NONE and of preference it comments this in its archive INIT.ORA. Of one looked at in check list of installation of the Oracle, as well as in the specific manual of pattern for its distribution for the correct definition of the parameters of its archive of pattern.
-
Hi,
I am in the process of running a "create_tables" SQL script on a 9.0.1 database and am experiencing the following error message with 2 of the "create_tables" statements in this script:
SQL> CREATE TABLE icmp_body
2 (
3 id NUMBER,
4 type NUMBER(3),
5 code NUMBER(3),
6 src_ip VARCHAR2(15),
7 dest_ip VARCHAR2(15),
8 body BLOB
9 );
CREATE TABLE icmp_body
ERROR at line 1:
ORA-03001: unimplemented feature
SQL> CREATE TABLE payload
2 (
3 id NUMBER,
4 data BLOB
5 );
CREATE TABLE payload
ERROR at line 1:
ORA-03001: unimplemented feature
If I omit the "body" and "data" columns from the above statements, the tables are created. The syntax of the other CREATE TABLE statments in this script is the same as the above statements and they all execute fine. Any ideas?
Thanks,Interestingly enough, TYPE is also a reserved word but we can use it as a column name. This is because Oracle introduced TYPE late in the day, as part of the object implementation and too many people already had used it in column definitions, not least Oracle themselves:
SQL> select owner, count(*)
2 from all_tab_columns
3 where column_name = 'TYPE'
4 group by owner;
OWNER COUNT(*)
ENTMANAGER 2
SYS 193
SYSTEM 8
6 rows selected.
SQL> So it proves Oracle can distinguish whether a reserved word usage is SQL syntax or just a column name, but it chooses not to in most cases. Obviously this is going to be more common as Oracle continues to expand and the pool of common English nouns and verbs shrinks.
As a matter of good practice we should avoid using all reserved words, even the ones Oracle allows us to use.
Cheers, APC -
Unimplemented feature ---need your help
Hi,
I have written the below query in APEX. When i run the query in APEX i get the following error. This was working fine in the previous versions of APEX. If i run the same query in SQL prompt the query executes without any errors. Please can anyone tell me if the query has to be changed or there is some feature not mplemented.
failed to parse SQL query:
ORA-03001: unimplemented feature
select
htmldb_item.HIDDEN(1,ID) HIDDEN,
"PROD_LEVEL_1",
"VERSION",
"ID",
"ID" ID_DISPLAY,
"CUST_ID",
(select p.prod_name from ref_wiki_cgbu_products p where p.id= "PROD_LEVEL_1")
level1,
(select p.prod_name from ref_wiki_cgbu_products p where p.id= "PROD_LEVEL_2") level2,
(select p.prod_name from ref_wiki_cgbu_products p where p.id= "PROD_LEVEL_3") level3,
(select p.prod_name from ref_wiki_cgbu_products p where p.id= "PROD_LEVEL_4") level4,
(select p.prod_name from ref_wiki_cgbu_products p where p.id= "PROD_LEVEL_5") level5,
APEX_ITEM.SELECT_LIST(49,DECODE("VERSION",NULL,'-Select-',"VERSION"),decode(get_lov_values(PROD_LEVEL_1),null,'not available',get_lov_values(PROD_LEVEL_1))) "VERSION1",
"BILLING",
from CGBU_CUST_PRO
WHERE "CUST_ID" = 737 and PROD_LEVEL_2 is null
UNION ALL
select
htmldb_item.HIDDEN(1,ID) HIDDEN,
"PROD_LEVEL_2",
"VERSION",
"ID",
"ID" ID_DISPLAY,
"CUST_ID",
(select p.prod_name from ref_wiki_cgbu_products p where p.id= "PROD_LEVEL_1")
level1,
(select p.prod_name from ref_wiki_cgbu_products p where p.id= "PROD_LEVEL_2") level2,
(select p.prod_name from ref_wiki_cgbu_products p where p.id= "PROD_LEVEL_3") level3,
(select p.prod_name from ref_wiki_cgbu_products p where p.id= "PROD_LEVEL_4") level4,
(select p.prod_name from ref_wiki_cgbu_products p where p.id= "PROD_LEVEL_5") level5,
APEX_ITEM.SELECT_LIST(49,DECODE("VERSION",NULL,'-Select-',"VERSION"),decode(get_lov_values(PROD_LEVEL_2),null,'not available',get_lov_values(PROD_LEVEL_2))) "VERSION1",
"PLATFORM_OS"
from CGBU_CUST_PRO
WHERE "CUST_ID" = 737 and PROD_LEVEL_2 is not null and PROD_LEVEL_3 is null
Thanks,Hi Vikas,
can you please create a user for me in your workspace? If you don't want to post the user credentials on the forum you can send me an e-mail to patrick (dot) wolf (at) oracle (dot) com
Regards
Patrick
Maybe you are looking for
-
MagSafe connected, but not charging
Got a strange situation going on with our MacBook, not sure if y'all can help but here goes! We have an out of warranty MacBook, bought as a refurb in 2008 I believe. As of a couple days ago, when we plug the MagSafe into the port on the computer, it
-
How to pass parameter /1BCDWB/DOCPARAMS from webdynpro?
Hi Experts, We create a wdp view and indert an adobe form into it. And this form has an interface based on XML schema. Now we want to translate this form into multi-language, and in wdp side, we will display diffenent language version of form for dif
-
Cross-mailbox conversation expansion doesn't work
In Mail for Mountain Lion, when a conversation has messages in different mailboxes, the gray box to expand/collapse the conversation doesn't work. The number of messages shown only reflects the ones in the Inbox (or active mailbox, probably; I've onl
-
Change of Account personal details
There is an error in my account. The Country/Region is shown as UG instead of UK and I have failed to change it by editing the personal information page. I have been at it for an hour. I had live chat and I was told I was being transferred but the co
-
Problem while running the report from stored procedure
Hi, I using stored procedure to generate my report. my stored procedure's code looks like this. CREATE OR REPLACE PROCEDURE PROJECTOVERVIEWREPORT1(query in VARCHAR2) IS myPlist SRW_PARAMLIST; myIdent SRW.Job_Ident; myStatus SRW.Status_Record; BEGIN s