首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Oracle 11G XE安装错误:数据库配置失败

Oracle 11G XE安装错误:数据库配置失败
EN

Stack Overflow用户
提问于 2013-11-13 23:04:07
回答 2查看 11.2K关注 0票数 3

在linuxMint上安装后运行oracle配置时:

/etc/init.d/oracle-xe配置指定的以下错误:

代码语言:javascript
复制
sudo /etc/init.d/oracle-xe configure 

Oracle Database 11g Express Edition Configuration
-------------------------------------------------
This will configure on-boot properties of Oracle Database 11g Express 
Edition.  The following questions will determine whether the database should 
be starting upon system boot, the ports it will use, and the passwords that 
will be used for database accounts.  Press <Enter> to accept the defaults. 
Ctrl-C will abort.

Specify the HTTP port that will be used for Oracle Application Express [8080]:

Specify a port that will be used for the database listener [1521]:

Specify a password to be used for database accounts.  Note that the same
password will be used for SYS and SYSTEM.  Oracle recommends the use of 
different passwords for each database account.  This can be done after 
initial configuration:
Confirm the password:

Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]:y

Starting Oracle Net Listener...Done
Configuring database...
Database Configuration failed.  Look into /u01/app/oracle/product/11.2.0/xe/config/log for details

日志文件显示以下输出:

代码语言:javascript
复制
    Create controlfile reuse set database "XE"
    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 


    BEGIN dbms_backup_restore.zerodbid(0); END;

    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 

    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    ORA-00845: MEMORY_TARGET not supported on this system
    Create controlfile reuse set database "XE"
    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 


    alter system enable restricted session
    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 


    alter database "XE" open resetlogs
    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 


    alter database rename global_name to "XE"
    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 


    alter system switch logfile
    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 


    alter system checkpoint
    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 


    alter database drop logfile group 3
    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 


    ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/XE/temp.dbf' SIZE 20480K REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 


    select tablespace_name from dba_tablespaces where tablespace_name='USERS'
    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 


    select sid, program, serial#, username from v$session
    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 


    alter user sys identified by "oracle"
    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 


    alter user system identified by "oracle"
    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 


    alter system disable restricted session
    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 

    ///////
CloneRmanRestore.log
    ORA-00845: MEMORY_TARGET not supported on this system
    select TO_CHAR(systimestamp,'YYYYMMDD HH:MI:SS') from dual
    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 


    declare
    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 


    select TO_CHAR(systimestamp,'YYYYMMDD HH:MI:SS') from dual
    *
    ERROR at line 1:
    ORA-01034: ORACLE not available 
    Process ID: 0 
    Session ID: 0 Serial number: 0 

postDBCreation.log

代码语言:javascript
复制
begin
*
ERROR at line 1:
ORA-01034: ORACLE not available 
Process ID: 0 
Session ID: 0 Serial number: 0 



File created.

ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
ORA-00845: MEMORY_TARGET not supported on this system
select 'utl_recomp_begin: ' || to_char(sysdate, 'HH:MI:SS') from dual
*
ERROR at line 1:
ORA-01034: ORACLE not available 
Process ID: 0 
Session ID: 0 Serial number: 0 


BEGIN utl_recomp.recomp_serial(); END;

*
ERROR at line 1:
ORA-01034: ORACLE not available 
Process ID: 0 
Session ID: 0 Serial number: 0 


select 'utl_recomp_end: ' || to_char(sysdate, 'HH:MI:SS') from dual
*
ERROR at line 1:
ORA-01034: ORACLE not available 
Process ID: 0 
Session ID: 0 Serial number: 0 

我怎么才能修复它?

EN

回答 2

Stack Overflow用户

发布于 2014-01-24 03:46:15

此外,您还必须检查您的主机名是否在链接到127.0.0.1的/etc/hosts中。例如:

代码语言:javascript
复制
127.0.0.1   localhost
票数 5
EN

Stack Overflow用户

发布于 2014-01-07 19:41:29

我已经面对这个问题好几次了。我在来宾openSUSE上运行XE,最初我的主机名中有数字和破折号。如果在安装11g XE之前将其(/etc/HOSTNAME)更改为某个简单名称,配置将会成功完成。

我不知道主机名对oracle安装有什么影响,但上面的方法对我来说非常有效。

希望能有所帮助。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19957137

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档