Oracle 操作中的问题
linux系统
Oracle11.2.0.3版本
问题:
sqlplus/assysdba执行starup就报错:
回答:看下sqlnet.ora里面这个参数是否设置,SQLNET.AUTHENTICATION_SERVICES如果有则设置为ALL,如果没有则不管
如果上面的设置好后,检查下自己在Oracle用户下的环境变量,以及检查下Oracle用户的信息
idoracle查看Oracle所属用户组是否正确
之后,如何上面2个检查完后仍有问题,那么就是你的参数文件没有正确的创建或者被删掉了,重新创建个:
orapwdfile=$ORACLE_HOME/dbs/orapw$ORACLE_SIDpassword=你的密码entries=5force=y
startup启动数据库出现下面:
回答:
在Oracle 11g中如果采用AMM内存管理,那么当MEMORY_TARGET的值大于/dev/shm的时候,就会报ORA-00845: MEMORY_TARGET not supported on this system错误,解决办法增加/dev/shm大小,在redhat系列系统中,/dev/shm的默认值是系统总内存的一半
修改内核参数:
1、修改/dev/shm大小
[oracle@rtest~]$df-h
FilesystemSizeUsedAvailUse%Mountedon
/dev/sda3140G57G76G43%/
/dev/sda199M12M82M13%/boot
tmpfs3.9G995M3.0G25%/dev/shm
[oracle@rtest~]$mount-osize=8G-onr_inodes=1000000-onoatime,nodiratime-oremount/dev/shm
mount:onlyrootcandothat
[oracle@rtest~]$su-
Password:
[root@rtest~]#mount-osize=8G-onr_inodes=1000000-onoatime,nodiratime-oremount/dev/shm
[root@rtest~]#df-h
FilesystemSizeUsedAvailUse%Mountedon
/dev/sda3140G57G76G43%/
/dev/sda199M12M82M13%/boot
tmpfs8.0G995M7.1G13%/dev/shm
2、vi/etc/fstab
LABEL=//ext3defaults11
LABEL=/boot/bootext3defaults12
tmpfs/dev/shmtmpfsdefaults,size=8G00
devpts/dev/ptsdevptsgid=5,mode=62000
sysfs/syssysfsdefaults00
proc/procprocdefaults00
LABEL=SWAP-sda2swapswapdefaults00
3、启动数据库验证:
[oracle@rtest~]$exportORACLE_SID=test0924
[oracle@rtest~]$sqlplus/assysdba
SQL*Plus:Release11.2.0.3.0ProductiononMonOct2814:41:132013
Copyright(c)1982,2011,Oracle.Allrightsreserved.
Connectedtoanidleinstance.
idle>idle>
idle>conn/assysdba
Connectedtoanidleinstance.
idle>startup
ORACLEinstancestarted.
TotalSystemGlobalArea3340451840bytes
FixedSize2232960bytes
VariableSize3204451712bytes
DatabaseBuffers117440512bytes
RedoBuffers16326656bytes
Databasemounted.
Databaseopened.
idle>conn/assysdba
Connected.
sys@TEST0924>showparametermem
NAMETYPEVALUE
-----------------------------------------------------------------------------
hi_shared_memory_addressinteger0
memory_max_targetbiginteger3200M
memory_targetbiginteger0
shared_memory_addressinteger0
出现这种情况的主要原因还是对数据库基础掌握不牢靠,
不熟悉造成的,学习oracle一定要对基础掌握扎实,才能在工作中避免产生的错误。
更多Oracle学习 点击:
http://tg.wyzc.com/index.php?a=generalize&m=Index&c=tongji&tg=3006123630
http://www.bkjia.com/PHPjc/1127278.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/1127278.htmlTechArticleOracle 操作中的问题 linux系统 Oracle11.2.0.3版本 问题: sqlplus/assysdba执行starup就报错: 回答:看下sqlnet.ora里面这个参数是否设置,SQLNET.AUTHE...
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn