Data Guard物理備庫的主備切換1.查看狀態主庫:SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;SWITCHOVER_STATUS------------------------------------------------------------TO STANDBY //可以轉換成備庫備庫:SQL> SELECT
8.3.3 Using Transportable Tablespaces with a Physical Standby Database8.3.3 物理備庫使用傳輸資料表空間You can use the Oracle transportable tablespaces feature to move a subset of an Oracle database and plug it in to another Oracle database, essentially moving
從Oracle 11.2.0.2開始提供了使用者重新命名的新特性,在以前的版本中,如果需要rename username我們一般使用imp的fromuser、touser,資料泵impdp的remap_schemas。如果說我們要匯入一個schema資料替代以前的schema,並且之前的schema需要保留,那麼可以rename之前的使用者。SYS AS SYSDBA@devcedb>select * from v$version; BANNER -----------
10.2.0.5 on windows 64 bit 現象:從一個 server A拷貝backupset 至另一個server B。在server B上恢複。首先使用‘catalog start with ’編錄backupset . 在恢複資料庫的時候出現: RMAN> restore database force;Starting restore at 31-MAY-14 using channel ORA_DISK_1
建表前如何判斷表是否存在呢,因為table是不支援replace的。下面的sql能幫到你。create前先判斷表是否存在。例如,如果存在則drop掉那個表。當然你也可以定義自己的操作。 declare v_cnt Number; begin select count(*) into v_cnt from user_tables where upper(table_name) like '%TMP_CLOB_SQL%'; if v_cnt>0 then
1. 建立目錄SQL> create directory dump_file as ‘/db/backup’;2. 目錄賦許可權SQL> grant read,write on directorydump_file to bam; 查看目錄SQL> select * from dba_directories;3. 備份SQL>expdp user/pwd directory=dump_filedumpfile=expdp_%U.dmp