Ошибка при установке oracle 11g

I’m trying to install Oracle Database in (X)ubuntu 13.04 64-bit using this guide. Everything goed well until I get to the following step:

$ 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]:

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

The log files show the following output:

:/u01/app/oracle/product/11.2.0/xe/config/log$ for l in *.log
> do
> echo $l
> cat $l
> done
cloneDBCreation.log
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
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 


postScripts.log
CREATE OR REPLACE LIBRARY dbms_sumadv_lib AS '/u01/app/oracle/product/11.2.0/xe/lib/libqsmashr.so';
*
ERROR at line 1:
ORA-01034: ORACLE not available 
Process ID: 0 
Session ID: 0 Serial number: 0 


BEGIN dbms_datapump_utl.replace_default_dir; END;

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


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


create or replace directory XMLDIR as '/u01/app/oracle/product/11.2.0/xe/rdbms/xml'
*
ERROR at line 1:
ORA-01034: ORACLE not available 
Process ID: 0 
Session ID: 0 Serial number: 0 


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


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


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


BEGIN dbms_swrf_internal.cleanup_database(cleanup_local => FALSE); END;

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


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

What am I doing wrong?

asked May 14, 2013 at 14:07

Remco Haszing's user avatar

Remco HaszingRemco Haszing

7,0984 gold badges40 silver badges83 bronze badges

1

I was in the same boat, trying to configure XE on a virtual machine (openSUSE 13.01 64bit).

The solution in my case was the missing hostname in /etc/hosts.
You can examine the errors in /u01/app/oracle/product/11.2.0/xe/config/log/CloneRmanRestore.log at the very beginning (the path depends on your XE version).

Search for an info similar to:
ORA-00119: invalid specification for system parameter LOCAL_LISTENER ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=linux-cn65.site)(PORT=1521))

So linux-cn65.site (the VM host) was missing. Add your host in /etc/hosts (as root):

127.0.0.1 linux-cn65.site <— your host here

and run the configuration again (as root): sh /etc/init.d/oracle-xe configure

Additional trickery

  • if you do not have the error files in the log folder, you may re-install XE without h flag, like this:

    • to find your package: sudo rpm -qa | grep -i oracle
    • to remove it: sudo rpm -e oracle-xe-11.2.0-1.0.x86_64 <— your package here
  • install again without h flag: sudo rpm -iv oracle-xe-11.2.0-1.0.x86_64.rpm

oh, replace the version (oracle-xe-11.2.0-1.0.x86_64.rpm) with yours. Cheers ;)

answered Apr 22, 2014 at 16:48

kodeart's user avatar

1

nano /etc/init.d/oracle-shm

add text

#! /bin/sh 
# /etc/init.d/oracle-shm 
# 
case "$1" in 
start) 
echo "Starting script /etc/init.d/oracle-shm" 
# Run only once at system startup  
if [ -e /dev/shm/.oracle-shm ]; then 
echo "/dev/shm is already mounted, nothing to do" 
else 
rm -f /dev/shm 
mkdir /dev/shm 
mount --move /run/shm /dev/shm 
mount -B /dev/shm /run/shm 
touch /dev/shm/.oracle-shm 
fi 
;; 
stop) 
echo "Stopping script /etc/init.d/oracle-shm" 
echo "Nothing to do" 
;; 
*) 
echo "Usage: /etc/init.d/oracle-shm {start|stop}" 
exit 1 
;; 
esac 
# 
### BEGIN INIT INFO 
# Provides: oracle-shm 
# Required-Start: $remote_fs $syslog 
# Required-Stop: $remote_fs $syslog 
# Default-Start: 2 3 4 5 
# Default-Stop: 0 1 6 
# Short-Description: Bind /run/shm to /dev/shm at system startup. 
# Description: Fix to allow Oracle 11g use AMM. 
### END INIT INFO

make the file executable

chmod 755 /etc/init.d/oracle-shm
/etc/init.d/oracle-shm start

At this stage reboot, then check

df -kh /dev/shm

further proceed to emulate chkconfig and continue with rest of configuration and install

dpkg -i oracle-xe-11.2.0-1.0.x86_64.deb

