Type (..) of the context element (..) in view (..) does not exist
Hi all
I have got an question. I have an ABAP webdynpro with a context node which is connected to an ABAP structure.
The context node is mapped to a context node of a view and the fields of the view are mapped to the context node of the view. So the data is send through them. That works fine.
Within this ABAP structure i have added 3 extra new fields. After creating them i activated the structure.
Within the webdynpro i have updated the context mapping between the node and the structure and also between the different mappings between the views and the componentcontroller where this node is used,
Within the context tab of all the views i see all the three new fields.
When i try to map those fields to a field in the screen it cannot be done. i get the following message:
Type (..) of the context element (..) in view (..) does not exist
Anf the new fields are gray.
Does anybody know the solution for this?
kind regards,
Anton Pierhagen
Hi all
Thanks for all of the replies. But unfortunately the right answer wasn't there.
I had tried to map the structure and re-create the node on several levels in my web-dynpro, but there was no change after this changes.
When i created an own dataelement and an own domain in my ABAP structure, it worked.
I could select them in the webdynpro. But why????
i still not get it..
But thanks for the replies!
Kind regards,
Anton Pierhagen
Similar Messages
-
SSMA for Oracle 6.0 Cannot connect to Oracle DB reporting "table or view does not exist"
SSMA For Oracle v6.0.0
MS SQL Server Enterprise 64bits v11.0.3000.0
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Symptom:
when connecting Oracle, it reports error "Common Requirement: User does not have required permissions". Then it reports error: "Error occurred while collecting data."
The following is log:
[Generic: Mandatory] [1500/1] [2015-03-03 04:19:29]: SQL Server Migration Assistant for Oracle v6.0.0
[Generic: Mandatory] [1500/1] [2015-03-03 04:19:29]: Starting assembly: SSMAforOracle, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Created: 7/22/2014 4:42:22 PM
Last Modified: 7/22/2014 4:42:22 PM
OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1
OS architecture: x64
Processor architecture: AMD64
Current culture: en-US
UI culture: en-US
[Collector: Mandatory] [1500/4] [2015-03-03 04:20:04]: Oracle connection provider: OracleClient.
[Collector: Mandatory] [1500/4] [2015-03-03 04:20:04]: Oracle connection mode: Standard.
[Collector: Mandatory] [1500/4] [2015-03-03 04:20:06]: Oracle server version: '11.2.0.3.0'.
[Gui: Error] [1500/4] [2015-03-03 04:20:12]: LowLevelAdapter.ReadSource : Read Source error: Microsoft.SSMA.Framework.Generic.Collectors.CollectorException: Error occurred while collecting data. ---> System.Data.OracleClient.OracleException: ORA-00942: table
or view does not exist
at System.Data.OracleClient.OracleConnection.CheckError(OciErrorHandle errorHandle, Int32 rc)
at System.Data.OracleClient.OracleCommand.Execute(OciStatementHandle statementHandle, CommandBehavior behavior, Boolean needRowid, OciRowidDescriptor& rowidDescriptor, ArrayList& resultParameterOrdinals)
at System.Data.OracleClient.OracleCommand.ExecuteScalarInternal(Boolean needCLStype, Boolean needRowid, OciRowidDescriptor& rowidDescriptor)
at System.Data.OracleClient.OracleCommand.ExecuteScalar()
at Microsoft.SSMA.Framework.Generic.DbUtilities.SsmaDbCommand.ExecuteScalar()
at Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.ExecuteScalarToInt(IDbConnection connection, String text)
at Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.GetCountForExcludedSchemas(IDbConnection connection, IEnumerable`1 excludedSchemas, Int64 version)
at Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.CountObjects(IDbConnection connection, Int64 serverVersion, OracleCollectionFilter filter, Set`1 excludedSchemas)
at Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.CollectDataIntoMetabase(XMetabase xMetabase, IDbConnection connection, Int64 serverVersion, OracleCollectionFilter filter, IUIProgressBarProvider progressBarProvider, IUIStopOperationProvider
stopOperationProvider, ICollectionContext context)
at Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.CreateMetabaseAndCollectData(IDbConnection connection, String xmlConnectionParameters, XNode xFilter, IUIProgressBarProvider progressBarProvider, IUIStopOperationProvider stopOperationProvider,
ICollectionContext context)
--- End of inner exception stack trace ---
at Microsoft.SSMA.Framework.Generic.Workspaces.Default.MetabaseWorkspaceItem.Connect(String connectionParameters, SecureString password)
at Microsoft.SSMA.GUI.Product.OracleToMsSql.LowLevel.AppConnectToSourceOracle.ConnectToSourceStart(Object guiContext)
[Gui: Error] [1500/4] [2015-03-03 04:20:12]: Exception: Error occurred while collecting data.
site: Void Connect(System.String, System.Security.SecureString)
source: Microsoft.SSMA.Framework.Generic.SSMAEnvironment
at Microsoft.SSMA.Framework.Generic.Workspaces.Default.MetabaseWorkspaceItem.Connect(String connectionParameters, SecureString password)
at Microsoft.SSMA.GUI.Product.OracleToMsSql.LowLevel.AppConnectToSourceOracle.ConnectToSourceStart(Object guiContext)
[Gui: Error] [1500/4] [2015-03-03 04:20:12]: Inner Exception #1: ORA-00942: table or view does not exist
site: Void CheckError(System.Data.OracleClient.OciErrorHandle, Int32)
source: System.Data.OracleClient
error code: -2146232008
at System.Data.OracleClient.OracleConnection.CheckError(OciErrorHandle errorHandle, Int32 rc)
at System.Data.OracleClient.OracleCommand.Execute(OciStatementHandle statementHandle, CommandBehavior behavior, Boolean needRowid, OciRowidDescriptor& rowidDescriptor, ArrayList& resultParameterOrdinals)
at System.Data.OracleClient.OracleCommand.ExecuteScalarInternal(Boolean needCLStype, Boolean needRowid, OciRowidDescriptor& rowidDescriptor)
at System.Data.OracleClient.OracleCommand.ExecuteScalar()
at Microsoft.SSMA.Framework.Generic.DbUtilities.SsmaDbCommand.ExecuteScalar()
at Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.ExecuteScalarToInt(IDbConnection connection, String text)
at Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.GetCountForExcludedSchemas(IDbConnection connection, IEnumerable`1 excludedSchemas, Int64 version)
at Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.CountObjects(IDbConnection connection, Int64 serverVersion, OracleCollectionFilter filter, Set`1 excludedSchemas)
at Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.CollectDataIntoMetabase(XMetabase xMetabase, IDbConnection connection, Int64 serverVersion, OracleCollectionFilter filter, IUIProgressBarProvider progressBarProvider, IUIStopOperationProvider
stopOperationProvider, ICollectionContext context)
at Microsoft.SSMA.Framework.Oracle.Collector.OracleObjectCollector.CreateMetabaseAndCollectData(IDbConnection connection, String xmlConnectionParameters, XNode xFilter, IUIProgressBarProvider progressBarProvider, IUIStopOperationProvider stopOperationProvider,
ICollectionContext context)Hi Airings,
'ORA-00942: table or view does not exist'
According to the error message, it seems that the migrating table or view does not exist in the database, or SSMA does not have access to it. To troubleshoot the issue, please check the following things.
1. Verify that if the spelling of the table or view name is correct.
2. If the table or view exists but is in a different schema from the current schema where the SQL is executing (in other word, the table doesn’t own by you, but owned by other user), the ORA-00942 error will return too. Resolve this by
explicitly reference the table or view by specifying the schema name (schema_name.table_name).
3. SSMA queries some additional catalog tables that you may not have permission to, please make sure that you grant the account permission to
read sys.mlog$. For more details, please review this similar thread:
Bug in SSMA For Oracle 6.0 for non-dba Oracle user.
Reference:
ORA-00942 Table or View Does Not Exist Oracle Error
Thanks,
Lydia Zhang
Lydia Zhang
TechNet Community Support -
Table or view does not exist when using in PL/SQL block
I hav something strange...
When i execute a query it works just fine... When i use the exact same query in a function i want to create, i get the error 'table or view does not exist'
I create the function with the same user then when i'm executing the query.
For example:
select name,userid from portal.WWLOG_ACTIVITY_LOGS
if i execute this... it works fine. I get my results.
However when i create a function:
CREATE OR REPLACE FUNCTION EBUSINESS.GET_USER_CREATOR (p_userid IN Varchar2) return VARCHAR2
as
/*CURSOR c_user_creator IS
select distinct name,userid from portal.WWLOG_ACTIVITY_LOGS
where sub_domain = 'user' and action = 'create'
and name = p_userid;*/
v_creator varchar2(500);
v_ret_val VARCHAR2(500) := 'NOT_FOUND';
BEGIN
select userid into v_ret_val from portal.WWLOG_ACTIVITY_LOGS
where sub_domain = 'user' and action = 'create'
and name = p_userid;
--v_ret_val := x.userid;
--end loop;
-- Is the user in the group or not?
/*OPEN c_user_creator;
FETCH c_user_creator INTO v_creator;
IF c_user_creator%FOUND THEN
v_ret_val := v_creator;
ELSE
v_ret_val := 'NOT FOUND';
END IF;
CLOSE c_user_creator;*/
Return v_ret_val;
END;
The table or view does not exist...
I tryed with cursor, select into, for x in (select....)
Nothing works.
A select grant is a select grant right? Are there different grant you should use so you can select it into a function or just do a normal select?
I also tryed to create a view that just sais select * from WWLOG_ACTIVITY_LOGS but that doesn't work...Are there different grant you should use so you can
select it into a function or just do a normal select? Yes. Grants on objects used in functions/procedures must be given directly to the user, and not through a role. -
Se14 message : View Does not exist in database
Hi All ,
I have created view and transported to test system , In the test system i am not able to activate it , the message is that " view does not exists in database ", Is it some thing for the basis to do .
Thanks in advance
Vinayhi,
Have you tried to re register your database within OEM, CG -
Create materialized View fails with "table or view does not exist"
DB: 10.2.0.4
OS: Win 2003
Hi,
Here in my tests, i have 2 databases (A(source) and B(backup)), and i am trying to create an mview in database B to replicate data from one test table from database A, only for test purpose. I'm getting the error "table or view does not exist" when i try to create a mview with REFRESH FAST. Here is my code:
CREATE MATERIALIZED VIEW TESTES.TAB_TESTES_REPLIC_MVIEW_02
REFRESH FAST
START WITH TO_DATE('21/02/2012 18:50:00', 'DD/MM/YYYY HH24:MI:SS')
NEXT SYSDATE + 1/24/60
WITH PRIMARY KEY
AS SELECT REGISTRO1,
REGISTRO2
FROM TESTES.TAB_TESTES_REPLIC_MVIEW_02@DB_LINK_ORA10;
The dblink is workig fine(dblink user has select privilege on TESTES.TAB_TESTES_REPLIC_MVIEW_02), and i have created the mview log on database A.
Where is my mistake.
Thanks a lot.
Edited by: Fabricio_Jorge on 21/02/2012 19:06I found the solution.
I had to grant SELECT on the mview log. The name is avaiable in DBA_MVIEW_LOGS -
Table or view does not exist with new user
I am having trouble getting a new user to be able to access the tables in the database. I have created a user just like normal and given it all the privileges i would normally give it. It is the only user other than the original that created all the tables. Every time i go to select from a table i get the error table or view does not exist.
Am i missing something? It is Oracle 10.1.0.2 and i have never had this problem with earlier versions.You will always need to qualify the table name with schema name if you are accessing a table of some other schema except in a case that you have created a public synonym (with the same name as table). Suppose there is table table1 in schema schema1 and you are accessing it from schema2.
You will need to write schema1.table1 but if you create a public synonym
create public synonym table1 for schema1.table1;then you can directly write
select * from table1;Sidhu
http://amardeepsidhu.blogspot.com -
Error rendering element. Exception: ORA-00942: table or view does not exist
Guru,
We are maintaining 10 internal Database through OEM 10g and using seesded reports.
When we try to create simple custom reports against one of the Target database , its failing with following error message ,
Query : select * from v$database
Error rendering element.
Exception: ORA-00942: table or view does not exist
select * from dual & v$session working ( But query execution happeniing from Reposistory Database not from Target instance )
Note:
I have reviewed thred "getting ORA-00942 while running report in GC"
Please give some light .
Regards,
RajuThis is an EM related question so I would suggest you post in the appropriate space "Enterprise Manager" -- https://forums.oracle.com/community/developer/english/enterprise_management/enterprise_manager/enterprise_manager_6
You may also review (In Grid Control 10.2, Creating a Report to Query 'V$SESSION 'Fails: 'Error Rendering Element. Exception: ORA-00942 Table Or View Does Not Exist' (Doc ID 356755.1)) and implement the solution for v$database
Thanks,
Hussein -
View-does not exist on the database
Hi Experts,
Our Data Source/Extract Structure (R/3) is based on a view.
There is an Issue with the View/DAta Source
If i go to SE11>view Name> Display then i am getting
'View ZART_ATTRS is not in the database' and then the next screen is the view definition
This is a database view which is defined in the ABAP/4 Dictionary but does not exist on the database. No data can be read for this reason
If i go to RSO2 and enter data source name and select display...
Then it will display data source status as 'Saved' how can i activate it
and i go to RSA6 select my Z data source which is based on the above view....context menu display data source/Check data source...when i get error
'Only Tables and views are permitted for extraction'
How can i overcome itHi,
As your view is existing in ABAP DICTIONARY , you need to take help of your DBA to get this created in the underlying database. This can be created using Database utility se14 transaction code. But it is good to have your DBA involved so that you have proper table space allocated to it.
Hope this helps..
Regards
Manga(Assign points if it helps) -
Why the x$bh view does not exist?
Why the x$bh view does not exist?
SQL> select*from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
SQL> conn system/oracle
Connected.
SQL> desc X$BH;
ERROR:
ORA-04043: object X$BH does not existSQL> desc x$bh
Name Null? Type
ADDR RAW(4)
INDX NUMBER
INST_ID NUMBER
HLADDR RAW(4)
BLSIZ NUMBER
NXT_HASH RAW(4)
PRV_HASH RAW(4)
NXT_REPL RAW(4)
PRV_REPL RAW(4)
FLAG NUMBER
RFLAG NUMBER
SFLAG NUMBER
LRU_FLAG NUMBER
TS# NUMBER
FILE# NUMBER
DBARFIL NUMBER
DBABLK NUMBER
CLASS NUMBER
STATE NUMBER
MODE_HELD NUMBER
CHANGES NUMBER
CSTATE NUMBER
LE_ADDR RAW(4)
DIRTY_QUEUE NUMBER
SET_DS RAW(4)
OBJ NUMBER
BA RAW(4)
CR_SCN_BAS NUMBER
CR_SCN_WRP NUMBER
CR_XID_USN NUMBER
CR_XID_SLT NUMBER
CR_XID_SQN NUMBER
CR_UBA_FIL NUMBER
CR_UBA_BLK NUMBER
CR_UBA_SEQ NUMBER
CR_UBA_REC NUMBER
CR_SFL NUMBER
CR_CLS_BAS NUMBER
CR_CLS_WRP NUMBER
LRBA_SEQ NUMBER
LRBA_BNO NUMBER
HSCN_BAS NUMBER
HSCN_WRP NUMBER
HSUB_SCN NUMBER
US_NXT RAW(4)
US_PRV RAW(4)
WA_NXT RAW(4)
WA_PRV RAW(4)
TCH NUMBER
TIM NUMBERwrong USER -
ORA-00942: the table or view does not exist
Hello!!!!
I have tree simple mappings each one with only one dimention and sometimes external or normal tables. One of them is ok but I can´t deploy the others.
In Controle Center I have this messege: the table or view does not exist.
I genereted both queries and run in SQL navigator with the same message.
I realized that I can set the schema properties for external tables but I couldn´t do the same for Dimension (or I don´t know where I can do this).
I believe that I have to set this propertie for dimension to have my mapping running ok, but I realized that the only one mapping that is ok does not have this propertie set.
Where is the problem?!!?!?!?
I validated these mapping and they have warnnings about column length, no errors.
In the previous OWB version I used to set this propertie, but in 10.2 I don´t know if is realy necessary.Try to open the package body with a tool like TOAD and try to compile it. When you use TOAD the process stops where the error is. Then you know which table or view doesn't exist for the OWB. If the table or view does exist then it is almost certainly a missing privilege that prevents you from succesfully deploying your mapping. If the table or view does not exist then you've got to deploy the underlying (bound) table.
Regards,
Jörg -
MBAM - SCCM 2012 Reports - Error: the 'MBAM Policy' view does not exist
Hi
I have installed MBAM with SCCM 2012 integration. A single server install with SQL server 2012. Mostly it has gone smoothly and laptops are being encrypted and pins stored and recoverable. The problem I have is reports are not showing. I get the following
error message.
"Error: the 'MBAM Policy' view does not exist"
Any ideas why this is? I get the same error message with all 4 reports.Hi Slycy,
There is another thread that seems to be a similar issue
here that may help you. The last post in particular has a number of steps that you can use to speed up creation of the views:
Just for future reference, there are quite a few things that have to happen before the view is created. This is merely how CM works.
Make MBAM MOF changes
Select TPM spec version in hardware inventory
Install MBAM CM Integration feature
Perform a machine policy refresh cycle on a client to get the MOF changes that need to be inventoried
Perform hardware inventory
Update MBAM Supported Computers collection membership. The machine should appear if it meets the criteria
Run another machine policy refresh on the client so that the Configuration Baseline will come down
Make sure that the MBAM agent has woken up once
Evaluate the Configuration Baseline
The MBAM views should be created now.
You don't have to do this for every machine, but this is the process to speed it up. If you let CM do it, it could take over a week before the view is created the first time, depending on when Hardware inventory runs, etc.
Hope this helps,
David -
Problem creating a view in Administrator: 942: table or view does not exist
Hi and thank you for reading,
I am working with the Administration tool and would like to create a view in the physical layer. However I am getting the following error messages when I try to view the Date in the view:
[NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occured.
[nQSError: 43093] An error occured while processing the EXECUTE PHYSICAL satement.
*[nQSError: 17001] Oracle Error code: 942, message: ORA-00942: table or view does not exist at OCI call OCIStmtExecute.*
[nQSError: 17010] SQL statement preparation failed.
[NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occured.
[nQSError: 43093] An error occured while processing the EXECUTE PHYSICAL satement.
*[nQSError: 17001] Oracle Error code: 936, message: ORA-00936: missing expression at OCI call OCIStmtExecute.*
[nQSError: 17010] SQL statement preparation failed.
I proceed as following:
Right click on a physical schema (this schema is already created and works in Answers) -> new Physical Schema ->Table Type: Select -> Select * from Table_A where name='name' (Table_A is in the physical schema) -> OK -> Save -> Deploy -> Update Row count (works) -> View Data -> Error
Any Idea what I am doing wrong. I have started with an easy select statement to test how to create a view in Oracle Administrator.
Thanks a lot for any help
EvgenyDo you see Table_A, and in which database schema?
Try to put alias (database user) before table name.
Select * from user.Table_A where name='name'
Where user is database user.
If you have Table_A in another user and connection pool is set to different user, then grant select from Table_A owner to connection pool user (make synonym for Table_A):
Example (I'm using connection pool from userB and have tables from userA and userB).
create or replace public synonym xx for userA.xx
and
grant select on xx to userB
Hope this helps.
Regards,
Goran
http://108obiee.blogspot.com -
Why Table or View does not exist???
Hi to all. I have an issue with my Business Objects. I have a relationship between two entities with the following cardinality:
EntityA 1......* Entity B, the relation is a composition and the IDs for them are DB Sequence.
I have created the corresponding views and the view link and they all work fine in the Application Module. Also, in the View Object for the EntityA ( ViewObjectA ), I have created a View Criteria, a nested one, with two attributes: the first one is an att from the*ViewObjectA* and use a value from a bind variable (Integer), and the second one is an attribute from the Entity B son and it's value is static (1). I tested with the query button and says OK. When I run the AppModule for test the ViewCriteria, I got this error: ORA-00942: table or view does not exist . And for my sorprise, I checked the query resultant and it's wrong!! Please see an example below:
SELECT Att1,Att2 FROM EntityA WHERE ( ( ( (EntityA.att1 = :id ) AND (EXISTS(SELECT 1 FROM EntityBNQ1 EntityBNQ1 WHERE ( (*EntityBDNQ1.att1 = :id*) ) AND ( EntityA.att1 = EntityBDNQ1.att1 ))) ) ) ) AND (EntityA.att1 = EntityBDNQ1.Att1))) ) ) )
As can be seen, the name of the tabla for the EntityB has NQ1 attached, and I don't know why. The view link works perfectly, as also the create operation for both ViewsObjects.
Please can anyone tell me what I'm doing wrong, if I have a mistake? What should I do??
Thanks in advance.
PS: In a new application, I created a Business Components from DataBase, and it works my WiewCriteria. I just can't believe that I should start all over again.
Thanks in advance again.Hi and thanks for the answers. Apologize for my forgetfulness of the version. It's 11.1.1.5.0 and ADF Business Components 11.1.1.60.13
I created a new Application and I made a Business Components From Table with only the two Entities mentioned before. Once configured (Put the ID as a DBSequence), created the views an the View Criteria and it's just all fine.
Hear is fragment of the XML from my EntityA (the god one). The first part it's the key attribute, the second one its the key.
This is the god working version
<Entity
xmlns="http://xmlns.oracle.com/bc4j"
Name="Person"
Version="11.1.1.61.92"
DBObjectType="table"
DBObjectName="EntityA"
AliasName="Person"
BindingStyle="OracleName"
UseGlueCode="false">
<DesignTime>
<Attr Name="_codeGenFlag2" Value="Access"/>
<AttrArray Name="_publishEvents"/>
</DesignTime>
<Attribute
Name="EntityId"
ColumnName="EntityA_ID"
SQLType="NUMERIC"
Type="oracle.jbo.domain.DBSequence"
ColumnType="NUMBER"
TableName="EntityA"
PrimaryKey="true"
IsUpdateable="while_insert"
Domain="oracle.jbo.domain.DBSequence" //Different
RetrievedOnInsert="true">
<DesignTime>
<Attr Name="_DisplaySize" Value="39"/> //Different, but don't think it's important
<Attr Name="_SequenceStart" Value="1"/>
<Attr Name="_SequenceName" Value="EntitiA_SEQ"/>
</DesignTime>
</Attribute>
...This is the bad working version
<Entity
xmlns="http://xmlns.oracle.com/bc4j"
Name="EntityA"
Version="11.1.1.60.13"
DBObjectType="table"
DBObjectName="EntityA"
AliasName="EntityA"
BindingStyle="OracleName"
UseGlueCode="false"
RowClass="criminal.model.entities.filiative.EntityAImpl">
<DesignTime>
<AttrArray Name="_publishEvents"/>
<Attr Name="_codeGenFlag2" Value="Access"/>
<Attr Name="_isCodegen" Value="true"/>
</DesignTime>
<Attribute
Name="Entity_ID"
IsUpdateable="while_insert"
DefaultValue="@0" //Different
ColumnName="EntityA_ID"
SQLType="NUMERIC"
Type="oracle.jbo.domain.DBSequence"
ColumnType="NUMBER"
TableName="EntityA"
PrimaryKey="true"
RetrievedOnInsert="true">
<DesignTime>
<Attr Name="_SequenceStart" Value="1"/>
<Attr Name="_SequenceName" Value="EntityA_SEQ"/>
</DesignTime>
</Attribute>
... Hear is the constrain (the god one) related to the key att:
<Key
Name="EntityAEntityAIdCheck10">
<DesignTime>
<Attr Name="_DBObjectName" Value="EntityA_EntitAy_ID_CHECK_10"/>
<Attr Name="_checkCondition" Value='"EntityA_ID" IS NOT NULL'/>
<Attr Name="_isCheck" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes"/>
</Key>
...Hear is the constrain (the bad one) related to the key att:
<Key
Name="EntityAEntityAIdCheck10">
<DesignTime>
<Attr Name="_isNotNull" Value="true"/>
<Attr Name="_DBObjectName" Value="EntityA_EntityA_ID_CHECK_10"/>
<Attr Name="_checkCondition" Value='"EntityA_ID" IS NOT NULL'/>
<Attr Name="_isCheck" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="model.EntityA.EntityA_ID"/>
</AttrArray>
</Key>
...Hear is the XML of the EntityB The differences are the same that in EntityA
the key att:
<Entity
xmlns="http://xmlns.oracle.com/bc4j"
Name="EntityB"
Version="11.1.1.61.92"
DBObjectType="table"
DBObjectName="EntityB"
AliasName="EntityB"
BindingStyle="OracleName"
UseGlueCode="false">
<DesignTime>
<Attr Name="_codeGenFlag2" Value="Access"/>
<AttrArray Name="_publishEvents"/>
</DesignTime>
<Attribute
Name="EntityBId"
ColumnName="EntityB_ID"
SQLType="NUMERIC"
Type="oracle.jbo.domain.DBSequence"
ColumnType="NUMBER"
TableName="EntityB"
PrimaryKey="true"
IsUpdateable="while_insert"
Domain="oracle.jbo.domain.DBSequence"
RetrievedOnInsert="true">
<DesignTime>
<Attr Name="_DisplaySize" Value="39"/>
<Attr Name="_SequenceStart" Value="1"/>
<Attr Name="_SequenceName" Value="EntityB_SEQ"/>
</DesignTime>
</Attribute>
...this is the bad one
<Entity
xmlns="http://xmlns.oracle.com/bc4j"
Name="EntityB"
Version="11.1.1.60.13"
DBObjectType="table"
DBObjectName="EntityB"
AliasName="EntityB"
BindingStyle="OracleName"
UseGlueCode="false"
RowClass="model.EntityBImpl">
<DesignTime>
<Attr Name="_codeGenFlag2" Value="Access"/>
<AttrArray Name="_publishEvents"/>
<Attr Name="_isCodegen" Value="true"/>
</DesignTime>
<Attribute
Name="EntityB_ID"
IsUpdateable="while_insert"
ColumnName="EntityB_ID"
SQLType="NUMERIC"
Type="oracle.jbo.domain.DBSequence"
ColumnType="NUMBER"
TableName="EntityB"
PrimaryKey="true"
RetrievedOnInsert="true">
<DesignTime>
<Attr Name="_SequenceStart" Value="1"/>
<Attr Name="_SequenceName" Value="EntityB_SEQ"/>
</DesignTime>
</Attribute>
...the key (the god one)
<Key
Name="FkEntityB">
<DesignTime>
<Attr Name="_isCascadeDelete" Value="true"/>
<Attr Name="_referencedKey" Value="EntityA_PRIMARY_KEY_10"/>
<Attr Name="_isForeign" Value="true"/>
<Attr Name="_DBObjectName" Value="FK_EntityB"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="project1.EntityB.EntityBEntityBId"/>
</AttrArray>
</Key>
...the bad one
<Key
Name="FkEntityB">
<DesignTime>
<Attr Name="_isCascadeDelete" Value="true"/>
<Attr Name="_referencedKey" Value="EntityA_PRIMARY_KEY_10"/>
<Attr Name="_isForeign" Value="true"/>
<Attr Name="_DBObjectName" Value="FK_EntityB"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="project1.EntityB.EntityBEntityBId"/>
</AttrArray>
</Key>
...Sorry if is too long.
What might be wrong? It's that enough to determine the error?
Thanks again.
PS: I did try look for NQ1 as kdario said and nothing was found. I had already done regenerate the association as 969750 said and still habe the same error. -
Error when adding forigen key (table or view does not exist)
Hi
i write the foreign key name and select the the table from the combo and also the field and click apply it gives me error message says :-
error table or view does not exist vendor code 942
any help?
thanks in advance.
.There is only an issue with this if your table has to be enclosed in double quotes. i.e. If you have mixed case table names. In that case, instead of using the context menu (right click on Table) Constraint -> Add Foreign Key, you should use the Edit... table dialog.
We did have a bug logged for this, but the instance for using the Create foreign key dialog has not been fixed. I have reopened the bug.
Sue -
Read_Network resulting Java Error " Table or view does not exists"
Hello Gurus,
I tried loading a Oracle Network (Oracle 11g) under the same user where i created the Network Tables. But still i am getting "table or view does not exists" . What could be the issue here ? Please help.
begin
SDO_NET_MEM.NETWORK_MANAGER.READ_NETWORK('ROADS_NETWORK', 'TRUE');
end;
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception:
oracle.spatial.network.NetworkDataException:
oracle.jdbc.driver.OracleSQLException: ORA-00942: table or view does not exist
ORA-06512: at "MDSYS.SDO_NETWORK_MANAGER_I", line 284
ORA-06512: at "MDSYS.SDO_NETWORK_MANAGER_I", line 114
ORA-06512: at line 2
Network Metadata is as follows .
ROADS_NETWORK 161 SPATIAL LRS_GEOMETRY ROADWAYS 1 1 ROAD_SEGMENTS SEGMENT_GEOM ROADS_NODES NODE_GEOMETRY COST ROADS_LINKS LINK_GEOMETRY DIRECTED COST ROADS_PATHS PATH_GEOMETRY ROADS_PATHS_LINKSJack,
I apologize for the mix-up. Yes, i realized it was LRS network the first one i ran. And since that didn't work i tried the simpler one.
But here is what you asked me to run.
SQL> set line 1000
SQL> set trimspool on
SQL>
SQL> select * from user_sdo_network_metadata where network = 'UNET';
NETWORK NETWORK_ID NETWORK_CATE GEOMETRY_TYPE NETWORK_TYPE NO_OF_HIERARCHY_LEVELS NO_OF_PARTITIONS LRS_TABLE_NAME LRS_GEOM_COLUMN NODE_TABLE_NAME NODE_GEOM_COLUMN
NODE_COST_COLUMN
NODE_PARTITION_COLUMN NODE_DURATION_COLUMN LINK_TABLE_NAME LINK_GEOM_COLUMN LINK_DIRECTI
LINK_COST_COLUMN
LINK_PARTITION_COLUMN LINK_DURATION_COLUMN PATH_TABLE_NAME PATH_GEOM_COLUMN PATH_LINK_TABLE_NAME SUBPATH_TABLE_NAME SUBPATH_GEOM_COLUMN PARTITION_TABLE_NAME PARTITION_BLOB_TABLE_NAME COMPONENT_TABLE_NAME NODE_LEVEL_TABLE_NAME TOPOLOGY U E
UNET 221 SPATIAL SDO_GEOMETRY 1 0 UNET_NODES GEOM
UNET_LINKS GEOM UNDIRECTED
NETWORK NETWORK_ID NETWORK_CATE GEOMETRY_TYPE NETWORK_TYPE NO_OF_HIERARCHY_LEVELS NO_OF_PARTITIONS LRS_TABLE_NAME LRS_GEOM_COLUMN NODE_TABLE_NAME NODE_GEOM_COLUMN
NODE_COST_COLUMN
NODE_PARTITION_COLUMN NODE_DURATION_COLUMN LINK_TABLE_NAME LINK_GEOM_COLUMN LINK_DIRECTI
LINK_COST_COLUMN
LINK_PARTITION_COLUMN LINK_DURATION_COLUMN PATH_TABLE_NAME PATH_GEOM_COLUMN PATH_LINK_TABLE_NAME SUBPATH_TABLE_NAME SUBPATH_GEOM_COLUMN PARTITION_TABLE_NAME PARTITION_BLOB_TABLE_NAME COMPONENT_TABLE_NAME NODE_LEVEL_TABLE_NAME TOPOLOGY U E
COST
UNET_PATHS GEOM UNET_PLINKS
SQL>
SQL> select * from user_sdo_geom_metadata where table_name like 'UNET_%';
TABLE_NAME
COLUMN_NAME
DIMINFO(SDO_DIMNAME, SDO_LB, SDO_UB, SDO_TOLERANCE)
SRID
UNET_LINKS
GEOM
SDO_DIM_ARRAY(SDO_DIM_ELEMENT('Long', -180, 180, 1), SDO_DIM_ELEMENT('Lat', -90, 90, 1))
8307
TABLE_NAME
COLUMN_NAME
DIMINFO(SDO_DIMNAME, SDO_LB, SDO_UB, SDO_TOLERANCE)
SRID
UNET_NODES
GEOM
SDO_DIM_ARRAY(SDO_DIM_ELEMENT('Long', -180, 180, 1), SDO_DIM_ELEMENT('Lat', -90, 90, 1))
8307
TABLE_NAME
COLUMN_NAME
DIMINFO(SDO_DIMNAME, SDO_LB, SDO_UB, SDO_TOLERANCE)
SRID
UNET_PATHS
GEOM
SDO_DIM_ARRAY(SDO_DIM_ELEMENT('Long', -180, 180, 1), SDO_DIM_ELEMENT('Lat', -90, 90, 1))
8307
SQL> desc unet_nodes;
Name Null? Type
NODE_ID NOT NULL NUMBER
NODE_NAME VARCHAR2(200)
NODE_TYPE VARCHAR2(200)
ACTIVE VARCHAR2(1)
PARTITION_ID NUMBER
GEOM MDSYS.SDO_GEOMETRY
SQL>
SQL> desc unet_links;
Name Null? Type
LINK_ID NOT NULL NUMBER
LINK_NAME VARCHAR2(200)
START_NODE_ID NOT NULL NUMBER
END_NODE_ID NOT NULL NUMBER
LINK_TYPE VARCHAR2(200)
ACTIVE VARCHAR2(1)
LINK_LEVEL NUMBER
GEOM MDSYS.SDO_GEOMETRY
COST NUMBER -
How to handle ORA-00942: table or view does not exist
Hii All,
I'm trying to drop a table dynamically irrespective of its existence in a procedure. Its working fine when table exists but when table doesn't exist I'm facing following error
ORA-00942: table or view does not existI made use of pragma exception_init and modified my code as below
Create or replace Procedure sp_FSASA_FEEDUPLOAD_process
p_test_dir in varchar2,
p_feed_file_name in varchar2
is
l_exttable_str varchar2(32000) ;
l_log_file constant varchar2(200) := 'logfile_rgh.log';
l_table_doesnt_exist Exception;
pragma exception_init(l_table_doesnt_exist,-00492);
Begin
Begin
execute immediate 'drop table FSASA_FEEDUPLOAD_EXT purge' ;
Exception
when l_table_doesnt_exist then
null;
End;
l_exttable_str := 'Create table FSASA_FEEDUPLOAD_EXT ';
l_exttable_str := l_exttable_str||' ( ';
l_exttable_str := l_exttable_str||' Category_No varchar2(1), ';
l_exttable_str := l_exttable_str||' Financial_Category varchar2(300), ';
l_exttable_str := l_exttable_str||' GFCID number, ';
l_exttable_str := l_exttable_str||' Balance number(34,14), ';
l_exttable_str := l_exttable_str||' Refernce_no varchar2(20), ';
l_exttable_str := l_exttable_str||' Account_no varchar2(20), ';
l_exttable_str := l_exttable_str||' ce_trans_id varchar2(20) ';
l_exttable_str := l_exttable_str||' ) ';
l_exttable_str := l_exttable_str||' Organization external ';
l_exttable_str := l_exttable_str||' ( ';
l_exttable_str := l_exttable_str||' type oracle_loader ';
l_exttable_str := l_exttable_str||' default directory '||p_test_dir;
l_exttable_str := l_exttable_str||' Access parameters ';
l_exttable_str := l_exttable_str||' ( ';
l_exttable_str := l_exttable_str||' records delimited by newline ';
l_exttable_str := l_exttable_str||'BADFILE '||q'[']'||p_test_dir||q'[']'||':'||q'[']'||'feed.bad '||q'[']' ;
l_exttable_str := l_exttable_str||'LOGFILE '||q'[']'||p_test_dir||q'[']'||':'||q'[']'||':feed.log '||q'[']' ;
l_exttable_str := l_exttable_str||q'[FIELDS TERMINATED BY X'09']';
l_exttable_str := l_exttable_str||' missing field values are null ';
l_exttable_str := l_exttable_str||')location('||q'[']'||p_feed_file_name||q'[']';
l_exttable_str := l_exttable_str||')' ;
l_exttable_str := l_exttable_str||' )Reject limit unlimited ';
dbg_print(l_log_file,'l_exttable_str : '||l_exttable_str);
execute immediate l_exttable_str;
End;But still I'm unable to get rid of it. Pls help me.
1)I need to drop it as I need to immediately create table with different file name and from different path.
2)The last thing I don't like to do is to check the table name in USER_OBJECTS and then drop.
3)Also suggest me whether creating an external table dynamically is correct approach or not.
4)Till now we were using utl_file for reading feed file but I'm much interested in using EXTERNAL TABLE concept.
5)As the filename and path gets changed I need to create my external table at runtime.
please suggest me whether I can alter my filename and path at runtimeYou will need to use WHEN OTHERS EXCEPTION handler which is not a good idea to do so if you dont handle the same approprialtly then the exception would go un-noticed:
SQL> ed
Wrote file afiedt.buf
1 begin
2 execute immediate 'drop table my_Test';
3 exception
4 when others then
5 dbms_output.put_line(SQLCODE||SQLERRM);
6* end;
SQL> /
-942ORA-00942: table or view does not exist
PL/SQL procedure successfully completed.
SQL>
Maybe you are looking for
-
How do I find the Mac address for my 8900?
I have a wireless network and can't connect to it at all. I have looked and typed in Blackberries search engine and came up with nothing, only answers are about a MAC computer, not what I am looking for. I have to add the Mac address to the wireless
-
Remote Desktop Ports Not Working
Hello, I am trying to set up my new laptop with Remote Desktop. I have Norton 360 on it and a linksys EA6900 router. And this is all on my home network. My issue is that I cant seem to connect to the laptop to the port 3391 I opened up on it. I have
-
PFCG role creation and input from users
I know that when you create a new role and add transactions to the menu you will get some default authorization objects in the role. After that you will need to fill out activities for transactions; For ex: display, create, change I also know that du
-
Issue in BAPI_ACC_DOCUMENT_REV_CHECK
Hi Experts! When I try to reverse a FI document with document no (9100000451) in company code 005 in my code by calling the BAPI BAPI_ACC_DOCUMENT_REV_CHECK and BAPI_ACC_DOCUMENT_REV_POST, its gives an error saying 'Reversal in component General Led
-
SSHR : Build New Report For Submitted SITs in Process 'Pendning Approval'
Dear All , Good day , I am using Oracle HRMS 11.5.10.2 ,, I want to generate new report that get the data of the submitted SITs which not approved till now 'Pending Approval' Could any one help what the tables save this data ?? Best Regards