08 2012 档案

摘要:http://www.oracle-dba-online.com/data_pump_utility.htmhttp://www.oracle-scripts.net/http://www.idevelopment.info/ 阅读全文
posted @ 2012-08-30 19:30 jefflu99 阅读(112) 评论(0) 推荐(0) 编辑
摘要:一.Instant Clint 说明Toad,PL/SQL dev 工具都不能使用64位的Oracle,所以每次都安装32位的,也很麻烦,为了解决这个问题,可以使用Oracle 的Instant client。官网的说明:http://www.oracle.com/technetwork/cn/database/features/instant-client/index-092537-zhs.html利 用 Instant Client,您无需安装标准的 Oracle 客户端或拥有 ORACLE_HOME 就可运行应用程序。OCI、OCCI、Pro*C、ODBC 和 JDBC 应用程序无需进行 阅读全文
posted @ 2012-08-29 14:44 jefflu99 阅读(1145) 评论(0) 推荐(0) 编辑
摘要:使用Windows 命令行压缩程序 Winrar,在SQL存储过程中压缩Excel文件。Winrar 压缩解压软件几乎人人都会用,但是对于搞程序开发的朋友来说, 命令行压缩解压有时候更有用。这不,最近有个需求是这样的: 利用 SQL Server 存储过程检查数据库中的错误数据, 并把这些错误数据导入 Excel 格式数据文件, 然后通过 DB Email 发给用户。可惜的是,Excel 数据文件太大,有 20 MB 左右,邮件发送不了。这时候就需要在 SQL 存储过程中实现自动压缩 Excel 文件的功能。如何实现呢?我们知道 SQL Server 中还没有内置这样的压缩解压 功能,唯一的办 阅读全文
posted @ 2012-08-29 11:51 jefflu99 阅读(989) 评论(0) 推荐(0) 编辑
摘要:Replace the SQL> Prompt with the Current User Nameby Jeff Hunter, Sr. Database AdministratorIn order to replace the SQL> prompt with the current user name, edit ORACLE_HOME/sqlplus/admin/glogin.sql and add:set sqlprompt '_user> 'Test the new SQL prompt:$ sqlplus scott/tigerSQL*Plus: 阅读全文
posted @ 2012-08-28 23:42 jefflu99 阅读(189) 评论(0) 推荐(0) 编辑
摘要:This article presents some basic techniques for creating Windows batch files and UNIX/Linux shell scripts that connect to SQL*Plus and RMAN.WindowsUNIX and Linux (Method 1)UNIX and Linux (Method 2)UNIX and Linux (Returning values from SQL)WindowsTo run an SQL script using SQL*Plus, place the SQL alo 阅读全文
posted @ 2012-08-28 23:37 jefflu99 阅读(235) 评论(0) 推荐(0) 编辑
摘要:1. Check the size of each table on specific schema ;SQL> select segment_name,bytes/1024/1024 as mb from user_segments;SEGMENT_NAME MB-------------------- ----------SALES 542. 阅读全文
posted @ 2012-08-26 16:59 jefflu99 阅读(329) 评论(0) 推荐(0) 编辑
摘要:数据仓库之LDAP原文:http://baike.baidu.com/view/159263.htmLDAP是轻量目录访问协议,英文全称是Lightweight Directory Access Protocol,一般都简称为LDAP。它是基于X.500标准的,但是简单多了并且可以根据需要定制。与X.500不同,LDAP支持TCP/IP, 这对访问Internet是必须的。LDAP的核心规范在RFC中都有定义,所有与LDAP相关的RFC都可以在LDAPman RFC网页中找到。 简单说来,LDAP是一个得到关于人或者资源的集中、静态数据的快速方式。 LDAP是一个用来发布目录信息到许多不同.. 阅读全文
posted @ 2012-08-22 10:54 jefflu99 阅读(535) 评论(0) 推荐(0) 编辑
摘要:Fabian -- Thanks for the question regarding "parallel select from remote site", version 10.2.0.3Submitted on 20-Jun-2011 12:57 Central time zoneTom's latest followup | Bookmark | BottomLast updated 19-Mar-2012 10:19You AskedHi Tom (and other readers) I'm searching for solution how 阅读全文
posted @ 2012-08-20 16:37 jefflu99 阅读(911) 评论(0) 推荐(0) 编辑
摘要:Question:I have an sql like this:Insert into ASelect * from B;Now I want it to run in parallel. My question is to parallelize the insert or select or both? See the following sqls, can you tell me which one is correct or which one has best performance. I don't have dba permission, so I cann't 阅读全文
posted @ 2012-08-20 09:51 jefflu99 阅读(560) 评论(0) 推荐(1) 编辑
摘要:Oracle SQL Hints/*+ hint *//*+ hint(argument) *//*+ hint(argument-1 argument-2) */All hints except /*+ rule */ cause the CBO to be used. Therefore, it is good practise to analyze the underlying tables if hints are used (or the query is fully hinted.There should be no schema names in hints. Hints mus 阅读全文
posted @ 2012-08-19 23:57 jefflu99 阅读(448) 评论(0) 推荐(0) 编辑
摘要:使用append提示进行insert叫做直接路径加载插入,使用这种提示因为系统不去查找freelist链表中的空闲块,直接在高水标记位以上插入数据,因此速度比较快。但是也应该注意直接路径加载插入有一些不同:1.它不记录日志,因此一旦插入的数据在没有保存回磁盘的时候发生掉电之类的状况插入的数据不能重做。2.它比较浪费磁盘空间,有心的同学可以做个简单的实验,创建个空表,用insert 插一些数据,然后delete掉,然后再用insert插一些数据,再delete掉,这样反复操作,最终用delete把表清空,然后用下面的语句查一下表的大小,可以看到一个空表占了可怕的磁盘空间!Select round 阅读全文
posted @ 2012-08-19 23:47 jefflu99 阅读(2289) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示