Check the environment variables and ORACLE_HOME and start database

answered Jul 26, 2013 at 7:01

Laurent B's user avatar

Laurent BLaurent B

811 silver badge5 bronze badges

2

I struggled with this too. I have tried a few different solutions, but still got the problem. I «fixed» it by removing memory_target from the database configuration:

sqlplus / as sysdba
create pfile=‘<path>’ from spfile 
!vi <path>

Add # in front of the line with memory_Target, save and close file.

startup from pfile=‘<path>'
create spfile from pfile=‘<path>’

This solution works nice with my XE database, hope it helps.

answered May 8, 2014 at 12:41

Marius's user avatar

MariusMarius

1741 silver badge6 bronze badges

1

I had this exact issue with Ubuntu 14.04. The issue came down to Oracle-XE expecting sufficient space at /dev/shm while ubuntu has changed to using /run/shm with a symlink from /dev/shm.

The solution that worked for me was to create the file /etc/rc2.d/S01shm_load containing:

#!/bin/sh
case "$1" in
start)
    mkdir /var/lock/subsys 2>/dev/null
    touch /var/lock/subsys/listener
    rm /dev/shm 2>/dev/null
    mkdir /dev/shm 2>/dev/null
    mount -t tmpfs shmfs -o size=2048m /dev/shm ;;
*)
    echo error
    exit 1
    ;;    
esac

I got this from http://sysadminnotebook.blogspot.de/2012/10/installing-oracle-11g-r2-express.html which is similar to many other pages on installing XE but was the only one with this solution.

PS. The file permissions are set at 755 so you will need to execute:

sudo chmod 755 /etc/rc2.d/S01shm_load

to set the permissions on this file.

answered Jan 23, 2017 at 21:18

Ken Riley's user avatar

2

This link looks like it has the answer. You need to make sure that /dev/shm is mounted on your system, and assign it memory of at least MEMORY_TARGET.

You can do this by adding the following to your fstab, and rebooting. (This will set the /dev/shm size to 2gb):

shmfs /dev/shm tmpfs size=2048m 0 0

answered May 14, 2013 at 14:19

antlersoft's user avatar

antlersoftantlersoft

14.6k4 gold badges35 silver badges55 bronze badges

4

There are several packages that need to be installed first, plus some kernel parameters that have to be changed before you can actually start the database. Consult Oracle’s installation guide for Linux, or search Google for specific guides for Oracle 11gR2 XE on Ubuntu.

answered May 14, 2013 at 14:22

ELadner's user avatar

1

I installed Oracle 11g XE on my Windows computer (running on Windows XP Pro), but unfortunately, can’t get it to work. There are no errors that the GUI installer shows up during the installation and I get the «installed successfully» message, but when I try to connect to Oracle using the SQL command prompt, I get the following error:

SQL> connect
Enter user-name: system
Enter password:
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Process ID: 0
Session ID: 0 Serial number: 0

The ‘Get Started’ shortcut icon takes me to :

http://127.0.0.1:8080/apex/f?p=4950

which gives me an «Unable to Connect» message

After having spent 2 days doing research on this, I found out that apart from this being a Listener issue, my ‘oradataXE’ folder located at: E:oraclexeapporacleoradataXE is empty. I think it should have contained the control files etc.

There are some errors related to creation of control files etc. reported in the log files located at : E:oraclexeapporacleproduct11.2.0serverconfiglog and am pasting them here ->

cloneDBCreation.log

SQL> Create controlfile reuse set database "XE"
  2  MAXINSTANCES 8
  3  MAXLOGHISTORY 1
  4  MAXLOGFILES 16
  5  MAXLOGMEMBERS 3
  6  MAXDATAFILES 100
  7  Datafile
  8  'E:oraclexeapporacleoradataXEsystem.dbf',
  9  'E:oraclexeapporacleoradataXEundotbs1.dbf',
 10  'E:oraclexeapporacleoradataXEsysaux.dbf',
 11  'E:oraclexeapporacleoradataXEusers.dbf'
 12  LOGFILE
 13  GROUP 1 SIZE 51200K,
 14  GROUP 2 SIZE 51200K,
 15  RESETLOGS;
