Log wait to stop the database

Hi exports.


We have a production server. It its some of its data file contains a disk in cluster on windows server 2008. Yesterday, all of a sudden one of the cluster disk offline due to a network problem. And I got the following error on my journal alerts.

Mon Mar 18 19:59:27 2013
KCF: writing / open error blocks = 0xd13a6 = 1 online
file is 22-M:\LEGACY_ORADATA\LEGACY. DBF
error = 27070 txt: ' OSD-04016: error queuing an asynchronous i/o request.
S/O-error: (OS 19) the media is write protected. »
Mon Mar 18 19:59:27 2013
Automatic datafile offline due to clerical error on
22 of the file: M:\LEGACY_ORADATA\LEGACY. DBF
Mon Mar 18 19:59:28 2013
KCF: writing / open error blocks = 0xd3c10 = 1 online
file is 22-M:\LEGACY_ORADATA\LEGACY. DBF
error = 27070 txt: ' OSD-04016: error queuing an asynchronous i/o request.
S/O-error: (OS 19) the media is write protected. »
Mon Mar 18 19:59:28 2013
Automatic datafile offline due to clerical error on
22 of the file: M:\LEGACY_ORADATA\LEGACY. DBF
Mon Mar 18 21:49:34 2013
Absent MMNL for dry 1204; First support plans
Mon Mar 18 22:00:05 2013
Errors in the d:\oracle\product\10.2.0\admin\legacy\bdump\legacy_j000_13148.trc file:
ORA-12012: error on auto work 8950
ORA-01115: error reading file ORA-01115 IO block: IO error reading block from file 5 (# 106)
ORA-01110: data file 5: ' M:\LEGACY_ORADATA\OLD_TRANSACTION. DBF'
ORA-27091: unable to queue I/O
ORA-27070: async read/write failed
OSD-04006: ReadFile() failure, unable to read the file
S/O-error: (OS 21) the device is not ready.
ORA-06512: at "SYS." PRVT_ADVISOR', line 1624
ORA-06512: at "SYS." DBMS_ADVISOR', line 186
ORA-06512: at "SYS." DBMS_SPACE", line 1500
ORA-06512: at "SYS." DBMS_SPACE", line 1566
(block #)


After the available cluster disk, I get the same error. When I am trying to retrieve the data file and then I got the the
ORA-00283: cool cancelled due to errors
ORA-01124: cannot retrieve the data file 22 - file is in use or recovery
ORA-01110: data file 22


To verify the database open_mode and it shows READ WRITE.
so I closed fire immediate command. Now it take a long time to stop. Please suggest a solution because it is a database of prodtction.



Thanks in advance...
ASIT K. reducing

Hello
Then do one then cancel the stopping and starting to the database.
The State of the mount, then offline, the data files that are corrupt.

alter database datafile  offline;

Now, you can open the database and then run the recovery of these data files.

Salman

Tags: Database

Similar Questions

  • Mail creation of massive log files and stop the synchronization with the server

    Since the upgrade to El Capitan (10.11.1), Mail presents two problems persist:

    (1) it generates massive log files, e.g. 2015-12 - 03_IMAPSyncActivity.log these files regularly exceed 10 GB and block Mail and freeze the Mac. Mail can be over 8 GB of RAM. Once removed, Mail recreates the file and fills again, ends up doing more massive files that must also delete.

    (2) mail stop sync with my different IMAP e-mail servers. The only solution I've found that it completely delete the or the e-mail accounts and reinstalls the account. It works for a day (or even a few hours) before it just stops the synchronization, even if a connection test shows he connects with the server. This problem seems to occur on two e-mail accounts separately on two different servers / hosting companies, but not on my Gmail accounts.

    These two problems occur on both my iMac (21.5 ", mid-2011, 2.5 GHz Intel Core i5, 8 GB RAM) and MacBookPro (13', mid-2011, 2.5 GHz Intel core i5, 4 GB RAM).

    Full of ideas gratefully received!

    Thank you!

    Please take these steps to remove the mail folders 'sandbox '.

    Step 1

    Back up all data.

    Triple-click anywhere in the line below on this page to select this option:

    ~/Library/Containers/com.apple.mail

    Right-click or Ctrl-click on the highlighted line and select

    Services ▹ Reveal

    the contextual menu.* A Finder window should open up with a folder named "com.apple.mail" selected. If this is the case, move the selected folder - not only its content - on the desktop. Open the window Finder for now.

    Restart the computer. Launch Mail and test. If the problem is resolved, you may have to re-create some of your e-mail settings. Any writing paper custom that you created may be lost. Ask for instructions if you want to keep these data. You can then delete the folder that you moved and close Finder.

    CAUTION: If you change the content of the sandbox, but leave the folder itself in place, Mail may hang or starts any. Remove the tray to sand everything will be rebuilt automatically.

    Step 2

    If step 1 does not resolve the problem, repeat with this line:

    ~/Library/Containers/com.apple.MailServiceAgent

    * If you do not see the item context menu copy the selected text in the Clipboard by pressing Control-C key combination. In the Finder, select

    Go ▹ go to the folder...

    from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.

  • stop the database

    Hello

    on 8.1.7
    during shutdown of the database for maintenance, stop scheduled tasks?

    I don't think this because when the DB stopped he wouldn't have jobs and after DB restart, it will resume jobs.

    Thanks for your advice.
    If we should stop before stopping the DB, what is the best way to stop and restart the jobs?


    Thank you.

    Salvation;

    on 8.1.7
    during shutdown of the database for maintenance, stop scheduled tasks?

    Don't need

    I don't think this because when the DB stopped he wouldn't have jobs and after DB restart, it will resume jobs.

    Fix

    If we should stop before stopping the DB, what is the best way to stop and restart the jobs?

    Just start db and jobs will restart

    Respect of
    HELIOS

  • stop the database when the HOT backup running

    Hello

    Can someone pls tell... WHT can impact on the database if the database will get stop accidentally during the hot running backup...

    Thank you

    There will be no impact on db; because its ORACLE database; very smart and easy to use.

    What happens if the instance goes down for the tablespaces into backup mode?

    When you start the database after that, Oracle will say that it requires recovery. It's because the RCS has been frozen and this is the expected behavior, because if you restore the file copied, it needs to be recovered. (and the only way that oracle has to set its value in the copy is put in the current file while it is copied)

    In this case, you can issue:

    ALTER DATABASE END BACKUP; ALTER DATABASE OPEN; to open the database.

    But your backup is not usable, it must do it again.

    Source: http://knol.google.com/k/oracle-begin-backup-end-backup#

    HTH
    Girish Sharma

  • stop the database server, is any condition for application server

    Hello

    I want to catch a cold backup to the database server.

    If I shutdown server, is any affect in Oracle application server?


    Concerning

    S.Azar

    azarmohds wrote:
    Hello

    I want to catch a cold backup to the database server.

    If I shutdown server, is any affect in Oracle application server?

    Concerning

    S.Azar

    Hi Azar

    No, there is no any effect to the Oracle application server

  • Virtual Center - stop the database server

    Hi friends,

    I have a few questions about if the virtual Center database down. Please help gettting below answers

    -What are the activities I'm *NOT* not be able to perform in virtual Center

    -What are the activities that I will be able to perform in virtual Center.

    -Up to how many days I will be able to use virtual Center, even if the back-end database is down

    -What dates are passed, what is the impact

    Concerning

    Amul

    -Up to how many days I will be able to use virtual Center, even if the back-end database is down

    It's easy... as soon as your database goes down, Virtual Centre will drop.

    -What are the activities I'm *NOT* not be able to perform in virtual Center

    Virtually everything as deploy from models, vmotion, storage vmotion, user access through virtual center, backup solutions environment through virtual center management will not work until that recover you or re-create virtual venter and reattach the hosts.

    Basically things like high availability will work, you will be capable of powering the virtual computer (by connecting directly to the esx host) and to stop (as long as your license server is online). Your VM will also continue to funcrtion normally while the VC is in offline mode.

  • change log mode archive without closing the database

    Hi all

    Is it possible to put the database in archive log mode before you shut down the database, and when the database stops and starts, the database should automatically be in log mode archive?

    because we cannot stop the database in the days of the week and we have system restart the weekend and we are not here this day here. So is there a way to set the database in the log archiving across the memory so that each restart of the database, it should start automatically in log mode archive.

    my environment is windows server 2008 R2 with oracle 11.2.0.3

    Thanks in advance.

    Published by: 931643 on 5 December 2012 10:37

    931643 wrote:
    Thanks for the reply Max Seleznev,

    First of all I thought to write the script to include in this process. But we cannot run all the commands in the sqlplus using windows task. for example:

    You can write a batchfile as below:

    CD.
    sqlplus / as sysdba
    Select name, open_mode from v$ database;

    When you run this, it will open up to sqlplus prompt but then will not run the query.

    This is the reason why I am to know if there is another way.

    Thank you

    When you do things wrong, you do not get the desired results

    Please desired SQL in a separate file (run.sql), then proceed as below

    sqlplus scott/tiger @run.sql

  • How to stop all means of copying the database

    Hello

    I'm out of oracle database 11g R2 under windown server 2008 (the database name is ORCL)

    I need to prevent all means of transporting data to a different database

    I tried the encryption (TDE) portfolio with tablespace but always utility data expdp works

    and I can copy the file (oracle_home\oradata\orcl) what hv the datafile to and replace it with a different database on another pc that have installed oracle on same directory then provided works perfectly

    even if there were the portfolio on the first database, we can create another portfolio with new password and every thing will be decrypted and it is not accepted.

    I need your help to find a way of:

    1-stop exp and utility expdp

    2-stop backup and restore of database with RMAN (auxiliary or copying RMAN files is added to the different database)

    3 - stop copy replace and folder (oracle_home\oradata\orcl) is the different database in the same place (another pc)

    (Note: in addition to the operating system user account is administrator)

    Thanks in advance

    Please specify.  You can't restrict exp/imp, because it is installed on any client anywhere.  If they can query the database, they can export all they have access.  Check the roles that have EXPORT_FULL_DATABASE and limit those to yourself or to administrative positions under your control.

    expdp/impdp files similar to exp/imp of output, but put them on the database server (or a drive connected to the network).  You can't prevent their execution.  The API of PL/SQL is part of the database, so even without the expdp/impdp executable, you can do the equivalent within the database. The same basic data access control applies.

    RMAN backups can be run from remote machines, and the backup files can go to local disk, NAS network drive or tape.  On the local computer, you can use operating system permissions to protect them, but another admin on the computer can do what they want.  You can delete rman of this machine, but someone could just run rman from another machine and that it points to the database.  Limit which has the SYSDBA privilege.

    The raw database files are not useful if they are copied while the database is in place, but if there are other administrators on the computer, they may be able to stop the Oracle service, which stops the database, and then they can copy files wherever he wishes.  It's a situation TDE can protect against, because someone needs your encryption key to use database files, even if they copy them elsewhere.

    It was really far from saying these features can really turn off; you usually have to handle this with database privileges.

    If you can afford the extra option you can look into Oracle Database Vault.  It offers more restriction and auditing options, designed to prevent or detect abuse by privileged users.

  • How to get down the database since the failure of the upgrade in case of physical standby

    Hi people,

    Can you please tell me how to get down the has no upgrade in case of physical standby database?

    Kind regards

    Taoqir

    The generic steps to upgrade db at the dg environment

    1. stop the database pending the application of recovery logs

    2. stop the recovery of his expedition logs

    3. upgrade the primary database server executable files

    4 level database server executable files shall ensure that

    5. switch to the main database using DBUA or upgrade scripts

    6 mount the backup database

    7 reactivate shipping again Eve elementary school

    8 restart the recovery process run on the standby database again progress apply

  • Inability to connect to the database

    OS: 8.1 Pro 32-bit Windows

    Java: 7u45 (build 1.7.0_45 - b18)


    Install Oracle 11g.

    When you open localhost:1158 / em - the message:

    "The database is down. Please specify the credentials of the host to access the restart and database diagnostic tools. »

    After entering the command:

    emctl status dbconsole

    It is reported that Oracle Enterprise Manager 11 g is running.

    When you type:

    emctl status agent

    indicates that the agent works.



    All Oracle, except OracleJobScheduler, running services.


    SYSMAN, DBSNMP, SYSTEM and SYS are not blocked


    File Emoms.trc when connecting to the database:

    http://rghost.NET/50166676


    Folder with alter.log:

    http://rghost.net/50165784



    In listener.ora replaced


    SID_LIST_LISTENER =

    () = SID_LIST

    () SID_DESC =

    () SID_NAME = CLRExtProc( )

    () ORACLE_HOME = C:\app\TorchTT\product\11 2. . 0\dbhome_1( )

    () PROGRAM = extproc( )

    () ENVS = "EXTPROC_DLLS =ONLY:. C:\app\TorchTT\product\11. ("2. 0\dbhome_1\bin\oraclr11. dll" ()

    )

    )


    on

    SID_LIST_LISTENER =

    () = SID_LIST

    () SID_DESC =

    () SID_NAME = TorchTTDB( )

    () GLOBAL_DBNAME = TorchTTDB( )

    () ORACLE_HOME = C:\app\TorchTT\product\11 2. . 0\dbhome_1( )

    () PROGRAM = extproc( )

    () ENVS = "EXTPROC_DLLS =ONLY:. C:\app\TorchTT\product\11. ("2. 0\dbhome_1\bin\oraclr11. dll" ()

    )

    )


    did not help.



    Subsequently decided to not wait and reset the database.


    Immediately after the reinstallation of page https://localhost:1158 / em / successfully opened.


    Only when the request to add a table to the executed successfully, but Developer SQL database query in the list of tables is not displayed, update the list and restart the program did not help. However, when re - create the table with the same name appears on the error you have already created a table with a given name.


    After restarting the computer database is available again.

    Can you please how to fix?


    Translated by Google Translate.

    If I'm right, the problem is resolved.

    Each of the reinstall previous, of the database at the beginning of the message appeared on the system configuration is not in line with the minimum requirements. Earlier the same error is indicated as a result of the use of new versions of Java, as Oracle 11 g support officially more young and therefore do not attach importance to this post.

    In the end, I decided once more to reinstall the basis data, but in compatibility mode for Windows 7. So - when you run the error to install an incorrect configuration does not appear. And after that the installation of the base is available, restart the machine - the base is again available.

  • Why need to bounce Apache when the database is bounced.

    Hi all

    Appreciate if you try to answer the question below.

    We have E - BS with 11.2.0.2 11i instance database. We stopped only DB, RECEIVER and concurrent managers. But it has not stopped based on the Web services (Apache Jserv) and form server. When set us up the database and listener back and attempted to access the URL of the front end, we get the error HTTP 500-AppsLocalLogin.JSP. When we bounced back the web services base back, everything works fine.

    As far as I KNOW, as the Apache and Jserv is up and running and the database is brought back, users tried them once the database grown up should have been logged successfully, like the Apache + Jserv and database are independent.

    Why Frontend services won't work after them bounce.

    Thank you

    Uday

    The JVM OAcore will be caching database connections, so if you stop the database then JVMs average level connections are not reset and become orphans.  When you try to use the virtual machine JAVA DB connection, it simply doesn't work.

    You should re - start always middle-tier services, restart the database

  • the service name and the name of the database are different.

    Hello

    I had created a database with name PROD, latter I renamed DB HAVE according to the request of management.

    But I notice the following things.

    1 OS ORACLE_SID variable level is always PROD. (.bash_profile also I have this entries)
    2. starting at sql prompt DB_NAME is HAVE.
    3 al ' service_name watch listener and instance name is PROD.

    can someone please explain me, why oracle behaves like that.
    Our applications work correctly with any questions so far.


    [oracle@qual ~] $ echo $ORACLE_SID
    PROD
    [oracle@qual ~] $ sqlplus "/ as sysdba".

    SQL * more: Release 10.2.0.1.0 - Production on Tue Mar 5 10:35:01, 2013

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

    Connect to an instance is idle.

    SQL > startup
    ORACLE instance started.

    Total System Global Area 608174080 bytes
    Bytes of size 1220868 fixed
    209719036 variable size bytes
    394264576 of database buffers bytes
    Redo buffers 2969600 bytes
    Mounted database.
    Open database.
    SQL > select name from v$ database;

    NAME
    ---------
    HAVE

    SQL >! lsnrctl status

    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on March 5, 2013 10:38:30

    Copyright (c) 1991, 2005, Oracle. All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=qual.com) (PORT = 1521)))
    STATUS of the LISTENER
    ------------------------
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start date March 5, 2013 10:36:54
    Uptime 0 days 0 hours 1 minutes 35 seconds
    Draw level off
    Security ON: OS Local Authentication
    SNMP OFF
    Parameter Listener of the /u001/app/oracle/product/10.2.0/network/admin/listener.ora file
    The listener log file /U001/app/Oracle/product/10.2.0/network/log/listener.log
    Summary of endpoints listening...
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=qual.com) (PORT = 1521)))
    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC0)))
    Summary of services...
    Service 'PLSExtProc' has 1 instance (s).
    Instance of 'PLSExtProc', status UNKNOWN, has 1 operation for this service...
    Service "HAVE" has 1 instance (s).
    Instance of "PROD", State LOAN, has 2 managers of this service...
    Service 'PRODT_XPT' has 1 instance (s).
    Instance of "PROD", State LOAN, has 2 managers of this service...
    The command completed successfully

    SQL > exit
    Disconnected from the database to Oracle 10 g Enterprise Edition Release 10.2.0.1.0 - Production
    With partitioning, OLAP and Data Mining options
    [oracle@qual ~] $

    This last I changed the name of DB to HAVE

    Change the DB_NAME is not the ORACLE_SID. You must manually change the ORACLE_SID.

    Stop the database instance.
    Copy $ORACLE_HOME/dbs/initPROD.ora to $ORACLE_HOME/dbs/initPRODT.ora. (I assume that DB_NAME has already been upgraded IN the initPROD.ora)
    Change your ORACLE_SID of PROD WERE and disconnect and connect again.
    Make sure that your ORACLE_SID is now HAVE and that $ORACLE_HOME/dbs/initPRODT.ora
    Now start the database instance

    Hemant K Collette

  • AMT: cannot allocate memory - is there limit to the databases on a single box num

    Hello

    Specification of the server:
    Windows 2008 R2 x 64 with all updates applied

    Oracle 11.2.0.1 Standard Edition with Patch 16 applied (which corresponds to all the live database version)

    10 GB OF RAM

    I have a standby server that has all my databases to watch over him

    Recently, I added about 8 new databases on hold to take to 102 and since then I get an intermittent error of TNS. AMT-12531: TNS: cannot allocate memory

    I have scripts that loop in all databases one at a time, they start the standby database, apply the new recovery logs archived and close the database

    It worked perfectly for years but I started having problems after you have added a few other databases, it probably defective 1-3 times so it is inconsistent.

    With all databases only idling server use 6 GB out of the 10 GB RAM available so there is a lot of memory free

    If I withdraw half a dozen databases in the scripts, it starts working again.

    I created 2 new listeners and divide the databases for the half to run on a single listener and the other half on the other, there are still intermittent outages

    Server has been restarted several times and sometimes travel a couple of times before failing and sometimes will fail in the first inning thanks to

    Failures are normally towards the end of the script, IE. has applied the newspapers to 95 databases and fails when the 96th!

    I reorded the data bases in the script and it still fails at the end, not on a specific database

    I also added restarts listeners for scripts that made no difference

    I've now changed my scripts, then real windows service does not work for databases and the script makes a net start before applying the newspapers and a net stop eventually. She's now going through without a problem but I would go to the bottom of the issue and keep windows running services in the starting and stopping of their adds time for labour to apply the logs across all databases

    Thank you
    Robert

    Have you tried a note

    AMT-12531 on Windows 64-bit [ID 1384337.1]

    I created 2 new listeners and divide the databases for the half to run on a single listener and the other half on the other, there are still intermittent outages

    I don't think that you need several headphones if a listener is enough to support all of your databases running on a server.

  • name of the comic in conflict after the database upgrade

    Salvation of DBA

    I upgraded the database of 9206 to 10204 successfully.
    but when I'm checking the pmon it showed different SID.
    My actuall SID is PRD but it's showing Prod., for this reason, I am not able to create the xml file in the database layer.


    Oracle@aqherpdb bdump] $ ps - ef | grep pmon
    Oracle 31816 1 0 12:16? 00:00:00 ora_pmon_prod
    Oracle 31869 31399 0 12:19 pts/3 00:00:00 grep pmon

    [oracle@aqherpdb bdump] $

    When choosing the database is show the following.
    SQL > select name from v$ database;

    NAME
    ---------
    PRD


    When I am setting up the xml file in the db layer it gives the following error.
    level of adbldxml.pl [oracle@aqherpdb bin] $ perl = db = apps appsuser

    From generation of context for db level files...
    Using /s01/prod/proddb/10.2.0/jdk/bin/java JVM to run java programs...
    Password APPS: applications

    The log file for this session adbldxml is located at:
    /S01/prod/proddb/10.2.0/appsutil/log/adbldxml_03211248.log
    AC-00013: error: file: /s01/prod/proddb/10.2.0/network/admin/listener.ora is not a valid file, such as the SID database could not be found for connection string: prod

    Cannot connect to the database with the settings above, please answer the Questions below


    Enter the host name of the server: aqherpdb

    Enter the Server Port: 1521

    Enter the database server SID: PRD

    Could not connect to the database: ORA-01034: ORACLE is not available
    ORA-27101: shared memory realm does not exist
    Linux error: 2: no such file or directory


    Cannot connect to the database with the settings above, please answer the Questions below


    Enter bin server[aqherpdb]:[oracle@aqherpdb the database host name] $


    Please guide me to solve the problem above.

    Best regards
    Suresh Gelda

    Suresh,

    Follow these steps:

    -Make a backup of the database-level files
    -Run preclone (adpreclone.pl) on the database layer
    -Stop the database and the database listener
    -Change all the names of directory of PROD to PRD
    -Run postclone (adcfgclone.pl) on the basis of data of level and enter the name of the correct database (PRD)
    -Check that the database and the database listener are running

    Kind regards
    Hussein

  • Restrict access to the database for the upgrade of the application

    Hi all

    We're performing an upgrade of the application that requires us to perform a lot of scripts on our server Oracle EE 11.2.0.4.

    This specific database has around a website based end and a front end based client, but it is also accessible on the network through TNS SQLPLUS/Toad, ODBC, JDBC etc.

    For obvious reasons, the upgrade, I want to make sure that no one else that the DBA can access the database. Usually change us the listening port of 1521 to let say 1544. This prevents all access.

    But now we run in a physical Data Guard with two Standby configuration so I don't really want to play with the listener ports. The upgrade must propagate changes from primary to Standby. I could interrupt them temporarily, but I would like to avoid that if possible.

    Another way I thought would work was to stop the database and open it in restricted mode. But before that, I would need to grant the privilege of the Session to RESTRICT all users upgrade scripts using (around 5 users).

    This approach using the restricted mode seems reasonable?

    Other opinions would be much appreciated.

    Thank you

    This is exactly what restricted session is for. You can do online and then kill a session is currently connected. No need to stop:

    orclz > alter system enable restricted session;

    Modified system.

    orclz > change system disable restricted session;

    Modified system.

    orclz >

Maybe you are looking for