Vegas原創 imp exp匯入匯出資料

2021-09-05 20:08:00 字數 1903 閱讀 8102

imp:

1,當資料庫沒有此表時:

$ imp uid

/pwd

@erptest

file

=dts1202.dmp  tables

=salgbl

2,當資料庫有此表時:

imp uid

/pwd

@erptest1

file

=dts1202.dmp  tables

=salgbl ignore=y

3,匯入bach使用者的所有schema到dtowh資料庫時:

imp uid/pwd

@dtowh

file

=dtlb1210.dmp  fromuser

=bach touser

=bach

exp:

linux:#!/

bin/

bash

expuid

/pwd

@dtserp

file

=/u01//

oracle

/fin_monthlyend

/dts

/dtsfin`date 

'+%y%m

'`.dmp owner

=bach 

log=/

u01/

/oracle

/fin_monthlyend

/dts

/dtsfin`date 

'+%y%m'`.

log

windows:

setoracle_sid

=hisdb

setnls_lang

=american_america.zhs16gbk

seta

=%date:~10

,4%%date:~4

,2%%date:~7

,2%@echo%a

%exp

uid/

pwd@hisdb

file

=f:\hisdbdmp\hisdb_%a

%.dmp 

log=

f:\hisdbdmp\hisdb_log_%a

%.log

將乙個dmp檔案匯入到乙個新的資料庫,做測試使用:

如將原來的資料庫his的nhi使用者的dmp檔案,匯入到乙個新的test資料庫,使用者名為test,密碼為test,供測試使用:

1,create tablespace test:

create

tablespace test

logging

datafile

'f:\oracle\product\10.2.0\oradata\test\test.dbf

'size 50m

reuse autoextend

onnext

10m;

2,create user test:

create

user

test identified

bytest

default

tablespace test;

3,給test使用者賦予許可權:

grant

connect,resource,dba

totest;

4,匯入原nhi使用者的資料:

imp test

/test

@test

file

=f:\abc\hisdb_20100204.dmp

log=

f:\abc\hisdb_20100204.

logfromuser

=nhi touser

=test

注意:1,imp時,不要將sys的內容匯入~

Vegas原創 sendkeys例項

需求 將excel檔更新提醒關閉,並另存為a xls.dimwshset wsh wscript.createobject wscript.shell wsh.run 每日生產狀況表.xls wscript.sleep 1000 wsh.sendkeys wscript.sleep 100wsh.s...

Vegas原創 TextBox換行

看見網上好多人說textbox換行後,資料庫或是label顯示不出來,我今天給大家介紹乙個小小的秘訣吧 strsubject txttitle.text.trim replace system.environment.newline,試一下 附 system.environment成員和方法 1.獲...

Vegas原創 sendkeys例項

需求 將excel檔更新提醒關閉,並另存為a xls.dimwsh setwsh wscript.createobject wscript.shell wsh.run 每日生產狀況表.xls wscript.sleep 1000 wsh.sendkeys wscript.sleep 100wsh.s...