ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 tabela ou vista não existe erro Oracle
Sometime when you compile an object or package or view in Oracle, or execute some PL/SQL statements on Oracle table, or when running an Oracle program or application, the following error my occurs: Às vezes quando você compilar um objeto ou pacote ou ver em Oracle, ou executar algumas PL / SQL em Oracle mesa, ou ao executar um programa ou aplicativo Oracle, ocorre o seguinte erro meu:
ORA-00942: table or view does not exist ORA-00942: mesa ou visualizar não existe
The cause or reason for ORA-00942 error message is because of Oracle tries to execute an SQL statement that references a table or view that either does not exist, or because of a synonym that is not allowed here was used, or because of you do not have access rights to the particular object. A causa ou motivo para ORA-00942 mensagem de erro é por causa da Oracle tenta executar uma instrução SQL ou mesa que referencie um ponto de vista de que ou não existe, ou por causa de um sinónimo de que não é permitido aqui foi usado, ou por causa de você fazer não têm direitos de acesso para o objeto específico. Other possible cause is that the table or view belongs to another schema and you didn’t reference the table by the schema name, or a view was referenced where a table is required. Outro possível motivo é que a tabela ou vista pertence a um outro esquema e você não fez referência a tabela pelo nome de esquema, ou de uma opinião foi referendada quando uma tabela é exigido.
Depending on what’s the cause of the problem, there are several resolutions or remedies to resolve this error. Dependendo de qual é a causa do problema, existem várias resoluções ou soluções para resolver esse erro. And due to several possible reasons that may cause the error, there are several actions or steps that you can take to identify where is the error and take the appropriate workaround or solution. E devido a vários motivos possíveis que podem causar o erro, existem várias medidas ou acções que pode levar a identificar onde está o erro e tomar as devidas solução alternativa ou solução.
- Check existing user tables and views if they exists in Oracle by querying the data dictionary by executing the following SQL statement: Confira usuário existente, desde que opiniões e mesas existe no Oracle por consultando o dicionário de dados, executando o seguinte comando SQL:
select * select *
from all_objects a partir de all_objects
where object_type in (’TABLE’,'VIEW’) onde nos object_type ( 'tabela', 'VIEW')
and object_name = ‘ OBJECT_NAME ‘; e object_name = 'OBJECT_NAME';Replace OBJECT_NAME with the name of the table or view that you want to verify its existence. Substituir OBJECT_NAME com o nome da tabela ou vista que pretende verificar a sua existência.
If this error occurred because the table or view does not exist, take the following actions: Se este erro ocorreu porque a tabela ou vista não existir, tomar as seguintes ações:
- Check and ensure that the spelling of the table (does not misspell) or view name is correct. Verificar e garantir que a ortografia da tabela (não cometer erros de ortografia) ou exibir nome está correto.
- Check and ensure that a view is not specified where a table is required. Verificar e garantir que o objectivo não é especificada uma tabela onde é necessária.
- If no such table or view exists, create the table or view, or use another table or view. Se não existir tal tabela ou vista existe, crie a tabela ou vista, ou usar uma outra tabela ou vista.
- If the table or view exists, check and verify if the user has the necessary permissions and rights to read and access (ie select) from the table, as certain privileges may be required to access the table. Se a tabela ou vista existe, controlar e verificar se o usuário tem as permissões necessárias e direitos de leitura e acesso (ou seja, selecionar) a partir da tabela, como certos privilégios podem ser requisitados para acessar a tabela. In this case, you will need to have the owner of the table or view, or a Oracle DBA to grant the appropriate privileges, permissions or rights to this object. Neste caso, você precisará ter o proprietário da tabela ou vista, ou um DBA Oracle para conceder os privilégios adequados, permissões ou direitos para esse objeto.
Note that when selecting from a system view (such as v$session) the privilege or access rights to select from the view must be granted to the user directly and not via a role. Repare que quando da escolha de um sistema de visualização (como a sessão $ v) o privilégio ou de direitos de acesso a escolha a partir do ponto de vista deve ser concedido ao usuário diretamente, e não através de um papel. This is the case if you can select from the view without problem but then get this error when trying to create a view on it. É o que acontece se você pode selecionar a partir do ponto de vista sem problema, mas, depois, pegar esse erro ao tentar criar uma opinião sobre ele.
- 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. Se a tabela ou vista existe, mas está em um esquema diferente do atual esquema onde o SQL está executando (em outras palavras, o quadro não é por si própria, mas pertencente a outro usuário), o ORA-00942 erro também retornará . Resolve this by explicitly reference the table or view by specifying the schema name, ie schema_name.table_name. Por isso explicitamente referência a tabela ou vista de esquema, indicando o nome, ou seja schema_name.table_name.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Esta é uma máquina página traduzida que é fornecido "como está" sem garantia. Machine translation may be difficult to understand. A tradução automática pode ser difícil de entender. Please refer to Por favor referir-se original English article artigo original Inglês whenever possible. quando possível.
Share and contribute or get technical support and help at Compartilhe e contribuir ou obter assistência técnica e ajudar a My Digital Life Forums Minha vida digital Fóruns .
Related Articles Artigos Relacionados
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle Drop Table erro
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Criar, Adicionar ou Split Oracle Database Partition Falha com ORA-14080 Erro
- Oracle Database Import Error 3113/3114 Oracle Database Import erro 3113/3114
- Oracle ORA-14074 Create or Add New Partition Fails Error Oracle ORA-14074 criar ou adicionar novas partições falhar erro
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 erro ao exportar Database
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL Facilmente duplicar, copiar ou Backup Quadros em Oracle, PostgreSQL, DB2 e SQLite com Criar Mesa Como SQL
- Check Oracle Version Check Oracle versão
- ORA-01502 Oracle Index in Unusable State ORA-01502 Oracle Índice inutilizáveis no Estado
- Manual and Clean Uninstall Oracle for Windows Manual limpo e desinstalar Oracle para Windows
- View and Retrieve Oracle Database Link Details Exibir link de dados Oracle e recuperar informações
































