To schedule a database back-up

Hi All,
I am a D2k Developer and now to take a database backup i am using the following process
I create a button and write some code like
HOST('EXP ' || vUserId || '/' || vPassward || ' FILE=' || DIR_NAME || FILE_NAME || ' LOG=' || DIR_NAME || vFileName,NO_SCREEN);
Now I want to schedule this job at periodically basis that no required to any user interaction.
Please any one tell me how it is possible and how it can do?
Thanks in Advance.
Regards
Sanjit

You should use Oracle Scheduler to run a job
Please refer to documentaton: [Using Scheduler|http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/scheduse.htm#ADMIN034]
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
[Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

Similar Messages

  • Error while Scheduling Full DB back up?

    Hi gurus,
    I got error while schedule full DB back up. I am follow all the steps.but i got this error.
    1. go to DB13
    2. select Day
    3.select full DB backup
    4.select time
    5.select sid, msdb,inttape,verify backup
    5.add.
    our DB is MS-SQL server Data Base
    client :222   user: admin
    error: User not connected
    2008-04-10 14:28:06.89 Server      Microsoft SQL Server 2005 - 9.00.2047.00 (Intel X86)
         Apr 14 2006 01:12:25
         Copyright (c) 1988-2005 Microsoft Corporation
         Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
    2008-04-10 14:28:06.89 Server      (c) 2005 Microsoft Corporation.
    2008-04-10 14:28:06.89 Server      All rights reserved.
    2008-04-10 14:28:06.89 Server      Server process ID is 308.
    2008-04-10 14:28:06.89 Server      Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG'.
    2008-04-10 14:28:06.89 Server      This instance of SQL Server last reported using a process ID of 308 at 4/10/2008 2:24:10 PM (local) 4/10/2008 8:54:10 AM (UTC). This is an informational message only; no user action is required.
    2008-04-10 14:28:06.89 Server      Registry startup parameters:
    2008-04-10 14:28:06.89 Server            -d C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf
    2008-04-10 14:28:06.89 Server            -e C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG
    2008-04-10 14:28:06.89 Server            -l C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf
    2008-04-10 14:28:06.90 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
    2008-04-10 14:28:06.90 Server      Detected 8 CPUs. This is an informational message; no user action is required.
    2008-04-10 14:28:07.06 Server      Set AWE Enabled to 1 in the configuration parameters to allow use of more memory.
    2008-04-10 14:28:07.20 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
    2008-04-10 14:28:07.21 Server      Attempting to initialize Microsoft Distributed Transaction Coordinator (MS DTC). This is an informational message only. No user action is required.
    2008-04-10 14:28:18.89 Server      Attempting to recover in-doubt distributed transactions involving Microsoft Distributed Transaction Coordinator (MS DTC). This is an informational message only. No user action is required.
    2008-04-10 14:28:18.89 Server      Database mirroring has been enabled on this instance of SQL Server.
    2008-04-10 14:28:18.89 spid4s      Starting up database 'master'.
    2008-04-10 14:28:18.96 spid4s      Recovery is writing a checkpoint in database 'master' (1). This is an informational message only. No user action is required.
    2008-04-10 14:28:19.00 spid4s      SQL Trace ID 1 was started by login "sa".
    2008-04-10 14:28:19.01 spid4s      Starting up database 'mssqlsystemresource'.
    2008-04-10 14:28:19.04 spid4s      The resource database build version is 9.00.2047. This is an informational message only. No user action is required.
    2008-04-10 14:28:19.18 spid4s      Server name is 'ERPPRD'. This is an informational message only. No user action is required.
    2008-04-10 14:28:19.18 spid9s      Starting up database 'model'.
    2008-04-10 14:28:19.29 spid9s      Clearing tempdb database.
    2008-04-10 14:28:19.37 spid9s      Starting up database 'tempdb'.
    2008-04-10 14:28:19.39 spid9s      Analysis of database 'tempdb' (2) is 100% complete (approximately 0 seconds remain). This is an informational message only. No user action is required.
    2008-04-10 14:28:19.40 spid12s     The Service Broker protocol transport is disabled or not configured.
    2008-04-10 14:28:19.40 spid12s     The Database Mirroring protocol transport is disabled or not configured.
    2008-04-10 14:28:19.40 spid12s     Service Broker manager has started.
    2008-04-10 14:28:19.42 Server      A self-generated certificate was successfully loaded for encryption.
    2008-04-10 14:28:19.43 Server      Server is listening on [ 'any' <ipv4> 1433].
    2008-04-10 14:28:19.43 Server      Server local connection provider is ready to accept connection on [
    .\pipe\SQLLocal\MSSQLSERVER ].
    2008-04-10 14:28:19.43 Server      Server named pipe provider is ready to accept connection on [
    .\pipe\sql\query ].
    2008-04-10 14:28:19.43 Server      Server is listening on [ 127.0.0.1 <ipv4> 1434].
    2008-04-10 14:28:19.43 Server      Dedicated admin connection support was established for listening locally on port 1434.
    2008-04-10 14:28:19.43 Server      The SQL Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x54b. Failure to register an SPN may cause integrated authentication to fall back to NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies.
    2008-04-10 14:28:19.43 Server      SQL Server is now ready for client connections. This is an informational message; no user action is required.
    2008-04-10 14:28:19.48 spid21s     Starting up database 'msdb'.
    2008-04-10 14:28:19.48 spid23s     Starting up database 'SRM'.
    2008-04-10 14:28:19.48 spid22s     Starting up database 'PRD'.
    2008-04-10 14:28:20.29 spid23s     Analysis of database 'SRM' (6) is 100% complete (approximately 0 seconds remain). This is an informational message only. No user action is required.
    2008-04-10 14:28:23.40 spid22s     Analysis of database 'PRD' (5) is 100% complete (approximately 0 seconds remain). This is an informational message only. No user action is required.
    2008-04-10 14:28:23.95 spid4s      Recovery of any in-doubt distributed transactions involving Microsoft Distributed Transaction Coordinator (MS DTC) has completed. This is an informational message only. No user action is required.
    2008-04-10 14:28:23.95 spid4s      Recovery is complete. This is an informational message only. No user action is required.
    2008-04-10 14:28:26.37 spid51      Using 'xpsqlbot.dll' version '2005.90.2047' to execute extended stored procedure 'xp_qv'. This is an informational message only; no user action is required.
    2008-04-10 14:28:26.53 spid51      Using 'xpstar90.dll' version '2005.90.2047' to execute extended stored procedure 'xp_instance_regread'. This is an informational message only; no user action is required.
    2008-04-10 14:28:26.57 spid51      Using 'xplog70.dll' version '2005.90.2047' to execute extended stored procedure 'xp_msver'. This is an informational message only; no user action is required.
    2008-04-11 00:00:56.75 spid17s     This instance of SQL Server has been using a process ID of 308 since 4/10/2008 2:28:23 PM (local) 4/10/2008 8:58:23 AM (UTC). This is an informational message only; no user action is required.
    2008-04-11 16:44:23.89 spid112     DBCC CHECKDB (PRD) started at Apr 11 2008  4:44PM with Logfile: C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\CCMS_CHECK_DB_HIST_2008.txt
    2008-04-11 16:52:47.53 spid107     DBCC CHECKDB (PRD) started at Apr 11 2008  4:52PM with Logfile: C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\CCMS_CHECK_DB_HIST_2008.txt
    2008-04-11 17:00:01.48 spid115     DBCC TRACEON 3605, server process ID (SPID) 115. This is an informational message only; no user action is required.
    2008-04-11 17:00:10.45 spid115     Error: 18204, Severity: 16, State: 1.
    2008-04-11 17:00:10.45 spid115     BackupTapeFile::OpenMedia: Backup device '
    .\tape1' failed to open. Operating system error 2(The system cannot find the file specified.).
    2008-04-11 17:00:10.67 Backup      Unnamed tape was dismounted from drive 'R3DUMP1(
    .\tape1)'. This is an informational message. No user action is required.
    2008-04-11 17:00:10.65 Backup      Error: 3041, Severity: 16, State: 1.
    2008-04-11 17:00:10.65 Backup      BACKUP failed to complete the command BACKUP DATABASE PRD. Check the backup application log for detailed messages.
    2008-04-11 17:00:11.18 Backup      Tape 'Media created 3/29/2007 at 2:43 PM' was dismounted from drive 'R3DUMP0(
    .\tape0)'. This is an informational message. No user action is required.
    2008-04-11 17:00:15.54 spid101     DBCC TRACEON 3605, server process ID (SPID) 101. This is an informational message only; no user action is required.
    2008-04-11 17:00:15.60 spid101     Error: 18204, Severity: 16, State: 1.
    2008-04-11 17:00:15.60 spid101     BackupTapeFile::OpenMedia: Backup device '
    .\tape1' failed to open. Operating system error 2(The system cannot find the file specified.).
    2008-04-11 17:00:15.60 Backup      Unnamed tape was dismounted from drive 'R3DUMP1(
    .\tape1)'. This is an informational message. No user action is required.
    2008-04-11 17:00:15.60 Backup      Error: 3041, Severity: 16, State: 1.
    2008-04-11 17:00:15.60 Backup      BACKUP failed to complete the command BACKUP DATABASE PRD. Check the backup application log for detailed messages.
    2008-04-11 17:00:15.60 Backup      Unnamed tape was dismounted from drive 'R3DUMP0(
    .\tape0)'. This is an informational message. No user action is required.
    2008-04-11 17:02:57.57 spid114     DBCC CHECKDB (PRD) started at Apr 11 2008  5:02PM with Logfile: C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\CCMS_CHECK_DB_HIST_2008.txt
    2008-04-11 18:30:37.75 spid112     DBCC CHECKDB (PRD) WITH no_infomsgs executed by NT AUTHORITY\SYSTEM found 0 errors and repaired 0 errors. Elapsed time: 1 hours 46 minutes 14 seconds.
    2008-04-11 18:54:52.10 spid114     DBCC CHECKDB (PRD) WITH no_infomsgs executed by NT AUTHORITY\SYSTEM found 0 errors and repaired 0 errors. Elapsed time: 1 hours 51 minutes 55 seconds.
    2008-04-11 18:55:25.00 spid107     DBCC CHECKDB (PRD) WITH no_infomsgs executed by NT AUTHORITY\SYSTEM found 0 errors and repaired 0 errors. Elapsed time: 2 hours 2 minutes 38 seconds.
    2008-04-12 00:00:30.75 spid17s     This instance of SQL Server has been using a process ID of 308 since 4/10/2008 2:28:23 PM (local) 4/10/2008 8:58:23 AM (UTC). This is an informational message only; no user action is required.
    This is error
      anybody help me.
    Regards,
    balaram
    Edited by: balaram reddy on Apr 14, 2008 8:44 PM

    If your ECC6 is on SP12 and above, use t-code : DBACOCKPIT or DB13OLD
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0dc0752-2502-2a10-2a93-94823467ca79

  • Regarding database back up

    Hi all,
    I am new to database back up. Can anyone explain me what is the difference
    between the back up which is taken using db13 in sap and taking back up
    directly from sql enterprise server in windows.
    Is it possible to do offline and online back up through db13?
    Can anyone please suggest me in detail.

    Sanjeev,
    Well, you can't. If you schedule the backup, the BRTOOL set will address this. DB13 really only gives you a 'GUI' interface for the BRTOOLs as well as a scheduling capability. Remember that when you trigger the backup job from DB13, you're not executing this at the SAP level, you're executing this from the OS level via the DBTOOLs - you could schedule the same job at the OS level if you wanted.
    If you trigger a BRBACKUP with the option 'offline', it will actually shutdown the database for you, perform the backup, and restart the database (return it to the state when the backup started). SAP itself will not go down per se, but obviously, it will not have connectivity with the database, and users who logon during this time will receive error messages regarding "no connection to database". Most folks, therefore shutdown the SAP system first, then trigger the offline backup.
    Hope this helps.
    Tim

  • MRP - scheduled at the back ground???

    hii
    Can somebody explain me how to set MRP to be scheduled at the back ground.
    I have to create New MRP controller and do the MRP scedule at background for the same.
    Step by steps activities for this and if any ABAPer help we have to get , mention that also.
    Thanks

    hii kumar
    Thanks for ur response.
    But i have gone through, still i need some clarification.
    Whethere in satandard SAP system there no possibilities to do MRP scheduling at Back ground at MRP controller level.
    What i m asking , i have one company code , 4 plants , i have only one MRP controller.
    Using that controller i have to do the MRP setting at background (Automatic).
    Note: One  MRP controller is used for every material type , hence we have only one MRP controller.
    For abouve requirement ,suggest how to proceed furthere .
    Thanks

  • MRP scheduling at the back ground??

    hii
    Can somebody explain me how to set MRP to be scheduled at the back ground.
    Step by steps activities for this  and if any ABAPer help we have to get , mention that also.
    Thanks

    Hi,
    Plz refer this thread
    [mrp;
    Regards
    Madhu

  • MS Scheduler is not backing up my database

    Dear buddies,
    I have created a couple of scripts which works fine when I access them from command prompt, eventually the backups are created physically.
    Even when I click on my bat file the backup is being created successfully but using scheduler it creates the backup successfully for the first day while I didn't enter a value for the end date and didn't give any values for the advanced features. It creates the backups successfully on the first day of creation. I have recreated them twice.
    The windows version: Windows Server 2003, Enterprise Edition.
    My Scripts are as such:
    Step 1
    File: DBBackup.bat
    set ORACLE_SID=DB
    sqlplus/nolog @DB_Backup.sql
    Step 2
    File: DB_Backup.sql
    connect sys/password as sysdba;
    alter system switch logfile;
    alter system archive log current;
    $Rman target sys/password CMDFILE DB.rcv LOG DB_outfile.txt;
    Step 3
    File: DB.rcv
    RUN {    
      backup database format='D:\Oracle_Backup\DB\%U_%I_%T.bkp' tag="everyday_full_bkup"
      plus archivelog format='D:\Oracle_Backup\DB\Arch%U_%I_%T.arc' tag="arcbkp";
      backup current controlfile;
      restore database validate;
      crosscheck backup;
      crosscheck archivelog all;
    exitI Checked the DB_outfile, and it was not even created which means the scheduler didn't run?
    I just now clicked on the bat file and it ran and created the backups and also modified the DB_outfile.
    How should I fix this?
    Please guide me.
    I can move on to use the DBMS scheduler but still would like to know whats the problem here because previously the scheduler was working and now I added the path to the sql using the format clause.
    After that, when I try to use it, the first time the scheduler runs and not after that.
    Thank You Very Much.
    Nith

    These are my output from dba_scheduler_jobs for those 3 jobs.
    select owner, job_name, job_creator, program_owner, job_type, job_action,number_of_arguments,schedule_owner,schedule_name,schedule_type,start_date, repeat_interval,job_class,enabled,auto_drop,restartable,state,job_priority,run_count,failure_count,retry_count,last_start_date,last_run_duration,next_run_date,logging_level,stop_on_window_close,instance_stickiness,system,job_weight,nls_env
    from dba_scheduler_jobs
    where job_name in ('RMAN_BACKUP_JOB','MYJOB','UCSI')
    owner : SYS
    job_name : RMAN_BACKUP_JOB
    job_creator : SYS
    program_owner : SYS
    job_type :
    job_action :
    number_of_arguments :
    schedule_owner : SYS
    schedule_name : RMAN_BACKUP_SCHEDULE
    schedule_type : NAMED
    start_date : 12-AUG-10 11.31.55.000000 AM +08:00
    repeat_interval :
    job_class : DEFAULT_JOB_CLASS
    enabled : TRUE
    auto_drop : FALSE
    restartable : FALSE
    state : SCHEDULED
    job_priority : 3
    run_count : 5
    failure_count : 5
    retry_count : 0
    last_start_date : 16-AUG-10 11.31.55.093000 AM +08:00
    last_run_duration : +000000000 00:00:00
    next_run_date : 17-AUG-10 11.31.55.000000 AM +08:00
    logging_level : RUNS
    stop_on_window_close : FALSE
    instance_stickiness : TRUE
    system : TRUE
    job_weight : 1
    nls_env : NLS_LANGUAGE='AMERICAN' NLS_TERRITORY='AMERICA' NLS_CURRENCY='$' NLS_ISO_CURRENCY='AMERICA' NLS_NUMERIC_CHARACTERS='.,' NLS_CALENDAR='GREGORIAN' NLS_DATE_FORMAT='DD-MON-RR' NLS_DATE_LANGUAGE='AMERICAN' NLS_SORT='BINARY' NLS_TIME_FORMAT='HH.MI.SSXFF AM' NLS_TIMESTAMP_FORMAT='DD-MON-RR HH.MI.SSXFF AM' NLS_TIME_TZ_FORMAT='HH.MI.SSXFF AM TZR' NLS_TIMESTAMP_TZ_FORMAT='DD-MON-RR HH.MI.SSXFF AM TZR' NLS_DUAL_CURRENCY='$' NLS_COMP='BINARY' NLS_LENGTH_SEMANTICS='BYTE' NLS_NCHAR_CONV_EXCP='FALSE'                                                       
    owner : SYS
    job_name : MYJOB
    job_creator : SYS
    job_type : EXECUTABLE
    job_action : C:\WINDOWS\SYSTEM32\CMD.EXE
    number_of_arguments : 3
    schedule_type : CALENDAR
    start_date : 10-AUG-20 10.04.16.000000 PM +08:00
    repeat_interval : FREQ=DAILY; INTERVAL=1
    job_class : DEFAULT_JOB_CLASS
    enabled : TRUE
    auto_drop : TRUE
    restartable : FALSE
    state : SCHEDULED
    job_priority : 3
    run_count : 0
    failure_count : 0
    retry_count : 0
    next_run_date : 10-AUG-20 10.04.16.000000 PM +08:00
    logging_level : RUNS
    stop_on_window_close : FALSE
    instance_stickiness : TRUE
    system : TRUE
    job_weight : 1
    nls_env : NLS_LANGUAGE='AMERICAN' NLS_TERRITORY='AMERICA' NLS_CURRENCY='$' NLS_ISO_CURRENCY='AMERICA' NLS_NUMERIC_CHARACTERS='.,' NLS_CALENDAR='GREGORIAN' NLS_DATE_FORMAT='DD-MON-RR' NLS_DATE_LANGUAGE='AMERICAN' NLS_SORT='BINARY' NLS_TIME_FORMAT='HH.MI.SSXFF AM' NLS_TIMESTAMP_FORMAT='DD-MON-RR HH.MI.SSXFF AM' NLS_TIME_TZ_FORMAT='HH.MI.SSXFF AM TZR' NLS_TIMESTAMP_TZ_FORMAT='DD-MON-RR HH.MI.SSXFF AM TZR' NLS_DUAL_CURRENCY='$' NLS_COMP='BINARY' NLS_LENGTH_SEMANTICS='BYTE' NLS_NCHAR_CONV_EXCP='FALSE'
    owner : SYS
    job_name : UCSI
    job_creator : SYS
    job_type : EXECUTABLE
    job_action : D:\Oracle_Backup_data\Details\script\UCSIDev\UCSIDevDBBackup.bat
    number_of_arguments : 0
    schedule_type : CALENDAR
    start_date : 10-AUG-20 10.04.13.000000 PM +08:00
    repeat_interval : FREQ=DAILY; INTERVAL=1
    job_class : DEFAULT_JOB_CLASS
    enabled : TRUE
    auto_drop : TRUE
    restartable : FALSE
    state : SCHEDULED
    job_priority : 3
    run_count : 0
    failure_count : 0
    retry_count : 0
    next_run_date : 10-AUG-20 10.04.13.000000 PM +08:00
    logging_level : RUNS
    stop_on_window_close : FALSE
    instance_stickiness : TRUE
    system : TRUE
    job_weight : 1
    nls_env : NLS_LANGUAGE='AMERICAN' NLS_TERRITORY='AMERICA' NLS_CURRENCY='$' NLS_ISO_CURRENCY='AMERICA' NLS_NUMERIC_CHARACTERS='.,' NLS_CALENDAR='GREGORIAN' NLS_DATE_FORMAT='DD-MON-RR' NLS_DATE_LANGUAGE='AMERICAN' NLS_SORT='BINARY' NLS_TIME_FORMAT='HH.MI.SSXFF AM' NLS_TIMESTAMP_FORMAT='DD-MON-RR HH.MI.SSXFF AM' NLS_TIME_TZ_FORMAT='HH.MI.SSXFF AM TZR' NLS_TIMESTAMP_TZ_FORMAT='DD-MON-RR HH.MI.SSXFF AM TZR' NLS_DUAL_CURRENCY='$' NLS_COMP='BINARY' NLS_LENGTH_SEMANTICS='BYTE' NLS_NCHAR_CONV_EXCP='FALSE'

  • Scheduling Automatic Database objects comparison through Oracle CHange Mana

    HI,
    I need to compare some schemas for two databases regularly to make sure that the databases are in sync state.Could you guys pls tell me if there is any option/way through which i can do the automatic scheduling to compare the DB objects of the two databases.
    Your help would be highly appreicated.
    Many Thanks

    TOAD

  • How Discoverer scheduler handles Database links ?

    I have 2 databases (both Oracle). created a view based on the another database view in the current database using the database link.
    I ran the workbook in discoverer Plus successfully.
    I scheduled the workbook without any problem
    when I tried to open a workbook, I am getting the following error..
    ORA 01017: INVALID USERNAME AND PASSWORD; LOGIN DENIED ORA02063:PRECEEDING LINE FROM
    INPTR (INPTR is the name of the datasource )
    Any ideas??
    Thanks

    See my reply to an earlier post today: "How to Connect to Discoverer Viewer " for more information. (How to Connect to Discoverer Viewer
    Since you have not installed an infrastructure and associated Discoverer with it, you will not see any button / link to create public connections in EM (App Server Control).
    You cannot use an existing database for your infrastructure. The Oracle Application Server infrastructure is installed in its own database.
    Thanks
    Abhinav
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN : http://www.oracle.com/technology/products/bi/
    Discoverer : http://www.oracle.com/technology/products/discoverer/
    BI Software : http://www.oracle.com/technology/software/products/ias/devuse.html
    Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
    BI Samples : http://www.oracle.com/technology/products/bi/samples/
    Blog : http://oraclebi.blogspot.com/

  • 11g DATABASE BACK UP

    Hi,
    I am trying to do back up of one of my oracle 11g db out of 2 through rman utility. Am doing the following steps.
    [http://www.youtube.com/watch?v=8dA6BYxF_YE]
    But i am getting the following error messages :
    Directory of c:\app\Manaar1\oradata\orclDW
    :\app\Manaar1\oradata\orclDW>set ORACLE_SID=rman
    c:\app\Manaar1\oradata\orclDW>set ORACLE_SID=oradata
    c:\app\Manaar1\oradata\orclDW>set ORACLE_SID=rman
    c:\app\Manaar1\oradata\orclDW>set ORACLE_SID=oradata
    c:\app\Manaar1\oradata\orclDW>echo %ORACLE_SID%
    oradata
    c:\app\Manaar1\oradata\orclDW>rman target/
    Recovery Manager: Release 11.2.0.3.0 - Production on Wed Feb 8 00:50:23 2012
    Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-04005: error from target database:
    ORA-12560: TNS:protocol adapter error
    does this means my rman utility is working properly or that my database path is not accurate..bcz that is the correct database path i entered.

    I did as you said for sqlplus but its showing in the end tns eror message
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    C:\Users\windowsaleem>sqlplus/user
    SQL*Plus: Release 11.2.0.3.0 Production on Wed Feb 8 04:39:22 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    SQL*Plus: Release 11.2.0.3.0 Production
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus statements.
    Usage 1: sqlplus -H | -V
    -H Displays the SQL*Plus version and the
    usage help.
    -V Displays the SQL*Plus version.
    Usage 2: sqlplus [ [<option>] [{logon | /nolog}] [<start>] ]
    <option> is: [-C <version>] [-L] [-M "<options>"] [-R <level>] [-S]
    -C <version> Sets the compatibility of affected commands to the
    version specified by <version>. The version has
    the form "x.y[.z]". For example, -C 10.2.0
    -L Attempts to log on just once, instead of
    reprompting on error.
    -M "<options>" Sets automatic HTML markup of output. The options
    have the form:
    HTML ON [HEAD text] [BODY text] [TABLE text]
    [ENTMAP {ON|OFF}] [SPOOL {ON|OFF}] [PRE[FORMAT] ON]
    -R <level> Sets restricted mode to disable SQL*Plus commands
    that interact with the file system. The level can
    be 1, 2 or 3. The most restrictive is -R 3 which
    disables all user commands interacting with the
    file system.
    -S Sets silent mode which suppresses the display of
    the SQL*Plus banner, prompts, and echoing of
    commands.
    <logon> is: {<username>[<password>][@<connect_identifier>] | / }
    [AS {SYSDBA | SYSOPER | SYSASM}] [EDITION=value]
    Specifies the database account username, password and connect
    identifier for the database connection. Without a connect
    identifier, SQL*Plus connects to the default database.
    The AS SYSDBA, AS SYSOPER and AS SYSASM options are database
    administration privileges.
    <connect_identifier> can be in the form of Net Service Name
    or Easy Connect.
    @[<net_service_name> | [/]Host[:Port]/<service_name>]
    <net_service_name> is a simple name for a service that resolves
    to a connect descriptor.
    Example: Connect to database using Net Service Name and the
    database net service name is ORCL.
    sqlplus myusername/mypassword@ORCL
    Host specifies the host name or IP address of the database
    server computer.
    Port specifies the listening port on the database server.
    <service_name> specifies the service name of the database you
    want to access.
    Example: Connect to database using Easy Connect and the
    Service name is ORCL.
    sqlplus myusername/mypassword@Host/ORCL
    The /NOLOG option starts SQL*Plus without connecting to a
    database.
    The EDITION specifies the value for Session Edition.
    <start> is: @<URL>|<filename>[.<ext>] [<parameter> ...]
    Runs the specified SQL*Plus script from a web server (URL) or the
    local file system (filename.ext) with specified parameters that
    will be assigned to substitution variables in the script.
    When SQL*Plus starts, and after CONNECT commands, the site profile
    (e.g. $ORACLE_HOME/sqlplus/admin/glogin.sql) and the user profile
    (e.g. login.sql in the working directory) are run. The files may
    contain SQL*Plus commands.
    Refer to the SQL*Plus User's Guide and Reference for more information.
    C:\Users\windowsaleem>sqlplus user/pass
    SQL*Plus: Release 11.2.0.3.0 Production on Wed Feb 8 04:42:11 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name: [oracle@test oracle]$ rman target /RMAN> backup database;
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]]
    where <logon> ::= <username>[<password>][@<connect_identifier>]
    <proxy> ::= <proxyuser>[<username>][<password>][@<connect_identifier>]
    Enter user-name: {oracle@test oracle }$ rman target /RMAN> back

  • How to revert a database back to one day previous state.

    Hi,
    Of course, if no backup, then no restore.
    However, unfortunately there is NO database backup available i.e. export/expdp/OS Backup/RMAN/Flashback. But, the requirement is to prepare another database on another server with one day back state. So, can we take fresh backup of the database which has all the archived logs, and restore it on another server as one day back previous state.
    Is there any possible way to do this by using existing archive logs? Can LogMiner help in this regard?
    Thanks,
    SYED.

    user3514623 wrote:
    Hi,
    Of course, if no backup, then no restore.
    However, unfortunately there is NO database backup available i.e. export/expdp/OS Backup/RMAN/Flashback. But, the requirement is to prepare another database on another server with one day back state. So, can we take fresh backup of the database which has all the archived logs, and restore it on another server as one day back previous state.
    Is there any possible way to do this by using existing archive logs? Can LogMiner help in this regard?
    Technically you could get lucky - but I wouldn't want to pretend that the following procedure is sensible or a safe way to back out a production system.
    If you have all the archived redo logs since the moment you want to get back to then you could, in principle, copy the database, run up logminer and extract all the UNDO_SQL that it gives you from the present back to the point in time you want to get to. You can then apply this, one transaction at a time, in reverse order of original application.
    Problems I can think of:
    <ul>
    a) It's likely to take a long time to do this, and you'll probably want to have a lot of manual control and checking.
    b) If you've done any drop tables or truncate tables in the interval you can't reverse them out.
    c) If you've done any nologging dataloads you won't be able to reverse those out
    d) There may be some data types that logminer won't cope with
    </ul>
    Other people may like to supply more reasons why this is not a good idea for a production system - but it might just be good enough to solve whatever problem you have.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    P.S. on "Forum Etiquette / Reward Points": http://forums.oracle.com/forums/ann.jspa?annID=718
    If you never mark your questions as answered people will eventually decide that it's not worth trying to answer you because they will never know whether or not their answer has been of any use, or whether you even bothered to read it.
    It is also important to mark answers that you thought helpful - again it lets other people know that you appreciate their help, but more importantly it also means that when you mark a bad or wrong answer as helpful someone may be prompted to tell you (and the rest of the forum) why the answer you found helpful is bad or wrong.

  • RMAN: Switch database back

    Hi,
    I am having a small rman issue. With:
    switch database to copy;I am able to recover a database very quickly however how can I switch back respectively restore afterwards the database to its original location. Are there no other ways to do it file by file?
    Thanks for your feedback.
    Cheers,
    David
    OCP 9i
    http://www.oratoolkit.ch/otn.php

    True, I just had to rename the files and to recover them. Here the procedure:
    $ sqlplus / as sysdba
    SQL> shutdown immediate
    SQL> startup mount
    SQL> alter database rename file
           '/backup01/rdbms/physical/prod/datafile/PROD_copy_data_D-PROD_I-116298551_TS-SYSTEM_FNO-1_0vl14lkl'
           to '+DATA01/PROD/DATAFILE/prod_system_01.dbf';
    SQL> alter database rename file
           '/backup01/rdbms/physical/prod/datafile/PROD_copy_data_D-PROD_I-116298551_TS-TAB_FNO-6_12l14lm2'
           to '+DATA01/PROD/DATAFILE/prod_tab_01.dbf';
    SQL> alter database rename file
           '/backup01/rdbms/physical/prod/datafile/PROD_copy_data_D-PROD_I-116298551_TS-TAB_FNO-7_13l14lm9'
           to '+DATA01/PROD/DATAFILE/prod_tab_02.dbf';
    SQL> alter database rename file
           '/backup01/rdbms/physical/prod/datafile/PROD_copy_data_D-PROD_I-116298551_TS-IDX_FNO-9_15l14lmn'
           to '+DATA01/PROD/DATAFILE/prod_idx_02.dbf';
    SQL> alter database rename file
           '/backup01/rdbms/physical/prod/datafile/PROD_copy_data_D-PROD_I-116298551_TS-IDX_FNO-8_14l14lmg'
           to '+DATA01/PROD/DATAFILE/prod_idx_01.dbf';
    SQL> alter database rename file
           '/backup01/rdbms/physical/prod/datafile/PROD_copy_data_D-PROD_I-116298551_TS-OTK_FNO-5_16l14lmq'
           to '+DATA01/PROD/DATAFILE/prod_otk_01.dbf';
    SQL> alter database rename file
           '/backup01/rdbms/physical/prod/datafile/PROD_copy_data_D-PROD_I-116298551_TS-USERS_FNO-4_17l14lmr'
           to '+DATA01/PROD/DATAFILE/prod_users_01.dbf';
    SQL> alter database rename file
           '/backup01/rdbms/physical/prod/datafile/PROD_copy_data_D-PROD_I-116298551_TS-SYSAUX_FNO-3_11l14llj'
           to '+DATA01/PROD/DATAFILE/prod_sysaux_01.dbf';
    SQL> alter database rename file
           '/backup01/rdbms/physical/prod/datafile/PROD_copy_data_D-PROD_I-116298551_TS-UNDO_FNO-2_10l14ll4'
           to '+DATA01/PROD/DATAFILE/prod_undo_01.dbf';
    SQL> exit
    $ rman target /
    RMAN> recover database;
    RMAN> alter database open;Thanks a lot for your inputs. ;)

  • How Will client take database back up.

    hi
    how to client take backup of oracle 10g database if application are running on client side . application created in Apex.
    Manoj Kaushik

    hi jari,
    i have created an application . After deploye of this application when client or user will work on this application what's the Entry he will do every day he can keep record of daily work as an back up.when he press back up button.
    Eg.
    Data Back up means all data of all tables.
    Thanls
    Manoj

  • Oracle database back up

    hello!
    i am new bie and am learning oracle database.can you tell me how do i take the data back up .
    Thanks in advance
    shailender

    In a very simple manner, you can shutdown your database and copy all datafiles,control files and log files or you can use Export utility to have an online data export of a user or who~e database.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by shailender:
    hello!
    i am new bie and am learning oracle database.can you tell me how do i take the data back up .
    Thanks in advance
    shailender<HR></BLOCKQUOTE>
    null

  • Sharepoint Database back up

    Hi,
    We are doing back up of Sharepoint 2010 using following way:
    - Taking back up of all database of Sharepoint 2010 from SQL Server.
    Will this be sufficient in case of disaster recovery? OR Microsoft recommend to take Sharepoint farm back.
    Regards,
    Amit

    Hi Amit,
    According to your description, my understanding is that you want to know the best way we need to back up the databases for SharePoint.
    Regularly backing up content databases reduces data losses that might occur from hardware failures, power outages, or other problems.
    It is a simple process and helps make sure that all the data is available for recovery, if that is required.
    Based on your need, you can choose farm or granular backup for SharePoint.
    More information are provided in the links below:
    http://technet.microsoft.com/en-us/library/ee663490(v=office.14).aspx
    http://technet.microsoft.com/en-us/library/gg266384(v=office.14).aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Database back up settings

    we are taking backups daily by automatic back up . I like to keep only the current backup .
    that's if i taken a back up yesteraday (9/9/2009) , today also going to take the back up ( i like to overwrite the back up )
    can i do that setting in SAP
    regards
    kavitha s

    Hi!
    This is not a setting.
    1. You have to create a New Folder in a Particular Loaction - use command prompt codings to create it.
    2. Move the Backup file of previous day to this folder - use command prompt codings to create it.
    3. Delete the New Folder - use command prompt codings to create it.
    4. Create all the above said coding as a batch file and schedule via system Schedule.

