Downloading Oracle Client and SQL Plus Set Up Directions XP Vista Windows 7 Rev

Embed Size (px)

Citation preview

  • 7/31/2019 Downloading Oracle Client and SQL Plus Set Up Directions XP Vista Windows 7 Rev

    1/4

    Downloading Oracle Client and Loading Oracle on Workstation for XP, Vista, and

    Windows 7

    I. Download the Oracle client based on which operating system you are using

    A. Go to: www.oracle.comB. Create an account by clicking on link

    C. Follow the steps on the next pages to create your account.

    1. Once you have an account, navigate to the following page:http://www.oracle.com/technology/software/products/database/index.html

    2. Click on Accept License Agreement

    D. Scroll down to the section with the heading: Oracle Database 10gRelease 2 Standard Edition, Standard Edition One,

    and Enterprise Edition

    1. If you are working on Windows 7 or Vista: Download Oracle Database

    10g Release 2 for Microsoft Windows Vista2. If you are working on XP: Download Oracle Database 10g Release 2 for

    Microsoft Windows3. Click on the preferred edition4. Click on Accept License Agreement5. Download the Client Release

    If working on

    XP: UseOracle

    Database 10g

    Release 2 for

    MicrosoftWindows

    If working on

    Visa orWindows 7:

    Use OracleDatabase 10gRelease 2 for

    Microsoft

    Windows Vista

  • 7/31/2019 Downloading Oracle Client and SQL Plus Set Up Directions XP Vista Windows 7 Rev

    2/4

    Downloading Oracle Client and Loading Oracle on Workstation for XP, Vista, and

    Windows 7

    6. Save the file to your machine

    7. Follow the directions on the screen and run setup.exe

    II. Loading Oracle on a work station:A. You may see this screen:

    1. Click Install/DeInstall Products2. Oracle Universal Installer 2.2 Welcome Screen appears3. Click Next

    B. In destination field, verify following information. If the info does not appear asfollows, change accordingly.

    C. Name: OraHome92D. Path: c:\oracle\ora92

    E. Click NextF. Window XP:

    1. Use default (Administrator) for Installation Type2. Click Next for Port #3. The installation will begin and should take about 10 minutes. If you get an

    error message, click ignore to continue4. The Oracle Net Configuration Assistant Screen will appear

    a. Click cancelb. If you get an error message, click OK

    5. End of Install will appear6. Click Next7. Really want to exit will appear

    a. Click Yesb. Click Exit

    8. The SQL + icon should appear in your start menu.

    9. If the icon does not appear, navigate to c:\oracle\ora92\bin\sqlplusw.exeG. Vista:

    1. Select a custom installation2. A list of components will appear - select sql+ in the installed components3. The installation will begin and should take about 10 minutes. If you get an

    error message, click ignore to continue4. The Oracle Net Configuration Assistant Screen will appear

    a. Click cancelb. If you get an error message, click OK

    5. End of Install will appear6. Click Next7. Really want to exit will appear

    a. Click Yesb. Click Exit

    H. Windows 7:1. Select a custom installation2. A list of components will appear - select sql+ in the installed components3. The installation will begin and should take about 10 minutes. If you get an

    error message, click ignore to continue4. The Oracle Net Configuration Assistant Screen will appear

    a. Click cancelb. If you get an error message, click OK

    5. End of Install will appear

  • 7/31/2019 Downloading Oracle Client and SQL Plus Set Up Directions XP Vista Windows 7 Rev

    3/4

    Downloading Oracle Client and Loading Oracle on Workstation for XP, Vista, and

    Windows 7

    6. Click Next7. Really want to exit will appear

    a. Click Yesb. Click Exit

    8. You need to add Windows 7 as an accepted operating system:a. Navigate to yourrefhost.xml file which was installed

    Location of this file on my system:c:\unpacked_client_installation\win32_10gR1_client\client\stage\prereq\client\refhost.xml

    b. Copy this piece of code:

    c. Paste it after the Vista OS section

    This is excerpt from my newly edited refhost.xml file:

    New lines are added at the end of this excerpt after . Notice version value=6.1.

    III. Loading the tsnames.ora and sqlnet.ora

    A. Download the tsnames.ora and sqlnet.ora files from Course Information\OracleDocuments folder on blackboard and save them on your work station

    B. Copy the files to the following location on your workstationC:\Oracle\Ora92\NETWORK\ADMIN

    C. You may note a different version of these files exist at this location. Simplyoverwrite the files with those files on blackboard which point to the OracleServer at Temple.

    IV. Logging onto SQL PlusTo work with an Oracle database, the user accesses the Oracle database engine locatedon a server. The user can communicate with an Oracle database using SQL*Plus, acommand line client which allows the user to pass SQL commands to the database enginefor execution. The user can create, access and maintain data structures such as tables,sequences, indexes, etc.

    A. Start SQL* Plus

    1. From the Start button on the Windows taskbar select Programs| Oracle| OraHome|Application Development| SQL Plus.

    1. A log on dialog box appears asking to enter User Name, Password and Host Stringas below:

    INSERTCODE

    HERE

  • 7/31/2019 Downloading Oracle Client and SQL Plus Set Up Directions XP Vista Windows 7 Rev

    4/4

    Downloading Oracle Client and Loading Oracle on Workstation for XP, Vista, and

    Windows 7

    a. Your username and password are posted to gradebook. The hoststring isfoxora (the name of the Oracle db server we use here at Temple).

    2. Once you are logged in, the SQL Command Prompt SQL> is displayed.

    b. Change password

    1. Enter password at the SQL> prompt type.

    3. At the Password prompt, enter your old password.

    4. At the confirm your new password prompt, enter your new password again.

    5. A message password changed is displayed confirming the change of password.

    6. Make sure to record your new password - it CANNOT be retrieved.

    c. Exit from SQL*Plus:

    1. Enter exit at SQL> prompt.

    d. Get Help

    1. Enter help at the command prompt followed by the name of the command. Forexample: SQL>HELP ACCEPT.

    7. If you having difficulty with an error message in SQL, try searching on the Internet.Most error messages are well documented, including the fix.