hp unix cluster使用的命令
http://blog.itpub.net/653579/viewspace-907461/ -->常用命令cmhaltnode XXXXX008 --停止(halt)nodecmrunnode -v XXXXX008 --激活nodecmviewcl 查看cluster状态cmviewcl -v 查看cluster详细状态cmrunpkg -v -n XXXXX016 pkg_dwh &nbs...
alert_log设置成external table
SQL> create or replace 2 directory alert_dir 3 as 4 'E:\oracle\product\10.2.0\admin\bruce\bdump';Directory created.SQL> editWrote file afiedt.buf 1 create table alert_log 2 (text_line varchar2(255)) 3 organization ext...
hp unix bdf格式化
xxxxx [/usr/bin]# alias bdffbdff='bdf | awk -f /usr/bin/bdfb - xxxxxx[/usr/bin]# cat /usr/bin/bdfb{if (split($0, f) == 1) { getline split($0, rest) for (i = 1; i
2015.11.14数据库起不来
两台HP服务器做了cluster,其中有台机器重启后,应用漂移到另外一台。现在还需要将应用漂移到原来那台HP服务器.1)执行了如下命令:cmhaltnode XXXXX0082)漂移过来后发现其中有一个VG没有mount上来:mount的时候发现vg是inactive状态。vgchange -a y /dev/vgPROD4 --激活这个vg3)再mount mount /d...
oracle 11g用户密码存储
一、测试环境OS:Windows XPDB:ORACLE10GTOOL:orabf-v0.7.6二、破解原理 orabf-v0.7.6是一款基于数据字典,破解ORACLE密码的工具,也是ORACLE密码破解目前最快的工具。它甚至能破解SYS的密码。功能非常强大...
2015.10.27 shared pool
SQL> select * from (select * from v$sgastat where pool='shared pool' order by 3 desc) where rownum<11;POOL NAME &nb...
2015.10.25 buffer cache
(1) Level 1:仅包含BufferHeaders信息。(2) Level 2:包含BufferHeaders和Buffer概要信息转储。(3) Level 3:包含BufferHeaders和完整Buffer内容转储。(4) Level 4:Level 1 +Latch转储 + LRU队列。(5) Level 5:Level 4 +Buffer概要信息转储。(6) Level 6和Level 7:Level 4 + 完整的Buffer内容转储。...
PLS-00103: 出现符号 在需要下列之一时: := . ( @ % ;
SQL> editWrote file afiedt.buf 1 begin 2 for i in 1..10000 loop 3 begin 4 exec cbc_tt_select(); 5 end; 6 end loop; 7* end;SQL> / exec cbc_tt_...
15.10.27 linux踢除终端
skill -9提出终端:[root@oracle6 ~]# w 22:17:50 up 80 days, 1:06, 10 users, load average: 0.04, 0.34, 0.26USER TTY FROM LOGIN@ IDLE JCPU PCPU WHATroot tty1 ...
隐藏参数查询sql
set linesize 160col ksppinm format a40col ksppstvl format a30col ksppdesc format a190SELECT ksppinm, ksppstvl, ksppdesc FROM x$ksppi x, x$ksppcv y WHERE x.indx = y.indx AND ksppinm like '%&value%';
show_space
show_space code(参考xifenfei的):create or replace procedure show_space( p_owner_1 in varchar2 default user,p_segname_1 in varchar2,p_type_1 in varchar2 default 'TABLE',p_space in varchar2 default 'AUTO',p_analyzed in varchar2 default 'Y') as p_segname &nb...
over partition简单使用
<p>今天在网上看到的over partition简单使用<br /><a href="http://www.itpub.net/thread-1940278-1-1.html">http://www.itpub.net/thread-1940278-1-1.html</a><br />create table T1<br />(<br /> id VARCHAR2(10),<br /> appid &n...
将partition expdp后impdp
C:\Users\Admin.LONG1-LI>expdp scott/bruce123 directory=temp_dir dumpfile=part1_p4.dmp tables=(part1:p4)Export: Release 10.2.0.1.0 - Production on Monday, 19 October, 2015 10:02:51Copyright (c) 2003, 2005, Oracle. All rights reserv...
vmware workstation创建虚拟共享磁盘
vmware workstation创建虚拟共享磁盘[@more@]<p>c:Program FilesVMwarevmware workstation><strong>vmware-vdiskmanager.exe -c -s 8000Mb</strong><br /><strong>-a lsilogic -t 2 "C:vmdatarac-sharediskdata01</strong><br />VixDiskLib: Invalid configuration file parameter. Failed to read configuration<b...
Linux安装Oracle修改参数(名词解释)
<strong><a href="http://www.itpub.net/thread-1940200-1-1.html">http://www.itpub.net/thread-1940200-1-1.html</a><br />Linux安装Oracle的时候会修改一些参数,参数的解释如下:<br /> <br />修改操作系统内核参数</strong>vi /etc/sysctl.conf(三个节点上的hosts文件修改后完全相同):<br />##kernel.shma...
Linux安装Oracle修改参数(名词解释)
<strong><a href="http://www.itpub.net/thread-1940200-1-1.html">http://www.itpub.net/thread-1940200-1-1.html</a><br />Linux安装Oracle的时候回修改一些参数,参数的解释如下:<br /> <br />修改操作系统内核参数</strong>vi /etc/sysctl.conf(三个节点上的hosts文件修改后完全相同):<br />##kernel.shma...
Choosing Column Data Type
<a href="http://www.itpub.net/thread-1938117-1-1.html">http://www.itpub.net/thread-1938117-1-1.html</a><br /><br />1. CHAR vs. VARCHAR2<br /><br />It's always a good idea to choose VARCHAR2, because CHAR appends spaces to the string shorter than<br />defined length wasting storage. There's no s...
dbms_lock.sleep
SQL> show userUSER is "SCOTT"SQL> create table tt2(id int,dt date,datec varchar2(20));Table created.SQL> editWrote file afiedt.buf 1 begin 2 for i in 1..1000 loop 3 insert int...
ORA-01031: insufficient privileges
<p>C:\Users\is_long_li>sqlplus / as sysdba</p><p>SQL*Plus: Release 10.2.0.1.0 - Production on 星期二 10月 13 09:22:49 2015</p><p>Copyright (c) 1982, 2005, Oracle. All rights reserved.</p><p>ERROR:<br />ORA-01031: insufficient privileges<br />提示没有权限。<br />查看如下:...
remap_tablespace
<p>remap_tablespace多个的时候,如下两种方式都可以的。<br /><strong>remap_tablespace=users:tt2 remap_tablespace=tt1:tt3</strong><br /><strong>remap_tablespace=users:tt2,tt1:tt3</strong></p><p>C:\Users\Admin.LONG1-LI>impdp tt3/tt3 directory=temp_dir dumpfile=scott.dmp remap_schema=scott:tt3 ...