ORA-01157: cannot identify/lock data file 6

I work for a school district and recently ran into problems with writing data in a database by using ASP.

Background:
We are currently running Oracle Database 11 g Release 11.1.0.6.0 - 64 bit Production With the Real Application Clusters on Linux systems option.

We have a workable tablespace/database using our system of management of the school called "Genesis." There is no problem reading, writing or deletion of records through this site web-based application.

Problem:
I wrote a few ASP pages that read from the 'background' database tablespace that works reliable. The problem is that I created a new tablespace/user/database with two tables that I write for.

If I run a test trying to add new records via my ASP page Let's say 5 times, it cannot work more than 3 of those times.

The error I get is as follows:

Error Automation Oracle '800a01b8 '.

Data retrieval error, ORA-01157: cannot identify/lock data file 6 - see the file trace DBWR ORA-01110: data file 6: ' / u01/app/oracle/product/11.1.0/db_1/dbs/ORCL_GENESIS'

/ Parent_Portal/Confirmation.asp, line 40

Looking at the knowledge base (Article NOTE: 268061.1) mentions that there are maybe not ebough available file descriptors. We increase the amount, the same results.

Also, if it's important, it's the code that I use to write to the database:

Set OraSession = CreateObject ("OracleInProcServer.XOraSession")
Set OraDatabase = OraSession.OpenDatabase ("ORCL" _
(' Username/password name', cint (0))

Set OraDynaset = OraDatabase.CreateDynaset ("SELECT * FROM PARENT_PORTAL.") (The STUDENTS", cint (0))

OraDynaset.AddNew
OraDynaset.Fields ("Email"). Value = strEmail
OraDynaSet.Fields ("STUDENTID"). Value = strStudentID
OraDynaset.Update

Set OraDynaset = OraDatabase.CreateDynaset ("SELECT * FROM PARENT_PORTAL.") (Accounts", cint (0))

OraDynaset.AddNew
OraDynaset.Fields ("Email"). Value = strEmail
OraDynaset.Fields ("LASTNAME"). Value = strPLName
OraDynaset.Fields ("FIRSTNAME"). Value = strPFName
OraDynaSet.Fields ("PHONE"). Value = strPhone
OraDynaset.Update

Set OraSession = Nothing


Any help on this would be greatly appreciated.

Thank you
Jason

Query

Select file_name in dba_data_files
Union
Select Member from v$ logfile
Union
Select name from v$ controlfile;

to identify all the database controlfiles and redo online.

A database is the database files.
An instance is all the processes running on a node.
To the CARS, you have 2 (or more) of the instances that are running on 2 nodes (or more) to access the same database simultaneously.
A node can go down or die or be shot in the head, but the database continues to be available through the second instance on the other node. This is the reason for all of the CARS.

Tags: Database

Similar Questions

  • ORA-01157: cannot identify/lock data file 6 - see DBWR trace file

    Dear all,

    I use a machine to the BSG that is 64-bit, I installed the oracle 119 in that. First, he was installed at u01 volume root but the size was enough for me, so I changed the volume and new volume as u01. now when I try to start the database his past does not

    Here is the error

    SQL > startup

    ORACLE instance started.

    Total System Global Area 3206836224 bytes

    Bytes of size 2217632 fixed

    1744832864 variable size bytes

    1442840576 of database buffers bytes

    Redo buffers 16945152 bytes

    Mounted database.

    ORA-01157: cannot identify/lock data file 6 - see DBWR trace file

    ORA-01110: data file 6: ' / u01/app/oracle/product/11.2.0/db_1/dbs/tbs_data.dat'

    and u01/app/oracle/product/11.2.0/db_1/dbs/tbs_data.dat that this file is not present it may I know how to recover from this.

    Can someone help me please.

    Thank you

    Gallot

    Dear all,

    It was because the size of the data file. so I increased the size of the database and has solved this problem

  • ORA-01157: cannot identify/lock data file [HELP! PLEASE!]

    I'm under Oracle 11 GR 2. When I tried from Oracle sqlplus, I got the following errors:
    ORA-01110: data file 8: '/dev/raw/raw8'
    ORA-01157: cannot identify/lock data file 8 - see DBWR trace file
    I used "the judgment" to stop the Oracle. I'm sure that there are 2 sessions to approve the changes to the database while I closed the Oracle. Is there anyone know how to fix this?

    Many thanks for any help!

    Hmm...

    change 315220074 September at 12/10/2011 14:34:12 necessary

    but your newspapers online redo is 2011-10-12 16:31:54 from only.
    So, there are some transactions in the stream of roll forward relative to this data file between 14:34:12 and 16:31:54.

    Hemant K Collette

  • ORA-01157: cannot identify/lock data file error in database pending.

    Hello

    I have a back-end database and the base ensures (11.2.0.1.0) that runs in ASM with the names of different diskgroup. I applied an incremental backup on a standby database to solve the gap newspaper archive and generated a controlfile to standby in the primary database and restore the standby database controlfile. But when I started the MRP process his starts not and lift error in the alerts log ORA-01157: cannot identify/lock file. When I questioned the standby database file it shows the location on primary data filenames not the database pending.

    ******************************

    PRIMARY DATABASE

    *****************************

    SQL > select name from v$ datafile;


    NAME

    --------------------------------------------------------------------------------

    +Data/OraDB/datafile/system.256.788911005

    +Data/OraDB/datafile/SYSAUX.257.788911005

    +Data/OraDB/datafile/undotbs1.258.788911005

    +Data/OraDB/datafile/users.259.788911005

    ****************************************

    BACKUP DATABASE

    ****************************************

    SQL > select name from v$ datafile;


    NAME

    --------------------------------------------------------------------------------

    +STDBY/OraDB/datafile/system.256.788911005

    +STDBY/OraDB/datafile/SYSAUX.257.788911005

    +STDBY/OraDB/datafile/undotbs1.258.788911005

    +STDBY/OraDB/datafile/users.259.788911005

    The actual physical location of files of database Eve in ASM in the standby server is shown below

    ASMCMD > pwd

    + STDBY/11gdb/DATAFILE

    ASMCMD >

    ASMCMD > ls

    SYSAUX.259.805921967

    SYSTEM.258.805921881

    UNDOTBS1.260.805922023

    USERS.261.805922029

    ASMCMD >

    ASMCMD > pwd

    + STDBY/11gdb/DATAFILE

    I even tried to rename the data files in the database backup, but it throws error

    ERROR on line 1:

    ORA-01511: Error renaming data/log files

    ORA-01275: RENAME Operation is not allowed if management undo file is

    Automatic.

    Kind regards

    007

    You must specify the complete location

    *.db_file_name_convert='+data/OraDB/datafile/,'+STDBY/11gdb/DATAFILE /'

    and to rename the data file, your standby_file_management parameter must be set to MANUAL.

  • ORA-01124: cannot retrieve the data file 1 - file is in use or recovery

    I'm trying to recover the database in waiting, but it gives the error below.

    ORA-00283: cool cancelled due to errors
    ORA-01124: cannot retrieve the data file 1 - file is in use or recovery, the recovery is already said
    ORA-01110: data file 1: ' I:\ORACLE\QAS\SAPDATA1\SYSTEM_1\SYSTEM. DATA1'

    When I checked in the alert log recovery is not started. and later I hae given ' alter database recover Cancel "and the command to meet with the threshold.

    "media recovery has not started.

    It seems that the recovery was stuck between the two.
    Please advise me how to kill the recovery session that is stuck. because I don't want to bounce the database pending.

    Thanks in advance.

    Dataguard and MRP, you run a script before.

    In a standby scripted, a session to RETRIEVE the DATABASE would an UNTIL clause (SEQUENCE up to THAT most likely). At the end of the recovery at this point (SEQUENCE #), he left and stop at the database.

    In addition, the script is such that when a RECOVERY session is active, another session is not authorized to start. It can loop in pending state or go out and do it again the next scheduled interval.

    Apparently your startup script is not strong enough to prevent another session of RECOVERY to start even though the first is active (or it doesn't have a good up to THAT clause and stop, exit, closing stocks)

    What you have is a custom implementation of a database of pending. Without all the details of the script, the 'blocking' between sessions (to avoid a second RECOVER start when one is already running) etc... We can't really do much to help you.
    Your scripts must be standing with status information. It should be possible for you to discover the 'other' sqlplus session which emanates a DATABASE to RECOVER, but not yet out (p. ex... How about a simple "ps - ef |") grep sql' and ' ps - ef | combination of grep ora"?)

    Hemant K Collette

    Published by: Hemant K Collette on May 29, 2013 17:47

  • ORA-19838: cannot use this control file to open the database

    Dear all,

    While making RMAN cloning, we are facing problem,

    SQL > alter database open resetlogs;

    ALTER database open resetlogs

    *

    ERROR on line 1:

    ORA-19838: cannot use this control file to open the database

    Concerning

    Villi Kumar

    Dear all,

    While checking the database,

    Control the name of the database file is PROD

    In the instance, database name is TEST.

    So we took the PROD and edited control file trace file based on the TEST environment.

    Then run the script published in the TEST database trace file.

    Now we can open the database by using below command

    ALTER database open resetlogs;

    Concerning

    Villi Kumar

  • AutoConfig error: ORA-12705: cannot access NLS data or invalid environment specified files

    Hi, experts:

    When it is run on the database layer, obtained adautocfg.sh

    ====

    ....

    Executable: /ap10/immted/db/tech_st/11.2.0.3/bin/sqlplus

    SQL * more: Production of liberation 11.2.0.3.0 Sat Jun 28 23:30:17 2014

    Copyright (c) 1982, 2011, Oracle.  All rights reserved.

    Enter the value 1: enter the value 2: enter the value 3: ERROR:

    ORA-12705: cannot access files of NLS data or invalid environment specified

    =====

    We have 12.1.3, 11.2.03 and Linux. I've issued $unset NLS_LANG, set ORA_NLS10 = "' in the .env file." What should I check?

    In the $ORACLE_HOME/appsutil/contextfile.xml the following:

    "s_db_oranls" = "unix" OSD > /ap10/immted/db/tech_st/11.2.0.3/nls/data/9idata < / ORA_NLS >

    Thanks and greetings

    Now, I got the same error when doing $sqlplus / as sysdba. $sqlplus/nolog is fine.

    Hello

    AutoConfig was successful before?

    Are there any recent book.

    If you're upgrading from 11.2.0.3 or recently updgraded to 11.2.0.3 database, then course do perofmed you listed in article - 7 for creating data 9i of the below TechNote MOS.

    Interoperability note Oracle EBS R12 with Oracle Database 11 g 2 (11.2.0.3) (Doc ID 1585578.1)

    See also below the TechNote if is not for 11.2.0.3 but his relevant:

    Upgrade 9i to 10 g 2 fails with ORA-12709: error loading creates characters of the base set (Doc ID 732861.1)

    Thank you

    A H E E R X

  • You cannot change the data file

    Unable to Alter Database Datafile

    Hi all

    Using Alter database datafile ' C:\Oracle\APP\ORADATA\...\USERS01. DBF' SIZE 100M;

    getting this error.

    SQL > Alter database datafile ' C:\Oracle\APP\ORADATA\...\USERS01. DBF' SIZE 100M;
    Error report:
    SQL error: ORA-01237: do not extend datafile 4

    ORA-01110: data file 4: ' C:\Oracle\APP\ORADATA\...\USERS01. DBF'

    ORA-27059: reduce file size

    OSD-04005: SetFilterPointer() failure, unable to read the file

    s/o-error: (OS 112) there is not enough space on the disk.

    01237 00000 - "cannot extend %s datafile.

    * cause: year Operating system error has occurred during resizing.

    * Action: Resolve the cause of the error of operating system and start the command

    I understand that the OS space is full and I guess this isn't specific Oracle error, but certainly an OS level error, someone could suggest me how to deal with the erasure of space, is it possible to erase and reuse the data files? Please suggest.

    Help out me

    Thank you and best regards,
    Cabbage

    You need create more space by deleting unnecessary files or narrowing of the files.

  • Cannot create a data file with a size of less than 1000 M

    Hello

    I have a problem that I can't solve. Whenever I try to create a DATA file with a size of less than 1000 MB, I get an ORA-03214

    Example:

    Select * from version of v$.

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    PL/SQL Release 11.2.0.4.0 - Production

    "CORE 11.2.0.4.0 Production."

    AMT for IBM/AIX RISC System/6000: Version 11.2.0.4.0 - Production

    NLSRTL Version 11.2.0.4.0 - Production

    -----

    ALTER TABLESPACE "IDX_PRETR1".

    ADD DATAFILE ' / appli/oracle/PR3/data4/TEST.dbf'

    SIZE 500 M;

    XXIX error on line 1 of the command:

    ALTER TABLESPACE "IDX_PRETR1".

    ADD DATAFILE ' / appli/oracle/PR3/data4/TEST.dbf'

    SIZE 500M

    Error report:

    SQL error: ORA-03214: the file size is less than the minimum required

    03214 00000 - "specified file size is smaller than the minimum required.

    * Cause: Specified for add/resize datafile/tempfile file size does not work

    provide the minimum required of an allocation unit.

    * Action: Increase the size of the file specification

    Thanks for the help and sorry for my English

    Hello

    The answer may lie in the INITIAL_EXTENT configuration in your space of tables, check DBA_tablespaces view.

    Also, try to use autoextend on and maxsize in your file data creation but better try with the highest value during the action of the mentioned error.

    Kind regards

    Juan M

  • locked data files

    Hello

    I have a problem that when I try to open a database, I get the following error message:

    ORA-27086: impossible to the locking file - already in use
    Linux-x86_64 error: 5: input/output error

    I deleted the files of .ora lk < sid > in $ORACLE_HOME/dbs.
    Is there anything else I can do to unlock these files?

    I don't know how this problem started - it was after rename a database, however, the database was working well right up to now.

    I restarted the NFS server and the Oracle DB server with no result.

    A few times, the NFS server maintains the lock even after a reboot. Judgment of the Oracle database. Then work with your storage administrator to manually remove locks on files on the side NFS. Then you should be able to restart the database.

    HTH,
    Brian

  • of MSHS - cannot rename the data files

    I have a MSHS (encryoted MSH) - 5 last lines in this script - I have a command shell that renames the data files. for example

    Shell ren f:\data\abc_morning.txt abc_20100912_morning.txt
    Shell ren d:\data\def_afternoon.txt abc_20100912_afternoon.txt
    Shell ren t:\data\abc_evening.txt abc_20100912_evening.txt

    These commands work fine in the MSH script, but get the "File not found" error in file MSHS. Has anyone else ran into this problem?

    MSHS command also asked how to rename the data files as Shell REN does not work?

    It's really simple:

    MSH scriptname.msh

    That's all.

    Kind regards

    Cameron Lackpour

    Edited by: CL, Sep 13, 2010 16:37
    Adding an extension to the scriptname.

  • C drive full (not restoration) cannot identify/search hidden files

    I can't identify which occupies all the space on my C drive. Currently, the operating system is Windows Vista Ultimate Edition. My hard drive has 86.5 GB. C:\ drive shows 80 GBs used and I can only half of this use. All files and folders are currently 37 GB and 6 GB restore point. I recently deleted restore old points so only 6 GB is used instead of the standard 15% or 12 GB. Somehow I'm missing more than 30 GB and I want to see how it is used and it empty if possible.

    Try WinDirStat:

    http://download.CNET.com/WinDirStat/3000-2248_4-10614593.html

  • Lightroom CC cannot identify my raw files from Nikon D500

    Just installed CC of Lightroom, but it still can not identify my D500 memery card raw files when I tried to import. Could someone help out here? Thank you very much!

    Update of Lightroom CC 2015.5.1

    Update of Lightroom

  • Failure to get the db line lock: ORA-01157

    Hello

    I have a client that uses that the customer is using Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production with the partitioning, Real Application Clusters, Automatic Storage Management. An application has been installed recently in which scripts created a .dbf file instead of save on the disk group. So if I run the query I see the following output below

    SQL> select name from v$datafile;
    NAME
    --------------------------------------------------------------------------------
    +RIAMSTG_DBF1/riamstg/datafile/oamstg_mds.259.821014833
    +RIAMSTG_DBF1/riamstg/datafile/oamstg_ias_opss.256.821014833
    +RIAMSTG_DBF1/riamstg/datafile/oamstg_oam.274.821014833
    +RIAMSTG_DBF1/riamstg/datafile/oamstg_ias_iau.276.821014835
    +RIAMSTG_DBF1/riamstg/datafile/bistg_mds.279.821875255
    +RIAMSTG_DBF1/riamstg/datafile/bistg_biplatform.278.821875255
    /db/oracle/112/db/dbhome_1/dbs/rbacx.dbf
    

    Now, when we reboot the DB we see the error below.

    ORA-01157: cannot identify/lock data file 18 - see DBWR trace file
    ORA-01110: data file 18: '/db/oracle/112/db/dbhome_1/dbs/rbacx.dbf'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    

    In my view, that the error may be related to the .dbf file. How can I move this ASM format?

    -Extreme

    It should be ALTER TABLESPACE OFFLINE RBACX without the single quotation mark character.   (I had the character to reach the unknown tbsname).

    Hemant K Collette

  • ORA-01111: 129 data file name is unknown

    I have a 10.2.0.1 databases and a watch on another server on which recovery logs apply every 15 minutes.

    I have added a new file to the primary db backup server drive was full, so when he tried to automatically failed.

    I resolved the issue of space, but now I get the following error:

    ORA-00283: cool cancelled due to errors
    ORA-01111: name for the data file 129 is unknown - rename it to the correct file
    ORA-01110: data file 129: "C:\ORACLE\ORA10G\DATABASE\UNNAMED00129."
    ORA-01157: cannot identify/lock data file 129 - see DBWR trace file
    ORA-01111: name for the data file 129 is unknown - rename it to the correct file
    ORA-01110: data file 129: "C:\ORACLE\ORA10G\DATABASE\UNNAMED00129."

    I tried to manually copy the files from the live database and I tried a command alter database rename file but that tells me name change is not allowed if management standby is set to automatic. I had a search but cannot see a solution, any ideas?

    Thank you
    Robert

    Step 1:-check the name of the data file on the backup database

    Select name from v$ datafile; -This command should display the name of the data file as UNNAMEDxxxxx

    STEP 2:-ON THE BACKUP DATABASE
    ALTER system set standby_file_management = "manual";

    Step 3:-rename the data file
    ALTER database create datafile 'C:\ORACLE\ORA10G\DATABASE\UNNAMED00129' as 'C:\ORACLE\ORA10G\DATABASE\actual_dbfile_name.dbf '.

    Step 4:-on the backup database
    ALTER system set standby_file_management = "auto";

    Step 5:-on the backup database
    recover managed standby database disconnect;

Maybe you are looking for

  • Improvement of timeliness

    HI again, I enclose a developed VI which takes in data from an external source (engine in this case) and stores the data. However, its delivery rate is very slow. I guess it happens so because I write data on the hard drive in the "block average VI.

  • Can you produce arbitrary data TX with the USB-8452 SPI streaming mode?

    I use a USB of NOR-8452 controller in SPI mode, controlled by a C program compiled in 2013 of LabWindows/CVI. In order to talk to the chip, we designed, I need to control the delay between the final of SPC deassertion and the CS deassertion (T11 sync

  • T430 screen - lines/points

    My 3 month old T430 worked very well until this afternoon.Now my screen looks like this: BBCode (forums of discussion & forums)[IMG] http://i.imgur.com/h0KmyT4.jpg [line] I'm not able to boot in the bios. I have also connected to the tv (vga) and it

  • OptiPlex 9020 and Windows 7

    Hello I bought a new SFF of 9020 Optiplex with windows 7 64-bit Professional installed, as well as with a windows 8 CD. I would like to reinstall windows 7 64-bit on a new SSD. How can I get the ISO for this version? I do not wish to install Windows

  • 2408W problem to calibrate and with RGB in Photoshop

    Hello I check the Forum, but I have seen no response to my problem so I try it myself! I just bought a DELL Monitor to match with my DELL E196FP monitor strictly 2408W and my personal computer. I see a lot of difference between the qualities of both