Create controlfile reuse set database "XE"
*
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed 
ORA-01565: error in identifying file 
'E:oraclexeapporacleoradataXEsystem.dbf' 
ORA-27041: unable to open file 
OSD-04002: unable to open file 
O/S-Error: (OS 2) The system cannot find the file specified. 


SQL> exec dbms_backup_restore.zerodbid(0);
BEGIN dbms_backup_restore.zerodbid(0); END;

*
ERROR at line 1:
ORA-00210: cannot open the specified control file 
ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 4754 
ORA-06512: at line 1 


SQL> shutdown immediate;
ORA-01507: database not mounted 


ORACLE instance shut down.
SQL> startup nomount pfile="E:oraclexeapporacleproduct11.2.0serverconfigscriptsinitXETemp.ora";
ORACLE instance started.

Total System Global Area  535662592 bytes                                       
Fixed Size                  1384760 bytes                                       
Variable Size             226496200 bytes                                       
Database Buffers          301989888 bytes                                       
Redo Buffers                5791744 bytes                                       
SQL> Create controlfile reuse set database "XE"
  2  MAXINSTANCES 8
  3  MAXLOGHISTORY 1
  4  MAXLOGFILES 16
  5  MAXLOGMEMBERS 3
  6  MAXDATAFILES 100
  7  Datafile
  8  'E:oraclexeapporacleoradataXEsystem.dbf',
  9  'E:oraclexeapporacleoradataXEundotbs1.dbf',
 10  'E:oraclexeapporacleoradataXEsysaux.dbf',
 11  'E:oraclexeapporacleoradataXEusers.dbf'
 12  LOGFILE
 13  GROUP 1 SIZE 51200K,
 14  GROUP 2 SIZE 51200K,
 15  RESETLOGS;
Create controlfile reuse set database "XE"
*
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed 
ORA-01565: error in identifying file 
'E:oraclexeapporacleoradataXEsystem.dbf' 
ORA-27041: unable to open file 
OSD-04002: unable to open file 
O/S-Error: (OS 2) The system cannot find the file specified. 


SQL> alter system enable restricted session;

System altered.

SQL> alter database "XE" open resetlogs;
alter database "XE" open resetlogs
*
ERROR at line 1:
ORA-01507: database not mounted 


SQL> alter database rename global_name to "XE";
alter database rename global_name to "XE"
                                     *
ERROR at line 1:
ORA-01109: database not open 


SQL> alter system switch logfile;
alter system switch logfile
*
ERROR at line 1:
ORA-01109: database not open 


SQL> alter system checkpoint;
alter system checkpoint
*
ERROR at line 1:
ORA-01109: database not open 


SQL> alter database drop logfile group 3;
alter database drop logfile group 3
*
ERROR at line 1:
ORA-01507: database not mounted 


SQL> ALTER TABLESPACE TEMP ADD TEMPFILE 'E:oraclexeapporacleoradataXEtemp.dbf' SIZE 20480K REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED;
ALTER TABLESPACE TEMP ADD TEMPFILE 'E:oraclexeapporacleoradataXEtemp.dbf' SIZE 20480K REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
*
ERROR at line 1:
ORA-01109: database not open 


SQL> select tablespace_name from dba_tablespaces where tablespace_name='USERS';
select tablespace_name from dba_tablespaces where tablespace_name='USERS'
                            *
ERROR at line 1:
ORA-01219: database not open: queries allowed on fixed tables/views only 


SQL> select sid, program, serial#, username from v$session;

       SID PROGRAM                                                              
---------- ----------------------------------------------------------------     
   SERIAL# USERNAME                                                             
---------- ------------------------------                                       
         1 ORACLE.EXE (PMON)                                                    
         1                                                                      

         2 ORACLE.EXE (VKTM)                                                    
         1                                                                      

         3 ORACLE.EXE (DIAG)                                                    
         1                                                                      


       SID PROGRAM                                                              
---------- ----------------------------------------------------------------     
   SERIAL# USERNAME                                                             
