Solaris10 安装Oracle 10g
好没有碰Solaris了,手有些生了,看来真要装个solaris,平时多玩玩。
在solaris上装Oracle 10g先。
1. 检查安装依赖包
官方要求的包
SUNWarc
SUNWbtool
SUNWhea
SUNWlibm
SUNWlibms
SUNWsprot
SUNWtoo
SUNWi1of
SUNWi1cs
SUNWi15cs
SUNWxwfnt
执行命令
# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot
SUNWsprox SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt
例如
[root@rac1]#pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms
SUNWsprot SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt
system SUNWarc Lint Libraries (usr)
system SUNWbtool CCS tools bundled with SunOS
system SUNWhea SunOS Header Files
system SUNWi1of ISO-8859-1 (Latin-1) Optional Fonts
system SUNWlibm Math & Microtasking Library Headers &
Lint Files (Usr)
system SUNWlibms Math & Microtasking Libraries (Usr)
system SUNWsprot Solaris Bundled tools
system SUNWtoo Programming Tools
system SUNWxwfnt X Window System platform required fonts
错误: 未发现"SUNWi1cs"的信息
错误: 未发现"SUNWi15cs"的信息
差2个包。 "SUNWi1cs" "SUNWi15cs"
这2个包可以在solaris的安装包里找到。mount上光盘,把这些差的包装起来
[root@rac1]#cd /cdrom/sol_10_1009_x86/Solaris_10/Product/
[root@rac1]#ls ./SUNWi1*
./SUNWi13cs:
archive install pkginfo pkgmap reloc
./SUNWi13rf:
archive install pkginfo pkgmap reloc
./SUNWi15cs:
archive install pkginfo pkgmap reloc
./SUNWi15rf:
archive install pkginfo pkgmap reloc
./SUNWi1cs:
archive install pkginfo pkgmap reloc
./SUNWi1of:
archive install pkginfo pkgmap reloc
确认这里有这些包。
下面安装
[root@rac1]#pkgadd -d . SUNWi1cs
处理软件包范例<SUNWi1cs>来自</cdrom/sol_10_1009_x86/Solaris_10
/Product>
X11 ISO8859-1 Codeset Support(i386) 2.0,REV=2004.10.17.15.04
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
使用</>作为包的基本目录
#
相关文档:
alter table 的功能是修改表格。包括重名命,加减字段,修改字段类型和大小,处理 约束等等。本例子之处理表名和字段,代码如下:
create table liu(a varchar2(20),b number(2))
alter table liu rename to jin
rename jin to cai
alter table cai add c varchar2(30)
alter table cai add (d varchar2(3 ......
数据owner和数据操作者以及代码访问使用不同的用户访问,使用授权的方式进行访问。
数据表创建时使用同义词创建
授权时最好不要使用with grant option
以前不太明白同义词的使用,现在知道了。比较好的应用就是创建表的别名
create public 同义词 tableName for owner.tableName
给视图授权可以使得用户访问不具 ......
一 数据库的事务处理
定义:事务是一组相关的数据改变的逻辑集合。在一个事务中的数据改变(DML)保持着一致的状态,数据的改变同时成功或者同时失败。
二 数据库的事务由下列语句组成
一组DML语句,修改的数据在他们中保持一致
一个 DDL (Data Define Language) 语句
一个 DCL (Data Control Language)语句
1、开 ......
/*============创建Customer表==========*/
create table Customer
(
Customer_id number(6) not null,
Customer_name varchar2(50) not null,
Password varcha ......
一、语法
大致写法:select * from some_table [where 条件1] connect by [条件2] start with [条件3];
其中 connect by 与 start with 语句摆放的先后顺序不影响查询的结果,[where 条件1]可以不需要。
[where 条件1]、[条件2]、[条件3]各自作用的范围都不相同:
[where 条件1]是在根据“connect by [条件2] ......