Help "Error Ora-01157"

DBA Geral (instalação, configuração do banco, scripts do Sql*Plus, shell scripts, batch scripts, etc...)
Post Reply
cyched
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 3
Joined: Wed, 17 Aug 2005 2:37 pm
Location: São Paulo
Cyntia

Hello everyone,

could anyone help me?

I am here in the service trying to turn a subquery in Oracle that returns approximately 80,000 lines ... but when I do an insert in this subquery the following error message appears: "ORA-01157 '

What could be? Someone, have an idea?
User avatar
dr_gori
Moderador
Moderador
Posts: 5026
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

I did not understand this:
I do an insert in this subquery
Are you doing insert in a table? that's it?
Gives Error in Select or Insert?

According to error, it appears that Datafile is not available at the operating system level. What the manual suggests is to give an Alter System Check Datafiles. See below:

Select all

ORA-01157:	cannot identify/lock data file string - see DBWR trace file 
 
Cause:	The background process was either unable to find one of the data files or failed to lock it because the file was already in use. The database will prohibit access to this file but other files will be unaffected. However, the first instance to open the database will need to access all online data files. The accompanying error from the operating system describes why the file could not be identified. 
 
Action:	At the operating system level, make the file available to the database. Then either open the database or do an ALTER SYSTEM CHECK DATAFILES. 
cyched
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 3
Joined: Wed, 17 Aug 2005 2:37 pm
Location: São Paulo
Cyntia

I'm doing insert in a table, the error gives in the insert, if I do a select in the table does not give an error, I'm using the database link, I'm doing im insert in a subquery
cyched
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 3
Joined: Wed, 17 Aug 2005 2:37 pm
Location: São Paulo
Cyntia

Beauty ... now you can not test but as soon as I can, I'll test and if I do not resolve you ...

Even Valii Bruno! : Wink:
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest