как установить oracle database 11g на windows 10
Oracle® Database Express Edition
11 g Release 2 (11.2) for Microsoft Windows
The most up-to-date version of this installation guide is available from the Oracle Database Express Edition (Oracle Database XE) download page on Oracle Technology Network:
1 Introduction
Oracle Database XE is easy to install. The Oracle Database XE provides an Oracle database and tools for managing the database.
Oracle Database XE supports the following development environments:
Oracle SQL Developer : Oracle SQL Developer is a graphical version of SQL*Plus that gives database developers a convenient way to perform basic tasks. You can connect to any target Oracle Database XE schema using standard Oracle database authentication. Once connected, you can perform operations on objects in the database.
Download and install Oracle SQL Developer from:
Oracle Application Express : Oracle Database XE includes Oracle Application Express, a rapid web application development tool for the Oracle database. Oracle Application Express is enabled by default in Oracle Database XE.
Java : Java is an open-source programing language that is designed for use in the distributed environment of the Internet. You can use Oracle JDeveloper, which is a free integrated Java development environment with support for the full development life cycle.
Download and install Oracle JDeveloper from:
Download and install Oracle Data Access Components (ODAC) for Windows from:
PHP is an open-source server-side embedded scripting language that is designed for Web development and can be embedded in HTML. You can use the following PHP product:
PHP: Download and install from:
For more information on Oracle Database XE, see the following:
Oracle Database XE home page on the Oracle Technology Network:
Oracle Database XE Documentation Library:
2 Requirements
This section covers the following topics:
2.1 Software Requirements
This section covers the following topics:
2.1.1 System Requirements
Oracle provides 32-bit (Windows x86) and 64-bit (Windows x64) versions of Oracle Database XE server and client.
The 32-bit database server runs on 32-bit Windows only. See Table 1, «Oracle Database XE Requirements for Microsoft Windows 32-bit» for supported operating systems. The 64-bit database server and client runs on Windows x64 only. See Table 2, «Oracle Database XE Requirements for Microsoft Windows 64-bit» for supported operating systems.
The 32-bit database client runs on both 32-bit Windows and Windows x64.
The following 1563794.1 note in My Oracle Support for more information about Hyper-V support:
Table 1, «Oracle Database XE Requirements for Microsoft Windows 32-bit» provides system requirements for Oracle Database XE for Microsoft Windows 32-bit
Table 1 Oracle Database XE Requirements for Microsoft Windows 32-bit
Intel (x86), AMD64, and Intel EM64T
One of the following 32-bit Microsoft Windows operating systems:
The following protocols are supported:
1.5 gigabytes minimum
256 megabytes minimum, 512 megabytes recommended for Oracle Database XE. The operating system itself may have a higher minimum requirement.
Microsoft Windows Installer (MSI)
MSI version 2.0 or later
You can download MSI from Microsoft at:
Table 2, «Oracle Database XE Requirements for Microsoft Windows 64-bit» provides system requirements for Oracle Database XE for Microsoft Windows 64-bit
Table 2 Oracle Database XE Requirements for Microsoft Windows 64-bit
AMD64 and Intel EM64T
One of the following 64-bit Microsoft Windows x64 operating systems:
The Server Core option is not supported.
The following protocols are supported:
1.5 gigabytes minimum
256 megabytes minimum, 512 megabytes recommended for Oracle Database XE. The operating system itself may have a higher minimum requirement.
Microsoft Windows Installer (MSI)
MSI version 2.0 or later
You can download MSI from Microsoft at:
2.1.2 Windows Firewall Configuration
If you plan to install Oracle Database XE onto a computer running Windows Firewall, which was first introduced in Windows XP Service Pack 2 and Windows Server 2003 Service Pack 1, and then connect to it from another computer, check that the firewall has not been configured to block communication from the following incoming ports. These ports are the default ports that Oracle Database XE users.
1521: Oracle Database Listener
2030: Oracle Services for Microsoft Transaction Server
8080: Oracle HTTP Transaction Server
This requirement is for design-time development, deployment, and run-time.
Oracle Database XE
Install Visual Studio 2005 or higher onto the computer before you install Oracle Developer Tools for Visual Studio.
Oracle Developer Tools for Visual Studio
2.1.4 Oracle Developer Tools for Visual Studio
2.2 Permission Requirement for Installing Oracle Database XE
You must be part of the Administrators group on Windows to install Oracle Database XE. If you are logged in as a domain user, ensure sure that you are connected to the network before you install Oracle Database XE.
2.3 Windows Security Recommendations
Oracle recommends that you perform the following security-related tasks before installing Oracle Database XE on Windows:
2.3.1 Disable Simple File Sharing on Windows XP
If you are installing on Windows XP, consider disabling simple file sharing on the computer where you plan to install Oracle Database XE. If simple file sharing is enabled, there is risk of unauthorized access to the data in your database.
To disable simple file sharing, go to the Microsoft Knowledge Base ( http://support.microsoft.com ) and search for article 307874.
It is not possible to disable simple file sharing on Microsoft Windows XP Home. Oracle strongly recommends that you upgrade to one of the required operating systems identified in «System Requirements». However, if you cannot upgrade, then Oracle recommends that you enable the firewall and ensure that port 1521 (or the Oracle listener port you configured during installation) is blocked. Note that blocking port 1521 blocks remote access to the database over TCP/IP.
To enable the firewall (or check that the firewall is enabled) on Microsoft Windows XP, see Microsoft Knowledge Base article number 283673, «How to turn on or turn off the firewall in Windows XP.»
Note that enabling the firewall prevents all remote connections to your system by default. If you want to open specific ports, see Microsoft Knowledge Base article number 875357, «Troubleshooting Windows Firewall settings in Windows XP Service Pack 2» or article number 308127, «How to manually open ports in Internet Connection Firewall in Windows XP» for earlier Windows XP releases.
2.3.2 Install on Windows File Systems that Support Access Controls
Install Oracle Database XE on a file system that supports access controls (for example, NTFS). If you install Oracle Database XE on a file system that does not support access controls, such as FAT, there is significant risk of unauthorized access to the data in your database. If necessary, you can convert a FAT partition to an NTFS partition.
Microsoft Support site ( http://support.microsoft.com ) for more information on FAT and NTFS file systems and how to convert from FAT to NTFS
3 Licensing Restrictions
This section covers the following topics:
3.1 Oracle Database XE CPU Limitations
If Oracle Database XE is installed on a computer with more than one CPU (including dual-core CPUs), then it will consume, at most, processing resources equivalent to one CPU. For example, on a computer with two CPUs, if two Oracle database clients try to simultaneously execute CPU-intensive queries, then Oracle Database Standard Edition, Oracle Database Standard Edition One, or Oracle Database Enterprise Edition will use both CPUs to efficiently process the queries. However, with Oracle Database XE, the Oracle database will process the queries at the rate of a single CPU even if concurrent processing on two CPUs would be faster. To use the full processing resources of your computer, upgrade to Oracle Database Standard Edition, Oracle Database Standard Edition One, or Oracle Database Enterprise Edition.
3.2 Oracle Database XE Installation and Execution Restrictions
Only one installation of Oracle Database XE can be performed on a single computer. This does not affect any existing installation or new installations of Oracle Database Standard Edition, Oracle Database Standard Edition One, or Oracle Database Enterprise Edition. In addition, users can run only one instance of the Oracle Database XE database on each individual computer. To run more than one Oracle Database server instance or install more than one copy of the database software, upgrade to Oracle Database Standard Edition, Oracle Database Standard Edition One, or Oracle Database Enterprise Edition.
3.3 Oracle Database XE User Data Limitations
The maximum amount of user data in an Oracle Database XE database cannot exceed 11 gigabytes. If the user data grows beyond this limit, then an ORA-12592 error will appear. To use more than 11 gigabytes of user data, upgrade to Oracle Database Standard Edition, Oracle Database Standard Edition One, or Oracle Database Enterprise Edition.
3.4 Oracle Database XE RAM Limitation
The maximum amount of RAM that an Oracle Database XE database uses cannot exceed 1 gigabyte, even if more is available. Table 1, «Oracle Database XE Requirements for Microsoft Windows 32-bit» and Table 2, «Oracle Database XE Requirements for Microsoft Windows 64-bit» provide the minimum and recommended RAM that you should use. The exact amount of RAM that Oracle Database XE uses is computed automatically using Automatic Memory Management.
To use more than 1 gigabyte of RAM, upgrade to Oracle Database Standard Edition, Oracle Database Standard Edition One, or Oracle Database Enterprise Edition.
3.5 HTTPS Support
HTTPS is not supported natively with the HTTP listener built into Oracle Database XE. If you want HTTPS support, use an alternative Web listener, such as Apache, that does provide HTTPS support, and provide proxies for the URLs provided by Oracle Database XE.
4 Installing Oracle Database XE
This section covers the following topics:
4.1 Performing a Graphical User Interface Installation of the Server
Most users will install Oracle Database XE by downloading the installation executable, double-clicking it, and answering graphical user interface prompts as needed.
Before attempting to install Oracle Database XE 11.2 uninstall any existing Oracle Database XE or database with the SID XE from the target system.
If you have an existing version of Oracle Database XE, then save your data by exporting it to data files. After you install the new version of Oracle Database XE import this data into the new database. For more information see Section 7, «Importing and Exporting Data between 10.2 XE and 11.2 XE».
To perform a graphical user interface installation:
Log on to Windows with Administrative privileges.
You must be part of the Administrators group on Windows to install Oracle Database XE. If you are logged in as a domain user, ensure that you are connected to the network.
If the ORACLE_HOME environment variable has been set, then use System in the Control Panel to delete it.
Go to the following Web site:
Click Free Download and follow the instructions to select and download the Microsoft Windows version of Oracle Database XE.
Description of the illustration welcome1.gif
Description of the illustration destination.gif
If you are prompted for a port number, then specify one.
The following port numbers are the default values:
1521: Oracle database listener
2030: Oracle Services for Microsoft Transaction Server
8080: HTTP port for the Oracle Database XE graphical user interface
If these port numbers are not currently used, then the installation uses them automatically without prompting you. If they are in use, then you will be prompted to enter an available port number.
Description of the illustration password.gif
The password for the INTERNAL and ADMIN Oracle Application Express user accounts will be the same as the SYS and SYSTEM administrative user accounts.
Description of the illustration summary.gif
4.2 Performing a Silent Installation
If you plan to install Oracle Database XE on multiple computers or bundle it with a third-party application, then you may want to perform a silent installation, in which you download the installation executable and run it at a command line using the provided response files.
If you have an existing version of Oracle Database XE, you can save your data by exporting it to data files. After you install the new version of Oracle Database XE, you can import this data into the new database.
To perform a silent installation of Oracle Database XE:
Log on to Windows with Administrative privileges.
You must be part of the Administrators group on Windows to install Oracle Database XE. If you are logged in as a domain user, ensure that you are connected to the network.
Go to the following Web site:
Check the response file and modify the settings if necessary.
szDir : A valid path
TNSPort : A valid listener numeric port value, so that you can connect to the Oracle Database XE database
MTSPort : A valid available port number
HTTPPort : A valid listener numeric port value, so that you can connect to Oracle Database XE
SYSPassword : A password value for the SYS and SYSTEM administrative user accounts
If the ORACLE_HOME environment variable has been set, then use System in the Control Panel to delete it.
Run the installation executable with the appropriate response file.
If you wanted to repair the Oracle Database XE installation, you would enter the following command:
After the installation is complete, Oracle Database XE starts.
OracleMTSRecoveryService (Oracle Services for Microsoft Transaction Server)
Start each service by right-clicking its name and selecting Start from the menu.
Oracle Services for Microsoft Transaction Server Developer’s Guide
4.4 Making Oracle Database XE Available to Remote Clients
After you install Oracle Database XE, the Get Started With Oracle Database 11g Express Edition home page is only available from the local server, not remotely.
With remote HTTP access to Oracle Database XE, all information exchanged between the browser and the database is in clear text—that is, unencrypted—including database user names and passwords. If this is cause for concern, do not enable remote HTTP connection to the database.
To use the SQL Command Line, follow these steps:
Start SQL*Plus and log in as SYSTEM :
Or, if you are logging in remotely:
At the SQL prompt, enter the following command:
5 Starting Oracle Database XE
After you have installed Oracle Database XE, the database is up and running and you can begin using it right away.
To begin learning about Oracle Database XE, use the following documents:
Oracle Database Express Edition Getting Started Guide introduces the Oracle Database XE user interface, and gets you started using database accounts and creating database objects.
6 Deinstalling Oracle Database XE
When you deinstall Oracle Database XE, all components, including data files, the database, and the software, are removed.
Because the deinstallation process removes all files from the directory in which Oracle Database XE is installed, back up any files from the directory (if needed) before you deinstall.
This section covers the following topics:
6.1 Deinstalling the Oracle Database XE Software
To deinstall Oracle Database XE by using Add or Remove Programs :
To perform a silent deinstallation of Oracle Database XE:
Log on to Windows with Windows administrative privileges.
Go to the following Web site:
Click Free Download and follow the instructions to select and download the Microsoft Windows version of Oracle Database XE.
Run the setup.exe executable with the OracleXERemove.iss response file.
The setup.log file indicates whether the deinstallation was successful. A result code of 0 means the deinstallation succeeded.
7 Importing and Exporting Data between 10.2 XE and 11.2 XE
To import and export data between 10.2 XE and 11.2 XE, perform the following steps:
Copy the gen_inst.sql file from the upgrade directory of 11.2 XE shiphome to your local directory.
Do not copy the gen_inst.sql file into the 10.2 XE home directory if you plan to install XE 11.2 on the same system. All generated files get deleted if XE 10.2 is uninstalled.
To export the data from 10.2 XE database, perform the following steps:
Connect to 10.2 XE database as SYS user.
Create a dump folder dump_folder on the local file system.
Create directory object DUMP_DIR with READ and WRITE privilege to SYSTEM user.
Export data from 10.2 XE database to the dump folder.
Deinstall 10.2 XE if installation of 11.2 XE is planned on the same system.
Install 11.2 XE database. For more information see Section 4, «Installing Oracle Database XE».
To import data to the 11.2 XE database, perform the following steps:
Connect to 11.2 XE database as SYS user.
Create directory object DUMP_DIR with READ and WRITE privilege to SYSTEM user.
Import data to 11.2 XE database from the dump folder.
8 Reporting Security Vulnerabilities
If you find any security vulnerabilities with Oracle Database XE, then send a description of the problem to Oracle at the following e-mail address:
Include the following information in your e-mail:
A complete description of the problem you encountered
The version of Oracle Database XE you were using
The platform on which you were running Oracle Database XE
Any scripts or examples that may be helpful in tracking down the security problem
For more information on how Oracle handles security issues, visit:
9 Oracle Database XE Character and Language Configurations
Oracle Database XE is available only in Universal character set and language configurations:
The database is created using Unicode( AL32UTF8 ) character set, which is suitable for global data in any language.
The Oracle Application Express user interface and database error messages are available in English, Japanese, Brazilian Portuguese, and Simplified Chinese.
10 Globalization Support: Configuring Locale and Character Sets with the NLS_LANG Parameter
This section explains how to configure globalization settings for Oracle Database XE. It covers the following topics:
10.1 About the NLS_LANG Parameter
Oracle provides globalization support that enables users to interact with a database in their preferred locale and character set settings, as defined by the NLS_LANG parameter. When you install Oracle Database XE, the installation process sets the NLS_LANG parameter in the registry. The NLS_LANG parameter is stored in the registry under the HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\key_XE\NLS_LANG subkey.
The locale setting of your operating system determines the value of the NLS_LANG parameter at installation. Table 3 lists the operating system locale and NLS_LANG value mappings.
The NLS_LANG parameter uses the following format:
This format is explained in the following table:
Parameter | Description |
---|---|
LANGUAGE | Specifies the language for displaying product messages, day names, and month names in SQL. |
Oracle Database Globalization Support Guide provides more information about languages.
Oracle Database Globalization Support Guide provides more information about territory conventions.
«Supported Character Sets» provides a list of supported character sets.
Oracle Database Globalization Support Guide provides information about the NLS_LANG parameter and Globalization Support initialization parameters.
10.2 Default Values for NLS_LANG
Table 3 lists the default NLS_LANG values for various Windows locales.
Table 3 NLS_LANG Parameter Values for Windows Locales
Operating System Locale | NLS_LANG Value |
---|---|
Operating System Locale | Character Set |
---|---|