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

Similar Messages

  • 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:06

    I found the solution.
    I had to grant SELECT on the mview log. The name is avaiable in DBA_MVIEW_LOGS

  • Error with Sun App. Server 9...table or view does not exist..

    I am not sure where to post this but here it is:
    I am using Sun App. Server 9 along with a XE database...I use two schemas in my web app but on the first I get ORA error -table or view does not exist from SAS ,although it exists..the second works fine...
    Q: I cannot use 2 simultaneous connection with XE? or what seams to be the problem...
    PS: I also experimented randomly a oracle.toplink error that my Persistance Unit was unable to connect

    two PU's
    two Database Connections (in fact jsf pages ware generate based on entity classes-witch ware made using the connection)
    two schemas: HR and CONTA
    On a second thought I think somehow you're right ...it must be some connection error regarding the schema used...
    I'll look into it...but later...
    Florin POP

  • APEX_APPLICATION_FILES: ORA-00942: table or view does not exist

    Hello,
    As my first APEX task I am attempting the upload/download demo on http://download.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32469/up_dn_files.htm
    The ultimate goal is to store PDF files in the database.
    In order to complete step 1: To create an application using the Create Application Wizard:
    - I first created a user from SYSTEM called 'myapp'
    - Next I logged into 'myapp' to continue the exercise. (I am wondering if that is where I am going wrong... If so, please clarify)
    - Knowing that I would want to save the upload to a table I created a table with a BLOB
    I did the steps for the upload and ran the application - no errors to there.
    Next I needed to "To create a report on APEX_APPLICATION_FILES:".
    I started the wizard as instructed. When I pasted the SELECT ... FROM APEX_APPLICATION_FILES, I got the table or view does not exist. A quick review of the TABLES tab shows only the tables that I created. Not any of the system tables or views.
    I logged back in as SYSTEM and reviewed the 'rights' given the user 'myapp'. All were checked.
    I knew nothing of Oracle when I installed XE, so I took defaults or whatever the install doc said to do. Is that part of the problem? It is clear that I do not have rights to see that table, but I also do not see the table when logged in as SYSTEM.
    Any insight appreciated,
    Rick

    Thanks for the reply.
    Version is:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Database      
    NAME     XE
    CREATED     10/13/2006 08:04:21 PM
    RESETLOGS_TIME     10/13/2006 08:04:25 PM
    Install Version 10.2.1015
    Regarding the code links, this one looks like what I need:
    DECLARE
    l_bfile BFILE;
    l_blob BLOB;
    BEGIN
    INSERT INTO tab1 (col1)
    VALUES (empty_blob())
    RETURN col1 INTO l_blob;
    l_bfile := BFILENAME('IMAGES', 'MyImage.gif');
    DBMS_LOB.fileopen(l_bfile, Dbms_Lob.File_Readonly);
    DBMS_LOB.loadfromfile(l_blob, l_bfile, DBMS_LOB.getlength(l_bfile));
    DBMS_LOB.fileclose(l_bfile);
    COMMIT;
    END;
    Is the 'BFILENAME' function that causes the 'get a filename' dialog box of Windows to open for the user to find which file to upload?
    I'm going off to look for a newer version of APEX, thanks.

  • 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
    Evgeny

    Do 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

  • Database startup showing ORA-00942: table or view does not exist in trace

    Hi Friends,
    SunOS 5.10 Generic_137112-06 i86pc i386 i86pc , 64 Bit
    Oracle 10.2.0.1.0
    While I am doing a startup, getting following error.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area 3221225472 bytes
    Fixed Size 2122544 bytes
    Variable Size 410819792 bytes
    Database Buffers 2801795072 bytes
    Redo Buffers 6488064 bytes
    Database mounted.
    ORA-01092: ORACLE instance terminated. Disconnection forcedThe alert log shows the following
    Errors in file /applns/oracle/admin/CTSD1/udump/ctsd1_ora_11486.trc:
    ORA-00942: table or view does not exist
    Error 942 happened during db open, shutting down database
    USER: terminating instance due to error 942
    Instance terminated by USER, pid = 11486
    ORA-1092 signalled during: ALTER DATABASE OPEN...A look at the trace file shows this
    /applns/oracle/admin/CTSD1/udump/ctsd1_ora_11486.trc
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    ORACLE_HOME = /applns/oracle
    System name: SunOS
    Node name: N890
    Release: 5.10
    Version: Generic_137112-06
    Machine: i86pc
    Instance name: CTSD1
    Redo thread mounted by this instance: 1
    Oracle process number: 23
    Unix process pid: 11486, image: oracle@N890 (TNS V1-V3)
    *** SERVICE NAME:() 2011-02-16 19:24:50.188
    *** SESSION ID:(325.3) 2011-02-16 19:24:50.188
    Successfully allocated 3 recovery slaves
    Using 367 overflow buffers per recovery slave
    Thread 1 checkpoint: logseq 45929, block 2, scn 310788795>cache-low rba: logseq 45929, block 3
    >on-disk rba: logseq 45929, block 52, scn 310788832
    >start recovery at logseq 45929, block 3, scn 0
    ----- Redo read statistics for thread 1 -----
    Read rate (ASYNC): 24Kb in 0.31s => 0.08 Mb/sec
    Total physical reads: 4096Kb
    Longest record: 0Kb, moves: 0/61 (0%)
    Longest LWN: 16Kb, moves: 0/3 (0%), moved: 0Mb
    Last redo scn: 0x0000.128642df (310788831)
    ----- Recovery Hash Table Statistics ---------
    Hash table buckets = 32768
    Longest hash chain = 1
    Average hash chain = 4/4 = 1.0
    Max compares per lookup = 1
    Avg compares per lookup = 117/121 = 1.0
    *** 2011-02-16 19:24:50.515
    KCRA: start recovery claims for 4 data blocks
    *** 2011-02-16 19:24:50.515
    KCRA: blocks processed = 4/4, claimed = 4, eliminated = 0
    *** 2011-02-16 19:24:50.516
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 45929 Reading mem 0
    ----- Recovery Hash Table Statistics ---------
    Hash table buckets = 32768
    Longest hash chain = 1
    Average hash chain = 4/4 = 1.0
    Max compares per lookup = 1
    Avg compares per lookup = 121/121 = 1.0
    ORA-00942: table or view does not existI have searched MOS and Google, but didn;'t get any relevant results.
    Also flushed my shared_pool as mentioned in (http://www.tanelpoder.com/files/oracle_rowcache.pdf) after mount and started , still no luck
    Any help is appreciated
    Thanks
    SSN

    Hi,
    Thanks.
    Tried log mining, but still couldn't find the culprit. I think now, I have to drop and create this db.Still wondering what might have happened.
    select group#,status from v$log;
        GROUP# STATUS
             1 INACTIVE
             3 INACTIVE
             2 CURRENT
    SQL> select group#,MEMBER from v$logfile where group#=2;
        GROUP#
    MEMBER
             2
    /applns/oracle/oradata/CTSD1/redo02.log
    SQL> EXECUTE sys.DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/applns/oracle/oradata/CTSD1/redo02.log',OPTIONS => sys.DBMS_LOGMNR.NEW);
    PL/SQL procedure successfully completed.
    SQL> EXECUTE sys.DBMS_LOGMNR.START_LOGMNR;
    PL/SQL procedure successfully completed.
    SQL> SELECT COUNT (*) FROM   v$logmnr_contents WHERE  operation = 'DDL';
      COUNT(*)
             0
    SQL> EXECUTE sys.DBMS_LOGMNR.END_LOGMNR();
    PL/SQL procedure successfully completed.
    SQL> select group#,MEMBER from v$logfile where group#=1;
        GROUP#
    MEMBER
             1
    /applns/oracle/oradata/CTSD1/redo01.log
             1
    /applns/oracle/oradata/CTSD1/redolog001.log
    SQL> EXECUTE sys.DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/applns/oracle/oradata/CTSD1/redo01.log',OPTIONS => sys.DBMS_LOGMNR.NEW);
    PL/SQL procedure successfully completed.
    SQL> EXECUTE sys.DBMS_LOGMNR.START_LOGMNR;
    PL/SQL procedure successfully completed.
    SQL> SELECT COUNT (*) FROM   v$logmnr_contents WHERE  operation = 'DDL';
      COUNT(*)
             0
    SQL> EXECUTE sys.DBMS_LOGMNR.END_LOGMNR();
    PL/SQL procedure successfully completed.
    SQL> EXECUTE sys.DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/applns/oracle/oradata/CTSD1/redolog001.log',OPTIONS => sys.DBMS_LOGMNR.NEW);
    PL/SQL procedure successfully completed.
    SQL> EXECUTE sys.DBMS_LOGMNR.START_LOGMNR;
    PL/SQL procedure successfully completed.
    SQL> SELECT COUNT (*) FROM   v$logmnr_contents WHERE  operation = 'DDL';
      COUNT(*)
             0
    SQL> EXECUTE sys.DBMS_LOGMNR.END_LOGMNR();
    PL/SQL procedure successfully completed.
    SQL> select group#,MEMBER from v$logfile where group#=3
        GROUP#
    MEMBER
             3
    /applns/oracle/oradata/CTSD1/redo03.log
    SQL> EXECUTE sys.DBMS_LOGMNR.ADD_LOGFILE( LOGFILENAME => '/applns/oracle/oradata/CTSD1/redo03.log',OPTIONS => sys.DBMS_LOGMNR.NEW);
    PL/SQL procedure successfully completed.
    SQL>  EXECUTE sys.DBMS_LOGMNR.START_LOGMNR;
    PL/SQL procedure successfully completed.
    SQL> SELECT COUNT (*) FROM   v$logmnr_contents WHERE  operation = 'DDL';
      COUNT(*)
             0
    SQL> EXECUTE sys.DBMS_LOGMNR.END_LOGMNR();
    PL/SQL procedure successfully completed.SSN

  • Java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist while invoking a DBAdapter

    I have a WebService which is invoked , the request is routed through the mideator to the DBAdapter .DBAdapter interacts with the database and replies the result.
    I send in the CreditCardNumber in the request and recieve its Status (VALID,INVALID). i get this error every time . i have tried almost every thing to fix this . Please help me with same .
    Below is the complete error stacktrace.
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'getCreditValidationSelect' failed due to: DBReadInteractionSpec Execute Failed Exception. Query name: [getCreditValidationSelect], Descriptor name: [getCreditValidation.Creditcardinfo]. Caused by java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist . See root exception for the specific exception. This exception is considered retriable, likely due to a communication failure. To classify it as non-retriable instead add property nonRetriableErrorCodes with value "942" to your deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff. All properties are integers. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    Thanks in advance

    Can you please check the following
    a. check the JNDI Configuration. ( check for the value used for XADatasourceName )
    b. check the Data source created for the User.
    c. Incase you have updated the existing JNDI then you need to update the adapter with the New Deployment Plan.
    Thanks,
    Sunil Gopal

  • Can't get Sequencing working (table or view does not exist...)

    Hello,
    I'm running JDeveloper 10.1.2 on a Oracle 9i database.
    All my mappings are correct, i mean, i can query the database using the Toplink API and list all the objects on teh database. What it's not working is inserting new objects due to this sequencing problem.
    This is what i'm doing:
    myClass newObject = (myClass) uow.newInstance(myClass.class);
    uow.assignSequenceNumber(newObject);
    But this is generating this Exception:
    Local Exception Stack: Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DatabaseExceptionException Description: java.sql.SQLException: ORA-00942: table or view does not exist
    Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist
    Error Code: 942
    I figured this could be a problem with the sequencing configuration and all that stuff (I don't have a sequence table). So i checked my configurations...
    'Toplink Mappings' is setup to 'Use Native Sequencing', as per Notes on http://www.boku.ac.at/oradoc/ias/10g(9.0.4)/web.904/b10313/dataaccs.htm. This page also states this:
    "When using native sequencing with Oracle, specify the name of the sequence object (the object that generates the sequence numbers) for each descriptor. The sequence preallocation size must also match the increment on the sequence object" (...) "Use preallocation and native sequencing for Oracle databases.
    And this is exactly what i'm doing. On myClass mappings, the 'Use Sequencing' checkbox is checked, the correct sequence name is typed correctly, once this is the same sequence i've been using for years prior to Toplink, the selected table is the correct one, just as the id field on the table.
    Another thing is that the 'Preallocation Size' on Toplink Mappings match the increment value on the database sequence.
    I must be missing something...
    Can anybody shed some light on this?
    Thanks a lot to all.

    Hello
    The method accessing check box tells TopLink to use the get/set methods on your object to set its attributes - If it is unselected, TopLink will set the attribute directly. Great if you have business logic in your get/set methods that you don't want TopLink to hit each time it creates an object after a read from the database (or registers, etc).
    The problem you are encountering seems like you have sequencing set to "Use Default Sequencing Table". This option is on the "TopLink Mappings" page on the "Database info" tab just below where you would have set which connection to use. You will need to ensure you have the "use Native sequencing" selected. If you set this information instead through code, be sure you do it on the database login before you login to the session.
    If this doesn't help, try turning on TopLink logging to see the SQL statement that causes the problem. The knowing the table name and SQL being used might help figure out where it is being set.
    Best Regards,
    Chris

  • 10gLiteR3 publishing ORA-00942: table or view does not exist error

    Hi All,
    I am encountering table or view does not exist error while publishing using the api.
    Below is the code:
    try {
    consolidatorManager.openConnection("MOBILEADMIN","PASSWORD", ADMIN_JDBC_URL);
    mobileResourceManager = new MobileResourceManager("MOBILEADMIN","PASSWORD",ADMIN_JDBC_URL);
    consolidatorManager.createPublicationItem(EXT_CONN, "RMT_TEST_TABLE" , "MOBILEADMIN","RMT_TEST_TABLE", "F", "SELECT * FROM MOBILEADMIN.RMT_TEST_TABLE", null, null);
    consolidatorManager.addPublicationItem(mobileResourceManager.getPublication("/mobileApp"),"RMT_TEST_TABLE",null, null, "S", null, null);
    } catch (Exception e) {
    e.printStackTrace();
    When I execute the above code it does not throw any exceptions but I see the below error in err.log. I,U,D triggers are getting created on the remote table, CMP, CFM, CVR,CLG tables are also created, I also see primary key for this table in VPKS. Publishing seems to be fine but I see the below error in err.log.
    java.sql.SQLException: ORA-00942: table or view does not exist
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1451)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:651)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2117)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2331)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:422)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:366)
         at oracle.lite.sync.Subscription.getVirtualTablePrimaryKey(Subscription.java:7522)
         at oracle.lite.sync.Subscription.getTablePrimaryKey(Subscription.java:7365)
         at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2334)
         at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2157)
         at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2129)
         at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2108)
         at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2093)
         at oracle.lite.sync.Subscription.CreatePublicationItem(Subscription.java:2079)
         at oracle.lite.sync.ConsolidatorManager.createPublicationItem(ConsolidatorManager.java:1253)
    I am not able to figure out what table it is looking for. Any ideas why this is happening?

    check the MGP compose process, is it also showing the error?
    If it is them at some point in 10.2 Oracle introduced a 'feature' (ie: bug) that causes problems to the housekeeping routines when new versions of publication items are published
    In 10.0 and early 10.2 when making changes to publication items VIEWS called CPV$.. were created to log the column list for each version of a publication item, and check if you are making changes when you publish. In the case of old versions, once all clients have synchronised and been moved to the latest version it tries to delete this view.
    at some point the publish started creating TABLES instead of views (but using the same naming convention ie: CPV$..). This works fine as far as the logging of changes and old column lists, but the housekeeping called at the end of the publish and GP process still trieds to do a DROP VIEW and this causes the error.
    The only way of clearing this i have found is to look at the log file to get the name of the object that it is trying to drop, set up a view script to create a dummy view with the list of columns in the table, drop the table and then create the view. It then gets dropped on the next MGP cycle and the error goes away
    If the error is not showing up in the MGP process, only in the publish, and your changes appear to be publishing OK, then the problem is likely to be with a snapshot definition AFTER the change you have made - real pain to identify on re-publish - possibly missing schema name in the snapshot definition

  • 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.

  • TimesTen In-Memory Database -ORA-00942: table or view does not exist rc = -1

    Hi Chris,
    This is wrt the thread : Unable to create CacheGroup.
    I have configured Oracle_DB[11.2.0.3.0] for timesten, installed timesten[11.2.2.7.0], configured cache_DB.
    So the Oracle database has user TIMESTEN(cache user) and TTENADMIN(cache admin user). Similarly the Cache Database has same TTENADMIN(cache manager user) and FNETLUO1(cache table user)
    But while configuring the cache database following error occurred:
    connect "dsn=my_cachedb;uid=TTENADMIN;oraclepwd=ttenadmin";
    Enter password for 'TTENADMIN':
    Connection successful: DSN=my_cachedb;UID=TTENADMIN;DataStore=/opt/IBM/TimesTen/tten_database/my_cachedb;DatabaseCharacterSet=WE8ISO8859P15;ConnectionCharacterSet=US7ASCII;DRIVER=/opt/IBM/TimesTen/tt11204FTP/lib/libtten.so;LogDir=/opt/IBM/TimesTen/tten_database/logs;PermSize=40;TempSize=32;TypeMode=0;OracleNetServiceName=PSFTDEV2;
    (Default setting AutoCommit=1)
    con1: Command>call ttcacheuidpwdset ('TTENADMIN','ttenadmin');
    5221: Oracle syntax error in OCIStmtExecute(): ORA-00942: table or view does not exist rc = -1
    5130: Error executing the following statement on Oracle: MERGE INTO TTENADMIN.TT_06_databases USING DUAL ON (upper(TTENADMIN.TT_06_databases.host) = upper('DG1166') AND upper(TTENADMIN.TT_06_databases.datastore) = upper('/opt/IBM/TimesTen/tt11204FTP_database/my_cachedb')) WHEN NOT MATCHED THEN INSERT (hash,...
    5025: Commit failure in Oracle. Transaction must be rolled back in TimesTen.
    The command failed.
    Please advise how we can solve this?

    Hi
    Just for additional information:
    ttAdmin -cacheUidPwdSet -cacheUid TTENADMIN -cachePwd ttenadmin my_cachedb
    *** [TimesTen][TimesTen 11.2.2.7.0 ODBC Driver][TimesTen]TT5221: Oracle syntax error in OCIStmtExecute(): ORA-00942: table or view does not exist rc = -1 -- file "bdbConfig.c", lineno 2324, procedure "oraExecDirect()"
    *** ODBC Error = S1000, TimesTen Error = 5221
    *** [TimesTen][TimesTen 11.2.2.7.0 ODBC Driver][TimesTen]TT5130: Error executing the following statement on Oracle: MERGE INTO TTENADMIN.TT_06_databases USING DUAL ON (upper(TTENADMIN.TT_06_databases.host) = upper('DG1166') AND upper(TTENADMIN.TT_06_databases.datastore) = upper('/opt/IBM/TimesTen/tt11203FTP_database/my_cachedb')) WHEN NOT MATCHED THEN INSERT (hash,... -- file "bdbConfig.c", lineno 2353, procedure "oraExecDirect()"
    *** ODBC Error = S1000, TimesTen Error = 5130
    But i can see that at backend two new tables are created for TTENADMIN(cache admin):
      TTENADMIN.TT_06_DATABASES and TTENADMIN.TT_06_DB_PARAMS
    with columns, indexes but no records/data.

  • Blank Tables Schemau00B4s name causes "Table or view does not exist" Oracle

    Hello Guys,
    I´m searching over the internet something that could solve this issue:
    I´m developing an application that simply open a .rpt file, associate it to some crystalreportviewer´s reportsource. After making some tests I found out that the tables schema name (Oracle) is lost. So when I log in to the database with a user that is not the owner of the table, I get "Table or view does not exist" error.
    I printed in the screen the Location property of the tables and all I got was the table name, with no schema name in it.
    Someone can help me with that? I´m using visual studio 2008, 2.0 .net framework and C#
    The source-code is bellow:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    namespace crystal20
        public partial class Form1 : Form
            public Form1()
                InitializeComponent();
            private void Form1_Load(object sender, EventArgs e)
                try
                    this.ConfigureCrystalReports();
                catch (Exception ex)
                    MessageBox.Show("Erro:" + ex.Message);
            private void ConfigureCrystalReports()
                openFileDialog1.FileName = "";
                openFileDialog1.ShowDialog();
                ReportDocument crReportDocument;
                Database crDatabase;
                Tables crTables;
                TableLogOnInfo crTableLogOnInfo;
                ConnectionInfo crConnectionInfo;
                //Create an instance of the strongly-typed report object
                crReportDocument = new ReportDocument();
                crReportDocument.Load(openFileDialog1.FileName);
                //Form2 teste = new Form2(crReportDocument);
                //crReportDocument = teste.getRelatorio();
                //crReportDocument.SetDatabaseLogon("", "", "", "");
                //Set the crConnectionInfo with the current values stored in the report
                //crConnectionInfo = crReportDocument.Database.Tables[0].LogOnInfo.ConnectionInfo;
                crConnectionInfo = new ConnectionInfo();
                /* Populate the ConnectionInfo Objects Properties with the appropriate values for
                   the ServerName, User ID, Password and DatabaseName. However, since Oracle
                   works on Schemas, Crystal Reports does not recognize or store a DatabaseName.
                   Therefore, the DatabaseName property must be set to a BLANK string. */
                //crConnectionInfo.DatabaseName = "";
                //crConnectionInfo.ServerName = "hom";
                //crConnectionInfo.UserID = "user";
                //crConnectionInfo.Password = "pass";
                //Set the ReportSource of the CrystalReportViewer to the strongly typed Report included in the project
                crystalReportViewer1.ReportSource = crReportDocument;
                //Set the CrDatabase Object to the Report's Database
                crDatabase = crReportDocument.Database;
                //Set the CrTables object to the Tables collection of the Report's dDtabase
                crTables = crDatabase.Tables;
                //Loop through each Table object in the Tables collection and apply the logon info
                //specified ealier. Note this sample only has one table so the loop will only execute once
                foreach (Table crTable in crTables)
                    crTableLogOnInfo = crTable.LogOnInfo;
                    crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
                    crTable.ApplyLogOnInfo(crTableLogOnInfo);

    Thanks for your answer, but where do I get the Owner (Schema) name.
    When I print the Table.Location property I just get the table name, not any Owner.
    Ex:
    My table is:
    CUSTOM.TABLE1
    If I print the value of table.location property value its just "TABLE1". Then If I log on as other user, not custom, I get "Table or view does not exist".
    Have you understood my issue?

  • 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.

  • Table or view does not exist - Data Dictionary Import Wizard(Data Modeler)

    Hi All,
    In Data Modeler, Data Dictionary Import Wizard, I'm able to connect to database.But while going to the second stage (Select Schema/Database), I'm getting an error "ORA-00942: table or view does not exist".
    I am able to select the table with select * from all_tables and I can open many tables as well.
    Could anyone tell me, whether I'm missing any privilege, that causing this error.
    Thanks in advance for you support.
    Thanks.

    Hi,
    Thanks for your response, sorry for my late reply as I was away from my place.
    Yes, it is showing "Connection established successfully".
    log file as below-
    2012-08-02 10:37:26,471 [main] INFO ApplicationView - Oracle SQL Developer Data Modeler 3.1.1.703
    2012-08-02 10:39:42,889 [AWT-EventQueue-0] ERROR AbstractDBMExtractionWizardImpl - java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    Pls see oracle version details-
    Oracle Database 11g Enterprise Edition
    11.1.0.6.0
    64bit Production
    Thanks again and waiting for reply.

  • PL/SQL: ORA-00942: table or view does not exist

    Hi
    i have logged into my schema and trying to access the database "DAD" which has the table name "SCHOOL"
    i wrote a function which should give me new_sno when i give it the old_sno
    and i have this errors , pls help
    CREATE OR REPLACE FUNCTION ORIG_SN(OSNO in Number,OTN in Number)
    RETURN Number IS
    NEW_SNO Number:=0;
    BEGIN
    SELECT new_sno AS NEW_SNO
    FROM DAD.SCHOOL
    WHERE ORIG_SNO = OSNO AND ORIG_TN = OTN;
    RETURN NEW_SNO;
    END ORIG_SN;
    Warning: Function created with compilation errors.
    Errors for FUNCTION ORIG_SN:
    LINE/COL ERROR
    5/1 PL/SQL: SQL Statement ignored
    6/15 PL/SQL: ORA-00942: table or view does not exist
    Thanks in advance ..

    Try this,
    CREATE VIEW SCHOOL_VIEW AS SELECT * FROM DAD.SCHOOL;and then change your function like
    CREATE OR REPLACE FUNCTION ORIG_SN(OSNO in Number,OTN in Number)
    RETURN Number IS
    my_new_sno Number:=0;
    BEGIN
    SELECT new_sno INTO my_new_sno FROM SCHOOL_VIEW WHERE ORIG_SNO = OSNO AND ORIG_TN = OTN;
    RETURN my_new_sno;
    END ORIG_SN;and see if it is getting created without any errors.
    -Arun
    Edited by: Arunkumar Ramamoorthy on Aug 15, 2009 1:56 AM

Maybe you are looking for

  • How send value to another class

    Hello I saw this at the internet. //: Cake.java // Accesses a class in a separate // compilation unit. class Cake {   public static void main(String[] args) {     Pie x = new Pie();     x.f(); } ///:~ In a second file, in the same directory: //: Pie.

  • How do I take movies and save them on the iPad?

    How do I take movies and save them on the iPad? Thank you for your help.

  • IWeb link undesirable

    I send an iWeb link but some users receive a warning that site is undesirable and won't open the site.

  • PhotoShop Album: Wo sind die Dateien?

    Ich erstelle Präsentationen in PhotoShop Album 2.0. Diese möchte ich als Sicherheitskopie auf Datenspeicher ziehen. Wo sind meine Präsentationen auf Festplatte abgespeichert? In c:\programme\adobe\photoshop album habe ich sie nicht gefunden. Wer weiß

  • How do you stop adjustments to the image when importing pictures?

    When I import pictures into Lightroom 1.1 they all automatically get adjusted to be much brighter. How do I stop this? The DEVELOP SETTINGS DIALOG in the IMPORT PHOTOS pop up box is set to NONE. I don't think it's a color management issue as the imag