Bo's Oracle Station

查看: 1617|回复: 0

课程第9次(2017-03-13星期一)

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2017-3-14 09:27:49 | 显示全部楼层 |阅读模式
上完1Z0-052第6章:网络
1Z0-051共12章(上完0章),1Z0-052共19章(上完3章),1Z0-053共21章(上完0章)
总共上完全部52章中的3章

  1. select  * from v_$dispatcher  d
  2. where d.PADDR =(select c.DISPATCHER  from v_$circuit  c);

  3. select  s.SQL_HASH_VALUE, s.SQL_ID  from v_$session s
  4. where s.SADDR  in (select    c.SADDR  from v_$circuit c)
  5. and s.USERNAME='SH' ;

  6. select  * from v_$sql  s  where s.SQL_ID='99b5r5nhrwjkg';

  7. grant create database link to hr;

  8. ---
  9. create database link dblink1
  10. connect to hr identified by hr
  11. using 'orcl199';

  12. select  salary from employees@dblink1 where employee_id=100;

  13. update employees@dblink1 set salary=50000 where employee_id=100;

  14.   create database link dblink2
  15. connect to hr identified by hr
  16. using '(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = station199)(PORT = 1521))  (CONNECT_DATA =
  17.       (SERVER = DEDICATED)      (SERVICE_NAME = utforcl.example.com)    )  )';
  18.       
  19.      select  salary from employees@dblink2 where employee_id=100;  
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-3-28 23:22 , Processed in 0.036564 second(s), 24 queries .

快速回复 返回顶部 返回列表