Secure Backup Command line

Hi,
is it possible to start secure Backup to tape from a script
with RMAN commands ?? Or only possible with
Enterprise Manager ??
regards
Gerhard

After creating tc-tape device with obtool and mdev command I can use this RMAN script to backup the database.
$ORACLE_HOME/bin/rman TARGET / <<EOF
run {
ALLOCATE CHANNEL c1 DEVICE TYPE 'SBT' PARMS 'ENV=(OB_DEVICE=tc-tape)';
BACKUP database;
RELEASE CHANNEL c1;
EXIT
EOF
After creating a default media family I can use this RMAN script
$ORACLE_HOME/bin/rman TARGET / <<EOF
SHOW ALL;
run {
allocate channel oem_backup_sbt1 type 'SBT_TAPE' format '%U' maxpiecesize 15000 M;
backup incremental level 0 cumulative filesperset = 3 as BACKUPSET tag '%TAG' database;
backup filesperset = 3 as BACKUPSET tag '%TAG' archivelog all not backed up delete all input;
release channel oem_backup_sbt1;
allocate channel for maintenance type 'SBT_TAPE' parms '';
delete noprompt obsolete device type 'SBT_TAPE';
release channel;
EXIT
EOF

Similar Messages

  • Backup command line?

    Hi all,
    I've just taken over as the admin at a new job and it turns out the backups using Retrospect have been extremely problematic, in that it will hang when attempted to access the autoloader.
    Now this sounds like a hardware issue, but not having used Retrospect before, I'd like to rule it out before I start ripping out SCSI cards and testing the drive.
    Is there a command line utility that can talk to the tape drive?
    Thanks!
    Matt

    Is this a SCSI autoloader?
    BRU has a CLI component that can communicate with the tape drive. The drive's vendor should have tools that do the same to get information. Exabyte has vxaTool and libTool that work -- as long as the device is working properly.
    What's your setup?
    There are a number of open source tools that will work, but I don't know if they have any means of dealing with firewire devices. OS X doesn't have a /dev/tape or similar, so it complicates things a little.

  • Security on HBR using Command Line

    Is it possible to setup and remove HBR security using command line? There is a command line utility to launch HBRs, Is there a similar way to update security programmatically, rather than manually changing it.

    Unfortunately you can't set the security by command line, in V11 you can use LCM to export/import business rules which contain provisioning but this a is a full rule and it is not so clever at overwriting if the rule already exists.
    If you are on V11 and using calc manager then you can use a utility to import the security.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • WbAdmin Delete Backup command not supported in 8.1 Pro x64

    Hello
    I've searched for how to delete specific backups that I've created using the elevated Power Shell command "wbAdmin start backup -backupTarget:E: -include:C: -allCritical -quiet" but I've run into a roadblock.
    The problem is that none
    of the "wbadmin delete xxx" commands are actually supported in Win8.1 Pro 64-bit (6.3, Build 9600). If I type "wbadmin delete /?", I get:
    ---- Commands Supported ----
    DELETE CATALOG                     -- Deletes the backup catalog.
    DELETE SYSTEMSTATEBACKUP  -- Deletes one or more system state backups.
    DELETE BACKUP                       -- Deletes one or more backups.
    However, when I try to use ANY delete command (for example, to delete a specific backup version that was identified using "Wbadmin get versions"), I get this error:
    PS C:\WINDOWS\system32> wbadmin delete backup -version:06/26/2014-07:29
    wbadmin 1.0 - Backup command-line tool
    (C) Copyright 2013 Microsoft Corporation. All rights reserved.
    Warning:  The DELETE BACKUP command is not supported in this version of Windows.
    The operation ended before completion.
    The same thing happens if I use -deleteOldest, with or without the -backupTarget switch.
    Does anyone know why the Delete command is not available on 8.1? Is there a patch, workaround or alternate method of deleting specific backup images?

    Yolanda, thank you for confirming the issue and for pointing me to a solution. I really appreciate it!
    I have looked at the cmdlet reference page tried to use the commands but it appears that they do not work on my system. For example:
    PS C:\WINDOWS\system32> remove-wbcatalog
    remove-wbcatalog : The term 'remove-wbcatalog' is not recognized as the name of a cmdlet, function, script file, or
    operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
    again.
    At line:1 char:1
    + remove-wbcatalog
    + ~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (remove-wbcatalog:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    Also, if I type the help command listed on the reference page, get-help -module windowsserverbackup, the only reponse is a blank command prompt. Do I need to install the windowsserverbackup functionality separately? It does not seem
    to be built-in.

  • I want to set password security on a pdf from the command line

    I have a pdf file that is created and placed on a report server.  I would like to run a batch cmd to set the security for that pdf based on a saved security policy.  I will call the batch cmd file from a batch application.  Can Acrobat XI handle this operation or do I need a third party tool.  The pdf is created by BI Publisher (Peoplesoft).
    Thanks,
    Jay

    You need to invoke your cmd manually, don't you? So, instead of opening the Terminal application, enter the command and press "Enter" you open Acrobat and click a button. It's a different manual step to start the process, but you need a manual step to start the process anyway. I do realize that you may have a bash/perl/python script that does more than just apply encryption but that's the capability that Acrobat has.
    Regretfully, Acrobat JavaScript API does not provide functionality to encrypt with password. You can use JS to encrypt with certificates but [for unknown to me reason] not with passwords. Otherwise it could've written a JS script that encrypts, embed this JS in a separate PDF, open that PDF from a command line with your JS script executing on Open and have this LS script do all the work you need. Well, you can do that for certificate encryption but not for password encryption. I don't know why. And you cannot invoke an action from  a JS either. Oh, well...

  • How to restore or backup Apex application from Command line ? URGENT

    We have Oracle apex 4.1 installed in Oracle 11g R2 database (windows 64-bit) 2008 R2
    For some reason our database dictionary objects are corrupted.
    We wanted to backup our Apex applications in some workspaces ASAP.
    We are not able to access apex from http://localhost:7777/pls/apex/htmldb_login
    We have an underlying database schema export (expdp).
    1) Is there a way to export or backup the apex application without logging into the apex URL ? if yes how ?
    2) Does Oracle has any of its own native tool to backup and restore from command line ?
    Thanks in advance

    My (MS Windows) experience, if I may; perhaps you'll find something useful.
    You'll find the README.TXT file in /apex/utilities directory. Read it.
    In order to use APEXExport, you need JDK version 1.5 or higher. Check your version by typing (and viewing the result):
    C:\>java –version
    java version "1.6.0_06"
    Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
    Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)Its directory should be part of the PATH environment variable: on my computer, directory name isC:\Program Files\Java\jre1.6.0_06\binFurthermore, Oracle JDBC class libraries must be part of the CLASSPATH environment variable. Check whether it exists (in Control Panel - System - Advanced - Environment Variables). For my 10gXE, it is here:C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jarI couldn't make it work; didn't know that ".\" directory must be entered into CLASSPATH as well (found that information in Arie Geller's book). Therefore, my final CLASSPATH version is:.\;C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jarOK, setup is done. Now, go to your /apex/utilities directory and, from the command prompt, run (mind the upper case!)java oracle.apex.APEXExportwhich will show a short help.
    I chose to export the whole workspace. In order to do that, I need the workspace ID (got it from Apex's SQL Workshop; that might be a problem as you can't get there, can you? I can't tell how to find that information apart from SQL Workshop, but I'm pretty sure someone, who is much more experienced than me, will know it). OK, here's how you find it:select v('WORKSPACE_ID') from dual;Finally, here's the final step - export:C:\apex\utilities>java oracle.apex.APEXExport -db localhost:1521:xe -user scott -password tiger -workspaceid 1038408092496568The result are fxxx.sql files (where "xxx" represents application number).
    I hope you'll manage to export your applications; basically, nothing special here (except that ".\" directory in the CLASSPATH variable).
    Best of luck!

  • How are Windows Server Backup and Command Line Tools used in vCSHB installation?

    How are Windows Server Backup and Command Line Tools used during the installation of vCSHB?  Is it required in all types of deployments (PtoV, VtoV, PtoP)? Is it used to create the files that are put in the file share for the second node to use during vCSHB installation or is it only used during a vCSHB clone operation of a Physical to Physical deployment?  Are these tools not used in some deployments?

    You need Windows Server Backup installed on source and destination, and during the installation of vCSHB the installer will invoke the wbadmin (Windows Server Backup Utility) and will backup configuration and application data (application data is optimal but can decrease the sync time after installation of secondary node). On the secondary node you will need only run the vCSHB installer and everything will be restored.
    Check this blog entry for some more info about some problems in P2P deployment: http://www.vcoportal.de/2013/12/vmware-vcenter-server-heartbeat-restore-on-a-second-node-a-journey/

  • Backup user account with command line

    I am trying to set up a command line script (bash alias, actually) that will let me backup my entire user account to an externa firewire. Right now I am using
    rsync -a -u --delete --stats /Users/me /Volumes/FW_Backup/me/
    but I get about 500 meg less data at the destination as I have at the source and I get a command line response saying that some files could not be copies for permissions reasons.
    Would it fix things to run this command under Sudo or is there a better way to be sure I have a complete clone of my user account syncronized whenever the command is run (I am aware that there are multiple GUI resolutions to this but prefer to use the free native tools so I can roll it out to multiple Macs).

    I did try that but if I recall properly you wind up with other permissions problems - in the case of root not having permissions to the user. So I simply excluded the troublesome paths:
    code
    rsync -a -u --exclude Library/Caches/ --exclude Library/Preferences/ --delete --stats /Users/Richard /Volumes/rich_backup/
    And that has worked, but now I have a new problem: if the network share is not mounted, rsync will simply create the directory /volumes/rich_backup on the hard disk and rsync to it! This is a obviously a problem should I or other users forget to mount the network share intended for backup. So I need to figure out how to get the command to error out if the network share is not present. I tried to begin the script with
    code
    ls /volumes/rich_backup &&
    in order to get it to error out if the share was not present and it worked on my Tiger system, but on a customer's Panther system the script does not error out! Can anyone help me with some code that will intentially break my backup script if the destination volume is nor present?
    Dual 2.7 PowerMac Mac OS X (10.4.2)

  • Rpass - Secure, simple, and pluggable command-line password management

    WARNING: this program requires a python version greater than or equal to 3.
    EDIT: Fixed a bunch of bugs that made this unusable, please update!
    EDIT: Added a default configuration file.
    Hi there!
    rpass is a command-line password manager that encrypts any and all credentials you would like to store using gpg's algorithms.
    Gnome and Mac OS both have a universal credential solution, but to my knowledge there is no such generic linux application. Gnome's keyring code is long and personally, I don't trust it as much as the simple system I have in place in rpass - it is transparent and easy to understand, and any possible security holes would be blatantly visible.
    rpass can be used directly from the commandline, typing your master password (gpg passphrase) in every time, but it really shines when gpg-agent and xclip are installed. gpg-agent saves your passphrase for an interval of time, so you only have to authenticate yourself occaisonally, and the powerful search capabilities of rpass (regex-enabled) allow simple and quick account selection.
    Furthermore, with xclip installed passwords NEVER have to be printed onscreen - the first matching entry's password is automatically copied to the clipboard if a search is done with rpass. You can even run rpass from applications like 'dmenu', and although there will be no visible output, if you enter a search term after rpass you will have the password you wanted copied to your clipboard.
    Finally, it can also be easily integrated in other applications -- I use it for my email (mutt) and any script I write that requires a password.
    AUR Link: http://aur.archlinux.org/packages.php?ID=44788
    More detailed documentation and explanation can be found at: https://github.com/rscare/rpass/blob/ma … E.asciidoc (scroll down)
    or with
    $ man rpass
    after installation.
    git repository: git://github.com/rscare/rpass.git
    Please comment on the software and the documentation. Thank you very much for taking the time to try my software.
    Last edited by RedScare (2010-12-27 07:04:44)

    I'm very interested in this. However... on the initial run, pressing enter causes a crash:
    $ rpass
    Need to first create gpg key pair.
    Choose a secure passphrase -- this is going to be your master password.
    Rerun program after key creation.
    WARNING: DO NOT pick a sign-only key type.
    Press [ENTER] when ready.
    Traceback (most recent call last):
    File "/usr/bin/rpass_py_interface", line 80, in <module>
    input("Press [ENTER] when ready.")
    File "<string>", line 0
    ^
    SyntaxError: unexpected EOF while parsing
    I got around this by entering junk and I made my key. After rerunning rpass with the key generated:
    $ rpass
    Traceback (most recent call last):
    File "/usr/bin/rpass_py_interface", line 84, in <module>
    if not(IsRunning(gpg-agent)):
    File "/usr/lib/python2.7/site-packages/rpass.py", line 24, in IsRunning
    plist = [re.match(ppatt, p.strip()).groups()[0] for p in str(proc.communicate()[0], encoding=utf-8).split(n)[1:-1]]
    TypeError: str() takes at most 1 argument (2 given)
    Looks like rpass expects the gpg-agent to be running when it starts.
    edit: rather, it expects the gpg-agent to be running with the key loaded. gpg-agent was already loaded thanks to keychain but without my newly created key known to it.
    Last edited by falconindy (2010-12-26 03:42:28)

  • How to validate backuped SQL DB by command line ?

    I am beginner of SQLDB and uses SQL2008.
    How could I validate that backuped SQL DB file are OK(restorable ) by command line(not by GUI)  ?

    Hello,
    By running a RESTORE VERIFYONLY (Transact-SQL) command using the
    sqlcmd Utility
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Enable, backup and restore FCSvr in command line

    Hi All,
    Anyone know how to enable, backup and restore Final Cut Server in command line?
    Thanks,
    Spin

    First delete the /var/db/FinalCutServer/ folder and ran the Final Cut Server.dmg file to reinstall.
    Next grab your most recent backup and moved the "-" file to the desktop (this contains the database restoration script).
    Open up a command window and execute the following commands:
    cd "/Library/Application Support/Final Cut Server/Final Cut Server.bundle/Contents/Resources/sbin/"
    ./fcsvr_run psql px pxdb
    From the psql command prompt execute this command, substituting the path to your "-" database script:
    \i /Users/finalcutserver/Desktop/-
    After that finished executing I was able to start Final Cut Server and so far it looks as though everything has been restored! Fingers crossed...

  • Command line transfer of TM backup to Time Capsule

    I have just purchased a new 3TB Time Capsule to replace my ailing 750GB Firewire drive as my Time Machine Backup drive. However, the 750GB drive has none TM files on it, that I do not want to transfer to the new Time Capsule (see details below)
    file://localhost/Volumes/LaCie%20BackUp/Backups.backupdb/
    file://localhost/Volumes/LaCie%20BackUp/IBM%20DDRS-39130D%20Media/
    file://localhost/Volumes/LaCie%20BackUp/Orphans%20Folder/
    file://localhost/Volumes/LaCie%20BackUp/Files%20from%20Server/
    The reason I am doing it this way is also because my old drive occassionaly goes into a 'pause' that requires me to disconnect it from my MacBook Pro and reconnect it to try again. Thus I need to be able to transfer my backup files in smaller chunks than a whole disk image would entail, so that if the drive stops, I can pick up from the point of failure and carry on rather than start from scratch again.
    Only the Backups.backupdb needs to be transferred to the Time Capsule, so I don't want to use Disk Utility and have been trying to copy the relevant backup directories using Terminal and the 'cp' command as SuperUser. However, I am finding that even so I am getting error messages back stating 'Operation not permitted', mainly to do with cp trying to run 'lchmod'.
    I have read the existing FAQ article https://discussions.apple.com/message/11422415#5 and have all the correct journaling settings, etc. and the data seems to be transferring fine. Just not sure yet if I will have fully functional backups when I have finished.
    Any command line help such as using the appropriate flags, etc. would be helpful.
    Thanks, Russ

    Pondini's notes are quite useful and I tried using SuperDuper and Disk Utility. I transferred my backups from my old 750GB Firewire400 backup drive to my new 3TB Time Capsule using both of them. Each time I tried, the transfer took to an inordinately long time - it failed any time up to a maximum of 18 hours from starting, the best only achieved about 90% transfer!
    Also, I discovered by monitoring my MacBook's performance with Activity Monitor that both these programs are CPU intensive and indicated between 150% to 200% activity (both CPUs virtually maxed out), mostly with Finder activity. This was the limiting factor in the transfer and the process was achieving peak Disk I/O and network transfer rates of 10MB/s. The MacBook's fans were running full-blast during this time just trying to keep the thing cool!
    I eventually found the most efficient method to transfer backups by reading through some of the Unix command manual pages and discovered Apple Software Restore (ASR). This command is used as the underlying tool by both SuperDuper and Disk Utility and does all the actual work. The final transfer tool less than 7 hours.
    Network Transfer Rate 36MB/s (sustained)
    Disk I/O Rate 52MB/s (peak), >32MB/s (sustained)
    CPU activity 20% (peak), <15% (typical)
    Main process is 'diskimages-helper'
    The reason it works much better is that only the essential work is being done and that the command allows you to alter the buffer size to make it more efficient for the larger file transfer method. The whole transfer was therefore limited purely by the maximum transfer speed of the Firewire 400 drive itself. So here is how I did it using terminal:
    $ su
    Password:
    [change to superuser so you don't have problems with passwords and permissions, etc.]
    sh-3.2# nice -n -20 asr restore --source <source drive> --target <target drive> --erase --noprompt --allowfragmentedcatalog --buffers 8 --buffersize 64m --noverify
    Validating target...done
    Validating source...done
    Repartitioning target device...done
    Warning: You may not be able to start up a computer with the target volume.
    Validating sizes...done
    Restoring  ....10....20....30....40....50....60....70....80....90....100
    Remounting target volume...done
    After mounting the resulting Time Capsule BackUp, it had the name of my old drive, which confused me somewhat, so I simply renamed it in the Finder.
    Explanation:
    The 'nice -n -20' command tells the OS X kernal to prioritise the commands that follow by giving them preferential access to CPU time (kind of like putting go-faster-stripes on).
    The <source drive> is selected by dragging the drive icon onto the terminal window.
    The <target drive>  has to have been created first by running an initial Time Machine Backup on the Time Capsule, which creates the .sparsebundle directory. Once this is created, stop Time Machine, then use the finder to log onto the Time Capsule and double click the .sparsebundle file. This will mount a disk called 'Time Capsule Backup'. Drag this image onto the terminal window as the target drive.
    --erase removes any other stuff on the target drive and matches the journaling to the source drive
    --noprompt stops you getting "do you want to continue? messages
    --allowfragmentedcatalog ensures the directory catalogue on the source drive is read as is
    --buffers 8 the default is 8, but I tried it with different numbers of buffers, but it didn't affect transfer speeds much
    --buffersize 64m this made the most difference as the default is 1MB. Changing the buffer size makes the biggest impact as large file transfers work better when you give them large buffers.
    --noverify - I used this as the transfer itself takes so long that I wasn't really wanting to wait for it to verify as well. On the occasions that I left it to verify, that function operated at a VERY slow speed and would have taken more than 100 hours to complete. I did not have the patience to investigate as to why that was, but essentially the data transfer rate during that stage was <2MB/s. Whatever was causing it to run so slow was not limited by any resources on my MacBook Pro or the network connection, so I will let someone else work out what the issue was there.

  • How do I initialize a trust database (Security Create Database) in Iplanet6 web server from the Solaris command line?

     

    Hi,
    There is no option to create trust database from command line. You have to do it from GUI only.
    Thanks,
    Daks.

  • Command line installation options for Ironport Email Security Plug-in

    We're getting ready to implement email encryption with our C160.  I want to deploy the Outlook plug-in to my users using SCCM.  According to the administrator guide I should be able to do this however I have downloaded the current version of the plug-in and it doesn't seem to support the command line options described in the administrator guide.  Specifically the /f1 switch (page 3-17 of admin guide) used to pass the setup.iss file doesn't work.  This command is then referenced to be used for the distribution package in SCCM.  I'm trying to use CiscoEmailSecurity-7-1-1-002.exe.
    Am I missing something?  Or has something changed in the deployment method?  Thanks for your help.

    Hi Scott,
    Can you include the exact syntax your using?
    it should look like this,
       Start /w CiscoEmailSecurity_7-1-1-002.exe /s /v /qn /f1"J:\install_711002.iss
    Christopher C Smith
    CSE
    Cisco IronPort Customer Support

  • Oracle Secure Backup error: 'No such file or directory'

    Hi,
    could you help me to fix the following issue?
    RMAN> run {   ALLOCATE CHANNEL c1 DEVICE TYPE sbt PARMS='SBT_LIBRARY=C:\windows\
    system32\orasbt.dll' ; backup database format 'CF_%d_%T_s%sp%pt%t'; }
    using target database control file instead of recovery catalog
    allocated channel: c1
    channel c1: SID=8 device type=SBT_TAPE
    channel c1: Oracle Secure BackupStarting backup at 26-OCT-09
    channel c1: starting full datafile backup set
    channel c1: specifying datafile(s) in backup set
    input datafile file number=00001 name=C:\APP\AIME\ORADATA\ORCL\SYSTEM01.DBF
    input datafile file number=00002 name=C:\APP\AIME\ORADATA\ORCL\SYSAUX01.DBF
    input datafile file number=00003 name=C:\APP\AIME\ORADATA\ORCL\UNDOTBS01.DBF
    input datafile file number=00004 name=C:\APP\AIME\ORADATA\ORCL\USERS01.DBF
    input datafile file number=00005 name=C:\APP\AIME\PRODUCT\11.2.0\DBHOME_1\DATABA
    SE\TBS_5.F
    channel c1: starting piece 1 at 26-OCT-09
    released channel: c1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on c1 channel at 10/26/2009 00:20:54
    ORA-19506: failed to create sequential file, name="CF_ORCL_20091026_s10p1t701223
    652", parms=""
    ORA-27028: skgfqcre: sbtbackup returned error
    ORA-19511: Error received from media manager layer, error text:
    sbt__rpc_cat_query: Query for piece CF_ORCL_20091026_s10p1t701223652 failed.
    (Oracle Secure Backup error: 'No such file or directory').
    Thanks,
    jun

    You can work entirely in Xcode by using the command-line tool template in C. Xcode > File > New > Project > Command-Line Tool > Next > Language: C > Next > Create.
    If you do want to work on the command line, you may as well just use the "clang" program instead. The "gcc" tool is just a compatibility tool for existing scripts that are expecting the actual "gcc" program. Apple hasn't used the real "gcc" for years. (Read up on the GPLv3 for more information.)
    The gcc/clang arguments are the same. The "-c" flag instructs the compiler to only compile a single .c file into a .o object file. It won't create an executable. If you are only compiling a single source file, just omit the "-c" flag and the compiler will create an executable named "a.out" that you can run by typing "./a.out". You can specify "-o <executable name>" if you want to specify a name. Once you get more than a handful of source files, using the terminal starts to become a hassle. At that point, you definitely want to start using Xcode.
    I'm not sure why you would try to compile "helloworlddot1.c" and then get an error message about "filename.c". Something else is wrong.
    If you are working in the Terminal, it is easiest to use the "cd" command to move into the same directory as your source files. Then you don't have to keep typing the full path.
    It is hard to say what the "best" community is. There are many to choose from.

Maybe you are looking for