Enable/Disable constraints, Linux copy

来源:互联网 发布:时空软件 药店 编辑:程序博客网 时间:2024/05/29 08:25

--Disable

select 'alter table '||table_name||' disable constraint '||constraint_name||' ;' from user_constraints where constraint_type = 'R';

--Enable

select 'alter table '||table_name||' enable constraint '||constraint_name||' ;' from user_constraints where constraint_type = 'R';

 

scp %file% username@host:remote directory

e.g. upload conf file to directory my

scp /etc/lilo.conf my@www.***.com:/home/my

 

scp username@host:remotedirectory localdirectory

e.g. download abc.conf to local maxrocray

scp k@www.****.com:/etc/abc.conf /maxrocray