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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RMAN -- Frequently Asked Question (FAQ) (Doc ID 469777.1)
- How to Collect Diagnostics for Database Hanging Issues (Doc ID 452358.1)Database
- [轉帖]Release Schedule of Current Database Releases (Doc ID 742060.1)Database
- Password is required when adding a database to AG group if the database has a master keyUIDatabaseAST
- What is the Impact on the Database When Modifying the OS DateDatabase
- Oracle 最新PSU (Doc ID 2118136.2)Oracle
- expdp/impdp變慢 (Doc ID 2469587.1)
- Reading and Understanding Systemstate Dumps (Doc ID 423153.1)
- ORA-00843,ORA-00849 When Trying To Change SGA_TARGET With MEMORY_MAX_TARGET=0
- ROS報錯The target name "test" is reserved when CTest testing is enabledROS
- Oracle 下載最新psu (Doc ID 2118136.2)Oracle
- Converting Oracle Database from Linux to Windows using RMANOracleDatabaseLinuxWindows
- RMAN restore validate database報ORA-19693RESTDatabase
- PRCT-1011 : Failed to run "oifcfg" (Doc ID 1380183.1)AI
- 使用RMAN複製資料庫 active database資料庫Database
- Incorrect MEMORY_MAX_TARGET (> Available RAM) Can Lead To Database HangsAIDatabase
- 【CURSOR】How to Monitor and tune Open and Cached Cursors (Doc ID 1430255.1)
- HowTo Restore RMAN Disk backups of RAC Database to Single Instance On Another NoRESTDatabase
- 理解RMAN backup database plus archivelog delete all input命令DatabaseHivedelete
- Migration Of An Oracle Database Across OS Platforms [ID 733205.1]OracleDatabaseROSPlatform
- rfs (PID:146054): Database mount ID mismatch案例Database
- PL/SQL package SYS.DBMS_BACKUP_RESTORE version 19.16.00.00 in TARGET database isSQLPackageRESTDatabase
- Physical Standby Switchover_status Showing Not Allowed. (Doc ID 1392763.1)
- oracle11g: Scheduler Maintenance Tasks or Autotasks (Doc ID 756734.1)OracleAINaN
- 【DBA】Relinking Oracle Home 常見問題 (Doc ID 2048232.1)Oracle
- How To Replicate Data from Oracle to Postgres Using GoldenGate (Doc ID 1544137.1OracleGo
- 11g-Reduce Transportable Tablespace Downtime using XTTS (Doc ID 1389592.1)TTS
- 透過RMAN備份standby database成功恢復還原Database
- Can GoldenGate Replicate An Oracle Table That Contains Only CLOB Column(s)? (Doc ID 971833.1)GoOracleAI
- ORA-12801 AND ORA-01031 ONLY WHEN OGG DDL TRIGGER IS ENABLED [ID 1280235.1]
- crsd.bin Fail With Error CRS-1019 When ohasd Restarted (文件 ID 2291799.1)AIErrorREST
- 12c DG新特性 - Active Data Guard Far Sync (Doc ID 2179719.1)
- 【GRID】Grid Infrastructure 啟動的五大問題 (Doc ID 1526147.1)ASTStruct
- 【DATAGUARD】Data Guard 12C 新特性:Far Sync Standby (Doc ID 2179719.1)
- RMAN restore fails with ORA-01180: can not create datafile 1 (文件 ID 1265151.1)RESTAI
- ORA-04063: package body SYS.DBMS_REGISTRY_SYS has errors (Doc ID 2165402.1)PackageError
- rman duplicate建立異地auxiliary Database oracle_11g oracle_sid不同UXDatabaseOracle
- rman duplicate建立異地auxiliary Database oracle_11g oracle_sid相同UXDatabaseOracle
- 【ASM】ORA-27504 ORA-27300 ORA-27303 while starting ASM (Doc ID 2281441.1)ASMWhile