Maybe you are looking for

  • Get next value in a Multi Record Block

    Hi, I've a Multi Record block with 2 items like below. pos width 1 7 8 5 13 5 18 2 ie pos in next item is sum of pos and width of previous item.I've already implemented this. The problem is if the user changes width in a particular record,I want to c

  • Local logical system is not defined when tried to create new maint. trx.

    Dear Experts, I encountered this message "Local logical system is not defined" when I tried to create new maintenance transaction in DWSP (at Maintenance Optimizer of Solution Manager). This message kept on appeared even though I've created and assig

  • Regarding smartforms very urgent

    Hi All, I have created a smartfrom.In that I have converted smartform output to html.Now I am sending this HTML output as an attachment to an email address but here I am unable to add graphic to the HTML ouput.How can I do this. Regards, shravan

  • Outbound SSO

    Hi I am developing a system for a client that integrates with their Siebel CRM On Demand. I have got everything working using usernaqme / password login to get a jsessionid and call services. But it would be better if we could use the SSOToken that c

  • Itunes 10.5.2 won't sync with Iphone 3g (4.2.1)

    My iPhone won't sync to with my MacBook running iTunes 10.5.2.  I have an older iPod that syncs fine.  The iPad 2 syncs fine.  But the phone just doesn't show up.  No error message, it just doesn't show up.  The iPhone shows that it's charging so the