2019年3月30日

oracle sql developer 创建数据库链接

摘要: sql developer中 创建 dblink,创建时,用户名 和密码都不需要加引号 create database link ykt_dblink2connect to account identified by passwordusing '192.168.1.2:1521/orcl'; 阅读全文

posted @ 2019-03-30 12:28 LynnChen 阅读(290) 评论(0) 推荐(0) 编辑

2019年3月29日

oracle 的 exp 和imp命令

摘要: 数据导出: 1 将数据库TEST完全导出,用户名gdoa 密码123 导出到D:\TEST_BK.dmp中 exp gdoa/123@TEST file=d:\TEST_BK.dmp full=y 或 exp gdoa/123@TEST file=d:\TEST_BK.dmp 2 将数据库中gdoa 阅读全文

posted @ 2019-03-29 13:22 LynnChen 阅读(3621) 评论(0) 推荐(0) 编辑

linux scp传输文件命令

摘要: scp -r /opt/test root@192.168.2.105:/opt 阅读全文

posted @ 2019-03-29 12:54 LynnChen 阅读(115) 评论(0) 推荐(0) 编辑

2019年3月27日

排名问题

摘要: 通过系统标识的ID排名,可以保证名次没有重复的。 replace(to_char(sqrq,'yyyymm')||to_char(dense_rank() over(partition by to_char(sqrq,'yyyy-mm') order by id ),'0000'),' ','') 阅读全文

posted @ 2019-03-27 16:10 LynnChen 阅读(105) 评论(0) 推荐(0) 编辑

2019年3月26日

listagg乱码问题

摘要: listagg(to_char(ts.tsmc),',') within GROUP (order by xs.xh) ,先将字段to_char 以后,就可以解决 阅读全文

posted @ 2019-03-26 17:54 LynnChen 阅读(316) 评论(0) 推荐(0) 编辑

oracle impdp导入脚本

摘要: 第一步:sqlplus: sys下面 create directory data_dir as '/home/oracle/dmp/user'; 第二步:sqlplus: sys下面grant read,write on directory data_dir to user; 第三步:linux 的 阅读全文

posted @ 2019-03-26 16:31 LynnChen 阅读(820) 评论(0) 推荐(0) 编辑

导航