Edward's Blog ——technology&life

22八/110

Oracle之路第二步:正式开始安装 Oracle 11gr2

使用oracle账号 登陆图形界面 进行安装

运行终端 Terminal

cd /u01/database

./runInstaller

Installation Optiong
install database software only

Grid Options
Single instance database installation

Product Languages
English

Database Edition
Enterprise Edition (3.95)

Installation Location
Oracle Base: /u01
Software Loacation: /u01/oracle

提示: yes

Create Inventory
mkdir /oraInventory

chown -R oracle:oinstall oraInventory

Operating System Groups
Next

Prerequis ite Checks
Ignore All

Summary
Finish

Install Product
安装完毕, 提示执行 2个脚本

/oraInventory/orainstRoot.sh
/u01/oracle/root.sh
直接按回车, 缺省值就可以

Finish
The installation of Oracle Database was successful

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

上面只是安装了软件, 数据库没有创建, 还有配置 监听器 Listener

netca
一直默认下一步 , 呵呵, 最后 Finish

ps -ef 可以查看Listener是否配置成功

-----------
dbca
一直 Next, Global Database Name 和 SID 都是输入 wilson

选择 User the Same.....All Accounts

密码: 123456

选择 Sample Schemas

Memory 内存分配,默认就可以了
Character Sets 选择 Use Unicode(AL32UTF8)

然后一直 Next , 到最后 Finish

弹出一个 Confirmation , 点击 OK 就可以了, 然后自动进行安装

安装到目录 /u01/oradata/wilson
/u01/等等。。。 会发现多了很多文件。

--------------------
然后可以修改 vi /etc/inittab 让 centos5.5 linux 启动的时候 不进入 图形界面
直接进入 字符界面

id:5:initdefault: 修改成 id:3:initdefault:

保存退出, 然后重启系统

--------------------------------
用 oracle 用户 远程登录, 然后

$ sqlplus /nolog

SQL> conn / as sysdba

Connected to an idle instance.
出现错误

SQL> startup

[oracle@localhost ~]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Fri Jun 25 15:05:54 2010

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

SQL> conn / as sysdba
Connected.
SQL> create table testUser( id integer,name char(10));

Table created.

SQL> insert into testUser values(0,'Jack');

1 row created.

SQL> commit;
Commit complete.

SQL> select * from testUser;

ID NAME
---------- ----------
0 Jack

关闭数据库
SQL> shutdown immediate

SQL> quit

评论 (0) 引用 (0)

还没有评论.


Leave a comment

(required)

还没有引用.

Parse error: syntax error, unexpected T_CLASS in /home/u114222/wp-content/themes/lightword/footer.php on line 24