ITeye博客

mocca3in1

mocca3in1 · 共 42 篇文章

oracle当前的连接数

怎样查看oracle当前的连接数呢? select * from v$session where username is not null select username,count(username) from v$session where username is not null group by username #查看不同用户的连接数 select count( ) from v$process select count( ) from v$session #连接数 Select count(*) from v$session where status='ACTIVE' #并发连接…

2012-11-14 15:37 · oracle · 评论(0)

oracle之spfile与pfile

或者先用create pfile from spfile 创建到系统目录下, 然后在shutdown , 再删除spfile; 在startup OracleSQLSQL Server pfile(Initialization Parameter File)用于Oracle8i,在oracle9i中也可以用,以文本形式存在,可以用文本编辑器对其中参数进行修改。 spfile(Server-Side Initialization Parameter File)用于oracle9i,以二进制文本形式存在,不能用文本编辑器对其中参数进行修改。Spfile改正了pfile管理混乱的问题,在多结点的环…

2012-11-14 14:01 · oracle · 评论(0)

execl hyperlink

fomular tab "show fomular" botton switch to 域状态 =HYPERLINK(CONCATENATE("",CELL("filename"))-SEARCH("Sheet2!A10"), A10)

2012-03-09 18:38 · 评论(0)

oracle awr report 报告

Taking an AWR snapshot (10g and beyond) EXEC dbms_workload_repository.create_snapshot; Taking a STATSPACK snapshot: EXEC statspack.snap; To execute a STATSPACK or AWR report, go to your $ORACLE_HOME/rdbms/admin directory and run: all awr report: awrrpt.sql spreport.sql for specific sql: @?/rdbms/ad…

2012-02-29 10:43 · oracle awr snapshot · 评论(0)

oracle 冷备份

冷备份数据必须是数据库不在open状态下,对数据库进用数据备份。 具体操作: (1): 关闭DB : shutdown immediate; (2):copy oradata目录下的所有文件, 包括数据文件, 控制文件,redo,等,还需要copy 密码文件 在目录ora92下 的database 中的pwd 文件.全部copy到一个安全目录中。在sql 下可以直接加一个 host 然后使用dos命令。如host copy ............. (3):如果是操作系统的重新安装,只要是同样系统,同样数据库版本,是可以做冷备恢复。一下谈的是系统的重新安装后的步骤。 (4):正常安装ora…

2012-02-23 15:26 · oracle 冷备份 · 评论(0)

oracle uninstall

Manual Oracle Uninstall A number of people have contacted me regarding problems uninstalling Oracle products. The two methods listed below should only be used as a last resort and will remove all Oracle software allowing a reinstall. If you make any mistakes they can be quite destructive so be care…

2012-02-23 14:57 · oracle · 评论(0)

oracle batch script

一个简单的例子,备忘

2011-08-12 13:39 · oracle batch script · 评论(0)

oracle job

create table ttemp( c_time date, c_seq number(38) ) create or replace procedure my_collect as begin insert into ttemp(c_time, c_seq) select sysdate, p.last_updated_seq from poller p; end --exec my_collect declare job1 number; begin sys.dbms_job.submit(job => job1, what => 'my_collect;', next_date =…

2011-01-18 11:29 · 评论(0)

oracle 日期显示英文格式

from:http://blog.csdn.net/meboy88scofiled/archive/2009/12/19/5035045.aspx 我们初学者安装oracle的时候,字符集选择的一般是简体中文的格式,这方便我们英文不好的菜鸟,出错的时候定位错误,但是有一个问题伴随出现,我们写关于日期的sql的语句,我们想要英文的格式怎么办?下面有两个办法: 连接到数据库后,我们使用如下语句 ALTER SESSION SET NLS_DATE_LANGUAGE='AMERICAN' 需要注意的是,断开数据库连接后,字符集会还原到默认中文字符集 2.我们定义日期格式的时候,也可以利用语句使用英…

2011-01-07 15:19 · 评论(0)

ORACLE I/O 性能分析浅析

http://hi.baidu.com/tantea/blog/item/dba61bce3b4bd230f9dc6151.html ORACLE I/O 性能分析浅析 2010-06-25 17:48 ORACLE I/O性能分析步骤: 1,性能分析的几个原则: a, 检查消息的成功率。(成功率必须>99%,否则测试无意义) b, 监测日志,不应出现异常。 2,分析CPU负荷。(mpstat可看多CPU情况,top->1可查看cpu情况) 命令:mpstat -P ALL 2 10 3,再查找哪个磁盘I/O吃紧 (iostat -x 1) 命令:iostat -x 1 注意:r/s+w/s…

2010-12-13 15:36 · 评论(0)

电子邮件系统

http://blog.chinaunix.net/u3/112561/showart_2221604.html 一、电子邮件系统的概念: 电子邮件也就是我们所说的E-mail。对于E-mail我们应该是比较熟悉的,我们每个人也应该有自己的邮箱,比如:163、雅虎、126、139、 gmail、foxmail等等。简单来说电子邮件是人们通过计算机网络进行信息传递的一种通信方式。而邮件系统是一种能够书写、发送、存储和接收信件的电子通信系统。它通常采用存储转发机制进行邮件通讯。也就是邮件发送者可以随时随地发送邮件,不要求邮件接收者同时在线。邮件接收者可以在方便的时候读取邮件,不受时间和地理位置的…

2010-12-09 15:45 · 评论(0)

使用jdb调试时的命令

转载:http://blog.csdn.net/kingquake21/archive/2010/03/11/5369827.aspx ** 命令列表 ** connectors - 列出此 VM 中可用的连接器和传送器 run ] - 开始执行应用程序的主类 threads - 列出线程 thread <线程 ID> - 设置默认线程 suspend - 暂停线程(默认为所有线程) resume - 恢复线程(默认为所有线程) 其中 - 转储线程的堆栈 其中 - 转储线程的堆栈,以及 pc 信息 up - 向上移动线程的堆栈 down - 向下移动线程的堆栈 kill <线程 ID> <表…

2010-12-07 16:14 · 评论(0)

java 远程调试 监控

1 通过beanshell的remote server http://www.beanshell.org/manual/remotemode.html 2 JDPA(javac -g) 2.1 -Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=n 2.2 jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=1044 suspend thread set = <表达式> (set Main.member=5)

2010-12-07 16:03 · 评论(0)

oracle table analyze rebuild index

//index info select i.index_name, i.distinct_keys, i.num_rows from user_indexes i, user_ind_columns c where i.index_name = c.index_name and c.table_name = upper('reps_sla_item') //rebuild index alter index sys_c0066955 rebuild //analyze table analyze table reps_sla_item estimate statistics sample 3…

2010-11-25 15:59 · 评论(0)

Oracle's alert.log 错误 日志

Oracle's alert.log Oracle's alert.log chronologically records messages and errors arising from the daily database operation. Also, there are pointers to trace files and dump files. These messages include startups and shutdowns of the instance Messages to the operator console Errors causing trace fi…

2010-09-06 10:45 · 评论(0)