在同乙個機器上覆制資料庫

2021-08-26 13:37:56 字數 2911 閱讀 1274

將ibs庫複製為orcl1庫。

在兩個庫上建立密碼檔案:

set oracle_sid=ibs

orapwd file=f:\bbcldb\orcl1\pwdibs1.ora password=system entries=30

set oracle_sid=orcl1

orapwd file=f:\bbcldb\orcl1\pwdorcl1.ora password=system entries=30

建立乙個新的服務

oradim -new -sid orcl1

修改主庫、輔助資料庫的監聽 tnsname.ora檔案

ibs 的引數檔案:

orcl1的引數檔案:

兩個檔案中主要是這三行要加上。

set oracle_sid=ibs

c:\users\administrator>rman target sys/system auxiliary sys/system@orcl1

recovery manager: release 11.2.0.1.0 - production on fri dec 30 18:09:41 2011

connected to target database: ibs (dbid=623540487)

connected to auxiliary database: orcl1 (not mounted)

rman> duplicate target database to orcl1 from active database nofilenamecheck;

starting duplicate db at 30-dec-11

using target database control file instead of recovery catalog

allocated channel: ora_aux_disk_1

channel ora_aux_disk_1: sid=201 device type=disk

sql statement: alter system set db_name = ''ibs'' comment= ''modified by rman

duplicate'' scope=spfile

sql statement: alter system set db_unique_name = ''orcl1'' comment= ''modified

by rman duplicate'' scope=spfile

oracle instance shut down

oracle instance started

total system global area 9820950528 bytes

fixed size 2184112 bytes

variable size 5033167952 bytes

database buffers 4764729344 bytes

redo buffers 20869120 bytes

starting restore at 30-dec-11

allocated channel: ora_aux_disk_1

channel ora_aux_disk_1: sid=193 device type=disk

channel ora_aux_disk_1: copied control file copy

finished restore at 30-dec-11

database mounted

contents of memory script:

executing memory script

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

executing command: set newname

starting backup at 30-dec-11

using channel ora_disk_1

channel ora_disk_1: starting datafile copy

input datafile file number=00007 name=f:\bbcldb\ibs\ibs\datalrg01.dbf

在同乙個程式中結合C

在同乙個程式中結合c 和c 在同乙個程式中結合c 以及c我們需要注意的4大主題 1.name mangling 名稱重整 2.statics 靜態物件初始化 3.動態記憶體分配 4.資料結構的相容性。對於名稱重整 我們知道在c 中由於過載的存在我們需要對函式的名稱進行重整,但是c的函式我們就不需要重...

nginx 同乙個IP上配置多個HTTPS主機

最近公司網域名稱更變,同時,又要新舊網域名稱同時執行。那麼,對於https的網域名稱在同乙個ip上如何同時存在多個虛擬主機呢?遂,檢視了下nginx手冊,有這麼一段內容,如下 如果在同乙個ip上配置多個https主機,會出現乙個很普遍的問題 1 2 3 4 5 6 7 8 9 10 11 12 13...

nginx 同乙個IP上配置多個HTTPS主機

最近公司網域名稱更變,同時,又要新舊網域名稱同時執行。那麼,對於https的網域名稱在同乙個ip上如何同時存在多個虛擬主機呢?遂,檢視了下nginx手冊,有這麼一段內容,如下 如果在同乙個ip上配置多個https主機,會出現乙個很普遍的問題 server server server server 那...