devfsadm--刷新磁盘设备
# format
Searching for disks...
Inquiry failed for this logical diskInquiry failed for this logical diskdone
AVAILABLE DISK SELECTIONS:
0. c0d0 <趚濑@ cyl 1302 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
1. c0d1 <VMware,-VMware Virtual -1.0 cyl 2607 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0
2. c1d1 <VMware,-VMware Virtual -1.0 cyl 3914 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@7,1/ide@1/cmdk@1,0
3. c2t0d0 <VMware,-VMware Virtual -1.0 cyl 1956 alt 2 hd 255 sec 63>
/pci@0,0/pci15ad,1976@10/sd@0,0
4. c2t1d0 <VMware,-VMware Virtual -1.0 cyl 2608 alt 2 hd 255 sec 63>
/pci@0,0/pci15ad,1976@10/sd@1,0
Specify disk (enter its number): 2 --选择2号磁盘
selecting c1d1
Controller working list found
[disk formatted, defect list found]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> fdisk --刷新
No fdisk table exists. The default partition for the disk is:
a 100% "SOLARIS System" partition
Type "y" to accept the default partition, otherwise type "n" to edit the
partition table.
y
format> p
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> print --查看使用情况
Current partition table (original):
Total disk cylinders available: 3913 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 3912 29.98GB (3913/0/0) 62862345
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 alternates wm 1 - 2 15.69MB (2/0/0) 32130
partition> 0
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]: ? --查看当前状态
Expecting one of the following: (abbreviations ok):
unassigned boot root swap
usr backup stand var
home alternates reserved
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[0b, 0c, 0e, 0.00mb, 0.00gb]: 29gb
partition> name
Enter table name (remember quotes): disk02
partition> print
Current partition table (disk02):
Total disk cylinders available: 3913 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 - 3785 29.00GB (3786/0/0) 60822090
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 3912 29.98GB (3913/0/0) 62862345
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 alternates wm 1 - 2 15.69MB (2/0/0) 32130
partition> l --label
Ready to label disk, continue? y
partition> quit
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> save
Saving new disk and partition definitions
Enter file name["./format.dat"]: disk02
format> fdisk
Total disk size is 3916 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Active Solaris2 1 3915 3915 100
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 6
format> quit
# mkdir /data
# cd /dev/rdsk
# ls c1d1*
c1d1p0 c1d1p2 c1d1p4 c1d1s1 c1d1s11 c1d1s13 c1d1s15 c1d1s3 c1d1s5 c1d1s7 c1d1s9
c1d1p1 c1d1p3 c1d1s0 c1d1s10 c1d1s12 c1d1s14 c1d1s2 c1d1s4 c1d1s6 c1d1s8
# newfs /dev/rdsk/c1d1s0 --格式化
newfs: construct a new file system /dev/rdsk/c1d1s0: (y/n)? y
Warning: 3510 sector(s) in last cylinder unallocated
/dev/rdsk/c1d1s0: 60822090 sectors in 9900 cylinders of 48 tracks, 128 sectors
29698.3MB in 619 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
Initializing cylinder groups:
............
super-block backups for last 10 cylinder groups at:
59871392, 59969824, 60068256, 60166688, 60265120, 60363552, 60461984,
60560416, 60658848, 60757280
# mount /dev/dsk/c1d1s0 /data --挂载
# df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0d0s0 7.8G 3.9G 3.8G 51% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 3.2G 980K 3.2G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
7.8G 3.9G 3.8G 51% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 3.2G 76K 3.2G 1% /tmp
swap 3.2G 32K 3.2G 1% /var/run
/vol/dev/dsk/c1t0d0/sol_10_113_x86
2.1G 2.1G 0K 100% /cdrom/sol_10_113_x86
/dev/dsk/c0d1s0 19G 19M 19G 1% /u01
/dev/dsk/c1d1s0 29G 29M 28G 1% /data
#
自动挂载:
vi /etc/vfstab
/dev/dsk/c1d1s0 /dev/dsk/c1d1s0 /data ufs 3 yes -
=================
oracle 安装依赖
pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibC SUNWlibms SUNWsprot \
SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt
..如有报错可参考一下 复制pkg
cp -r /cdrom/sol_10_113_x86/Solaris_10/Product/SUNWi1cs /var/spool/pkg
pkgadd
--一个标准的输出:
# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibC 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 SUNWi15cs X11 ISO8859-15 Codeset Support
system SUNWi1cs X11 ISO8859-1 Codeset Support
system SUNWi1of ISO-8859-1 (Latin-1) Optional Fonts
system SUNWlibC Sun Workshop Compilers Bundled libC
system SUNWlibms Math & Microtasking Libraries (Usr)
system SUNWsprot Solaris Bundled tools
system SUNWtoo Programming Tools
system SUNWxwfnt X Window System platform required fonts
--备份
# cd /etc
# ls |grep system
system
# cp system system.backup
# ls |grep system
system
system.backup
⑵、编辑/etc/system,在最后添加如下:
set noexec_user_stack=1
set semsys:seminfo_semmni=300
set semsys:seminfo_semmns=1050
set semsys:seminfo_semmsl=400
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=300
set shmsys:shminfo_shmseg=30
说明:
2G内存设置set shmsys:shminfo_shmmax=4294967295
.........
以下安装同其他linux平台安装方式,直接启动图形化或者静默安装即可~
-----------
$ id
uid=504(oracle) gid=502(oinstall)
$ df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0d0s0 7.8G 3.9G 3.8G 51% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 1.5G 984K 1.5G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
7.8G 3.9G 3.8G 51% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 1.5G 116K 1.5G 1% /tmp
swap 1.5G 32K 1.5G 1% /var/run
/dev/dsk/c2t1d0s0 20G 20M 19G 1% /backup
/dev/dsk/c1d1s0 29G 2.2G 26G 8% /data
/dev/dsk/c0d1s0 19G 8.7G 9.8G 48% /opt
/dev/dsk/c2t0d0s0 9.8G 9.9M 9.6G 1% /arch
/vol/dev/dsk/c1t0d0/sol_10_113_x86
2.1G 2.1G 0K 100% /cdrom/sol_10_113_x86
$
$ uname -a
SunOS CAP 5.10 Generic_147148-26 i86pc i386 i86pc
$
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Sat Jun 8 22:35:06 2019
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show parameter name
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_file_name_convert string
db_name string ren
db_unique_name string ren
global_names boolean FALSE
instance_name string ren
lock_name_space string
log_file_name_convert string
service_names string ren
SQL> set linesize 200;
SQL> col PLATFORM_NAME for a50;
SQL> SELECT d.platform_name, endian_format FROM v$transportable_platform tp, v$database d WHERE tp.platform_name = d.platform_name;
PLATFORM_NAME ENDIAN_FORMAT
-------------------------------------------------- --------------
Solaris Operating System (x86-64) Little
之前朋友一直情调solaris x86是big-endian ,今天亲测一下,
The oracle for Solaris x86 is really Little-endian.
--------end