Chinaunix首页 | 论坛 | 博客
  • 博客访问: 145126
  • 博文数量: 44
  • 博客积分: 2085
  • 博客等级: 大尉
  • 技术积分: 455
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-31 11:03
文章分类

全部博文(44)

文章存档

2013年(3)

2011年(8)

2010年(11)

2009年(22)

我的朋友

分类: Oracle

2011-02-24 14:19:01

oracle中查看总共有哪些用户: select   username   from   all_users;
oracle中查看总共有哪些表:  select table_name   from   all_tables;
===========================================================================
oracle 修改表字段的长度

alter   table   表名   modify(字段名   varchar2(50)) ,

修改表字段和列名称 :alter   table   表名   modify(字段   varchar2(20),   字段   varchar2(50))


==================

[svcs@localhost ~]$ sqlplus svcsOra/svcsOra

SQL*Plus: Release 11.1.0.6.0 - Production on Tue Mar 12 14:58:58 2013

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Process ID: 0
Session ID: 0 Serial number: 0
------------------------------------------------
分析以上问题:
[svcsWeb@localhost ~]$ sqlplus / as sysdba
SQL> shutdown immediate;

SQL> startup
ORACLE instance started.

Total System Global Area  426852352 bytes
Fixed Size                  1300380 bytes
Variable Size             293603428 bytes
Database Buffers          125829120 bytes
Redo Buffers                6119424 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01110: data file 5: '/oracle/ora11g/oradata/test/svcs_db01.dbf'
--通过start查看问题.

因为数据文件在没有被offline的情况下物理删除了,导致oracle的数据不一致,因此启动失败.

解决方法:

sqlplus as sysdba;

SQL> alter database datafile 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TSTEST001.DBF' offline drop;


阅读(784) | 评论(2) | 转发(0) |
0

上一篇:vi 使用

下一篇:TUXEDO

给主人留下些什么吧!~~

chinaunix网友2011-03-05 18:58:03

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com

chinaunix网友2011-03-05 18:57:11

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com