search
HomeBackend DevelopmentPHP TutorialOracle 操作中的问题_PHP教程

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

www.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
PHP Performance Tuning for High Traffic WebsitesPHP Performance Tuning for High Traffic WebsitesMay 14, 2025 am 12:13 AM

ThesecrettokeepingaPHP-poweredwebsiterunningsmoothlyunderheavyloadinvolvesseveralkeystrategies:1)ImplementopcodecachingwithOPcachetoreducescriptexecutiontime,2)UsedatabasequerycachingwithRedistolessendatabaseload,3)LeverageCDNslikeCloudflareforservin

Dependency Injection in PHP: Code Examples for BeginnersDependency Injection in PHP: Code Examples for BeginnersMay 14, 2025 am 12:08 AM

You should care about DependencyInjection(DI) because it makes your code clearer and easier to maintain. 1) DI makes it more modular by decoupling classes, 2) improves the convenience of testing and code flexibility, 3) Use DI containers to manage complex dependencies, but pay attention to performance impact and circular dependencies, 4) The best practice is to rely on abstract interfaces to achieve loose coupling.

PHP Performance: is it possible to optimize the application?PHP Performance: is it possible to optimize the application?May 14, 2025 am 12:04 AM

Yes,optimizingaPHPapplicationispossibleandessential.1)ImplementcachingusingAPCutoreducedatabaseload.2)Optimizedatabaseswithindexing,efficientqueries,andconnectionpooling.3)Enhancecodewithbuilt-infunctions,avoidingglobalvariables,andusingopcodecaching

PHP Performance Optimization: The Ultimate GuidePHP Performance Optimization: The Ultimate GuideMay 14, 2025 am 12:02 AM

ThekeystrategiestosignificantlyboostPHPapplicationperformanceare:1)UseopcodecachinglikeOPcachetoreduceexecutiontime,2)Optimizedatabaseinteractionswithpreparedstatementsandproperindexing,3)ConfigurewebserverslikeNginxwithPHP-FPMforbetterperformance,4)

PHP Dependency Injection Container: A Quick StartPHP Dependency Injection Container: A Quick StartMay 13, 2025 am 12:11 AM

APHPDependencyInjectionContainerisatoolthatmanagesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itactsasacentralhubforcreatingandinjectingdependencies,thusreducingtightcouplingandeasingunittesting.

Dependency Injection vs. Service Locator in PHPDependency Injection vs. Service Locator in PHPMay 13, 2025 am 12:10 AM

Select DependencyInjection (DI) for large applications, ServiceLocator is suitable for small projects or prototypes. 1) DI improves the testability and modularity of the code through constructor injection. 2) ServiceLocator obtains services through center registration, which is convenient but may lead to an increase in code coupling.

PHP performance optimization strategies.PHP performance optimization strategies.May 13, 2025 am 12:06 AM

PHPapplicationscanbeoptimizedforspeedandefficiencyby:1)enablingopcacheinphp.ini,2)usingpreparedstatementswithPDOfordatabasequeries,3)replacingloopswitharray_filterandarray_mapfordataprocessing,4)configuringNginxasareverseproxy,5)implementingcachingwi

PHP Email Validation: Ensuring Emails Are Sent CorrectlyPHP Email Validation: Ensuring Emails Are Sent CorrectlyMay 13, 2025 am 12:06 AM

PHPemailvalidationinvolvesthreesteps:1)Formatvalidationusingregularexpressionstochecktheemailformat;2)DNSvalidationtoensurethedomainhasavalidMXrecord;3)SMTPvalidation,themostthoroughmethod,whichchecksifthemailboxexistsbyconnectingtotheSMTPserver.Impl

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use