---------- ------------------------------                                       
         4 ORACLE.EXE (DIA0)                                                    
         1                                                                      

         5 ORACLE.EXE (DBW0)                                                    
         1                                                                      

         6 ORACLE.EXE (RECO)                                                    
         1                                                                      


       SID PROGRAM                                                              
---------- ----------------------------------------------------------------     
   SERIAL# USERNAME                                                             
---------- ------------------------------                                       
         8 ORACLE.EXE (CKPT)                                                    
         1                                                                      

         9 sqlplus.exe                                                          
         3 SYS                                                                  

        10 ORACLE.EXE (MMNL)                                                    
         5                                                                      


       SID PROGRAM                                                              
---------- ----------------------------------------------------------------     
   SERIAL# USERNAME                                                             
---------- ------------------------------                                       
        88 ORACLE.EXE (PSP0)                                                    
         1                                                                      

        89 ORACLE.EXE (GEN0)                                                    
         1                                                                      

        90 ORACLE.EXE (DBRM)                                                    
         1                                                                      


       SID PROGRAM                                                              
---------- ----------------------------------------------------------------     
   SERIAL# USERNAME                                                             
---------- ------------------------------                                       
        91 ORACLE.EXE (MMAN)                                                    
         1                                                                      

        92 ORACLE.EXE (LGWR)                                                    
         1                                                                      

        93 ORACLE.EXE (SMON)                                                    
         1                                                                      


15 rows selected.

SQL> alter user sys identified by "&&sysPassword";
alter user sys identified by "tiger"
                             *
ERROR at line 1:
ORA-01109: database not open 


SQL> alter user system identified by "&&systemPassword";
alter user system identified by "tiger"
                                *
ERROR at line 1:
ORA-01109: database not open 


SQL> alter system disable restricted session;

System altered.

SQL> @E:oraclexeapporacleproduct11.2.0serverconfigscriptspostScripts.sql
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected.
SQL> set echo on
SQL> spool E:oraclexeapporacleproduct11.2.0serverconfiglogpostScripts.log

CloneRmanRestore.log

SQL> startup nomount pfile="E:oraclexeapporacleproduct11.2.0serverconfigscriptsinit.ora";
ORACLE instance started.

Total System Global Area  535662592 bytes                                       
Fixed Size                  1384760 bytes                                       
Variable Size             226496200 bytes                                       
Database Buffers          301989888 bytes                                       
Redo Buffers                5791744 bytes                                       
SQL> @E:oraclexeapporacleproduct11.2.0serverconfigscriptsrmanRestoreDatafiles.sql;
SQL> set echo off;

