自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 exp/imp

exp scott/scott@test file=scott.dmp log=scott.log tables=emp,dept constraints=n indexes=n imp scott1/scott1@test file=scott.dmp log=scott1.dmp tables=(emp,dept) fromuser=scott touser=scott1 commit

2012-11-29 10:27:24 639

原创 查看session及其对应运行的sql

select sql_id,machine,last_call_et esca_time,osuser,username ora_user from v$session where  username='scott' ORDER BY 2,1  select * from table(dbms_xplan.display_awr(&SQL_ID));  select sql_i

2012-11-27 16:55:09 5863

转载 在linux/aix下用邮件对表空间报警

自己写了一个表空间报警程序。针对自动扩展的数据文件,有一个file limitation的问题,如8k的数据库,数据文件的限制是32g,脚本针对这个问题也可以报警。1.setup service.txt -->将server 上需要监控的service 名写入一个文件:$more service.txtdb1db2db32.在每个数据库创建用户oper并授予以下权限gr

2012-11-27 10:55:54 524

原创 expdp/impdp tables

expdp \' / as sysdba \' directory=DATA_PUMP_DIR dumpfile=tpsp20121126.dmp logfile=tpsp20121126.log tables= scott.emp,scott.deptimpdp \' / as sysdba \'  directory=DATA_PUMP_DIR dumpfile=tpsp20121126.

2012-11-26 19:20:15 4398

转载 LENGTH,LENGTHB,LENGTHC,LENGTH2,LENGTH4的区别

具体说明如下:LENGTH(string1) 返回以字符为单位的长度.LENGTHB(string1) 返回以字节为单位的长度.LENGTHC(string1) 返回以Unicode完全字符为单位的长度.LENGTH2(string1) 返回以UCS2代码点为单位的长度.LENGTH4(string1) 返回以UCS4代码点为单位的长度.在不同的数据库,LENGTHB得

2012-11-26 13:45:00 6413

原创 using audit in oracle database 11g

由于要模拟系统操作,从数据库层面直接插入数据,于是跟踪应用系统的某个操作会在数据库层面产生那些dml语句。 1、一开始使用的是sql_trace ,发现sql trace 只跟踪select语句,由于要往db里面插入数据,因此就必须查询出所有的dml操作,一下是sql trace的具体操作 SQL> select sid,serial#,username ,osuser,machi

2012-11-22 16:39:33 546

转载 ATG Projects, Processes, Workflows and Workspaces

Going through the ATG documentation you will see these concepts used frequently. This entry is to help you understand these concepts so you have an easier time going through the ATG docs:A workflo

2012-11-21 17:09:45 595

原创 格式化sqlplus

格式化输出结果在select语句中,如果某个变量前面有&符号,表示该变量是一个替换变量,在执行select时,系统会提示用户为该变量提供一个具体的值SQL> select *       2  from scott.dept  3  where deptno = &v_dept  4  ;Enter value for v_dept: 20old   3: where

2012-11-12 20:10:15 1795

原创 common sql command

create pfile from spfile='/app/oracle/database/product/11.2.0/dbhome_1/dbs/spfilegome.ora'; create spfile from pfile='/app/oracle/database/product/11.2.0/dbhome_1/dbs/initgome.ora';

2012-11-12 18:26:15 348

原创 Can not Start the database server because of the host name changed

cd $ORACLE_HOME/network/adminvi listener.ora将××××改成修改后的host nameLISTENER =  (DESCRIPTION_LIST =    (DESCRIPTION =      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))      (ADDRESS = (

2012-11-12 11:05:48 641

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除