Database Backup oracle

Hi
I want to take the backup of the oracle(10g) database.
I am using Windows OS. I dont know what userId and Password to give in the Host Credentials in the below link.
The default username and password didn't work.
I have also tried expdb for taking backup. but there too i got some credential error.
Can anyone help me in this issue?....
http://docs.oracle.com/cd/B16351_01/doc/server.102/b14196/backrest003.htm
Regards
Nirmal

Hi,
You can give sys/passwd or oracle username/passwd depends on you are requirement.
If you want to take full backup the user should have privilege(EXP_FULL_DATABASE privilege).
You can check the below links for you are reference..
http://www.oracle-base.com/articles/11g/data-pump-enhancements-11gr1.php
Export full DB/Import full DB privilege
http://www.orafaq.com/wiki/Export
you are using expdp command right ? Dont use expdb...
Thanks ,
Srini ...
Edited by: Srini on Apr 18, 2012 6:31 AM

Similar Messages

  • How to backup database in Oracle 8.1.6

    Hello all,
    I have an odd question that i meet a error when i backup my
    database in Oracle 8.1.6 using backup management in DBA studio.
    I find the failed detail is verified error.why?but it be done in
    Oracle 8.0.5.
    Thank you ahead.
    Best Regards.
    Devon.Q

    Dear Amardeep,
    The OP opened 2 threads, one how to clone and other one how to rename a database 8. The article I send show how to clone the DB (one of the steps in the clone article is how to rename the DB from"PROD" to "Test"). ;)
    This is the other thread:
    easy way to clone database
    Cheers,
    Francisco Munoz Alvarez
    www.oraclenz.com

  • How to use icons (database, database backup, save, delete etc.) in Oracle f

    Hi Everyone,
    I am using Oracle forms 5.
    I want to use iconic buttons in Oracle forms 5 for database, database backup, save, delete etc.
    Example:
    Like Oracle Enterprise Manager, a GUI tool, we can see the different icons for different items (icon for database backup, database etc).
    How should I get these icons? How should I attach these icons to the buttons/Image item in Oracle Forms ?
    Should I give the file path of these icons in property palette of an item in Oracle forms?
    If yes, then which property of item, will I use in order to attach the icons?
    Please send the solution.
    If some one can also send the related icons, I will thankful to him.
    Regards
    Martin

    Hi FRANKS,
    Thanks for your useful information.
    WIth regards to attach icons to button/text item in Oracle forms,I am still facing problem.
    As you said, I created the parameter/variable UI_ICONS in Forms Home and gave the value pointing to the directory holding the .ico files.
    And then set the iconic property of the button and the icon's name without its extension.
    But it didn't work.Could ypu please let me know what is going wrong?
    I am thankful to you.
    Martin

  • Oracle database backup

    I want to format my hard disk. but i want to take a copy of my oracle database
    so anyone can please give me the solution for how to take a back up and again how to reload to my new oracle database? if it succeeded is it possible to retain all the schemas of my old database?

    One way to do this is to take a cole backup
    and restore with backup controlfile.
    1. alter database backup controlfile to trace
    2. find this trace and backup it to another drive
    3. shutdown immediate
    4. Backup you database files - if you don't know them (issue when db is open select name from v$session) on another drive5. format you r drive
    6. restore your files from backup
    7. Open trace file and creater a script from it yous copy and paste one of two cases
    8. if it is win nt. make an instance oradi,m -NEW -SID db
    9. sqlplus /nolog
    10. conn / as sysdba
    11. startup nomount
    12. execute script created in point 7
    For more detail instructions please refer to User Managed Backup and Recovery Guide
    Best Regards
    Krystian Zieja / mob

  • 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

  • Oracle Database Backup in ASCII format

    Hi All,
    I want to know,
    1. Is it possible to have oracle database backup in ASCII format
    Please let me know
    Thanks
    Arjun

    No, it isn't, as a proper backup is a physical copy of a database.
    As Oracle doesn't store data in ASCII, the backup also can't be ASCII.
    Why are you asking this? What is the business requirement?
    Sybrand Bakker
    Senior Oracle DBA

  • Any Simplifiede Script to Backup Oracle XE Database

    I need a script to backup XE Database
    i.e that script should put all the resultant backup filse at a specified location
    Similarly Restore script which should restore from those files.

    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

  • Backup Oracle Database On 24x7 System

    Dear Kamran
    First sorry my English.
    I am a beginner of oracle 10g and have a problem please help (Consult) me. If you are accept it
    My problem is a :
    Two oracle server with RAC (Clustering) and one external oracle server (BACKUP ORACLE SERVER) on the this network without RAC (Clustering) on the RHEL 4.7
    How to synchronize third oracle server’s database with RAC oracle servers. Becouse of if RAC Oracle servers down or technical corruption change corrupted server.
    Or other flexible solution tell me (how to do it)

    you can make the third oracle server as a physical standby database to RAC setup. for more information, read oracle doc "Dataguard basics and administration" from http://tahiti.oracle.com
    as other option, you can schedule a refresh job from RAC setup to third database server.

  • DBACockpit Configuration - Remote Database backup of Java Stack.

    Hi All,
    I am configuring remote database backup of my SAP Java stack system.
    I have successfully connected the system in dbacockpit. I have gateway installed also on the remote host system. but Database scheduling on DB13 failed.
    On the OS of CEN system, I can connect to the host system of the remote using the OPS$ logon and i.e
    sqlplus /@SID as sysdba  - (It connected, to confirm i querried the v$instance I was also able to shutdown the remote system)
    E:\>sqlplus /@SID as sysdba
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed May 18 15:37:46 2011
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    But when I ran the brtools to perform the backup I got this error.
    "BR0301W SQL error -12560 at location BrDbConnect-2, SQL statement:

    Hi Niyi,
    This is a TNS error. The system is not able to connect TNS by using br*tools.
    Firstly, check your environment variables. They should be as same as java system environmnt variables.
    Secondly, check the link below;
    [BR0301W SQL error -1017;
    You need to create a synonym and SAPUSER table for the gateway installation <sid>adm user on Java database. By doing so, br*tools will be able to connect to the java database.
    Best regards,
    Orkun Gedik

  • Need some suggestion doing database backup

    Hi All,
    I am working on the 11gR2 RAC oracle database and below are the details.
    SQL>select * from gv$version;
    INST_ID BANNER
    2 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    2 PL/SQL Release 11.2.0.1.0 - Production
    2 CORE 11.2.0.1.0 Production
    2 TNS for Linux: Version 11.2.0.1.0 - Production
    2 NLSRTL Version 11.2.0.1.0 - Production
    1 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    1 PL/SQL Release 11.2.0.1.0 - Production
    1 CORE 11.2.0.1.0 Production
    1 TNS for Linux: Version 11.2.0.1.0 - Production
    1 NLSRTL Version 11.2.0.1.0 - Production
    3 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    3 PL/SQL Release 11.2.0.1.0 - Production
    3 CORE 11.2.0.1.0 Production
    3 TNS for Linux: Version 11.2.0.1.0 - Production
    3 NLSRTL Version 11.2.0.1.0 - Production
    ps -ef|grep pmonoracle 11077 11067 0 10:37 pts/0 00:00:00 grep pmon
    oracle 12383 1 0 2011 ? 00:16:18 ora_pmon_cc2crt2
    oracle 12432 1 0 2011 ? 00:07:43 ora_pmon_cc3crt2
    oracle 12437 1 0 2011 ? 00:07:11 ora_pmon_cc4crt2
    oracle 12814 1 0 2011 ? 00:06:01 ora_pmon_ccoreqal2
    oracle 12816 1 0 2011 ? 00:05:50 ora_pmon_ccorecrt2
    I have 5 databases in these three severs and having around 20 GB of size except one database. The size of the this database (ccoreqal2) is 7.5 TB. I have took the full database backup using expdp for all DB's except the BIG size DB. i am not able to use the expdp because of the size. Which way is best to do the backup for this big size DB.
    The purpose of taking the backup is, we are upgrading our oracle to 11.2.0.3 and We don't have any regular backups (RMAN or EXPORT) on these databases. these are QA databases.
    Please let me know, how i need to prepare for this DB backup.
    Thanks in advance for your help.

    >
    i am not able to use the expdp because of the size
    >
    Why not? You can have expdp create multiple files on export so that each file is no larger than the size you specify. This makes it easier to manage large exports.
    Using multiple files and a parallel export will handle this for you.
    See the DUMPFILE section of the database utilities doc - http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_export.htm
    It has this example of file splitting using PARALLEL
    >
    Example
    The following is an example of using the DUMPFILE parameter:
    expdp hr/hr SCHEMAS=hr DIRECTORY=dpump_dir1 DUMPFILE=dpump_dir2:exp1.dmp,exp2%U.dmp PARALLEL=3
    The dump file, exp1.dmp, will be written to the path associated with the directory object dpump_dir2 because dpump_dir2 was specified as part of the dump file name, and therefore overrides the directory object specified with the DIRECTORY parameter. Because all three parallel processes will be given work to perform during this job, the exp201.dmp and exp202.dmp dump files will be created and they will be written to the path associated with the directory object, dpump_dir1, that was specified with the DIRECTORY parameter.

  • Getting error when try to backup oracle rac to another location

    Hi there,
    I am attempting to backup database to another location from a Oracle RAC database version 11gr2. Here is my script:
    #!/bin/ksh
    export ORACLE_SID=vvsms1
    ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME
    BASE_PATH=/usr/sbin:$PATH; export BASE_PATH
    PATH=$ORACLE_HOME/bin:$BASE_PATH; export PATH
    /u01/app/oracle/product/11.2.0/dbhome_1/bin/rman target sys/viviet@vvsms log /home/oracle/log_rman/vvsms.log append <<EOF
    RUN {
    CROSSCHECK BACKUP;
    CROSSCHECK ARCHIVELOG ALL;
    ALLOCATE CHANNEL CHANNEL1 TYPE DISK FORMAT '/home/oracle/backup/vvsms/backup_%U';
    BACKUP INCREMENTAL LEVEL 0 TAG 'incr_vvsms' DATABASE;
    BACKUP ARCHIVELOG ALL;
    DELETE OBSOLETE;
    RELEASE CHANNEL CHANNEL1;
    EXIT;
    EOF
    I write it into a .sh file and set crontab to run it. But when it run i get the error like these:
    Starting backup at 22-OCT-12
    channel CHANNEL1: starting incremental level 0 datafile backup set
    channel CHANNEL1: specifying datafile(s) in backup set
    input datafile file number=00002 name=+DISK2/vvsms/datafile/sysaux.289.794242439
    input datafile file number=00006 name=+DISK2/vvsms/datafile/ts_service.dbf
    input datafile file number=00007 name=+DISK2/vvsms/datafile/ts_viviet.dbf
    input datafile file number=00008 name=+DISK2/vvsms/datafile/viviet.dbf
    input datafile file number=00009 name=+DISK2/vvsms/datafile/ts_vivietct_primary.dbf
    input datafile file number=00003 name=+DISK2/vvsms/datafile/undotbs1.290.794242445
    input datafile file number=00001 name=+DISK2/vvsms/datafile/system.288.794242429
    input datafile file number=00004 name=+DISK2/vvsms/datafile/undotbs2.292.794242453
    input datafile file number=00005 name=+DISK2/vvsms/datafile/users.293.794242455
    channel CHANNEL1: starting piece 1 at 22-OCT-12
    released channel: CHANNEL1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on CHANNEL1 channel at 10/22/2012 01:50:16
    ORA-19504: failed to create file "/home/oracle/backup/vvsms/backup_2anobqu5_1_1"
    ORA-27040: file create error, unable to create file
    Linux-x86_64 Error: 2: No such file or directory
    I don't know what i'm wrong? The location is correct ("/home/oracle/backup/vvsms/).
    Please suggest me some things about it. What do i need to do?
    Thanks in advance!
    P/s: Sorry for my bad English.

    /u01/app/oracle/product/11.2.0/dbhome_1/bin/rman target sys/viviet@vvsms  log /home/oracle/log_rman/vvsms.log appendThis line can be your problem.
    As this database is a RAC and your are using a service with load balance "vvsms" and "/home/oracle/backup/vvsms" is not a shared location. RMAN is starting a session on Other node where "/home/oracle/backup/vvsms" does not exists.
    Try change it :
    /u01/app/oracle/product/11.2.0/dbhome_1/bin/rman target sys/viviet@vvsms  log /home/oracle/log_rman/vvsms.log appendTo this (using Easy Connect Method):
    /u01/app/oracle/product/11.2.0/dbhome_1/bin/rman target sys/viviet@localhost:1521/VVSMS  log /home/oracle/log_rman/vvsms.log appendWhere:
    localhost: your local node
    VVSMS : is the service of database
    Also check if "/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora" have configured the line "NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)"
    P.S : When RMAN start a session it show where is logged, check on logs what instance RMAN was logged.
    HTH,
    Levi Pereira

  • Why database backup information is not in rc_rman_status

    Hi,
    I used rman to backup dozen of databases. Only 3 database backup info is in rc_rman_status. I can see all databases fromrc_database. From EM console, every database target page shows the daily backup information. What happened?
    I need to create a report for daily backups of all databases. I want to pull information directly from rc_rman_status. Any suggestions?
    Thanks
    Laura

    Hello,
    It is possible that your recovery catalog is 10g but you have performed a backup using a lower RMAN client such as 9i. I believe RC_RMAN_STATUS is a 10g addition and hence the 9i RMAN client will not populate these tables. Obviously I can't guarantee this is your problem, but if you have a mixed Oracle environment, this is a high possibility.
    Hope that helps
    Andy

  • Daily database backup runnig on RAC 10.2.0.3 with two Solaris nodes & ASM

    Hello,
    I'm confused about making daily incremental RMAN backup of a database runnig on Oracle RAC 10.2.0.3 on two Solaris nodes and ASM.
    Databases cannot be stopped for backup and point in time recovery is needed.
    Please correct me if I am doing wrong:
    1) Backup must be Weekly database Level 0 and Daily database Level 1 is appropriate.
    2) Is best to use a Flash Recovery Area (FRA) - I've setup one on a separate ASM volume. I have enough space to do the backup on FRA.
    3) I am confused about the number channels I need to use. Do I need to use separate RMAN backup channels for each node or I can just leave the default:
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    4) Below are the RMAN scripts I plan to use for
    - Weekly database backup Level 0:
    #!/usr/bin/ksh
    echo BACKUP FULL: $ORACLE_HOME/bin/rman target / nocatalog log ${LOGFILE} append
    $ORACLE_HOME/bin/rman target / nocatalog log ${LOGFILE} append << eof
    run {
    backup incremental level 0 database TAG bkp_level0_200906010;
    SQL 'alter system archive log current';
    backup archivelog all;
    delete noprompt obsolete;
    exit;
    eof
    - Daily database backup Level 1:
    #!/usr/bin/ksh
    echo BACKUP INCREMENTAL: $ORACLE_HOME/bin/rman target / nocatalog log ${LOGFILE} append
    $ORACLE_HOME/bin/rman target / nocatalog log ${LOGFILE} append << eof
    run {
    backup incremental level 1 database TAG bkp_level1_20090611;
    SQL 'alter system archive log current';
    backup archivelog all;
    delete noprompt obsolete;
    exit;
    eof
    I'm I doing things wrong?

    Show also the parameter I have set for RMAN:
    node1:oracle$ rman target /
    Recovery Manager: Release 10.2.0.3.0 - Production on Tue Jun 9 23:46:05 2009
    connected to target database: ORCL (DBID=1198388159)
    RMAN> show all;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 7;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/oracle/product/10gr2/db/dbs/snapcf_orcl1.f'; # default
    Showing some instance parameters on node1:
    SQL> show parameter recovery;
    NAME                                 TYPE        VALUE
    db_recovery_file_dest                string      DGFRA+
    db_recovery_file_dest_size           big integer 300G
    recovery_parallelism                 integer     0
    SQL> show parameter archive;
    NAME                                 TYPE        VALUE
    archive_lag_target                   integer     0
    log_archive_config                   string
    log_archive_dest                     string
    log_archive_dest_1                   string
    log_archive_dest_10                  string      location=use_db_recovery_file_
    dest
    log_archive_dest_2                   string
    log_archive_dest_3                   string
    log_archive_dest_4                   string
    log_archive_dest_5                   string
    log_archive_dest_6                   string
    NAME                                 TYPE        VALUE
    log_archive_dest_7                   string
    log_archive_dest_8                   string
    log_archive_dest_9                   string
    log_archive_dest_state_1             string      enable
    log_archive_dest_state_10            string      enable
    log_archive_dest_state_2             string      enable
    log_archive_dest_state_3             string      enable
    log_archive_dest_state_4             string      enable
    log_archive_dest_state_5             string      enable
    log_archive_dest_state_6             string      enable
    log_archive_dest_state_7             string      enable
    NAME                                 TYPE        VALUE
    log_archive_dest_state_8             string      enable
    log_archive_dest_state_9             string      enable
    log_archive_duplex_dest              string
    log_archive_format                   string      %t_%s_%r.dbf
    log_archive_local_first              boolean     TRUE
    log_archive_max_processes            integer     2
    log_archive_min_succeed_dest         integer     1
    log_archive_start                    boolean     FALSE
    log_archive_trace                    integer     0
    remote_archive_enable                string      true
    standby_archive_dest                 string      ?/dbs/arch

  • Standby Database on Oracle 10g Standard Edition ?

    Hi All,
    Is it possible to do Oracle Stand By Database on Oracle 10g SE ?
    I read somewhere in this group that we can do standby database even in SE by writing a script that copy the archive log to the secondary server.
    Is this approach reliable enough to be done in production ?
    Does anybody have sample of the script ?
    Thank you for your help,
    xtanto

    Hi,
    Well, I think I'd beter put the scripts right there. Remember, they have been tested under MY environment, using MY releases, MY O.Ses. It's up to you to check whether the're valid for you. They are provided as is, for sample.
    There are 4 files:
    . generic.sh : you can duplicate this file in order to set up as many standby as needed, etc. It calls other scripts in order to:
    . archivemove.sh : Get the archived redo logs to the standby host
    . recover.sh : Synch the standby
    . getrecid.sql : get the maximum progess point on the Manual Standby (used by archivemove.sh)
    These scripts are used from the standby host. Remember to throughly check it before relying on it for production.
    generic.sh
    #!/bin/sh
    # Be sure environment variable are set. If not, then it might fail!
    # These environment variables are those for the Manual Physical Standby host
    export ORACLE_HOME=/logical/oracle/Ora9i
    export ORACLE_BASE=/logical/oracle
    export ORACLE_STANDBY=tns_alias
    export ORACLE_STANDBY_SYSDBA_PASS=change_on_install
    export PATH=$ORACLE_HOME/bin:$PATH
    export SOURCE_HOST=primary_host
    export SOURCE_DRIVE=/primary/absolute/path/to/archived/redo/logs
    export LOCAL_ARC_PARTH=/path/to/logical/archive/dest
    # Check the date command usage depending on the platform
    dateexec=`date "+%Y-%m-%d-%H-%M"`
    # copy archived redo logs from main database
    archivemove.sh > $dateexec.generic.log
    # recover/sync the Manual Standby Database
    recover.sh >> $dateexec.generic.log
    archivemove.sh
    #!/bin/sh
    echo ----------------------------------------------------------------
    echo ----------------------------------------------------------------
    echo Get what log has last been applied to: $ORACLE_STANDBY
    echo ----------------------------------------------------------------
    sqlplus /nolog @getrecid.sql $ORACLE_STANDBY
    echo ----------------------------------------------------------------
    maxval=`tail -1 recid.log`
    echo maxval=$maxval
    rm recid.log
    echo ----------------------------------------------------------------
    # Check source drive to see what we're missing locally (source = primary)
    for filename in `remsh $SOURCE_HOST 'ls $SOURCE_DRIVE' | sort`
    do
         # get archive number.
         # WARNING here I'm based on MY archived redo log name format! Put yours for the cut
         filename_parsed=`echo $filename | cut -c12-16`
         # Check if the number is after the last one applied to standby
         if [ $filename_parsed -gt $maxval ]
         then
              # grab it!
              echo $filename
              rcp $SOURCE_HOST:$SOURCE_DRIVE/$filename $LOCAL_ARC_PARTH
         fi
    done
    echo ----------------------------------------------------------------
    echo Removing old files
    echo ----------------------------------------------------------------
    # Check in local directory
    for filename in `ls $LOCAL_ARC_PATH | sort`
    do
         # WARNING again about filename format
         filename_parsed=`echo $filename | cut -c12-16`
         # Check the arc number...
         if [ $filename_parsed -lt `expr $maxval - 15` ]
         then
              # Delete it!
              echo $filename
              rm -f $LOCAL_ARC_PATH/$filename
         fi
    done
    echo ----------------------------------------------------------------
    echo end archivemove.sh
    echo ----------------------------------------------------------------
    recover.sh
    #!/bin/sh
    echo ----------------------------------------------------------------
    echo Traitement de la base $ORACLE_STANDBY
    echo ----------------------------------------------------------------
    sqlplus /nolog << EOF
    connect sys/$ORACLE_STANDBY_SYSDBA_PASS@$ORACLE_STANDBY as sysdba
    SELECT MAX(RECID) "Log id now" FROM V\$LOG_HISTORY;
    RECOVER AUTOMATIC DATABASE UNTIL CANCEL USING BACKUP CONTROLFILE
    CANCEL
    SELECT MAX(RECID) "Log id after recover" FROM V\$LOG_HISTORY;
    exit;
    EOF
    echo ----------------------------------------------------------------
    echo End of recovery process
    echo ----------------------------------------------------------------
    getrecid.sql
    connect sys/change_on_install@&1 as sysdba
    SET HEAD OFF FEEDBACK OFF VERIFY OFF TERMOUT ON ECHO OFF TRIMSPOOL ON SERVEROUTPUT OFF
    SPOOL recid.log
    SELECT MAX(RECID) FROM V$LOG_HISTORY;
    SPOOL OFF
    exitHTH building your own scripts.
    Yoann.

  • Full Database Backup in DB13 for MS SQL Server databases

    Hello,
    We have some SAP systems using the MS SQL Server database. I want to know if it is possible to setup the Full Database Backup option in transaction DB13 to store the files in a hard disk space.
    I already did this type of configuration in SAP systems in Oracle databases and for this I used the init<SID>.sap where we can put all the configuration, for instance the disk path where we want to save the backup files! But for MS SQL Server databases, in DB13, I don´t know how to do that, when I add the "Full Database Backup" option in DB13, this show me some options but only for tape, but I don´t want to store the backup files in tapes, I want to store/save the files on the server disk itself or else to an external disk but I don´t see where I can set this way of storage!
    This is what you see in DB13 (when using a MS SQL Server database) in "Full Database Backup" and as you see I only have options for TAPE not for a disk or other type of storage! How can I do that? (if that is possible):
    Can you help me please?
    Kind regards,
    samid raif

    Hello Raja
    Sorry for the delay of my answer! Many thanks for that tip, it helps a lot and it solve the last error/problem that I reported here, in fact, the problem was we had named the device with two words containing a space. So we removed that space from the backup device (in SQL management studio) with one word only and the job runs successfully without any errors!
    It works in Development and Quality systems but in our Production system (AM1) the Full backup option in DB13 stopped with the following error, in fact the error is on verification of backup, it means that the Full backup finished with success, but when it does the backup verification, the job in DB13 stops with an error, the following one:
    ***************************** SQL Job information   ******************************
    Jobname:    SAP CCMS Full DB Backup of AM1 [20140417103726-4-103726]
    Type:       TSQL
    DB-Name:    AM1
    For Run:    20140417  10:37:26
    **************************** Job history information  *****************************
    Stepname:   CCMS-step 1
    Command:    declare @exeStmt nvarchar(2000) exec am1.sap_backup_databases @dbList=
                "AM1",@r3Db="AM1",@bDev="fullprd",@expDays= 27,@jobName= "SAP CCMS Ful
                l DB Backup of AM1 [20140417103726-4-103726]",@bkupChecksum="Y",@bkupT
                ype="F",@nativeBkup="N",@exeDate = "20140417103726",@bkupSim = "N",@fo
                rmat = 0,@init = 0,@bkupDb = "AM1",@unload = 0,@exeStmt = @exeStmt OUT
                PUT
    Status:     (success)
    Message:    3014
    Severity:                                                                                                                                                                                                                                                    0
    Duration:   4  hours(s)  41 min(s) 22 sec(s)
    Last msg:   Executed as user: am1. Processed 7434328 pages for database 'AM1', fil
                e 'A01DATA1' on file 1. [SQLSTATE 01000] (Message 4035)  Processed 315
                1504 pages for database 'AM1', file 'A01DATA2' on file 1. [SQLSTATE 01
                000] (Message 4035)  Processed 4574152 pages for database 'AM1', file
                'A01DATA3' on file 1. [SQLSTATE 01000] (Message 4035)  Processed 44363
                92 pages for database 'AM1', file 'A01DATA4' on file 1. [SQLSTATE 0100
                0] (Message 4035)  Processed 25598 pages for database 'AM1', file 'A01
                LOG1' on file 1. [SQLSTATE 01000] (Message 4035)  BACKUP DATABASE succ
                essfully processed 19621974 pages in 16881.638 seconds (9.521 MB/sec).
                 [SQLSTATE 01000] (Message 3014).  The step succeeded.
                        <------------- End of Job Step History --------------->
    Stepname:   CCMS-step 2
    Command:    declare @exeStmt nvarchar(2000) exec am1.sap_verify_backups @nativeBku
                p = "N",@bkupSim = "N",@bDev = "fullprd",@bkupChecksum = "Y",@exeDate
                = "20140417103726",@unload = 1,@dbCnt =1,@exeStmt = @exeStmt OUTPUT
    Status:     (failure)
    Message:    3201
    Severity:                                                                                                                                                                                                                                                   16
    Duration:   0  hours(s)  8  min(s) 30 sec(s)
    Last msg:   Executed as user: am1. Cannot open backup device 'fullprd(\\10.0.0.45\
                backupsap\prd\prdfullqua.bak)'. Operating system error 1265(error not
                found). [SQLSTATE 42000] (Error 3201).  The step failed.
                        <------------- End of Job Step History --------------->
    **************************** Job history information  *****************************
    Can you help me please with this one!? Can you tell me why in verification it stops with that error?
    Kind regards,
    samid raif

Maybe you are looking for

  • Reading .log file & Sorting input

    Hello all Currently I'm working on a projekt were I have to read a "in.log" file, sort it and save it to another "out.log" file, the contents of the in.log file is: [204.0.44.73]: Dir: path [204.0.44.73]: Dir: path [204.0.44.74]: Dir: path [204.0.44.

  • Performance Issues with Correlated Subqueries

    Hi, We have a problem with the performance of correlated subquery. Please see below the query we use; select &ebenecolval, &attribalias from freq2 as tab1 where cnt_rank = (select min(cnt_rank) from freq2_&attribcolval as tab2 where tab1.&ebenecolval

  • CS - User Exit for initial checking for t-code IH10

    Hi all expert, I am new to CS, I want to know is there any user exit for CS, which can write my own authority check in the t-code IH10 (Display Equipment: Equipment selection) I want to add a authority group in the Customer master, so that when using

  • Returns from consumption

    Hello! Does anybody have knowledge on returns from consumption? The more exact question is if it is possible to creata a return PO with account assignment category F?  Regards, Ileana

  • Email if Notification is created for the same material number

    Hi,   IS it possible to get a email Automatically when a notification is created for the same material in last ___days/weeks. Thanks SM