How to Install Oracle 9i on Windows XP/2000

Installing Oracle 9i on Windows NT/2000

The following outline describes the steps required to install Oracle9i (version or on the Microsoft Windows NT/2000 operating system. It is assumed that this is a fresh install and that no other Oracle products are installed at this time. If this is not the case, then these instructions may not work on your system.

Where to get Oracle9i for Windows NT/2000

  • Join Oracle TechNet at and download a trial copy.Register at TechNet, then look into Products under the category of “Oracle9i Database”. (Do not get the “9i Application Server”Oracle9i for Windows NT/2000 is about 1.5 Gigabytes (two 550 megabyte ZIP files and one 200 MB Zip file)
  • Purchase a trial copy “CD Pak” from the Oracle Store at Each CD Pak costs about $40 for shipping and handling.
  • Buy a full copy of Oracle9i from Oracle.

These instructions may or may not be applicable for other versions of Oracle (such as Personal Oracle9i, Oracle9i Lite) or for other Microsoft Windows operating systems (such as Windows 98 or Windows 95). For the record: No Oracle Product will work on Windows ME or Windows XP Home Edition so don’t even bother.


Before you even start this process you should have:

  • A Pentium III or Pentium 4 based PC with at least 800 MHz processor, 256 MB of RAM (512 is much better) and at least 10 Gigabytes of free disk space.
  • If you only have 256 MB of RAM, make sure you have Windows manage at least 400 MB swap file (virtual memory).
  • This machine MUST be running Windows 2000 with service pack 1 or (preferably) 2 installed. If you are running MS IIS, disable the web server (running on Port 80 by default) before starting the Oracle 9i installation.
  • At least 10 GB of free disk space:
       Space to download or copy source ZIP files:  1.5 GB
       Space to unpack source ZIP files:            1.5 GB
       Space to install Oralce9i Software:          2.0 GB
       Space for Oracle data files (varies):        2.0 to 5.0 GB

The Installation Process

As with most Windows installation programs, inserting the CD-ROM (ordered or purchased from Oracle) into the CD-ROM drive automatically executes the setup program. (If this does not happen, use the Windows Explorer to view the contents of your CD-ROM drive and double click on the “setup” program there).

If you downloaded the Oracle9i from Oracle Technet, then you need to unzip the files into a three temporary directories and double click on the setup.exe program in the Disk1 directory) to get the installation process started.

The following Welcome window will appear:

It is assumed that this is a fresh install so no other Oracle products should be installed at this time.

Click on the Next button to move to the File Locations screen as shown below:

In this screen, the Source and Destination locations must be selected.

The Source path should reflect either your CD-ROM or the directory in which you unzipped the source files. Leave this as the default. In the example above, the source files were unzipped into c:\source\Oralce\9i\NT20009011\Disk1 directory.

For the Destination, leave the Oracle Home named OraHome90 as the default. Choose a hard disk drive that has at least 10 gigabytes of free space. In the example here, we are using the C: drive.

Leave the \Oracle\Ora90 path as it is (the default). If you must change this to a different drive, only change the drive letter and not the directories.

Click on the Next button to load the Product information. This may take up to 2 minutes (depending on the speed of your machine). Once the product information has been read, the following 3 “Available Products” options are presented:

Make sure the Oracle9i Database is selected and click on the Next button.

The “Installation Types” screen will appear next. For this installation, we chose the Enterprise Edition.

The “Database Configuration” screen will appear next:

For this install, we chose the “General Purpose” Database option. Click on the Next button to continue.

The next step is to identify the database using the Global database name:

If some default Global database name and SID are given, keep them. Otherwise, use the following (make a note of these for later on):

Global Database Name is orcl

Oracle SID is orcl

Click on the Next button to continue to the “Data File Location ” screen

In this step, you need to select where the Oracle data files will be located. In large operations, we typically keep the data files on a separate disk (or disks), however, for this install, we are storing the data files in the same C:\oracle directory tree. Keep the default as shown and click on the Next button to continue.

In the next screen, choose the default character set for the database:

Click on the Next button to move to the “Summary” screen:

In this screen (shown above), the products and files that will be installed are summarized. Note that in this example, it will take 1.5 GB MB of disk space for the installation of the software. Additional space will be required for the default database.

If everything looks OK at this point, click on the Install button to begin the installation.

During the install, you will notice various Oracle products being copied over to the hard disk. For example, in the above figure, a portion of the Oracle Enterprise Manager is being installed.

Once the installation is completed, the next step will be to configure the various additional services and the database. This is shown below:

Each of the configuration programs will be executed in turn. The HTTP Server (Oracle/Apache) should launch automatically and open up TCP/IP port 80. You should notice a new Command window as follows:

Oracle HTTP Server Powered by Apache/1.3.12 (Win32) ApacheJServ/1.1
mod_ssl/2.6.4 OpenSSL/0.9.5a mod_perl/1.24 running...

The Net Configuration Assistant and Oracle Intelligent Agent should run automatically and not prsent any sustained screens.

The Oracle Database Configuration Assistant will appear for some time while the default database is created and opened. As below:

Once the default database has been installed, the following screen will appear:

Clicking on the Password Management button and change the default passwords for the SYS, SYSTEM, SCOTT and DBSNMP accounts as shown below:

Click the OK button when done.

This should conclude the configuration of the database and the “End of Installation” screen should appear as below. Click on the Exit button and click on the following Yes button to confirm exiting the Installation program.

At this point, be sure to reboot your computer so any final changes can take affect. In particular, the path c:\oracle\ora90\bin will be added to the PATH environment variable.

New Program Groups

After Oracle9i is installed, you will notice several new program groups in the Start menu.

These include:

  • Oracle Installation ProductsTools to help manage the installation and removal of Oracle products on the machine.
  • Oracle – OraHome90The set of tools used to work with Oracle90. These include:
    • Application Development – Tools to develop Oracle applications including SQL*Plus
    • Configuration and Migration Tools – Tools to migrate older Oracle databases to version 9i
    • Enterprise Management Packs
    • Enterprise Manager Quick Tours
    • Integrated Management Tools
    • Oracle HTTP Server

Starting and Stopping the Database

Under Windows NT and Windows 2000, the Oracle 9i database runs automatically as a service. Below is a view of the Windows 2000 Services mangement console showing the services installed by default:

Note the last one OracleServerORCL is the actual database process itself. OracleOraHome90TNSListener is the listener process for remote connections to the database. OracleOraHome90Agent is the Oracle Agent used to communicate with management services. Finally, the OracleOraHome90HTTPServer is the Oracle/Apache web server.

Since the OracleServerORCL service is set to start automatically, the database wll start and mount each time the computer is started up. To manage the database processes directly, one can use the Enterprise Manager Console in Stand-alone mode. From the Start menu, choose Programs -> Oracle - OraHome90 -> Enterprise Manager Console and select Launch Standalone. The following screen should appear:

Click on the plus sign to expand the Databases branch and then once again to expand the ORCL branch. When prompted for username and password, use the SYSTEM account and choose to log in as SYSDBA. In SYSDBA mode, the SYSTEM user can perform most any manipulation of the database.

Once logged in, clicking on the Instance tree and then the Configuration tree should display the current state of the database:

Testing the Installation

Once the database is running, the SQL*Plus tool can be used to connect to the database.

Go to the Start -> Programs -> Oracle - OraHome90 -> Application Development program group and run the SQL Plus application. Once SQL Plus is running, you will be prompted for 3 things: Username, password and Host String.

The default Database Administrator’s account has a username of SYSTEM and a default password of MANAGER. You may have changed the SYSTEM account password in a previous step so use the new password.

Fill in the Username and password fields with the SYSTEM account and leave the Host String field blank. Since we are connecting to a local Oracle database, no Host String is required. Click on the OK button as shown below:

If the database is running and the username and password are typed correctly, SQL*Plus should log the SYSTEM user in and present the SQL> prompt as shown below:

By default, you can also log in with the SCOTT/TIGER account. That is, there is a demo account already set up in the database with username SCOTT and password TIGER. Many of the examples in the Oracle documentation use the tables included in the SCOTT user’s account. <!–

Configuring Net8 to Connect to Nash at Baruch

If you have Personal Oracle8i installed on a PC at work or at home and you have a connection to the Internet, it is possible to connect the SQL*Plus tool to your student Oracle account at Baruch. You will need to configure the Net8 middleware by setting up a service name (host string, database or alias as it is sometimes called). At Baruch, this service name will be called Tcp-nash and it will be associated with a connection to the host, at TCP/IP port number 1521 and Oracle instance ORCL. Before you start this procedure, be sure you are connected to the Internet. You may wish to run the ping program in an MS-DOS shell to see if you can reach the Nash server. Try: ping and see if you get a response.

You can also test by trying to reach the Nash server’s web server by going to with your web browser. The following figures illustrate configuring this new host string using the Net8 Easy Config wizard. The first step is to launch the Net8 Easy Config wizard by going to the Start -> Programs -> Oracle - OraHome81 -> Network Administration program group and selecting Net8 Easy Config. The following Welcome screen will appear: Since we want to create a new service name (host string), make sure the Create option is highlighted under the Actions area and then type in Tcp-nash in the field under New Net Service Name. Then click on the Next button to continue. In this next page, we will need to select a communications protocol: In this case, since we are communicating over the Internet, choose TCP/IP protocol and click the Next button. In the following screen, we will need to specify the Internet host name and the TCP/IP port number where the Oracle server is listening. Fill in the fields as below:

Host name:

Port Number: 1521 Click the Next button when done. In the next screen, we will need to specify the Oracle SID. The SID is an identifier that indicates the specific instance of Oracle running on the server. Since Nash currently runs Oracle 8.0, select the second option as shown below and specify the SID as ORCL Click the Next button to continue. At this point, Net8 has all of the information it needs to make a connection to the Nash Oracle database. The next step is to test this connection and if something is not working properly, we can go back (using the Back buttons) to correct it. By default, the Net8 test attempts to connect to the database server using the SCOTT/TIGER account. However, for publicly accessible servers, we almost always delete this account since the username and password are so well known. In order to test the connection, the Net8 Easy Config will first attempt to connect as SCOTT/TIGER. Click on the Test button as shown below: As can be seen in the figure below, Net8 Easy Config attempts to connect as SCOTT/TIGER but the connection fails. To continue the test, click on the Change Login button at the bottom of the screen. When the dialog box appears, type in your own Oracle username and password as shown in the example below: After you have typed in your username and password, click the OK button. Click on the Test button for Net8 Easy Config to attempt to connect using the new username and password you just supplied. In the figure below, the connection test was successful. If the test was not successful, make a note of the error code and message. Then close the test screen and go back through the steps of the wizard again to make sure everything was specified correctly. Also make sure you can ping the Nash server (as described above) to make sure your Internet connection is working properly. Click the Close button to get out of the Test screen. Finally, click the Finish button to close the Net8 Easy Config wizard.

Testing the Net8 Connection

Now that a new service name called Tcp-nash has been created, the connection can be tested using the SQL*Plus tool. Run SQL*Plus and when the dialog box appears, supply your Oracle username and password for the Nash Oracle server and then type in Tcp-nash for the Host String as shown below. Click OK to log in to the Nash Oracle server. –>

Using the On-Line Help

If you elected to install the Personal Oracle8i documentation to your hard disk, you can access the HTML help files by going to the Start -> Programs -> Oracle - OraHome90 program group and selecting the Release Documentation item.

Your default web browser will be launched and the opening page for the Oracle documentation will be displayed.

Materials to be added

Last updated: Thu Sep 20 17:12:14 EDT 2001

Copyright 2001 R. Holowczak


48 thoughts on “How to Install Oracle 9i on Windows XP/2000

  1. hi,
    I have installed Oracle 9i on win xp.but database assistant component has been failed and when I enter user/password it shows error “tns-protocol adapter error”.Please help me as soon as possible.

    thanks in advance.

    • hello jaya,

      I am really very sorry for late responce!!!!!!

      Probably the OracleService for the database is not running.

      Check if the service is running, if not, startup the service.
      It might be that the service is setup to only startup the service and not the instance as well.
      On Windows, use the oradim utility to control this behaviour.

      You will manually have to startup your database


      SQL*Plus: Release – Production

      Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

      Enter user-name: / as sysdba
      ORA-12560: TNS:protocol adapter error

      Restart the service


      SQL*Plus: Release – Production

      Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

      Enter user-name: / as sysdba
      Connected to an idle instance.

      SQL> startup
      ORACLE instance started.

      Total System Global Area 126951228 bytes
      Fixed Size 454460 bytes
      Variable Size 109051904 bytes
      Database Buffers 16777216 bytes
      Redo Buffers 667648 bytes
      Database mounted.
      Database opened.

      If the service is running, you might be connected to the server using the Terminal Service Client / Windows Remote Desktop.
      This is not supported by all versions of Oracle (before 9i).

      One possible work around is to set the LOCAL environment variable in a dos box and try to connect again.

      The difference between using LOCAL instead of ORACLE_SID is that LOCAL will try to connect through the listener, so it should run as well.

      C:>set LOCAL=ORA920


      SQL*Plus: Release – Production

      Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

      Enter user-name: / as sysdba
      ORA-12541: TNS:no listener

      C:>set LOCAL=

      C:>set ORACLE_SID=ORA920


      SQL*Plus: Release – Production

      Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

      Enter user-name: / as sysdba

      Connected to:
      Oracle9i Enterprise Edition Release – Production
      With the OLAP and Oracle Data Mining options
      JServer Release – Production

      If the service is started and you are not using terminal services/remote desktop (using an unsupported version of Oracle) and you are relying on the default ORACLE_SID set for the Oracle Home Directory, than you’re probably using the incorrect %oracle_home%.

      Use Oracle Locator express to change the Oracle Home, startup a new command prompt and try again.

      If you are on Windows, you can use following batch script to do some default checks:

    • sorry for late response…
      can you tell me what exactly error is….
      because database configuration can be fail by several reason so just post exact error which comes at time of database configuration….

  2. hi,

    i have setup oracle9i,but am enable to setp with internet.i have tried at cmd prompt but there is no to connect again & after closing the sql editor the instance-> configuration-> shutdown radio button is clicked. am not getting the details of instance information.please help me out. thank u for valuable information.

  3. Will you please help me, after the successful installation of oracle 9i-how do i install IIS 5.
    I want both on my machine. i know both servers need port no 80 that is why while loading iis 5 i m getting the error. please help me…..

    • sometime it happens with setup .
      If setup.exe on cd1 is not working in 9i then go to “install” Folder you will get another setup.exe there try to click on that setup file . In some setup the folder structure like ‘CD1>Install>win32>setup.exe ‘ or may be differ . I am just giving example. You just need to find another setup.exe it will have Oracle 9i Icon.

  4. Sir,
    i have install oracle 9i software in windows 7 with 2gb ram and 320 gb hard disc. But install is not complete properly. When i start sql+ the result show tns protocol adapter error. What should i do to escape the problem? And how will get uninstall the s/w from my computer.
    Send solution discriptivaly on my mail. I await your ans….
    manish kumar
    pgdca from polytechnic

  5. Sir i have install oracle 9i software and by mistaking i have locked the scott and system user name. And now when start the sql just shows 28000 error accout is blocked. Plz resolve my problem as soon as possible.
    manish pgdca from polytechnic

    • Can u mention on which step it prompts for correct file path .
      Many times space in the directory name creates such problem
      try to copy setup files in the directory which is having no space in the name then install from there!!.

  6. While trying to install the Oracle 9i and following instructions as per the illustrations above I get stuck while unable to copy a certain file “” (while installing from Disk 2)

    The disk 1 goes thru successfully and it gets stuck asking for this file. I have tried to google this however in vain.

    any ideas ??? Please help

      • I have checked with another set of 3 discs also, same issue persists and it stops that that very file “”

        any other inputs ??

        Again, is there anywhere from where I can get Oracle 9i CDs instead of downloading them off the internet ? does anyone have a copy of it and courier it to me ? I’ll pay for the courier and the CDs

        Contact me at : 9821276763 — I’m in Mumbai

  7. I have installed oracle 9i but when I open the sql plus its give an error (Error ORA-28000: the account is locked) please tell me how to unlock the account. I will be waiting for your response.

    • Its easy to download it using torrents as oracle removed its download link from Download Index .You can easily find lot of torrents on Google or torrent search engines.

  8. The below mentioned error occurs while installing

    the following running services needs to be shut down before continuing
    Oracleorahome90tns listner

    Kindly help…

    • Hi,

      First let me know on which step this error is coming?
      second are you installing oracle first time on this Operating System ?
      if not i would suggest to uninstall properly by Oracle universal Uninstaller then continue with second time installation process.

  9. Sir I am installed the Oracle 9i . But i am not able to log in .Password error.
    My password and user name are correct.

    Error .o1o17

    • Hi,

      You can reset your password using following process..

      Step 1. Go to Start>Run type cmd to open command prompt.
      Step 2. type sqlplus and press enter.
      Step 3. type / as sysdba when asked for user name.
      Step 4. Alter User username identified by password;
      (Where username is the schema for which you want to change the password and password is the new password for this user)
      Now u can try to connect this user by this new password using command conn username/password on the same window or wherever you prefer.

      Hope it will solve your problem .

    • Hi,

      Open a notepad write exp command for example

      exp.exe userid=system/manager@orcl file=d:\backup_”%date:~7,2%%date:~4,2%%date:~10,4%”.dmp log=d:\data_”%date:~7,2%%date:~4,2%%date:~10,4%”.log grants=y full=Y

      (Full Backup Export Command )

      save as “PREFERRED_FILE_NAME.bat” file.

      now open windows scheduler and schedule this bat file on appropriate time and interval. You cans change location and file name as you want but it should be unique in that particular location where your backup file is generating like in above example file will be unique on each day but if you want hour wise backup then you have to include time also.

      Hope it may help..

  10. Dear Sir,
    I installed oracle 9i many times but always oracle database configration assistant is failed.what is the procedure to fix this problem.
    kindly help me.

    • Hi ,

      Can you please give details about the error coming while configuration. some screenshot or error log will be help full…
      You can always check the Oracle Log of Universal Installer in such cases which will be created in \Program Files\Oracle\Inventory\Logs

  11. Dear Sir,
    I installed oracle 9i for first time but oracle database configration assistant is failed.what is the procedure to fix this problem.

    the error is “not a zip file(END header not found)”

    kindly help me.

  12. Dear Sir,
    I have installed Oracle 9i Server on a XP Machine having a IP address and Oracle 9i Client Installed on another XP Machine Now I want to communicate Client with the first machine, so that SQL Plus can use the databases of the first machine. How to configure ?

  13. hello im trying to install oracle 9i on windows 7but im getting an error that says “the environment variable path is more than 1023 characters. this value cannot be set.”
    what do i do????

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s