Synonym problem with external table in materialized view
I have a materialized view that includes selects on two external tables.
However, no matter how I try to access the external tables, the creation fails with a "Synonym Translation Is No Longer Valid" (ORA-00980) error.
This happens even when I replace the tablename with the full table name, including the link.
I can create a view just fine, but if I then try something like CREATE MATERIALIZED VIEW mvw_my_view AS SELECT * FROM vw_my_view (where vw_my_view is the view in question), it still throws the Synonym Translation exception.
00980, 00000, "synonym translation is no longer valid"
// *Cause: A synonym did not translate to a legal target object. This
// could happen for one of the following reasons:
// 1. The target schema does not exist.
// 2. The target object does not exist.
// 3. The synonym specifies an incorrect database link.
// 4. The synonym is not versioned but specifies a versioned
// target object.
// *Action: Change the synonym definition so that the synonym points at
// a legal target object.It is really, Really, REALLY difficult to fix a problem that can not be seen.
use COPY & PASTE so we can see what you do & how Oracle responds.
Similar Messages
-
Problem with replication based on materialized view
Problem with replication based on materialized view...
Given:
1. Source: S-1
2. Targets: T-1, T-2
3. DB links: from T-1 to S-1, from T-2 to S-1
Required replicate table TBL on S-1 to T-1, T-2 via db links.
On S-1 was created materialized view log with PK on TBL. On T-1, T-2 were created mat.views as "on prebuilt table refresh fast on demand". In case of get "ORA-12034: materialized view log younger than last refresh" or initial load - perform complete refresh. Initial load on T-1 takes about 1 hour, on T-2 - about 12 hours. Refresh is executed via job with minutely interval. If refresh is running then it is not performed.
Problem: after initial load on T-1 performs fast refresh, but on T-2 raised ORA-12034 and complete performs again.
What's wrong?34MCA2K2, Google lover?
I confess perhaps I gave a little info.
View log was created before MV.
It was the first initial load.
No refresh failed.
No DDL.
No purge log.
Not warehouse.
There is no such behavior for MVs on another sites.
P.S. I ask help someone who knows what's wrong or who faced with it or can me follow by usefull link.
P.P.S. It's a pity that there is no button "Useless answer" -
Problem with queries while refreshing materialized views
We are in oracle 8.1.7. We have some materialized views that are refreshed with DMBS_REFRESH.REFRESH in a Job. The problem is that when the refresh occurs while a query is executing we get a "Invalid Rowid" or "0RA-08103 Object not longer exists" in the session executing the query.
We already have reproduced the problem. Is this a bug ? Any idea?
Thanks.Check if the objects referred in the MV defination has undergone any reorg recently.
-
Hi
I able to create external tables ,but unbale to query
I had followed the below steps
sql> conn system/manager;
Connected
SQL> select * from emp;
EMPNO ENAME DEPTNO
100 mmm 10
200 yyy 20
300 zz 30
SQL> spool emp.dat
SQL> select empno ||','||ename||','||deptno from emp;
EMPNO||','||ENAME||','||DEPTNO
100,mmm,10
200,yyy,20
300,zz,30
sql>create directory x as 'd:\oracle\y'
Directory is created
SQL> create table ext(empno char(4),ename char(10),deptno char(2))
2 organization external (type oracle_loader default directory x access
parameters(fields terminated by ','
3 (empno,ename,deptno))
4 location('emp.dat'));
Table created.
SQL> select * from ext;
select * from ext
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04040: file emp.dat in x not found
ORA-06512: at "SYS.ORACLE_LOADER", line 14
ORA-06512: at line 1
Thanks inadvance
MohanYea - there's nothing here that shows that you are pointing at that dir when you do the spool command.
Also, the headers went into the file. There should only be data. Edit the file and clean it up.
Maybe start with a very simple hand-edited file with 1 field, and get that to work.
Tom Best -
hi,
i have created a directory as fllows
create or replace directory ext_dir as 'd:\oracle\ora92'.
after that i created a csv file called test.csv in the same directory.
When i am trying to create an external table i am getting the following errors.
create table ext_table_csv (
i Number,
n Varchar2(20),
m Varchar2(20)
organization external (
type oracle_loader
default directory ext_dir
access parameters (
records delimited by newline
fields terminated by ','
missing field values are null
location ('test.csv' )
reject limit unlimited;
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04040: file test.csv in EXT_DIR not found
ORA-06512: at "SYS.ORACLE_LOADER", line 19
any help pls.
regards
RRKSQL> drop table ext_table_csv ;
Table dropped.
SQL> create table ext_table_csv (
2 i number(20),
3 n CHAR(20),
4 m CHAR(20)
5 )
6 organization external (
7 type oracle_loader
8 default directory EXT_DIR
9 access parameters (
10 records delimited by newline
11 fields terminated by ','
12 missing field values are null
13 (i char,
14 n char,
15 m char)
16 )
17 location ('sample.csv' )
18 )
19 reject limit unlimited;
Table created.
SQL> select * from ext_table_csv;
I N M
1 a x
2 b y -
Problem with External Table using ORACLE_INTERNAL TYPE in 9i release 2
Hi,
I have tried to create an external table in oracle 9i release 2 using the following qurey:
CREATE TABLE emp_ext
ORGANIZATION EXTERNAL
( TYPE ORACLE_INTERNAL
DEFAULT DIRECTORY admin_dat_dir
LOCATION(admin_dat_dir:'emp1.dmp')
PARALLEL
AS
SELECT * from employees;
and getting the following error message
ORA-30657: operation not supported on external organized table
Please help me.
Thanks in AdvanceAs a matter of fact oracle 9i has two types of api for external tables one is oracle_loader and the other is oracle_internal which in 10g become oracle_datapump.
What my question is how can I use the other type in case of external table as we are doing in 10g? Do I need to run any script to enable this feature or is there any privillege issue?
I've given the read, write privillege to the user and the oracle user has read/write permission in os level on the location of the directory. -
Problem with external tables in 9i
Okay I have copied the csv file to that directory. I get this error when I run the select statement... basically the fields dont get populated.
*** SCRIPT START : Session:ADMAP@DEVDB2(1) 13-Nov-2006 16:38:53 ***
Processing ...
select * from proc_args
select * from proc_args
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-00554: error encountered while parsing access parameters
KUP-01005: syntax error: found "identifier": expecting one of: "comma, char, date, defaultif, decimal, double, float, integer, (, nullif, oracle_date, oracle_number, position, raw, recnum, ), unsigned, varrawc, varchar, varraw, varcharc, zoned"
KUP-01008: the bad identifier was: VARCHAR2
KUP-01007: at line 5 column 26
ORA-06512: at "SYS.ORACLE_LOADER", line 14
*** Script stopped due to error ***
*** SCRIPT END : Session:ADMAP@DEVDB2(1) 13-Nov-2006 16:38:53 ***
SCRIPTCREATE OR REPLACE DIRECTORY dir AS '/tmp/ext_dir';
--grant read,write on directory ext_dir to bulk_load;
CREATE TABLE proc_args (
argument_name VARCHAR2(50),
argument_value VARCHAR2(50)
ORGANIZATION EXTERNAL (
-- TYPE ORACLE_LOADER
DEFAULT DIRECTORY dir
ACCESS PARAMETERS (
RECORDS DELIMITED BY NEWLINE
FIELDS TERMINATED BY ','
MISSING FIELD VALUES ARE NULL
argument_name VARCHAR2(50),
argument_value VARCHAR2(50)
LOCATION ('input_arguments.csv')
--PARALLEL 5
--REJECT LIMIT UNLIMITED;
select * from proc_argsI think the fields specified in the ACCESS PARAMETERS section should be SQL*Loader datatypes, not standard SQL, e.g.
CREATE TABLE proc_args (
argument_name VARCHAR2(50),
argument_value VARCHAR2(50)
ORGANIZATION EXTERNAL (
-- TYPE ORACLE_LOADER
DEFAULT DIRECTORY dir
ACCESS PARAMETERS (
RECORDS DELIMITED BY NEWLINE
FIELDS TERMINATED BY ','
MISSING FIELD VALUES ARE NULL
argument_name CHAR,
argument_value CHAR
LOCATION ('input_arguments.csv')
Other valid types are specified here:
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_field_list.htm#sthref1004 -
Oracle equals_path condition NOT working with table and materialized view
The user i am using is xdb with dba role.
1.When i try to use the statement
SELECT PATH FROM xdb.path_VIEW
WHERE
EQUALS_PATH(res, '/home/OE/PurchaseOrders/2002')=1
the result is
/home/OE/PurchaseOrders/2002
2. When i drop the path_view and recreated it like materialized view with statement
create MATERIALIZED view path_view as
select /*+ ORDERED */ t2.path path, t.res res,
xmltype.createxml(xdb.xdb_link_type(NULL, r2.xmldata.dispname, t.name,
h.name, h.flags, h.parent_oid, h.child_oid),
'http://xmlns.oracle.com/xdb/XDBStandard.xsd', 'LINK') link,
t.resid
from ( select xdb.all_path(9999) paths, value(p) res, p.sys_nc_oid$ resid,
p.xmldata.dispname name
from xdb.xdb$resource p
where xdb.under_path(value(p), '/', 9999)=1 ) t,
TABLE( cast (t.paths as xdb.path_array) ) t2,
xdb.xdb$h_link h, xdb.xdb$resource r2
where t2.parent_oid = h.parent_oid and t2.childname = h.name and
t2.parent_oid = r2.sys_nc_oid$
then the equals_path condition STOP working !!!
3. The same experiment, but i recreate it like table
create table path_view as .... using the rest of the statement ...
Can someone help me to understand why equals_path is NOT working on table and materialized view !Thanks Jonah. I was under the impression that I already had it but seems like it has to be a direct priv - thru a role doesn't work.
I granted the reqd privs and then it worked fine. Thx for your help! -
Problem with maintain table views SM30 Transaction
Hello All,
i have a problem with the table maintenance view SM30, it doesn't permit me to modify the rows in the table.
we have added a field into the table and when i tried to change the table view from menu: Utilities ==> table maintenance generator==> change the system propose me a message that the screen 0001 will be deleted and recreated...but the system has deleted the screen and doesn't recreate it...in somewehere on internet we find that we should use the transaction SE55 menu:
Environment==> modification ==> Maintenance screen ==> button Layout which open the tool Screen Painter and from that we have created our screen with 4 fields of our table...our result that the screen is created and i can see it from the SM30 transaction but i can't insert rows in the table...when i try to go to maintain table: menu: Utilities ==> Table maintenance generator to try if i can modify something the system give me a message: "set the compare flag dialog ZIV_DP_PLCHAR_LA"
the ZIV_DP_PLCHAR_LA is the name of my table...
can you give me some advices please how should i do to fix this problem to insert rows in table throughout the transaction
SM30 "maintain table views: initial screen"
if i want to delete the screen from the SE55 transaction to recreate it newly what should i do to take care about some options
to have a new screen?
thanks for all
BilalHi
First delete the old table maintainence generator.
Now Recreate the screen and your table is good to go..
These error messages come when we add new fields and different version of the table maintainence generator in database. -
Table and Materialized View in different namespaces?
I've just faced something completly new for me. It appears that there are two objects with the same name and owner. Table and Materialized View have the same names and when I look into system dictionary I can se sth. like that:
OWNER OBJECT_NAME OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE NAMESPACE
USER_A USER_TABLE 159381 159381 TABLE 1
USER_A USER_TABLE 159382 MATERIALIZED VIEW 19
(I couldn't find how to write above with const length font).
Two object in different namespace? I thought that Tables and Materialized Vievs have the same namespace.
Can you please tell me how can I create objects to achieve above result? I would also be grateful if you tell me where to find that topic in documentation.Perfectly normal.
SQL> select object_name, object_type from user_objects where object_name = 'TEST_MV';
no rows selected
SQL>
SQL> create materialized view test_mv
2 as
3 select sysdate from dual;
Materialized view created.
SQL>
SQL> select object_name, object_type from user_objects where object_name = 'TEST_MV';
OBJECT_NAME OBJECT_TYPE
TEST_MV TABLE
TEST_MV MATERIALIZED VIEW
SQL>
SQL> drop materialized view test_mv;
Materialized view dropped.
SQL>
SQL> select object_name, object_type from user_objects where object_name = 'TEST_MV';
no rows selected
SQL> -
Problem with external punchout in SRM Server 713
Hello,
We upgrade from SRM_SERVER 701 SP 04 to SRM_SERVER 713 SP 02, now we have a problem with external catalog, we did not change anything in standard call structure, however now when the user access to external catalog, select a product and "checkout", SRM returns to shopping cart screen without products and no message are register in log in transaction code SLG1.
Our parameters in structure are:
10 https://xxxxxxxxx URL
20 VIEW_ID NAME Fixed value
30 VIEW_PASSWD XXXXXX Fixed value
40 USER_ID SY-UNAME SAP field
50 BRANDING search5 Fixed value
60 LANGUAGE ES Fixed value
70 COUNTRY MX Fixed value
75 EASYORDER 1 Fixed value
80 target _top Fixed value
85 ~caller CTLG Fixed value
90 OCI_VERSION 4.0 Fixed value
91 FILTER Fixed value
92 OPI_VERSION 1.0 Fixed value
100 HOOK_URL return URL
110 returntarget _top Fixed value
we made some test with parameter BYPASS_INB_HANDLER, set as 'X' but this not solve our issue.
We have an implementation in badi BBP_CATALOG_TRANSFER to map product category, even if I set an external breakpoint in this implementation, system does not pass through it, also we test with this implementation inactive and behavior is the same, nothing transfer to shopping cart
Does anyone know what's missing?
Thanks in advance.
Best regards,
José Luis D.Hello Jason,
Thank you for your answer, but as I told, If I set an external breakpoint it does not stop for debugging, so I can't see table as you recomended. This process (debugging) is familiar to me, in last version I can do it.
Any suggestion?
Thanks in advance, best regards
José Luis D -
Truncate table and materialized view log
I user oracle 10 R2
I have a table and on that table a materialized view log.
I execute in a pl/sql procedure:
1) execute immediate('drop materialized view log on tab1');
then:
2) execute immediate('truncate table tab1');
3) Now I insert a lot of records in tab1
4) execute immediate('create materialized view log on tab1 WITH rowid INCLUDING NEW VALUES');
When I create the materialized view log I recieved this message:
ora32321: refresh fast on tab2 unsupported after detail table truncate
Why?Refresh fast after truncate operation on container table is not supported, regardless the container table is or is not partitioned.
Perform a refresh complete.
ORA-32321 :
Cause: A detail table has been truncated and no materialized view
supports fast refersh after a detail table has been truncated
Action: Use REFRESH COMPLETE. Note: you can determine why your
materialized view does not support fast refresh after TRUNCATE
using the DBMS_MVIEW.EXPLAIN_MV() API. -
Problem with Pivot Table with Graph: Line Bar Combo
Hello people!
I have a problem with pivot table and line bar combo (all in the same view (pivot table))
I have some measures and one dimension in my report.
--------------measure1---measure2---measure3
Dim A.1
Dim A.2
Dim A.3
If I choose my graph line bar combo automatically choose "line" measure 3 (last measure in "Show Controls"). How can I do if I want my measure1 for line and I don't want modify my pivot table?
Thank you very much!Ok, I'll explain my problem again. In my pivot table I add graph vision and I want in the same view (Pivot table). My graph is "Line Bar Combo" and I don't know how but the last of my measures belongs to right AXIS, if I change order of my measures I can see in my graph the measure that I want in my right axis BUT also it changes the order of my pivot table.
This is my problem. I think that I can do that with different views but I lose my selector view to view graphic and my pivot table at the same time. -
Problems with reference field in material type
Hi,
I have problem with field reference in material type creation.
When I define a self-defined field reference ZERS (copy of standard field reference HERS) for a own defined material type ZERS (copy of material type HERS), I get the following error message:
Field reference ZERS has not been set up
Message no. CZ127
Diagnosis
You have specified a field reference that has not been set up.
Procedure
Set up the new field reference or use an already existing field reference.
I do not understand why because the entry ZERS is present in table T130A.
Here is the IMG config I have made:
1. Logistics general->Material Master->Field selection->Maintain field selection for Data Screens (here I made copy of field reference HERS and named it ZERS)
2. Logistics general->Material Master->Basic Settings->Material types->Define attributes of Material types (here I made a copy of material type HERS and named it ZERS. I then tried to set the field T134-FLREF "Field reference" to ZERS, but then the error message appears)
Does anyone know what config I am missing?
Or any reason why the error message CZ127 is coming up?
ThanksMust have been system error, I deleted all entries and did it all over again, it worked.
-
Dropping base table of materialized view
HI please let me know what happens if i drop the base table of a materialized view? does the MV remain valid with data?
Hi,
Well, it's easy to test yourself.
SQL> select count(*) from t1;
COUNT(*)
100
SQL> desc t1
Name Null? Type
ID NUMBER(10)
SQL> create materialized view t1_mv as select * from t1;
Materialized view created.
SQL> select count(*) from t1_mv;
COUNT(*)
100
SQL> drop table t1 purge;
Table dropped.
SQL> select count(*) from t1_mv;
COUNT(*)
100
SQL> desc t1_mv
Name Null? Type
ID NUMBER(10)
SQL> select object_type, status from user_objects where object_name = 'T1_MV';
OBJECT_TYPE STATUS
TABLE VALID
MATERIALIZED VIEW INVALID
SQL> select * from t1_mv where rownum < 5;
ID
1
2
3
4
SQL>I think the answer is very clear.
Asif Momen
http://momendba.blogspot.com
Maybe you are looking for
-
Cannot drag and drop files?
I have had this problem for about a month, but now it is really bugging me. When I want to move a file in finder to a new location or just re arrange it i am unable to do so. Nothing happens, only the icon gets highlighted. Dragging works in Safari,
-
Mac mini w/ SSD, adapter???
If i where to replace the HDD on my mac mini w/ a solid state drive would i need to get a caddy to fit the new SSD? Or is it made for the 2.5 drives since they are so small? -Thanks
-
Inventory Only 10.2.1 on SLES10
Two servers with Inventory Only Agent 10.2.1: 1. HP ProLiant DL320 G5 with SLES10 SP2 (64 bit) 2. HP NetServer LH3 with SLES10 SP2 (32 bit) In reports: 1. "Total Memory: 0 MB" - is not easy-to-use. 2. "Last Scan Date: 6:33 PM" = Local Time + 3 (?). I
-
When I print digital photos, using Iphoto, the colors are way off. I can't find a way to edit the photos in Iphoto. Any suggestions? ( I have an hp printer and a canon camera).
-
Directing where new contacts are entered
I have my iPhone set up for both MobileMe and Exchange. If I go to groups, I can see the two seperate directories there. It appears that any new contact I enter on the iPhone goes to the exchange directory. Is there a way to control where a new conta