create table as select 默认值问题
在维护数据的过程中,有时候为了业务需要,采用了create table table_backup as select 这种方法而把原表删除掉,把备份表改名为原表,除了要加主键,索引,触发器,最容易忘的是默认值忘记加的话,...
An Example of How Oracle Works
The following example describes the most basic level of operations that Oracleperforms. This illustrates an Oracle configuration where the user and associatedserver process are on separate machines (c...
sqlserver日志文件总结及充满处理 (摘)
交易日志(Transaction logs)是数据库结构中非常重要但又经常被忽略的部分。由于它并不像数据库中的schema那样活跃,因此很少有人关注交易日志。 交易日志是针对数据库改变所做的记录,它可以记录针对数据库的任...
oracle concepts 目录重温学习
This document contains:Part I: What Is Oracle?Chapter 1, "Introduction to the Oracle Server"This chapter provides an overview of the concepts and features you need forunderstanding the Oracle data s...
获取某库某个存储过程内容
如何用sql从mssql中查出某个存储过程里面的原码use 库名sp_helptext 'sp_who'
mssql bcp 工具用法和查看角色存储过程
导出数据bcp 库名.dbo.表名 out c:\表名.dat -T -n 导入到另外一个库上首先要在这个库上建立好相同的表名bcp 库名.dbo.表名 in c:\表名.dat -T -n查看存储过程权限和角色权限use LCUs...
建一个用户来备份另外一个用户的数据
puber上的一个帖子:http://www.itpub.net/thread-927626-1-2.html: 解决方法:先用system用户赋予test用户EXP_FULL_DATABASE角色; exp test/test file=/oracle/backup/001.dmp log=/oracle/back...
归档目录满或删除,把归档日志自动转移到另一个目录的设置方法
log_archive_dest _3='location=d:\archpaul\ NOREOPEN ALTERNATE=LOG_ARCHIVE_DEST_4'log_archive_dest _4='location=d:\backup\ NOREOPEN OPTIONAL'log_archive_dest_state_3=ENABLElog_archive_dest_...
转载:人成长中必须知道的20个故事
1、断箭 不相信自己的意志,永远也做不成将军。 春秋战国时代,一位父亲和他的儿子出征打战。父亲已做了将军,儿子还只是马前卒。又一阵号角吹响,战鼓雷鸣了,父亲庄严地托起一个箭囊,其中插着一只箭。父亲郑重...
在服务器增加参数文件event事件语法错误的解决
alter system set event="10203 trace name context forever off" scope=spfile 参数需要重启才生效 shutdown immediate 关闭数据库 paul@TEST(192.168.1.117)> startup; ORA-02194: event specification syntax err...
如何发现远程服务器上某端口正在监听的ORACLE实例/服务
今天在论坛上看到一个帖子, http://www.itpub.net/838293.html 不知道数据库的SID名,客户端有无办法连接上去? 自己按照方法测试了一下,确实是挺方便的,可以当一回黑客了,呵呵 测试如下: host改为服务器IP地址,前提...
dump index 的层次结构
SQL>create table test (a number);SQL> begin 2 for i in 1..2000 loop 3 insert into test values(i); 4 end loop; 5 commit; 6 end; 7 ...
面试外企dba失败
第一关口语和听力都没过, 不过自己口语和听力的水平是知道的,几乎听不懂,和说不出来 看来想进外企,口语和听力以后要加强了...
explain plan 的用法
SQL> explain plan for select * from test where flag=:a;Explained.SQL> select * from table(dbms_xplan.display);PLAN_TABLE_OUTPUT--------...
获取数据库中所有隐藏参数
SELECT ksppinm, ksppstvl, ksppdesc FROM x$ksppi x, x$ksppcv y WHERE x.indx = y.indx AND translate(ksppinm,'_','#') like '#%' order by ksppinm; KSPPINM&...
Event 10046 - Enable SQL Statement Trace
This event can be used to dump SQL statements executed by a session with execution plans and statistics. Bind variable and wait statistics can optionally be included. Level 12 is the most detailed. Fo...
如何启用sqlplus的AutoTrace功能
D:\oracle\ora92>sqlplus /nolog SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 6月 3 15:16:03 2003 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. SQL> connect sys as sysdba 请输...
exists 的问题
今天同事发以下两个sql来问我,怎么运行结果一样Select Id From Tb_Admin_Role Where Exists (Select Id From Tb_Admin_Role Connect By Pr...
object_id与data_object_id的关系
object_id 是逻辑对象IDdata_object_id 是物理对象IDSQL> create table test as select rownum rn from dba_objects;Table created.SQL> select object_id,data_object_id from dba_objects where object_name='...
重读eygle的<<深入浅出oracle>>
今天周六,在家无事,就把2006年买的<<深入浅出oracle>>重新拿出来看了一下,以前看的时候有很多地方不明白,随着工作的深入和自己不断学习,今天看的时候有很多以前不知道的今天都明白了呵呵,可高兴死我了看来...