Hide RMAN Passwords when Connecting to a Target Database (Doc ID 183377.1)
How to Hide RMAN Passwords when Connecting to a Target Database (Doc ID 183377.1)
goal: How to connect to RMAN from the operating system command line and hide authentication information
fix: There are three options available to hide the password :- Method 1 ======== Run the CONNECT commands at the RMAN prompt % rman RMAN> CONNECT TARGET sys/target_pwd@target_str RMAN> CONNECT CATALOG rman/cat_pwd@cat_str Method 2 ======== Run a command file at the RMAN prompt that contains the connection information. Create execute-only privileges on the command file. For example, if running RMAN in an UNIX environment:- 1. Start RMAN without connecting to any databases: % rman 2. Place the connection information in a text file. For example, place the following lines in a file called connect_rman: CONNECT TARGET sys/target_pwd@target_str CONNECT CATALOG rman/cat_pwd@cat_str 3. Change the permissions on the connect script so that everyone can execute the script but only the desired users have read access. For example, enter: % chmod 711 connect_rman 4. Run the script from the RMAN prompt to connect to the target and catalog databases. For example: RMAN> @connect_rman Method 3 ========= Run RMAN using the cmdfile option by using the following lines in the backup script file:- set echo off; @ connect target sys/my_secret_password; set echo on; There are four ways to run the cmdfile :- (1) cmdfile option on rman command: $ rman cmdfile scriptname.rm (2) Unix file redirection: $ rman < scriptname.rm (3) Unix pipe: $ cat scriptname.rm | rman (4) RMAN's "@" command: $ echo '@scriptname.rm' | rman
|
|
- Oracle Database Products > Oracle Database Suite > Oracle Database > Oracle Database - Standard Edition > Recovery Manager
- Oracle Database Products > Oracle Database Suite > Oracle Database > Oracle Database - Personal Edition > Recovery Manager
- Oracle Database Products > Oracle Database Suite > Oracle Database > Oracle Database - Enterprise Edition > Recovery Manager
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1160625/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle10G RMAN Database Duplication (Doc ID 259694.1)OracleDatabase
- Performing duplicate database with ASM/OMF/RMAN (Doc ID 340848.1)ORMDatabaseASM
- Can Tapes Be Used For RMAN Convert Database (Doc ID 563816.1)Database
- RMAN10g: backup copy of database (Doc ID 266980.1)Database
- RMAN DUPLICATE Without Connecting To Target DB For Both Disk & Tape_1375864.1
- 【RMAN】RMAN-20001: target database not found in recoveryDatabase
- 【RMAN】RMAN-05001: auxiliary filename conflicts with the target databaseUXDatabase
- RMAN-05541: no archived logs found in target databaseHiveDatabase
- 11g rman新特性 duplicate target database for standby from active databaseDatabase
- Connecting to Nomounted databaseDatabase
- EXP-00106:Invalid Database Link PasswordsDatabase
- RMAN-20005: target database name is ambiguousDatabase
- rman duplicate target database RMAN-03002 RMAN-03015 RMAN-06136Database
- “rman target /” 和 “rman nocatalog target /” 區別
- dequeueReusableCellWithIdentifier vs dequeueReusableCellWithIdentifier : forIndexPathIDEIndex
- * Master Note: Database Performance Overview (Doc ID 402983.1)ASTDatabaseORMView
- Troubleshooting Database Hang Issues (Doc ID 1378583.1)Database
- How to Duplicate a Database in NOARCHIVELOG mode (Doc ID 275480.1)DatabaseHive
- RMAN-20001: target database not found in recovery catalogDatabase
- RMAN-05517: temporary file conflicts with file used by target database(zt)Database
- "rman target /” 和"rman nocatalog target /”區別實踐
- RMAN : Consistent Backup, Restore and Recovery using RMAN (Doc ID 162855.1)REST
- Vip Does Not Failover When Nodeapps Stopped (Doc ID 749160.1)AIAPP
- How To Size the Database Smart Flash Cache (Doc ID 1317950.1)Database
- Protecting Your Database: Specifying Passwords for Users SYS and SYSTEM (70)Database
- jQuery hide()jQueryIDE
- RMAN Backup Shell Script Example (Doc ID 137181.1)
- RMAN 11g Import catalog fails RMAN-6429 (Doc ID 457392.1)ImportAI
- How To List All The Named Events Set For A Database (Doc ID 436036.1)Database
- Information On Installed Database Components and Schemas (Doc ID 472937.1)ORMDatabase
- Recover database after disk loss (Doc ID 230829.1)Database
- Rman Backup Failed With Error Rman-00600 [8201] (Doc ID 412786.1)AIError
- RMAN Restore Performance from Tape is Very Poor (Doc ID 850988.1)RESTORM
- rman target / debug trace
- rman: can't open target
- Hide的用法IDE
- Hide the User MenuIDE
- Troubleshooting: Connecting to SQL Server When System Administrators Are Locked OutSQLServer