Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5600947
  • 博文数量: 745
  • 博客积分: 10075
  • 博客等级: 上将
  • 技术积分: 7716
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-29 12:09
文章分类

全部博文(745)

文章存档

2019年(1)

2016年(1)

2010年(31)

2009年(88)

2008年(129)

2007年(155)

2006年(197)

2005年(143)

分类: Oracle

2009-09-14 16:54:27

接下来要做的,是以修改过的参数文件启动数据库并生成服务器参数文件,再让数据库以服务器参数文件的方式启动数据库:
1,使用修改过的参数文件将数据库启动到nomount模式:
SQL> startup pfile='/home/db/oracle/10g/dbs/initora.ora' nomount;
ORACLE instance started.
Total System Global Area 1073741824 bytes
Fixed Size                  1999160 bytes
Variable Size             285216456 bytes
Database Buffers          780140544 bytes
Redo Buffers                6385664 bytes
 
2,创建服务器参数文件:
SQL> create spfile from pfile='/home/db/oracle/10g/dbs/initora.ora';
File created.
 
3,以系统默认的服务器参数文件方式启动数据库:
SQL> shutdown immediate;
ORA-01507: database not mounted

ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 1073741824 bytes
Fixed Size                  1999160 bytes
Variable Size             285216456 bytes
Database Buffers          780140544 bytes
Redo Buffers                6385664 bytes
Database mounted.
Database opened.
 
4,创建密码文件(如果数据库建好之后存在的话,就不用再单独建立密码文件了):
$ orapwd file=/home/db/oracle/10g/dbs/orapwora password=oracle entries=10
$ ls
alert_ora.log        init.ora             lk10GPRI             lkORA_SINGLE         snapcf_ora.f
hc_ora.dat           initdw.ora           lkORA                orapwora             spfileora.ora
在这个地方我犯了低级错误,浪费了很多时间,这个在最后总结的时候来说。
 
下面就要提到监听文件以及TNS文件了,放下一篇文章里面列个专题,因为这一步很重要。如果不做好,后果很严重。
阅读(1338) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~