Oracle通过gateway连接sqlserver2008
环境oracle 10.2.0.1 ip:xxx.xxx.6.26 windowssqlserver 2008 ip:xxx.xxx.6.49 DB:oracle1.gateway11g 安装在xxx.xxx.6.26上面,和oracle安装在同一台机器上1).点击setup2).输入安装路径3).选择"Oracle Database Geteway for Microsoft Sql Server 11.2.0.1.0"4).输入SQL Server相关信息结束之后,配置...
Unix获取前一天日期(Linux不知道可以不以)
xxxxxxxxxx [/]#get_before_date12/02/15cat /usr/bin/get_before_dateY="$(date +"%y")"Y1="$(date +"%Y")"M="$(date +"%m")"D="$(date +"%d")"YY=`expr $Y - 1`MM=`expr $M - 1`DD=`expr $D - 1`MM=`printf "%02d" $MM`DD=`printf "%02d" $DD`dd=$Y1$MMdad=`get_mon_days $dd`#be_date=$Y$M$DDbe_da...
Oracle 普通Table进行Reorg
创建pp1实例表.SQL> create table pp1 as select * from pp;Table created.SQL> create index pp1_index on pp1(id);Index created.SQL> execute dbms_stats.gather_table_stats('scott','pp1');PL/SQL procedure successfully completed.SQL> select count(*) from pp1; COUNT(*)--...
Oracle 普通table 转换为partition table
1.创建eg tableSQL> create table pp (id int,dt date);Table created.SQL> create index pp_index on pp(id);index created.beginfor i in 1..10000000 loopif mod(i,3)=1 then insert into pp values(i,to_date('2013/6/6','yyyy/mm/dd'));elsif mod(i,3)=2 then insert...
Oracle 11g中添加两个listener
$ORACLE_HOME\network\admin中的listener.ora的配置如下:LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521)) ) (DESCRIPTION = &...
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...