随笔分类 -  数据库

expdp/impdp
摘要:1、c:\>sqlplus user1/password@db2、sql>create directory dmpdp as 'C:\data';本地创建文件夹,然后dmp文件放到这个文件夹里3、sql>grant read, write on directory dmpdp to user1;4、 阅读全文
posted @ 2016-10-24 18:11 10cn.net 阅读(206) 评论(0) 推荐(0)
远程DB访问(跨服务器创建DB连接)
摘要:问题描述:误操作,将本地TBL中数据删了。解决案预定: 考虑从他人PC中将数据再拽过来。[代码]注意:上述代码的Step1 和 Step2 必须分别执行。说明: 以上实施环境是MS-SQL2008,估计在Oracle中也差不多。 阅读全文
posted @ 2010-12-02 17:06 10cn.net 阅读(281) 评论(0) 推荐(0)
FOR vROW_CUR IN vCUR(PARA1, PARA2) LOOP の使い方
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--PROCEDURESET_SW_PROACTIVE_DATA(vBAT_NOKK_SW_WK.BAT_NO%TYPE,vBAT_SEQ_NOKK_SW_WK.BAT_SEQ_NO%TYPE)ISCUR... 阅读全文
posted @ 2010-03-09 14:29 10cn.net 阅读(6122) 评论(0) 推荐(0)
Oracle中复制表结构和表数据
摘要:2. 只复制表结构: create table table_name_new as select * from table_name_old where 1=2; 或者: create table table_name_new like table_name_old 阅读全文
posted @ 2009-07-19 17:30 10cn.net 阅读(356) 评论(0) 推荐(0)
Create User
摘要:CREATE USER "CSM30" PROFILE "DEFAULT" IDENTIFIED BY "csm30" DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP" ACCOUNT UNLOCK; GRANT "CONNECT" TO "CSM30" WITH ADMIN OPTION; GRANT "DBA" TO "CSM30" WITH ADMIN OPTION; 阅读全文
posted @ 2007-12-10 19:52 10cn.net 阅读(267) 评论(0) 推荐(0)
Oracle: import tables use .dmp file in PL/SQL Developer
摘要:1st: create tablespace and create temporary tablespace. 2nd: create user, and then set tablespace and temporary tablespace. 3rd: import tables. 阅读全文
posted @ 2007-04-24 18:31 10cn.net 阅读(700) 评论(0) 推荐(0)
Create tablespace and Alter tablespace(Alter datebase)
摘要:create tablespace create temporary tablespace 阅读全文
posted @ 2007-04-24 14:46 10cn.net 阅读(1028) 评论(0) 推荐(0)
DBNull 与 Null
摘要:一直困扰很多人的两个概念。 阅读全文
posted @ 2006-05-30 10:04 10cn.net 阅读(257) 评论(0) 推荐(0)
.Net 技术分类汇总
摘要:作成字典,便于查阅。 阅读全文
posted @ 2006-05-16 09:31 10cn.net 阅读(415) 评论(0) 推荐(0)
Oracle 常用
摘要:Get MAX Update_timestamp SQL SELECT to_char(MAX(update_timestamp), 'yyyymmddhh24miss.sssss') lastUpadateTime FROM t_itemorder WHERE itemorder_num = '184' return : 20060123164734.60454 SELECT to_char(... 阅读全文
posted @ 2006-02-17 09:41 10cn.net 阅读(283) 评论(0) 推荐(0)