ORACLE ORA 00132 ORA 00214
oracle断电后重启出现的问题已经解决方法
一、ORA-00132
问题描述 :syntax error or unresolved network name ''
第1步:复制一份pfile参数文件(注意:oracle中的pfile指的就是init<sid>.ora文件)
$sqlplus '/as sysdba';
SQL> create pfile from spfile='/u01/oracle/product/10.2.0/db_1/dbs/spfileorcl.ora';
第2步:修改pfile参数文件(修改init<sid>.ora文件)
经过第一步以后,你就会在$ORACLE_HOME/dbs目录下发现有这么一个文件init<sid>.ora,这就是你第一步创建的文件。
找到local_listener这一行,然后将其值修改为:
(ADDRESS_LIST=(Address=(Protocol=tcp) (Host=your_hostname)(Port=1521)))
其中的your_hostname为你的主机名,其实导致ORA-00119和ORA-00132错误的原因就很可能是你修改了你的hostname
第3步:以pfile创建spfile
使用以下命令创建spfile
SQL> create spfile from pfile='/u01/oracle/product/10.2.0/db_1/dbs/initorcl.ora';
第4步:启动数据库
SQL> startup;
二、ORA-00214
问题描述 :ORA-00214: control file '' version ** inconsistent with file '' version **
每个描述不一样,这里是我的解决过程:
SQL> startup
ORACLE instance started.
Total System Global Area 2147483648 bytes
Fixed Size 1220432 bytes
Variable Size 503316656 bytes
Database Buffers 1627389952 bytes
Redo Buffers 15556608 bytes
ORA-00214: control file '/usr/oracle/oradata/beyond/control02.ctl' version 3172
inconsistent with file '/usr/oracle/oradata/beyond/control01.ctl' version 3169
SQL> shutdown immediate;
ORA-01507: database not mounted
ORACLE instance shut down.
SQL> host cp /usr/oracle/oradata/beyond/control03.ctl /usr/oracle/oradata/beyond/control01.ctl
SQL> host cp /usr/oracle/oradata/beyond/control03.ctl /usr/oracle/oradata/beyond/control02.ctl
SQL> s
相关文档:
sqlplus sys/password as sysdba;系统管理员登录
alter user scott account unlock; 更改用户
desc (表名)
select * from (table name);
select distinct ename from emp;
select ename,sal from emp;
select ename,sal*12 'annual_sal' from emp;
select ename,sal from emp where sal>1000;
select ......
1 oracle 实例
安装--全局数据库名:可以加扩展名:比如test.com.cn(而数据库实例名为test)
数据库口令:为数据库系统帐户:sys,system,sysman,dbsnmp提供密码
高级安装:为每个用户提供不同的密码
sys: change_on_install
system:manager
sysman:oem_temp
dbsnmp:dbsnmp
internal: orcale
scott:tiger
demo: ......
■ 开发前要求配置
■ Select XML格式数据
■ Insert XML格式数据
■ Updata XML格式数据
■ Delete XML格式数据
开发前要求配置
必须安装Oracle客户端
把Classpath指向
classes111.zip ......
itpub论坛中曾有兄弟说过materialized view是以空间换时间,我认为非常贴切。物化视图实际就是基于查询的数据拷贝,其形式
简单理解的话可以看成是create table table_name as select * from table。
呵呵,人们总是希望事情越简单越好嘛,于是当俺看到这个东西这么简单,头脑一发热也迫不及待冲了过云,下面我就具体描 ......