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...
Similar Messages
-
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; -
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 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 -
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 (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 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:14Thanks 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 -
"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 (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 -
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. -
Get ORA-01031: insufficient privileges error, but only when using dbstart.
I am getting ORA-01031: insufficient privileges error, but only when using dbstart. the listener starts but not the database. How come I can start it from SQL prompt but not from dbstart scripts as the oracle user?
[oracle@mallard bin]$ ./dbstart
Processing Database instance "gf44": log file /prod/oracle/10/startup.log
[oracle@mallard bin]$
Log file:
Wed Aug 20 10:15:02 CDT 2008
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Aug 20 10:15:02 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> ERROR:
ORA-01031: insufficient privileges
SQL> ORA-01031: insufficient privileges
SQL>
/prod/oracle/10/bin/dbstart: Database instance "gf44" warm started.
>
oratab file:
gf44:/prod/oracle/10:Y
dbstart file section:
# See if it is a V6 or V7 database
VERSION=undef
if [ -f $ORACLE_HOME/bin/sqldba ] ; then
SQLDBA=svrmgrl
VERSION=`$ORACLE_HOME/bin/sqldba command=exit | awk '
/SQL\*DBA: (Release|Version)/ {split($3, V, ".") ;
print V[1]}'`
case $VERSION in
"6") ;;
*) VERSION="internal" ;;
esac
else
if [ -f $ORACLE_HOME/bin/svrmgrl ] ; then
SQLDBA=svrmgrl
VERSION="internal"
else
SQLDBA="sqlplus /nolog"
fi
fi
Permissions of file:
[oracle@mallard bin]$ ls -la dbstart
-rwxrwxr-x 1 oracle oinstall 10407 Aug 19 12:27 dbstart
[oracle@mallard bin]$
User permissions:
[root@mallard 10]# id oracle
uid=503(oracle) gid=503(oinstall) groups=503(oinstall),504(dba)
[root@mallard 10]#
I can start the listener manually using "./lsnrctl start" and start the database manually from sql prompt using "SQL>startup" (as sysdba) with no problems. this only happens when using dbstart file. I am logged in as oracle user and all environment variables are set
Thank you for any help you could provide.I have the same problem, but i don't want insert this string
Connect sys/{password} as sysdbaI have deployed an Oracle 10g with os SunOS
$ uname -a
SunOS DB02 5.10 Generic_141444-09 sun4v sparc SUNW,Sun-Blade-T6320
I can connect with sys/password, but I can't login with
$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jan 7 15:19:50 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect / as sysdba
ERROR:
ORA-01031: insufficient privilegesthe the startup and dbshut don't work.
Someone maybe help me?
Thanks,
Regards.
Lain -
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 -
Hello everyone :
I can't switchover to primary. following is error and information.
RHEL 6.3 x86-64
Oracle database 11.2.0.3.0 Enterprise edition
Primary database = orclprmy
Standby database = orclstby1
##### /etc/hosts on orclstby1
[root@orclstby1 admin]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.50.211 ttprmy
192.168.50.212 orclstby1
### DG broker error
DGMGRL for Linux: Version 11.2.0.3.0 - 64bit Production
Copyright (c) 2000, 2009, Oracle. All rights reserved.
Welcome to DGMGRL, type "help" for information.
Connected.
DGMGRL> show configuration;
Configuration - TTDGConfig1
Protection Mode: MaxPerformance
Databases:
orclstby1 - Primary database
Error: ORA-16778: redo transport error for one or more databases
orclprmy - Physical standby database
Fast-Start Failover: DISABLED
Configuration Status:
ERROR
DGMGRL>
########### listener.ora on orclstby1
[root@orclstby1 admin]# cat listener.ora
# listener.ora Network Configuration File: /u2/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = orclstby1)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME=orcl)
(SID_NAME = orclstby1)
(ORACLE_HOME = /u2/oracle/product/11.2.0/dbhome_1)
(SID_DESC =
(GLOBAL_DBNAME=orclstby1)
(SID_NAME = orclstby1)
(ORACLE_HOME = /u2/oracle/product/11.2.0/dbhome_1)
(SID_DESC =
(GLOBAL_DBNAME=orclstby1_DGMGRL)
(SID_NAME = orclstby1)
(ORACLE_HOME = /u2/oracle/product/11.2.0/dbhome_1)
ADR_BASE_LISTENER = /u2/oracle
############## tnsnames.ora on orclstby1
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.50.212)(PORT = 1521))
(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = orcl))
orclprmy =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.50.211)(PORT = 1521))
(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = orclprmy))
orclprmy_DGMGRL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.50.211)(PORT = 1521))
(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = orclprmy_DGMGRL))
orclstby1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.50.212)(PORT = 1521))
(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = orclstby1))
orclstby1_DGMGRL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.50.212)(PORT = 1521))
(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = orclstby1_DGMGRL))
##### alert log on orclstby1.
Fatal NI connect error 12504, connecting to:
(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=)(CID=(PROGRAM=oracle)(HOST=orclstby1)(USER=oracle)))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.50.211)(PORT=1521)))
VERSION INFORMATION:
TNS for Linux: Version 11.2.0.3.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production
Time: 06-SEP-2013 13:19:55
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
There is problem in alert log.
In the /etc/hosts file. The standby server (orclstby1) ip is 192.168.50.212. but alert log is 192.168.50.211.
Is any idea?
Thanks for help.
消息编辑者为:user4914135#### on primary database
SQL> select dest_name,status,target,archiver,schedule, valid_type,valid_role,db_unique_name,error from v$archive_dest;
DEST_NAME STATUS TARGET ARCHIVER SCHEDULE VALID_TYPE VALID_ROLE DB_UNIQUE_NAME
ERROR
LOG_ARCHIVE_DEST_1 VALID LOCAL ARCH ACTIVE ALL_LOGFILES ALL_ROLES orclprmy
LOG_ARCHIVE_DEST_2 VALID REMOTE LGWR PENDING ALL_LOGFILES PRIMARY_ROLE orclstby1
LOG_ARCHIVE_DEST_3 INACTIVE LOCAL ARCH INACTIVE ALL_LOGFILES ALL_ROLES NONE
#### on standby database
SQL> select dest_name,status,target,archiver,schedule, valid_type,valid_role,db_unique_name,error from v$archive_dest;
DEST_NAME STATUS TARGET ARCHIVER SCHEDULE VALID_TYPE VALID_ROLE DB_UNIQUE_NAME
ERROR
LOG_ARCHIVE_DEST_1 VALID PRIMARY ARCH ACTIVE ALL_LOGFILES ALL_ROLES orclstby1
LOG_ARCHIVE_DEST_2 ERROR STANDBY LGWR PENDING ONLINE_LOGFILE PRIMARY_ROLE orclprmy
ORA-12504: TNS:listener was not given the SERVICE_NAME in
CONNECT_DATA
LOG_ARCHIVE_DEST_3 INACTIVE PRIMARY ARCH INACTIVE ALL_LOGFILES ALL_ROLES NONE
#### log_archive_dest on primary database
SQL> show parameter log_archive_dest
NAME TYPE VALUE
log_archive_dest string
log_archive_dest_1 string location=/u3/arch/orcl vali
d_for=(ALL_LOGFILES,ALL_ROLES)
db_unique_name=orclprmy
log_archive_dest_10 string
log_archive_dest_11 string
log_archive_dest_12 string
log_archive_dest_13 string
log_archive_dest_14 string
log_archive_dest_15 string
log_archive_dest_16 string
log_archive_dest_17 string
log_archive_dest_18 string
log_archive_dest_19 string
log_archive_dest_2 string service="orclstby1", LGWR ASYNC
NOAFFIRM delay=0 optional comp
ression=disable max_failure=0
max_connections=1 reopen=300 d
b_unique_name="orclstby1" net_ti
meout=30, valid_for=(all_logfi
les,primary_role)
log_archive_dest_20 string
log_archive_dest_21 string
log_archive_dest_22 string
#### log_archive_dest on standby database
SQL> show parameter log_archive_dest
NAME TYPE VALUE
log_archive_dest string
log_archive_dest_1 string location=/u3/arch/orclstby1 vali
d_for=(ALL_LOGFILES,ALL_ROLES)
db_unique_name=orclstby1
log_archive_dest_10 string
log_archive_dest_11 string
log_archive_dest_12 string
log_archive_dest_13 string
log_archive_dest_14 string
log_archive_dest_15 string
log_archive_dest_16 string
log_archive_dest_17 string
log_archive_dest_18 string
log_archive_dest_19 string
log_archive_dest_2 string service=orclprmy ASYNC valid_for
=(ONLINE_LOGFILE,PRIMARY_ROLE)
db_unique_name=orclprmy
log_archive_dest_20 string
log_archive_dest_21 string
log_archive_dest_22 string
log_archive_dest_23 string
log_archive_dest_24 string
log_archive_dest_25 string
#### spfile on standby database
</u2/oracle/product/11.2.0/dbhome_1/dbs> strings spfileorclstby1.ora
orcl.__db_cache_size=1040187392
orclstby1.__db_cache_size=1090519040
orcl.__java_pool_size=16777216
orclstby1.__java_pool_size=16777216
orcl.__large_pool_size=16777216
orclstby1.__large_pool_size=16777216
orcl.__oracle_base='/u2/oracle'#ORACLE_BASE set from environment
orclstby1.__oracle_base='/u2/oracle'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=536870912
orclstby1.__pga_aggregate_target=536870912
orcl.__sga_target=1610612736
orclstby1.__sga_target=161061273
orcl.__shared_io_pool_size=0
orclstby1.__shared_io_pool_size=0
orcl.__shared_pool_size=503316480
orclstby1.__shared_pool_size=469762048
orcl.__streams_pool_size=16777216
orclstby1.__streams_pool_size=0
*.archive_lag_target=0
*.audit_file_dest='/u2/oracle/admin/orclstby1/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/u2/oracle/oradata/orclstby1/control01.ctl','/u2/oracle/fast_recovery_area/orclstby1/control02.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_file_nam
e_convert='orcl','orclstby1'
*.db_name='orcl'
*.db_recovery_file_dest='/u2/oracle/fast_recovery_area'
*.db_recovery_file_dest_size=5218762752
*.db_unique_name='orclstby1'
*.deferred_segment_creation=FALSE
*.dg_broker_start=TRUE
*.diagnostic_dest='/u2/oracle'
*.fal_client='orclstby1'
*.fal_server='orclprmy'
*.log_archive_config='dg_config=(orclprmy,orclstby1)'
*.log_archive_dest_1='location=/u3/arch/orclstby1 valid_for=(ALL_LOGFILES,ALL_ROLES) db_unique_name=orclstby1'
*.log_archive_dest_2='ser
vice=orclprmy ASYNC valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=orclprmy'
*.log_archive_dest_state_2='ENABLE'
orcl.log_archive_format='orcl_%t_%s_%r.arc'
*.log_archive_format='orclstby1_%t_%s_%r.arc'
orclstby1.log_archive_format='orclstby1_%t_%s_%r.arc'
*.log_archive_max_processes=4
*.log_archive_min_succeed_dest=1
orcl.log_archive_trace=0
orclstby1.log_archive_trace=0
*.log_file_name_convert='orcl','orclstby1'
*.open_cursors=300
*.pga_aggregate_target=536870912
*.processes=
1500
*.remote_login_passwordfile='EXCLUSIVE'
*.sessions=1655
*.sga_target=1610612736
*.standby_file_management='AUTO'
*.undo_tablespace='UNDOTBS1'
</u2/oracle/product/11.2.0/dbhome_1/dbs>
Thank you for your help. -
Error: ORA-16778: redo transport error for one or more databases
Hi all
I have 2 database servers"Primary database and physical standby" in test environment( before going to Production)
Before Dataguard broker configuration , DG setup was running fine , redo was being applied and archived on phy standby.
but while enabling configuration i got "Warning: ORA-16607: one or more databases have failed" listener.ora & tnsnames.ora are updated with global_name_DGMGRL
Please help me how can i resolve this issue .Thanks in advance.
[oracle@PRIM ~]$ dgmgrl
DGMGRL for Linux: Version 10.2.0.1.0 - Production
Copyright (c) 2000, 2005, Oracle. All rights reserved.
Welcome to DGMGRL, type "help" for information.
DGMGRL> connect sys
Password:
Connected.
DGMGRL> show configuration
Configuration
Name: test
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
prim - Primary database
stan - Physical standby database
Current status for "test":
Warning: ORA-16607: one or more databases have failed
DGMGRL> show database
show database
^
Syntax error before or at "end-of-line"
DGMGRL> remove configuration
Warning: ORA-16620: one or more databases could not be contacted for a delete operation
Removed configuration
DGMGRL> exit
[oracle@PRIM ~]$ connect sys/sys@prim as sysdba
bash: connect: command not found
[oracle@PRIM ~]$ lsnrctl stop
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:52:30
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
The command completed successfully
[oracle@PRIM ~]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:52:48
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 08-OCT-2006 19:52:48
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PRIM_DGMGRLL" has 1 instance(s).
Instance "PRIM", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@PRIM ~]$ lsnrctl stop
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:54:46
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
The command completed successfully
[oracle@PRIM ~]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:54:59
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
[oracle@PRIM ~]$ dgmgrl
DGMGRL for Linux: Version 10.2.0.1.0 - Production
Copyright (c) 2000, 2005, Oracle. All rights reserved.
Welcome to DGMGRL, type "help" for information.
DGMGRL> connect /
Connected.
DGMGRL> create configuration test as
primary database is PRIM
connect identifier is PRIM
;Configuration "test" created with primary database "prim"
DGMGRL> add database STAN as
connect identifier is STAN
maintained as physical;Database "stan" added
DGMGRL> show configuration
Configuration
Name: test
Enabled: NO
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
prim - Primary database
stan - Physical standby database
Current status for "test":
DISABLED
DGMGRL> enable configuration
Enabled.
DGMGRL> show configuration
Configuration
Name: test
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
prim - Primary database
stan - Physical standby database
Current status for "test":
Warning: ORA-16607: one or more databases have failed
DGMGRL> show database verbose prim
Database
Name: prim
Role: PRIMARY
Enabled: YES
Intended State: ONLINE
Instance(s):
PRIM
Properties:
InitialConnectIdentifier = 'prim'
LogXptMode = 'ASYNC'
Dependency = ''
DelayMins = '0'
Binding = 'OPTIONAL'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '180'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '30'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = '/u01/app/oracle/oradata/STAN, /u01/app/oracle/oradata/PRIM'
LogFileNameConvert = '/u01/app/oracle/oradata/STAN, /u01/app/oracle/oradata/PRIM'
FastStartFailoverTarget = ''
StatusReport = '(monitor)'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
HostName = 'PRIM'
SidName = 'PRIM'
LocalListenerAddress = '(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521))'
StandbyArchiveLocation = '/u01/app/oracle/flash_recovery_area/PRIM/archivelog/'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.arc'
LatestLog = '(monitor)'
TopWaitEvents = '(monitor)'
Current status for "prim":
Error: ORA-16778: redo transport error for one or more databases
DGMGRL> show database verbose stan
Database
Name: stan
Role: PHYSICAL STANDBY
Enabled: YES
Intended State: ONLINE
Instance(s):
STAN
Properties:
InitialConnectIdentifier = 'stan'
LogXptMode = 'ASYNC'
Dependency = ''
DelayMins = '0'
Binding = 'OPTIONAL'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '180'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '30'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = '/u01/app/oracle/oradata/PRIM, /u01/app/oracle/oradata/STAN'
LogFileNameConvert = '/u01/app/oracle/oradata/PRIM, /u01/app/oracle/oradata/STAN'
FastStartFailoverTarget = ''
StatusReport = '(monitor)'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
HostName = 'STAND'
SidName = 'STAN'
LocalListenerAddress = '(ADDRESS=(PROTOCOL=tcp)(HOST=STAND)(PORT=1521))'
StandbyArchiveLocation = '/u01/app/oracle/flash_recovery_area/STAN/archivelog/'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.arc'
LatestLog = '(monitor)'
TopWaitEvents = '(monitor)'
Current status for "stan":
Error: ORA-12545: Connect failed because target host or object does not exist
DGMGRL>This:
Current status for "stan":
Error: ORA-12545: Connect failed because target host or object does not exist
says that your network setup is not correct. You need to resolve that first.
As for Broker setup steps how about the doc or our Data Guard 11g Handbook?
It's 3 DGMGRL commands so I am not sure what 'steps' you need?
Larry
Maybe you are looking for
-
How to create VB Object for a pdf embedded in IE 6 Browser?
I'm hoping to automate the testing of PDF forms on our web based application. Each PDF form is embedded in IE 6 below a series of hyperlinks. I'm trying to write a VB function which accesses the PDF form already opened in the IE Browser, clicks on th
-
Relation between DB Collector and Archive Directory
If archive directory could not be read, this would cause DB Collector error. Why so? And in what condition will cause the archive directory to be not readable? Thank you.
-
hi My nice bought for me an Iphone6 from USA as a birthday pressent , but i am not able to use here in UK as the phone is blocked by Tmobile in USA. Can you please tell me haw can i solve this problem. Kind regards Valbona Hoxha
-
When I start up, EVERY application launches. How do I disable this?
I have a new macbook air: runs OSX lion. I think this began after I installed MS office, or at the very least, has gotten worse since I installed it. There may or may not be any correlation. I have checked the preferences for all the MS office aps as
-
Your videos are NO HELP if the user is DEAF
I cannot hear any of the instructions on your videos so they are not much use A major reason for using a computer is because deaf people become isolated from the world. How often do you encounter some problem and the advice is "phone us any time, we