oracle 应用程序性能分析
查看session等待事件:
select sid,event from v$session_wait where event not like 'rdbms%' and event not like 'SQL*Net message%';
按pid查看正在执行的程序:
select sid,program from v$session b where paddr in (select addr from v$process where spid=&pid);
按pid查看正在执行的sql语句
select sql_text from v$sqltext where hash_value in (select sql_hash_value from v$session where
PADDR in (select addr from v"$process where spid=$pid)) order by piece;
相关文档:
Oracle还是比较常用的,但与sqlserver区别还是挺大的。学习Oracle得了解dual表,这里和大家分享一下,希望对大家有用
1:转字符函数分转换函数和字符操作函数
转换函数有:Lower,upper,initcap(首字母大写)
字符操作函数:concat,substr,length,instr(某个字符串在此字符串中的位置),ipad(字符串按某种格式显 ......
1. 修改redo log file大小
SQL> select group#,status from v$log;
SQL> alter database add logfile group 4 'F:\oracle\product\10.2.0\oradata\orcl\REDO04.LOG' size 512m;
SQL> alter system switch logfile;
SQL> select group#,status from v$log;
2. 修改large_pool_size大小
SQL> alter  ......
@echo off
:dosmenu
REM 选择菜单
echo Windows 服务启动或关闭 By hope 2008年2月7日
echo.
echo [1]启动Sql Server2005 [2]关闭Sql Server2005
echo [3]启动Oracle9i [4]关闭Oracle9i
echo.
echo ......
-----------------------------------------------------------------------------------
DOS:
1. sqlplus
2.
用户名:sqlplus 、conn
密码:as sysdba 、as sysdba
解锁:
3. ALTER USER DBSNMP ACCOUNT UNLOCK;
解锁:system
4. alter user system identified by manage ......