TO_CHAR(SYSTIMEST                                                               
-----------------                                                               
20140530 06:00:59                                                               

Allocating device....                                                           
Specifying datafiles...                                                         
Specifing datafiles...                                                          
Restoring ...                                                                   
declare
*
ERROR at line 1:
ORA-19624: operation failed, retry possible 
ORA-19870: error while restoring backup piece 
E:ORACLEXEAPPORACLEPRODUCT11.2.0SERVERCONFIGSEEDDBEXPRESS.DFB 
ORA-19504: failed to create file "E:ORACLEXEAPPORACLEORADATAXESYSTEM.DBF" 
ORA-27044: unable to write the header block of file 
OSD-04008: WriteFile() failure, unable to write to file 
O/S-Error: (OS 112) There is not enough space on the disk. 
ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5827 
ORA-06512: at line 16 



TO_CHAR(SYSTIMEST                                                               
-----------------                                                               
20140530 06:01:02                                                               

Connected.
SQL> spool E:oraclexeapporacleproduct11.2.0serverconfiglogcloneDBCreation.log

postDBCreation.log

SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected.
SQL> set echo on
SQL> //create or replace directory DB_BACKUPS as 'E:oraclexeapporaclefast_recovery_area';
SP2-0103: Nothing in SQL buffer to run.
SQL> begin
  2     dbms_xdb.sethttpport('8080');
  3     dbms_xdb.setftpport('0');
  4  end;
  5  /
   dbms_xdb.sethttpport('8080');
   *
ERROR at line 2:
ORA-06550: line 2, column 4: 
PLS-00201: identifier 'DBMS_XDB.SETHTTPPORT' must be declared 
ORA-06550: line 2, column 4: 
PL/SQL: Statement ignored 
ORA-06550: line 3, column 4: 
PLS-00201: identifier 'DBMS_XDB.SETFTPPORT' must be declared 
ORA-06550: line 3, column 4: 
PL/SQL: Statement ignored 


SQL> create spfile='E:oraclexeapporacleproduct11.2.0serverdbs/spfileXE.ora' FROM pfile='E:oraclexeapporacleproduct11.2.0serverconfigscriptsinit.ora';

File created.

SQL> shutdown immediate;
ORA-01507: database not mounted 


ORACLE instance shut down.
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
Connected to an idle instance.
SQL> startup ;
ORACLE instance started.

Total System Global Area  535662592 bytes                                       
Fixed Size                  1384760 bytes                                       
Variable Size             226496200 bytes                                       
Database Buffers          301989888 bytes                                       
Redo Buffers                5791744 bytes                                       
ORA-00205: error in identifying control file, check alert log for more info 


SQL> select 'utl_recomp_begin: ' || to_char(sysdate, 'HH:MI:SS') from dual;

'UTL_RECOMP_BEGIN:'||TO_CH                                                      
--------------------------                                                      
utl_recomp_begin: 06:01:55                                                      

SQL> execute utl_recomp.recomp_serial();
BEGIN utl_recomp.recomp_serial(); END;

      *
ERROR at line 1:
ORA-06550: line 1, column 7: 
PLS-00201: identifier 'UTL_RECOMP.RECOMP_SERIAL' must be declared 
ORA-06550: line 1, column 7: 
PL/SQL: Statement ignored 


SQL> select 'utl_recomp_end: ' || to_char(sysdate, 'HH:MI:SS') from dual;

'UTL_RECOMP_END:'||TO_CH                                                        
------------------------                                                        
utl_recomp_end: 06:01:55                                                        

SQL> alter user hr password expire account lock;
alter user hr password expire account lock
*
ERROR at line 1:
ORA-01109: database not open 


SQL> alter user ctxsys password expire account lock;
alter user ctxsys password expire account lock
*
ERROR at line 1:
ORA-01109: database not open 


SQL> alter user outln password expire account lock;
alter user outln password expire account lock
*
ERROR at line 1:
ORA-01109: database not open 


SQL> alter user MDSYS password expire;
alter user MDSYS password expire
*
ERROR at line 1:
ORA-01109: database not open 


SQL> @E:oraclexeapporacleproduct11.2.0serverapexapxxepwd.sql "&1"
SQL> Rem  Copyright (c) Oracle Corporation 1999 - 2006. All Rights Reserved.
SQL> Rem
SQL> Rem    NAME
SQL> Rem      apxxepwd.sql
SQL> Rem
SQL> Rem    DESCRIPTION
SQL> Rem      Changes the password for the INTERNAL ADMIN user
SQL> Rem
SQL> Rem    NOTES
SQL> Rem      Assumes the SYS user is connected.
SQL> Rem
SQL> Rem    REQUIRENTS
SQL> Rem      - Oracle 10g
SQL> Rem
SQL> Rem
SQL> Rem    MODIFIED   (MM/DD/YYYY)
SQL> Rem      jstraub   08/01/2006 - Created
SQL> Rem      jkallman  09/29/2006 - Adjusted current_schema to FLOWS_030000
SQL> Rem      jkallman  08/02/2007 - Change FLOWS_030000 references to FLOWS_030100
SQL> Rem      jkallman  07/08/2008 - Change FLOWS_030100 references to FLOWS_040000
SQL> Rem      jkallman  10/02/2008 - Change FLOWS_040000 references to APEX_040000
SQL> 
SQL> Rem
SQL> 
SQL> set define '&'
SQL> 
SQL> set verify off
SQL> 
SQL> alter session set current_schema = APEX_040000;
ERROR:
ORA-01435: user does not exist 


SQL> 
SQL> prompt ...changing password for ADMIN
...changing password for ADMIN
SQL> 
SQL> begin
  2  
  3      wwv_flow_security.g_security_group_id := 10;
  4      wwv_flow_security.g_user := 'ADMIN';
  5      wwv_flow_security.g_import_in_progress := true;
  6  
  7      for c1 in (select user_id
  8               from wwv_flow_fnd_user
  9              where security_group_id = wwv_flow_security.g_security_group_id
 10                and user_name = wwv_flow_security.g_user) loop
 11  
 12          wwv_flow_fnd_user_api.edit_fnd_user(
 13          p_user_id   => c1.user_id,
 14          p_user_name     => wwv_flow_security.g_user,
 15          p_web_password  => '&1',
 16          p_new_password  => '&1');
 17      end loop;
 18  
 19      wwv_flow_security.g_import_in_progress := false;
 20  
 21  end;
 22  /
    wwv_flow_security.g_security_group_id := 10;
    *
ERROR at line 3:
ORA-06550: line 3, column 5: 
PLS-00201: identifier 'WWV_FLOW_SECURITY.G_SECURITY_GROUP_ID' must be declared 
ORA-06550: line 3, column 5: 
PL/SQL: Statement ignored 
ORA-06550: line 4, column 5: 
PLS-00201: identifier 'WWV_FLOW_SECURITY.G_USER' must be declared 
ORA-06550: line 4, column 5: 
PL/SQL: Statement ignored 
ORA-06550: line 5, column 5: 
PLS-00201: identifier 'WWV_FLOW_SECURITY.G_IMPORT_IN_PROGRESS' must be declared 
ORA-06550: line 5, column 5: 
PL/SQL: Statement ignored 
ORA-06550: line 8, column 23: 
PL/SQL: ORA-01219: database not open: queries allowed on fixed tables/views 
only 
ORA-06550: line 7, column 16: 
PL/SQL: SQL Statement ignored 
ORA-06550: line 13, column 32: 
PLS-00364: loop index variable 'C1' use is invalid 
ORA-06550: line 12, column 9: 
PL/SQL: Statement ignored 
ORA-06550: line 19, column 5: 
PLS-00201: identifier 'WWV_FLOW_SECURITY.G_IMPORT_IN_PROGRESS' must be declared 
ORA-06550: line 19, column 5: 
PL/SQL: Statement ignored 


SQL> commit;

Commit complete.

SQL> spool off;

XE.bat.log

Instance created.

I have not pasted the contents of the postScripts.log as it was causing the body of this question to exceed the allowed limit of characters.

As suggested in some articles/posts on the internet, I tried connecting to Oracle as sysdba to view the control_file parameter. This is what I got:

SQL> connect / as sysdba
Connected.

SQL> show parameter control_files

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
control_files                        string      E:ORACLEXEAPPORACLEORADATA
                                                 XECONTROL.DBF

I am sorry for posting all the information from the log files, but I thought it might be necessary.

Also, pls be aware of the following:

  • I am logged in as a User which is a part of the Administrators group.
  • I am using a dual boot system, so my Windows XP is installed on drive
    E:
  • I have used the GUI installer only and did not meddle in the
    installation process

Can some Oracle expert please help ? What is wrong with the installation and how do I get it to work ? I have tried reinstalling it several times, but am stuck with the same issues.

According to Oracle’s Documentation Oracle Database XE 11g R2 is not supported to be installed on a x64 machine

I’ve Installed this version of the Database on a Windows Server 2008 successfully with no problem and it works properly(btw)!

But, when I was trying to install Oracle Database XE 11g r2 on a Windows Server 2012 x64 Datacenter I got an error like this

The installer is unable to instantiate the file C:UsersADMINI~1AppDataLocalTemp{5F2E862E-7715-49E1-8CB5-E2227B01E12F}KEY_XE.reg. The file does not appear to exist.

I was installing Oracle Database XE 11g R2 on a Windows Server 2012 x64 Datacenter running on an Oracle VM VirtualBox virtual machine. ( The Windows Server 2008 r2 x64 was running on an Oracle VM VirtualBox machine as well )

So, when you get this error like the screen shows,,, DO NOT CLICK OK, and do the next steps I mention before you continue

Image

The problem here is that, for an unknown reason the installer does not find the PATH where the file KEY_XE.reg is located, so we must help the installer to find this path,,,,

And we do it like this…

  • press windows logo key + ‘r’ key
  • Type regedit

Image

  • press enter and you will see the register editor
  • Locate the next path
HKEY_CLASSES_ROOTInstallerProducts266B7A503A089BE4EAD1986A429434C1SourceListMedia
  • Identify the string value 1, you will see that the data appears like : DISK

Image

  • You need to edit it to your this value to the path thrown in the error message, mine is C:UsersADMINI~1AppDataLocalTemp{5F2E862E-7715-49E1-8CB5-E2227B01E12F}KEY_XE.reg , yours will be the same but you need to modify the username

regedit

Once you have modified the 1 value with the path of your file,, now you may continue with the installation,

After this you should not face any problem and you will have your Oracle Database XE 11g R2 installed and running perfectly on Windoes Server 2012 x64 Datacenter,

I think this same error has occurred on Windows 7 x64, you may apply the same steps to resolve it

Best regards!

Ошибка при установке Oracle:

[INS-30131] Не удалось выполнить первоначальную настройку, необходимую для выполнения проверки установщика.

Не удалось получить версию exectask из узла «win7lhr»

Решение:

Метод 1: Панель управления> Все элементы панели управления> Инструменты управления> Службы> Запуск СЕРВЕРА

Метод 2: F: database> setup.exe -ignorePrereq -ignorePrereq -J»-Doracle.install.db.validate.supportedOSCheck=false»

Решение:

Шаг 1. Панель управления> Все элементы панели управления> Инструменты управления> Службы> Запуск СЕРВЕРА

Шаг 2: Панель управления> Система и безопасность> Администрирование> Управление компьютером> Системные инструменты> Общая папка> Общий доступ, щелкните правой кнопкой мыши «Общий доступ»> Новый общий ресурс> Нажмите «Далее» > Нажмите «Обзор»> выберите «Локальный диск (C :)»> ОК

«Совместное имя» введите «C $»> «Далее» ОК!

Установить oracle11g [INS-30131] Не удалось выполнить первоначальную настройку, необходимую для выполнения проверки установщика.

Решение

Первый шаг:
Панель управления> Все элементы панели управления> Инструменты управления> Службы> Запуск СЕРВЕРА

Начало TCP / IP

Шаг 2:

1. Нажмите «Пуск» -> «Выполнить», введите regedit, а затем нажмите «Ввод», чтобы войти в редактор регистрации .
2. Найдите и щелкните HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet services LanmanServer Parameters .
3. Если AutoShareServer и AutoShareWks равны 0, измените значение на 1

Шаг 3:
Перезагрузите компьютер [Вы также можете перезапустить службу сервера, не перезагружая компьютер]

Шаг 4:

Войдите в каталог установки oracle, щелкните правой кнопкой мыши и выберите «Запуск от имени администратора».

Oracle 11.2.0.4 и 12c устанавливают решение для разрешения временного местоположения INS-30131

Я давно не устанавливал базу данных, а сегодня установил базу данных версии 11.2.0.

12204.Instanll.png

[INS-30131] «Ошибка». Убедитесь, что у текущего пользователя есть необходимые разрешения для доступа к временному хранилищу »

Описание этой ошибки в документе также очень четкое:

[INS-30131] Initial setup required for the execution of installer validations failed

Cause: Failed to access the temporary location

Action: Ensure that the current user has required permissions to access the temporary location.

Убедитесь, что у вас есть разрешение на доступ к временному каталогу установки. Но на самом деле в Windows многие люди предлагают увеличить долю C $ на диске.

Но это не влияет на мою среду, и я знаю, что с временным каталогом проблем нет. Затем введите каталог установочного программного обеспечения в командной строке, запустите программу установки через командную строку и установите проверку ignorePrereq. В это время программное обеспечение базы данных может начать установку. Будет ли ошибка, это зависит от того, является ли проигнорированная проверка критической. Для временной проблемы с пространством в этом случае, Правильная установка базы данных:

F:database>dir

Directory of F:database

2017-07-03 09:21 <DIR> install
2013-10-25 09:09 29,747 readme.html
2013-10-25 09:06 <DIR> response
2013-10-25 09:06 345,480 setup.exe
2017-07-03 12:57 <DIR> stage
2013-10-25 09:09 500 welcome.html
3 File(s) 377,291 bytes
3 Dir(s) 88,050,397,184 bytes free

F:database> setup.exe -ignorePrereq -ignorePrereq -J»-Doracle.install.db.validate.supportedOSCheck=false»

Это простой и грубый метод, но иногда он эффективен.



About Me

…………………………………………………………………………………………………………

● Автор: пырей, часть содержания обсуждения из сети, в случае нарушения, пожалуйста, свяжитесь с рассадой пшеницы удалить

● Эта статья находится в itpub ( http://blog.itpub.net/26736162 ), сад блогов ( http://www.cnblogs.com/lhrbest ) и личный официальный аккаунт Weixin ( xiaomaimiaolhr ) Есть обновление синхронизации для

● Itpub-адрес этой статьи: http://blog.itpub.net/26736162

● Адрес блога этой статьи: http://www.cnblogs.com/lhrbest

● Версия этой статьи в формате pdf, личный профиль и адрес облачного диска для рассады пшеницы: http://blog.itpub.net/26736162/viewspace-1624453/

● База данных письменных вопросов и ответов на тестовое интервью: http://blog.itpub.net/26736162/viewspace-2134706/

● Сегодняшний адрес номера заголовка коллекции DBA: http://www.toutiao.com/c/user/6401772890/#mid=1564638659405826

…………………………………………………………………………………………………………

● Номер группы QQ: 230161599 (полный) 、618766405

● группа weixin: добавьте мой weixin, я соберу всех в группу, если вы один

● Свяжитесь со мной, добавьте друзей QQ 646634621 , укажите причину добавления

● Завершено в 06:00 01.10.2018 ~ 24:00 31.10.2018 в Magic City

● Время последнего изменения: 2018-10-01 06:00 ~ 2018-10-31 24:00

● Содержание статьи основано на записях об исследованиях саженцев пшеницы, а некоторые из них собраны из Интернета. Пожалуйста, поймите, есть ли какие-либо нарушения или нарушения

● Все права защищены, добро пожаловать, чтобы поделиться этой статьей, пожалуйста, сохраните исходный код для повторной печати

…………………………………………………………………………………………………………

Магазин WeChat для семян пшеницы : https://weidian.com/s/793741433?wfr=c&ifr=shopdetail

Серия баз данных, опубликованная компанией Wheat Seedling : http://blog.itpub.net/26736162/viewspace-2142121/

Ростки пшеницы OCP, OCM, класс сети высокой доступности : http://blog.itpub.net/26736162/viewspace-2148098/

Домашняя страница Tencent Classroom, посвященная сеянцам пшеницы : https://lhr.ke.qq.com/

…………………………………………………………………………………………………………

используйте клиент weixin Отсканируйте приведенный ниже QR-код, чтобы следить за официальным аккаунтом Weixin о саженцах пшеницы ( xiaomaimiaolhr ) и группа QQ (коллекция DBA), добавьте Weixin проростков пшеницы, Изучите наиболее практичную технологию баз данных.

…………………………………………………………………………………………………………

взят из «блога ITPUB», ссылка: http://blog.itpub.net/26736162/viewspace-2215926/, если вам нужно перепечатать, укажите источник, в противном случае будет преследоваться юридическая ответственность.

Problem

While installing Oracle Client 11.2.0.4 on windows, installation fails with the error below:

[INS-30131] Initial setup required for the execution of installer validations failed

Cause — Failed to access the temporary location.

Action — Ensure
that the current user has required permissions to access the temporary
location. 

Solution

Using the Task Manager, check if RemoteExecService.exe *32 is running from your temp location, for example C:Users<your_user_name>AppDataLocalTemporaremservice. If it does, then kill the process and delete the
oraremservice folder.

Rerun your installation.

Понравилась статья? Поделить с друзьями:
  • Ошибка при установке osu
  • Ошибка при установке office 365
  • Ошибка при установке os x el capitan
  • Ошибка при установке obs studio
  • Ошибка при установке origin