ORA-01034: ORACLE not available问题

it2022-05-05  96

通过DBCA新建一个数据库后,执行以下命令报错:SQL> shutdown immediate;ERROR:ORA-01034: ORACLE not availableORA-27101: shared memory realm does not existLinux-x86_64 Error: 2: No such file or directoryAdditional information: 3701Additional information: -1816206177Process ID: 0Session ID: 0 Serial number: 0问题解决:确认当前实例是否正确

export ORACLE_SID=xxxx     --设置echo $ORACLE_SID=xxxx     --查看查看监听状态lsnrctl status注意当我们新建数据库之后需要修改oracle用户下的.bash_profile的ORACLE_SID实例名一致,并且运行source .bash_profile 使其生效

export PATH export ORACLE_BASE=/usr/local/oracle export ORACLE_HOME=/usr/local/oracle/product/12201 export ORACLE_SID=zhaj export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin

有三个地方的SID需要保持一致:1、$ORACLE_BASE/admin/SID_NAME/pfile文件夹下的init文件中的SID;2、/etc/oratab中的最后一行第一个“:”前,如“zhaj:/usr/local/oracle/product/12201:N”中的“zhaj”;3、.bash_profile中的SID;

转载于:https://www.cnblogs.com/Dev0ps/p/9534163.html


最新回复(0)