Oups!
J'ai oublié le contenu du fichier remove_xe_key.reg
Pierre
Oups!
J'ai oublié le contenu du fichier remove_xe_key.reg
Pierre
Contenu du fichier XE.bat :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 @echo off TITLE Oracle XE - Configration echo Adding user to ORA_DBA group... C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server\bin\oradim.exe -ex network useradd ORA_DBA "SI\pierre.rambaldi" "Oracle DBA Group" echo Creating Directories... mkdir C:\oraclexe\app\oracle\admin\app\oracle\admin\XE\adump mkdir C:\oraclexe\app\oracle\admin\app\oracle\admin\XE\dpdump mkdir C:\oraclexe\app\oracle\admin\app\oracle\admin\XE\pfile mkdir C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server\dbs mkdir C:\oraclexe\app\oracle\admin\app\oracle\oradata\XE mkdir C:\oraclexe\app\oracle\admin\app\oracle\fast_recovery_area mkdir C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server\config\scripts\log mkdir C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server\config\log set ORACLE_SID=XE echo Creating Instance... C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server\bin\oradim.exe -new -sid XE -startmode manual -spfile > C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server\config\log\XE.bat.log echo Starting Instance... C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server\bin\oradim.exe -edit -sid XE -startmode auto -srvcstart system >> C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server\config\log\XE.bat.log REM unset SQLPATH set SQLPATH= echo Database creation in progress... C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server\bin\orapwd.exe file=C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server\database\PWDXE.ora password=%1 force=y C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server\bin\sqlplus /nolog @C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server\config\scripts\XE.sql %1 %2 echo SPFILE='C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server\dbs/spfileXE.ora' > C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server\database\initXE.ora C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server\bin\sqlplus /nolog @C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server\config\scripts\postDBCreation.sql %1 echo Seed Creation complete... echo on
Bonjour,
J'ai finalement réussi à démarrer l'instance XE.
Voici le contenu des fichiers :
sqlnet.ora :
tnsnames.ora :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 # This file is actually generated by netca. But if customers choose to # install "Software Only", this file wont exist and without the native # authentication, they will not be able to connect to the database on NT. SQLNET.AUTHENTICATION_SERVICES = (NONE)
listener.ora :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42 XE = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = CAPMWKS13-019.si.adr.loc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE) ) ) EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) ) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO) ) ) ORACLR_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) ) (CONNECT_DATA = (SID = CLRExtProc) (PRESENTATION = RO) ) ) XE_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) ) (CONNECT_DATA = (SID = XE) (PRESENTATION = RO) ) )
init.ora :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server) (PROGRAM = extproc) ) (SID_DESC = (SID_NAME = CLRExtProc) (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server) (PROGRAM = extproc) ) (SID_DESC = (SID_NAME = XE) (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server) (PROGRAM = extproc) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) (ADDRESS = (PROTOCOL = TCP)(HOST = CAPMWKS13-019.si.adr.loc)(PORT = 1521)) ) ) DEFAULT_SERVICE_LISTENER = (XE)
initXE.ora
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67 # # $Header: rdbms/admin/init.ora /main/23 2009/05/15 13:35:38 ysarig Exp $ # # Copyright (c) 1991, 1997, 1998 by Oracle Corporation # NAME # init.ora # FUNCTION # NOTES # MODIFIED # ysarig 05/14/09 - Updating compatible to 11.2 # ysarig 08/13/07 - Fixing the sample for 11g # atsukerm 08/06/98 - fix for 8.1. # hpiao 06/05/97 - fix for 803 # glavash 05/12/97 - add oracle_trace_enable comment # hpiao 04/22/97 - remove ifile=, events=, etc. # alingelb 09/19/94 - remove vms-specific stuff # dpawson 07/07/93 - add more comments regarded archive start # maporter 10/29/92 - Add vms_sga_use_gblpagfile=TRUE # jloaiza 03/07/92 - change ALPHA to BETA # danderso 02/26/92 - change db_block_cache_protect to _db_block_cache_p # ghallmar 02/03/92 - db_directory -> db_domain # maporter 01/12/92 - merge changes from branch 1.8.308.1 # maporter 12/21/91 - bug 76493: Add control_files parameter # wbridge 12/03/91 - use of %c in archive format is discouraged # ghallmar 12/02/91 - add global_names=true, db_directory=us.acme.com # thayes 11/27/91 - Change default for cache_clone # jloaiza 08/13/91 - merge changes from branch 1.7.100.1 # jloaiza 07/31/91 - add debug stuff # rlim 04/29/91 - removal of char_is_varchar2 # Bridge 03/12/91 - log_allocation no longer exists # Wijaya 02/05/91 - remove obsolete parameters # ############################################################################## # Example INIT.ORA file # # This file is provided by Oracle Corporation to help you start by providing # a starting point to customize your RDBMS installation for your site. # # NOTE: The values that are used in this file are only intended to be used # as a starting point. You may want to adjust/tune those values to your # specific hardware and needs. You may also consider using Database # Configuration Assistant tool (DBCA) to create INIT file and to size your # initial set of tablespaces based on the user input. ############################################################################### # Change '<ORACLE_BASE>' to point to the oracle base (the one you specify at # install time) db_name='ORCL' memory_target=1G processes = 150 audit_file_dest='<ORACLE_BASE>/admin/orcl/adump' audit_trail ='db' db_block_size=8192 db_domain='' db_recovery_file_dest='<ORACLE_BASE>/flash_recovery_area' db_recovery_file_dest_size=2G diagnostic_dest='<ORACLE_BASE>' dispatchers='(PROTOCOL=TCP) (SERVICE=ORCLXDB)' open_cursors=300 remote_login_passwordfile='EXCLUSIVE' undo_tablespace='UNDOTBS1' # You may want to ensure that control files are created on separate physical # devices control_files = (ora_control1, ora_control2) compatible ='11.2.0'
initORCL.ora :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63 ############################################################################## # Copyright (c) 1991, 2011, Oracle and/or its affiliates. All rights reserved. ############################################################################## ########################################### # Cursors and Library Cache ########################################### open_cursors=300 ########################################### # Database Identification ########################################### db_name=ORCL ########################################### # File Configuration ########################################### #control_files=("C:\oraclexe\app\oracle\oradata\ORCL\control.dbf") control_files=C:\ORACLEXE\APP\ORACLE\ORADATA\ORCL\CONTROL.DBF ###############################diagnostic_dest=############ # Job Queues ########################################### job_queue_processes=4 ########################################### # Miscellaneous ########################################### compatible=11.2.0.0.0 diagnostic_dest=C:\oraclexe\app\oracle\. memory_target=760M ########################################### # Processes and Sessions ########################################### sessions=20 ########################################### # Security and Auditing ########################################### audit_file_dest=C:\oraclexe\app\oracle\admin\ORCL\adump remote_login_passwordfile=EXCLUSIVE ########################################### # Shared Server ########################################### dispatchers="(PROTOCOL=TCP) (SERVICE=ORCLXDB)" shared_servers=4 ########################################### # System Managed Undo and Rollback Segments ########################################### undo_management=AUTO undo_tablespace=UNDOTBS1 ########################################### # Backup and Recovery ########################################### DB_RECOVERY_FILE_DEST_SIZE = 10G DB_RECOVERY_FILE_DEST=C:\oraclexe\app\oracle\fast_recovery_area
SPFILEXE.ORA :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63 ############################################################################## # Copyright (c) 1991, 2011, Oracle and/or its affiliates. All rights reserved. ############################################################################## ########################################### # Cursors and Library Cache ########################################### open_cursors=300 ########################################### # Database Identification ########################################### db_name=ORCL ########################################### # File Configuration ########################################### control_files=("C:\oraclexe\app\oracle\oradata\ORCL\control.dbf") ###############################diagnostic_dest=############ # Job Queues ########################################### job_queue_processes=4 ########################################### # Miscellaneous ########################################### compatible=11.2.0.0.0 diagnostic_dest=C:\oraclexe\app\oracle\. memory_target=760M ########################################### # Processes and Sessions ########################################### sessions=20 ########################################### # Security and Auditing ########################################### audit_file_dest=C:\oraclexe\app\oracle\admin\ORCL\adump remote_login_passwordfile=EXCLUSIVE ########################################### # Shared Server ########################################### dispatchers="(PROTOCOL=TCP) (SERVICE=ORCLXDB)" shared_servers=4 ########################################### # System Managed Undo and Rollback Segments ########################################### undo_management=AUTO undo_tablespace=UNDOTBS1 ########################################### # Backup and Recovery ########################################### DB_RECOVERY_FILE_DEST_SIZE = 10G DB_RECOVERY_FILE_DEST=C:\oraclexe\app\oracle\fast_recovery_area
Variables d'environnement :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 xe.__large_pool_size=4194304 xe.__oracle_base='C:\oraclexe\app\oracle'#ORACLE_BASE set from environment *.audit_file_dest='C:\oraclexe\app\oracle\admin\ORCL\adump' *.compatible='11.2.0.0.0' *.control_files='C:\oraclexe\app\oracle\oradata\ORCL\control.dbf' *.db_name='ORCL' *.DB_RECOVERY_FILE_DEST_SIZE=10G *.DB_RECOVERY_FILE_DEST='C:\oraclexe\app\oracle\fast_recovery_area' *.diagnostic_dest='C:\oraclexe\app\oracle\.' *.dispatchers='(PROTOCOL=TCP) (SERVICE=ORCLXDB)' *.job_queue_processes=4 *.memory_target=760M *.open_cursors=300 *.remote_login_passwordfile='EXCLUSIVE' *.sessions=20 *.shared_servers=4 *.undo_management='AUTO' *.undo_tablespace='UNDOTBS1'
Enfin le code dans l'invite de commande :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 ORACLE_BASE=C:\oraclexe\app\oracle\admin ORACLE_HOME=C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server ORACLE_SID=XE TNS_ADMIN=C:\oraclexe\app\oracle\admin\app\oracle\product\11.2.0\server\network\ADMIN
Contenu des répertoires
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54 C:\>sqlplus sys/admin as sysdba SQL*Plus: Release 11.2.0.2.0 Production on Ven. DÚc. 11 14:09:43 2015 Copyright (c) 1982, 2010, Oracle. All rights reserved. Connected to an idle instance. SQL> create spfile from pfile='C:\oraclexe\app\oracle\product\11.2.0\server\dbs\initORCL.ora'; File created. SQL> quit Disconnected C:\>sqlplus sys/admin as sysdba SQL*Plus: Release 11.2.0.2.0 Production on Ven. DÚc. 11 14:18:17 2015 Copyright (c) 1982, 2010, Oracle. All rights reserved. Connected to an idle instance. SQL> startup ORACLE instance started. Total System Global Area 795127808 bytes Fixed Size 1386496 bytes Variable Size 465569792 bytes Database Buffers 322961408 bytes Redo Buffers 5210112 bytes ORA-00205: error in identifying control file, check alert log for more info SQL> select status from v$instance; STATUS ------------ STARTED SQL> SHOW PARAMETERS control_files; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ control_files string C:\ORACLEXE\APP\ORACLE\ORADATA \ORCL\CONTROL.DBF SQL> SELECT VALUE FROM v$parameter where name = 'control_files'; VALUE -------------------------------------------------------------------------------- C:\ORACLEXE\APP\ORACLE\ORADATA\ORCL\CONTROL.DBF SQL>
database :
dbs :
admin :
Si du code contenu dans ces fichiers vous paraît superflu ou insuffisant, merci de me répondre.
Comment passer à l'étape suivante, créer la base de données ORCL?
J'ai ce message d'erreur :
Pierre
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 Microsoft Windows [version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Tous droits réservés. C:\>sqlplus sys/admin as sysdba SQL*Plus: Release 11.2.0.2.0 Production on Jeu. DÚc. 17 09:44:39 2015 Copyright (c) 1982, 2010, Oracle. All rights reserved. Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production SQL> startup ORA-01078: failure in processing system parameters ORA-01565: error in identifying file 'C:\oraclexe\app\oracle\product\11.2.0\serv er\dbs/spfileXE.ora' ORA-27046: file size is not a multiple of logical block size OSD-04012: file size mismatch (OS 2536) SQL>
Bonjour,
A propos de l'installation d'Oracle express et d'une base de données j'ai lu ce post :
https://community.oracle.com/thread/2466952?tstart=0
On ne peut installer cette version qu'avec un compte local et non un compte sur un domaine. Or mon compte se trouve dans un domaine.
soljanuzi 16 nov. 2012 08:17 (en réponse à soljanuzi)
It was solved.
It only worked when I installed logged with a local administrator account. If I install using a domain account with local administrative rights it doesn't work.
Thanks for you attention.
orafad 16 nov. 2012 09:35 (en réponse à soljanuzi)
Thanks for reporting back to thread with solution
Quelqu'un peut il m'éclairer davantage?
Cordialement.
Pierre
Bon,
Pour une installation d'Oracle Express :
Il faut installer Oracle XE avec un compte local et non un compte sur un domaine et tout fonctionnera correctement.
SQL Developer :Utiliser le compte system et le mot de passe de l'installation d'oracle XE.
Pierre
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager