Backup of database on 11.2.0.3 problem

hi,
i have database running in 11.2.0.2 on linux 5. the database is on no-arcvhive mode. I am trying to take the cold backup from rman script but the problem comes when the script tries to start database in mount but it says the the service identifier or listener does not know service is running:
rman target sys/pws@dbname <<EOF
spool log to /tmp/backup.log
run {
ALLOCATE CHANNEL t1 DEVICE TYPE DISK FORMAT '/location/db_%d_%u_%s_%T';
sql 'ALTER SYSTEM FLUSH SHARED_POOL';
shutdown immediate;
startup mount;
backup Database format '/location/%d_FULL_%u_%s_%T.bck';
alter database open;
backup current controlfile;
sql 'ALTER DATABASE BACKUP CONTROLFILE TO TRACE';
release channel t1;
what i am doing wrong?

Hi,
By default, the PMON process registers service information with its local listener on the default local address of TCP/IP, port 1521. If the listener configuration is synchronized with the database configuration, then PMON can register service information with a nondefault local listener or a remote listener on another node. Synchronization occurs when the protocol address of the listener is specified in the listener.ora file and the location of the listener is specified in the initialization parameter file.
After Shutdown Database the Default Service Name is removed from Listener as you are connecting remotely on Database using TNSNAMES the service must be registered statically on Listener.
Configuration of static service information is necessary if you require remote database startup from a tool (like RMAN).
http://docs.oracle.com/cd/E11882_01/network.112/e10836/listenercfg.htm#i483130
Why you are executing "sql 'ALTER SYSTEM FLUSH SHARED_POOL';" during backup ? (just curious)
Regards,
Levi Pereira

Similar Messages

  • DAG - Backup failing on 1 DB only with error - The Microsoft Exchange Replication service VSS Writer instance ID failed with error code 80070020 when preparing for a backup of database 'DB012'

    Hi Board,
    i´ve search across the board, technet and symantec sites but did not found a hint about my problem.
    we drive a 2 node DAG (Location1-Ex1-mb1 
    Location2-exc1-mb1), on SP2 RU4 patchlevel with 40 Databases.
    Since some time the backup of one - and only one DB - is failing with these events, logged on the Mailboxserver on which the passive DB is hosted.
    Log Name:      Application
    Source:        MSExchangeRepl
    Date:          28.09.2012 00:37:17
    Event ID:      2112
    Task Category: Exchange VSS Writer
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Location1-Exc1-MB1
    Description: The Microsoft Exchange Replication service VSS Writer instance 1ab7d204-609a-4aea-b0a7-70afb0db38de failed with error code 80070020 when preparing for a backup of database 'DB012'.
    Followed by
    Log Name:      Application
    Source:        MSExchangeRepl
    Date:         
    01.10.2012 03:33:06
    Event ID:      2024
    Task Category: Exchange VSS Writer
    Level:         Error
    Keywords:      Classic
    User:         
    N/A
    Computer:      Location1-Exc1-MB1
    Description:
    The Microsoft Exchange Replication service VSS Writer (Instance 42916d80-36c1-4f73-86d0-596d30226349) failed with error 80070020 when preparing for a backup.
    The backup Application - Symantec Backup Exec 2010 R3 – states, this error
    Snapshot provider error (0xE000FED1): A failure occurred querying the Writer status.
    Check the Windows Event Viewer for details.
    Writer Name: Exchange Server, Writer ID: {76FE1AC4-15F7-4BCD-987E-8E1ACB462FB7}, Last error: The VSS Writer failed, but the operation can be retried (0x800423f3), State: Stable (1).
    Symatec suggests within http://www.symantec.com/business/support/index?page=content&id=TECH184095
    to restart the MS Exchange Replication Service – BUT the mentioned eventID
    8229 isn´t present on any of the both Mailboxservers.
    The affected Database is active on Location2-Exc1-Mb1 Server and in an overall healthy state. I found during my research, that below Location2-Exc1-Mb1 Server, there are not removed shadow copies present!
    This confuses me, since all Backups are normally taken from the passive copy of a Database.
    So my questions to the board are:
    * Does anyone is facing similar issues?
    * Can someone explain why snapshots are present on the Mailboxserver hosting the Active Database, whilst the errors are logged on the passive one?
    -          * Does someone know the conditions, why shadows copies remain and
    aren´t removed in a proper manner?
    What can cause the circumstance, that only 1 DB is facing such issues?
    Any suggestion is welcome!
    BR
    Markus

    Hi Lenora,
    I´ve encreases VSS / Exchange Backup Log levels to expert, before starting
    those things i´ve all tried now:
    - Backup from passive DB (forced within Symantec Backup Exec)
    - Backup from active DB (forced within Symantec Backup Exec)
    - Backup from passive DB without GRT enabled (forced within Symantec Backup Exec)
    - Backup from active DB without GRT enabled(forced within Symantec Backup Exec)
    All those attempts failed.
    But brought some more details - the backup against the active DB states, that there is still a backup in progress and therefore this backup is cancelled by VSS.
    The Solution was, that i´ve needed to restart the Exchange Replication Service on the Mailbox Server hosting the passive DB.
    Backups are working again on all DBs!
    THX for your replys.
    Best regards
    Markus

  • How to take backup of database on external hard disk

    Hi Team,
    We have a server with three instances SOX,GRC and SM2. We have attached
    a external hard disk to take backup of database. While taking backup of
    any database it gives error as attached. We can take backup of
    transaction log on server's disk but not on external disk. Kindly have
    a look on attached error and advice us.We are taking backup at sql
    server level.
    version: SQL SERVER 2005 64 bit
    Regards,
    Digambar

    Hi Markus,
    >You can´t backup a 210 GB database on a 200 GB disk...
    We learn a lot every day on these Expert Forums !  
    In fact, it could even be possible if it's the database enveloppe which is 210 GB and the actual data is less than 200 GB !
    I dare to hope that it's not a production system which is backed up with an external disk...
    Regards,
    Olivier

  • How to backup a database in noarchivelog

    My database is in NOARCHIVELOG.
    I can open rman
    which command can i use to backup my database in this mode.
    is there anything i need to configure before it backups in this mode.

    why you dont need to turn on the archivelog?
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1
    how many days back you are responsible to revert back the database?Someday It may be asked to you restore the some days before dataabase backup, before that raising the question ,raise the question to mangment personnel how many days back will i be responsible to restore the database,if they give you 7 days then make sure yours disk space can accomodate 7 days backup if not then ask them to arrange space for disk if they give alternate tape cartrdige then tell them that x hours will take to restore the database in disaster recovery scenario cause tape cartridge data restoration takes time.
    No archive mode is yours decision then before doing it aware managment personnel that i can only restored the last good backup data,good backup does not mean last backup,last backup may be corrupt ,last good backup is the backup which you can restore then you will be able to restore only till last good backup,with archived enabled you will have chance to recover till before crash but with no archivelog there is only one option recovery till last good backup.
    Khurram

  • Query regarding backup of database

    Dear Developers,
    Greetings Of The Day !!!
    On button click from my swing application I want to take backup of database. How I can proceed with java.
    Any help would be appreciated
    Regards

    As far as I know databases have command line utilities for backing up data. You might call them using Runtime.exec()
    Not sure if that's the best way to do...
    ***Annie***

  • How to backup DPM database

    How to backup DPM database for restore DPM server (2012 R2).
    I try: http://technet.microsoft.com/en-us/library/hh758162.aspx
    To back up the DPM database
    On the computer where your DPM database is located, do one of the following:
    If the DPM database is on the DPM server                
    On the DPM server, open an elevated command prompt window, go to cd <system drive>:\Program Files\Microsoft DPM\DPM\bin, and run
    DPMBackup.exe -db
    and this not working:
    C:\Program Files\Microsoft System Center 2012 R2\DPM\DPM\bin>DpmBackup.exe -db
    DpmBackup 1.0 - Data Protection Manager backup command-line tool
    Copyright (c) 2013 Microsoft Corporation. All rights reserved.
    Error: Invalid command -db.
    Description:
             DpmBackup backs up the DPM database, and creates shadow copies that can
    be used for backing up replicas.
             To back up the DPM database, run DpmBackup.exe -db locally on the compu
    ter running DPM.
    Usage:
             DpmBackup.exe [-db [-sqlServerName <name>] [-instanceName <name>] [-dpm
    dbName <name>] [-targetLocation <location>]] [-replicas] [-certificates]
    ... deleted
    where is problem ?

     Add "instanceName" and "dpmdbname" parameters, like this: DpmBackup.exe -db -instanceName "<SQLInstanceName>" -dpmdbname <DPMDB_NAME>
    Use "(Local)" as <SQLInstanceName> if you use default SQL instance (MSSQLSERVER). Also, please make sure that account, under which SQL server runs, have permissions to write into %DPMInstallLocation%\Volumes\ShadowCopy\Database Backups\ folder.
    http://kf.lj.ru

  • How to backup MSSQL  database in ECC6

    Hi guys, i am doing patching for our internal ECC6 server. So i need to backup the database before run the patches. I have onliy done database backup in Oracle using Brtools. So i am not familiar with Ms Sql Server backup. Can anyone tell me step by step to do this backup and send me link or screen shot or any type of documents or guidence which help me to resolve this issue. I really appreciate a prompt reply from you guys. Would like to thank you in advance.

    Hello,
    you have to ensure that the SQL Server service (which is performing the backup) can access the share. To ensure this, start the SQL Server with an account that has enough rights on the share (domain user with write rights). You then should be able to create a backup device for the network share with
    use master
    exec sp_addumpdevice 'DISK','MyNetworkShare', '
    server\sharename\path\filename.bak'
    Then you should be able to perform a backup via DB13 to this device or directly with TSQL running
    backup database <SID> to MyNetworkShare
    Best regards
      Clas

  • Backup Oracle Database whilst online

    Guys looking for some help, I have an Oracle database that must run 24hours a day but I need to be able to back this database up daily, from what I understand I have to make the database run in archive log mode to be able to perform a hot backup.
    I have found out that currently my database is in noarchive log mode
    Can someone help me with the commands to put the database is achivelog mode
    Then can you help me with the command to backup the database using RMAN I have read some documentation do I need to just issue the backup database command or do I need to backup the archive logs files as well ?

    Do you want to teach me lesson ? I'm working with Oracle database since 1988, and I'm using RMAN since version 8.0 (15 years ago, or so).
    And please read the link I posted above.
    1) ... At lease two redo logs destination is recommended so that one redolog destination is keep working while other is filled up or vice versa.
    And you think I don't know that ? And that's not multiplexing.
    2) Catalog database is optional but it is recommended.
    It's absolutely not needed, and I consider it just and overhead (another database to manage and to synchronize).
    3) You need to setup archivelog retention policy so that it cleans up from LOG destination after certain period of time.
    You use DELETE INPUT option in your script, but it looks like you don't know what it means.
    Please follow oracle documentation for best practice .
    Again, are you teaching me lesson ? Oracle documentation is my bible.
    Backup is very important for a DBA so you need to set up precisely so that you can recover the database during disaster
    Backup is very important for a DBA ? What a news !! About disaster recovery, at your #1 you said "redo logs are very important to restore database" : or we mean something different for "disaster recovery", or you are totally wrong.

  • Backup and database export fails

    Now that I've got the database up and running, I'd like to export and/or backup the database. After relaying (I've got a German version of Oracle, so I have to guess what the original terminology might be) the job, it is listed as 'unsucccessful' in the job history. The error code is "VNI-2015 Fehler in der Berechtigungspr|fung" (meaning 'error in authorization check'). The preferred ID-data should be the correct ones.
    Helpless again,
    Claus.

    Greg,
    You need to push planning application into maintenance mode or stop planning server -- to stop users logging/entering data through forms
    If you have single planning app or all apps can go down during nightly process then just stop planning server by calling stopplanning.cmd( not sure about file name)
    after you nightly process is done call startplanning.cmd
    If you have multiple applications and only a subset of them needs to be under maintenance mode
    then you need to change few values in your application Relational repository ( its not recommended by Oracle)
    LOGIN_LEVEL='0' - For all Users
    LOGIN_LEVEL='2' - For Administrators
    you need to change Login_level value to '2' to move app into maintenance mode..
    this link will give you a better idea http://www.orahyplabs.com/2011/02/place-planning-under-maintenance-mode.html
    just add above mentioned steps based on your requirement
    KK

  • Have any GUI tools to backup oracle database(s) ?

    Hi,
    I want to know is any oracle's tool or third party tools to backuping oracle database?
    Thank you!
    Francis SZE

    Devotee wrote:
    Hi,
    I want to know is any oracle's tool or third party tools to backuping oracle database?
    Thank you!
    Francis SZE
    Use RMAN through enterprise manager
    Cheers

  • HI all,How to backup 1TB database

    hi all,
    Can naybody suggest me how to backup 1tb database in oracle 10g RAC database using ASM.waht are the all the backup stategies that one has to keep in mind while backing up more than1TB database.

    user13389425 wrote:
    I know rman since rman is taking lot of time more thant 36 hrs.And user also facing problem I/O related issues.SO is there any tech which can be used to backup.
    Punjab National bank is having more than 3-4 TB of DB.They have a server one is primary and another is backup server.And there backup server is synch with the main server.Every midnight they down their main DB and they up the backup server and capture the image of primary server using NETVERTIAS some tool.And then theyu mount it and open the DB.
    But i am not able to understanb how the backup server synch with the primary server, here i am not talkig about the Standby database.
    So is there any utility which can be used to backup.You have to read Backup recovery guide.Did you enable BLOCK CHANGE TRACKING? .Need troubleshooting rman backup process.Using RMAN is good and best way.Do you use optimization?.Also you can update standby database with incremental backups. Please refer below doc and investigate your problems.
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/toc.htm

  • Restore Validate Database vs Backup Validate Database

    Hi,
    I want to add the following sentence after taking the backup using following command (backup as compressed backupset database plus archivelog;)
    restore database validate;
    or
    backup validate database;
    which one is best?

    It depends on what you are trying to accomplish, as per documentation:
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta009.htm#sthref141BACKUP .. VALIDATE: Causes RMAN to scan the specified files and verify their contents, testing whether this file can be backed up. RMAN creates no output files. Use this command periodically to check for physical and logical errors in database files.
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta051.htm#sthref796
    RESTORE... VALIDATE causes RMAN to select existing backups that it would use to perform a RESTORE operation, and scan them all to ensure that they are present and free of corruption.>
    Guessing what you're trying to do, I recommend:
    backup check logical as compressed backupset database plus archivelog;
    restore validate database;
    CHECK LOGICAL. Tests data and index blocks that pass physical corruption checks for logical corruption, for example, corruption of a row piece or index entry. If RMAN finds logical corruption, then it logs the block in the alert.log and server session trace file. HTH
    Enrique
    PS If you have access to Metalink see Note:388422.1 Top 10 Backup and Recovery best practices.
    Edited by: Enrique Orbegozo on Dec 17, 2008 4:21 PM

  • Backup of database online

    i am working oracle 8i standard vesion. i want to maintain dual servers for database. if one database goes down the other maintaing the backup of database should start immediately. all the users should automatically conect to this database. this is possible in wiint by maintaining BDC(back up domain server) which will have the users nfo and in case of primary server crash, bdc will start the user services. i would like to know whether this is possible with ORACLE 8i and how?
    one more question also i have, it is
    oracle free down loadable software is providing same features of licenced software or not. how many users are can connect to the oracle standars and enterprise edition(down loaded software). can be used for any software development
    i am available at [email protected]

    Plz check this doc
    http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/rmanops.htm
    regards,
    Shaan

  • Is backup full database , is backuing up controlfile ?

    Hi
    i am on 8174
    is that enough to cold backup the database?
    shutdown immediate;
    startup mount;
    run {
    allocate channel t1 type 'SBT_TAPE';
    send 'NB_ORA_POLICY=....';
    backup full format 'bk_%U_%t' (database);
    or do i need
    backup current controlfile; ?
    i can see here http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76990/rmanconc.htm#436070
    this statment "A full backup is different from a whole database backup, which is a backup of all datafiles and the current control file."
    is that means
    backup full database , is backuing up controlfile ?(i think yes) and is restoring from it requires any archivelogs?(i think no)
    Thanks very much
    Edited by: user9145417 on 25-Aug-2010 16:42

    The reason to have the current controlfile is that it keeps all the information of the database. If you lose the entire machine, it will be much more difficult to recover to another machine without that controlfile. That is one reason that control files are multiplexed, so that you do not lose all of them.
    With 8174 I don't believe there was a method to always included it automatically like with 10g. So yes...always backup your control file with an exact statement.
    Will you need archive logs? If you want to do a complete recovery you will need all the archivelogs that occur after the start of the backup untill the time the database crashes.
    Do you need to backup the archivelogs within this script? Well that depends if you can think of any circumstance that would require you to recover to a point in time using the backup taken before this one.
    Regards
    Tim

  • Scheduling automatic Backup of Database and Application

    Hi,
    Can anyone post the step by step process and methods to Backup my database and how to make recovery.
    I am using oracle10g db Application express .
    I am also using oracle enterprise manager 10g for scheduling email alert processes.
    platform : windows xp
    Thank You.

    Hi,
    sorry for the late reply...
    I anot using an Express edition oracle XE .. its personal edition..that too on windows xp platform...
    so i need a way of automating the backup... like weekend or midnight(daily)..
    will oracle enterprise manager be helpful for this? and how?
    thank you.

Maybe you are looking for