Chinaunix首页 | 论坛 | 博客
  • 博客访问: 171763
  • 博文数量: 29
  • 博客积分: 2110
  • 博客等级: 大尉
  • 技术积分: 325
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-01 11:32
文章分类

全部博文(29)

文章存档

2012年(3)

2010年(4)

2009年(5)

2007年(16)

2006年(1)

我的朋友

分类: LINUX

2007-04-20 17:39:10

Oracle 启动
      昨天刚安装上Oracle 10g 用sqlplus 命令登陆数据库,输入系统默认的用户名和密码(system/manager)不能登录,出现以下提示:
Enter user-name: system
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
应该是数据库未启动的原因.

启动数据库:
[oracle@localhost ~]$ sqlplus /nolog
 SQL> connect /as sysdba
 SQL> startup
Connected to an idle instance.
SQL> startup
ORACLE instance started.

Total System Global Area  285212672 bytes
Fixed Size                   778776 bytes
Variable Size              95165928 bytes
Database Buffers          188743680 bytes
Redo Buffers                 524288 bytes
Database mounted.
Database opened.
此时,数据库成功启动.

Oracle 用户添加:
SQL>create user aklus identified by aklus;
SQL>grant connect,resource,dba to aklus;
SQL>commit ;
用户aklus成功添加,并设置权限.
                       

阅读(2039) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~