1235

何处是我家!

导航

上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页

2013年11月12日

摘要: 对index进行分析,index_stats 表很有用。下面例子就结合index相关操作及 index_stats 的使用,对index进行分析。SQL> select count(*) from index_stats; COUNT(*)---------- 0SQL> desc t Name Null? Type ----------------------------------------- -------- ---------------------------- ID NUMBER(38) SCN NUMBERS... 阅读全文

posted @ 2013-11-12 21:13 yn1235 阅读(663) 评论(0) 推荐(0)

2013年11月8日

摘要: 看了小布老师关于block里面数据存储的high water mark的实验,自己也做了一遍。SQL> create table x(i int,name varchar(20));Table created.SQL> select count(*) from x; COUNT(*)---------- 0Statistics---------------------------------------------------------- 1 recursive calls 0 db block gets 4 consistent gets 0 physical... 阅读全文

posted @ 2013-11-08 22:00 yn1235 阅读(256) 评论(0) 推荐(0)

2013年11月4日

摘要: 今天要在linux下安装数据库,用的是xmanager;之前自己也用过该工具在OUI下做过安装,还很顺利。但是,今天连接后,运行命令,等了有5分钟,没有出现OUI界面。linux版本:[root@db ~]# lsb_release -aLSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchDistributor ID: RedHatEnterpriseServerDescription: ... 阅读全文

posted @ 2013-11-04 22:42 yn1235 阅读(9686) 评论(0) 推荐(0)

2013年10月31日

摘要: 今天新安装了一个oracle server,实例启动了,监听状态也正常。[oracle@db ~]$ lsnrctl statusLSNRCTL for Linux: Version 11.2.0.4.0 - Production on 31-OCT-2013 13:02:45Copyright (c) 1991, 2013, Oracle. All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=db)(PORT=1521)))STATUS of the LISTENER------------. 阅读全文

posted @ 2013-10-31 21:37 yn1235 阅读(450) 评论(0) 推荐(0)

2013年10月29日

摘要: 今天要用tomcat部署一个系统,windows环境下,oracle和程序在一台机器上。在配置jndi时,直接写成jdbc:oracle:thin:@127.0.0.1:1521:orcl。启动程序后,后台报Io异常: The Network Adapter could not establish the connection)。这种情况基本是:防火墙开启,相关端口关闭----- 关闭防火墙问题解决。我是本机,该问题不存在。我这边问题,后来发现:jndi:jdbc:oracle:thin:@127.0.0.1:1521:orcl中的127.0.0.1 要换成机器ip地址,问题解决。机器的ip. 阅读全文

posted @ 2013-10-29 11:15 yn1235 阅读(582) 评论(0) 推荐(0)

摘要: 现场环境:window2008 、 oracle11.2g 、客户端安装的是oracle10g一个简洁版 34M的。在imp导入时,提示Message 100 not found; No message file for product=RDBMS, facility=IMP: Release 11.2.0.1.0 - Production on Tue Oct 29 09:49:48 2013Copyright (c) 1982, 2009, Orac Invalid format of Import utility nameVerify that ORACLE_HOME is proper 阅读全文

posted @ 2013-10-29 10:28 yn1235 阅读(9138) 评论(0) 推荐(0)

2013年10月28日

摘要: spool 是sqlplus的一个语法,非sql。平时,我们通过ssh或者xmanger连接到oracle后,如果我们想把我们在上面操作的脚本及脚本执行过程、结果保存下来的话,可以通过spool来实现。sql>spool /u01/1.logSQL> shutdown immediateDatabase closed.Database dismounted.ORACLE instance shut down.SQL> startupORACLE instance started.Total System Global Area 599785472 bytes ... 阅读全文

posted @ 2013-10-28 23:42 yn1235 阅读(432) 评论(0) 推荐(0)

摘要: 今天有现场报sql错误,错误sql语句 类似 select * from tableA where (exists 条件A or exists 条件B),单独执行 select * from tableA where exists条件A 或者select * from tableA where exists条件B 是没有错误的,所以感觉这是oracle的bug。现场oracle版本:11.2.0.1.0;该现象在10g环境下是不存在的。后来发现该问题在11.2.0.3.0版本是不存在的,于是现场升级,问题解决。 阅读全文

posted @ 2013-10-28 10:14 yn1235 阅读(3443) 评论(0) 推荐(0)

2013年10月27日

摘要: 今天学习了小布老师的手工建库视频,自己也做了一遍,下面是创建过程记录:本地环境oracle10.2.0.1一.前期准备工作 1.设置环境变量 [oracle@app dbs]$ vi bbk.env[oracle@app dbs]$ cat bbk.envORACLE_SID=bbk[oracle@app dbs]$ . ./bbk.env[oracle@app dbs]$ env |grep ORAORACLE_SID=bbkORACLE_BASE=/u01/app/oracleORACLE_HOME=/u01/app/oracle/product/10.2.0/db_2[oracle... 阅读全文

posted @ 2013-10-27 12:11 yn1235 阅读(632) 评论(0) 推荐(0)

2013年10月14日

摘要: Connecting to 10.1.4.21:22...Connection established.To escape to local shell, press 'Ctrl+Alt+]'.Last login: Mon Oct 14 13:58:58 2013 from 10.1.4.39[root@db1 ~]# su - oracleurpdb1:/home/oracle@db1>echo $ORACLE_SIDurpdb1urpdb1:/home/oracle@db1>sqlplus / as sysdbaSQL*Plus: Release 11.2.0 阅读全文

posted @ 2013-10-14 15:23 yn1235 阅读(836) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页