随笔分类 -  oracle

摘要:1. 日期和字符转换函数用法(to_date,to_char) select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') as nowTime from dual; //日期转化为字符串 select to_char(sysdate,'yyyy') as now 阅读全文
posted @ 2019-11-15 11:23 千年佬妖 阅读(29267) 评论(0) 推荐(0)
摘要:需要一些前提条件: 1、对方的主机能被连接(如在同一局域网内) 2、需要知道对方数据库IP、端口号、服务名 3、需要知道对方提供的管理数据库的用户名及密码 连接方法: 1、在本地的oracle安装目录,找到tnsnames.ora文件,一般在~\oracle\product\10.2.0\db_1\ 阅读全文
posted @ 2019-03-06 13:01 千年佬妖 阅读(6539) 评论(0) 推荐(0)
摘要:1,先到Oracle站点下载Instant Client : http://www.oracle.com/technology/global/cn/software/tech/oci/instantclient/index.html 依据你的操作系统选择不同的Instant Client版本号 下载 阅读全文
posted @ 2019-03-06 11:41 千年佬妖 阅读(3005) 评论(0) 推荐(0)