20
Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 1 Installation of Oracle 8i, Designer 6i and Developer 6i (Forms and Reports 6i) on Windows 2000 Professional (Summary) by Freddy Wong Rev: May/2002 [Slide ] [Notes ] [pdf ] [Download des_dev_r6i_install_on_ora8i.zip with all required files] [Part 1: Install Oracle 8i ] [Part 2: Shut down Oracle Database and all Oracle Services ] [Part 3: Install Designer 6i ] [Part 4: Install Forms and Reports 6i ] [Part 5: Setup Apache's configuration file "httpd.conf" ] [Part 6: Setup Designer 6i ] [Part 7: Use DBA Studio to re-compile the JIS$ROLE_TRIGGER$ ] [Part 8: Run Designer 6i for the First Time ] [Understand Designer 6i's Tablespace Usage ] Part 1: Install Oracle 8i Installation of Oracle8i on Windows 2000 Professional 1. Turn off all Antivirus Software, such as Norton Antivirus, McAfee Virus Scan. 2. Insert Oracle8i R3 (8.1.7) in the CD-ROM Drive o Click on [Install/Deinstall Products] o Click on [Next] o Destination: Name: OraHome81 (Default) Path: C:\oracle\ora81 (Default) Click on [Next] o Enable the radio-button for "Oracle8i Enterprise Edition 8.1.7.0.0" o Click on [Next>] o Enable the radio-button for "Typical (779MB) o Click on [Next], [Next] o Enter Global Database Name: ora8i o SID: ora8i o Click on [Next], [Install] o Database creation completed. o Click on [OK], [Next], [Exit], [Yes] Part 2: Shut down Oracle Database and all Oracle Services General Rules regarding installation of Designer/Developer R6i Products on Oracle 8i/9i Databases: 1. Turn off all Antivirus Software, such as Norton Antivirus, McAfee Virus Scan. 2. For the installation of Designer R6i and Developer R6i, shutdown ALL Oracle databases and Oracle Services before installing Designer 6i and Developer 6i: o Shutdown ALL Oracle Databases: Click on [Start], Oracle - ora8i, Database Administration, Oracle administration Assistant for Windows NT Click on Databases Right-click on ORA8I (the SID of Oracle8i on the PC), Stop Service Click on [OK] On the menu-bar, click on Consoles, Exit, [Yes], [Yes].

Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

  • Upload
    lamliem

  • View
    314

  • Download
    6

Embed Size (px)

Citation preview

Page 1: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

1

Installation of Oracle 8i, Designer 6i and Developer 6i (Forms and Reports 6i) on Windows 2000 Professional (Summary) by Freddy Wong Rev: May/2002 [Slide] [Notes] [pdf] [Download des_dev_r6i_install_on_ora8i.zip with all required files]

[Part 1: Install Oracle 8i] [Part 2: Shut down Oracle Database and all Oracle Services] [Part 3: Install Designer 6i] [Part 4: Install Forms and Reports 6i] [Part 5: Setup Apache's configuration file "httpd.conf"] [Part 6: Setup Designer 6i] [Part 7: Use DBA Studio to re-compile the JIS$ROLE_TRIGGER$] [Part 8: Run Designer 6i for the First Time] [Understand Designer 6i's Tablespace Usage]

Part 1: Install Oracle 8i Installation of Oracle8i on Windows 2000 Professional

1. Turn off all Antivirus Software, such as Norton Antivirus, McAfee Virus Scan. 2. Insert Oracle8i R3 (8.1.7) in the CD-ROM Drive

o Click on [Install/Deinstall Products] o Click on [Next] o Destination:

Name: OraHome81 (Default) Path: C:\oracle\ora81 (Default) Click on [Next]

o Enable the radio-button for "Oracle8i Enterprise Edition 8.1.7.0.0" o Click on [Next>] o Enable the radio-button for "Typical (779MB) o Click on [Next], [Next] o Enter Global Database Name: ora8i o SID: ora8i o Click on [Next], [Install] o Database creation completed. o Click on [OK], [Next], [Exit], [Yes]

Part 2: Shut down Oracle Database and all Oracle Services General Rules regarding installation of Designer/Developer R6i Products on Oracle 8i/9i Databases:

1. Turn off all Antivirus Software, such as Norton Antivirus, McAfee Virus Scan. 2. For the installation of Designer R6i and Developer R6i, shutdown ALL Oracle databases and Oracle

Services before installing Designer 6i and Developer 6i: o Shutdown ALL Oracle Databases:

Click on [Start], Oracle - ora8i, Database Administration, Oracle administration Assistant for Windows NT

Click on Databases Right-click on ORA8I (the SID of Oracle8i on the PC), Stop Service Click on [OK] On the menu-bar, click on Consoles, Exit, [Yes], [Yes].

Page 2: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

2

o Stop ALL Oracle Services Click on [Start], Settings, Control Panel, Administrative Tools, Services Stop each Oracle service "OracleXXXXXX" with the Status "Started"

Right-click on the Oracle service name, Stop, YEs Stop other Oracle services

Click on the control box [x] to exit.

Part 3: Install Designer 6i

1. Insert Designer R6i in the CD-ROM Drive with autorun ON. o Oracle Home

Enter Name: des6i (Default was OraHome81) Enter Location: C:\oracle\des6i (Default was c:\oracle\ora81)

o Click on [OK], [OK]. 2. In the "Oracle Repository and/or Designer Installation Wizard" window,

o Click on [OK]. 3. Enable the radio button for "Oracle Repository and Designer Install Wizard"

o Click on [OK] 4. In the "Package Installation Settings" window, keep default settings, click on [OK]. 5. In the "Oracle Installation Advanced Options - Install" window, keep default settings, click on [OK]. 6. In the "Oracle Installation Advanced Options - Messages" window, keep default settings, click on [OK]. 7. In the "Oracle Repository 6i Import and Export Tools" window, keep default directory

"C:\oracle\des_817", click on [OK]. 8. In the "Oracle TCP/IP Support for Windows" window, click on [OK]. 9. In the "Run Installation of Oracle products" window, click on [OK]. 10. In the "General Information" window, click on [OK]. 11. In the "General Information" window, click on [OK]. 12. In the "System Support Files" window, click on [OK]. 13. In the "Install Products" window, click on [OK]. 14. In the "Required Products" window, click on [OK]. 15. In the "General Information" window with the message "... you must also install Oracle Reports

6.0.8.11.3 into the Oracle Home Des6i, ... you must also install Oracle Forms 6.0.8.11.3, Forms Builder 6.0.8.11.3 into the Oracle Home Des6i...", click on [OK].

o Installing.... o Click on [OK], [OK] o message:

TNS_ADMIN C:\oracle\des6i\NET80\admin Enter LOCAL C:\oracle\ora81\network\admin

o Click on [OK] 16. In the "General Information" window with the message "The core products have been installed", click

on [OK]. 17. In the "Microsoft comctl32.dll Update" window, click on [OK]. 18. In the "End of Installation" window, click on [Exit].

o Designer 6i installation completed

Part 4: Install Forms and Reports 6i Note: You must stop Oracle Database and all Oracle services before you install Forms and Reports 6i. PLease see Part 2: Shut down Oracle Database and all Oracle Services.

Page 3: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

3

1. Insert Forms & Reports R6i in the CD-ROM Drive with Auto-run ON. o Oracle Home

Enter Name: des6i Enter Location: C:\oracle\des6i

o Click on [OK], [OK]. 2. Enable the radio-button for "Oracle Forms Developer"

o Click on [OK] 3. Enable the radio-button for "Typical", click on [OK] 4. Do you want to install Forms Server for testing?

o Enable the radio-button for "Yes" o Click on [OK].

5. In the "Process Startup" window, o Click on [Yes]

6. In the "Forms Server Parameters" window, o Forms Server Port: 9000 o Protocol:

Enable the radio-button for "HTTP" Click on [OK]

7. In the "Configuration instructions for Forms & Reports Server" window, o Message:

A file has been generated giving details

C:\oracle\des6i\orainst\forms6iconfig.txt

8. View instructions now? o Click on [Yes] o The content of the file "forms6iconfig.txt" is as follows:

Configuration Steps for Oracle Forms installation of 16:46:30 2002/05/22 __________________________________________________________________

This file gives details of the configuration steps done for you by the installation process (marked '[INFO]') and of any actions you need to do manually (marked '[ACTION]'). Please read this file and perform the requested actions.

[ACTION] If you are installing in a new Oracle Home, please reboot the machine after the installation.

[ACTION] Please configure the following virtual path with your web listener: /forms60java for physical directory C:\oracle\des6i\FORMS60\java.

[ACTION] Please configure the following virtual path with your web listener: /dev60html for physical directory C:\oracle\des6i\tools\web60\html.

[ACTION] Please configure the following virtual path with your web listener: /dev60cgi for physical directory C:\oracle\des6i\tools\web60\cgi.

[INFO] An internet shortcut to run a standard test form, or any form of your choice, has been created for you in the Oracle Forms program group.

Page 4: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

4

[ACTION] Please configure the following virtual path with your web listener: /dev60temp for physical directory C:\oracle\des6i\tools\web60\temp.

[INFO] NT service Oracle Forms Server [Forms60Server-Des6i] has been created and started for the Forms Server.

[ACTION] Please configure the following virtual path with your web listener: /jinitiator for physical directory C:\oracle\des6i\JINIT.

o Click on [OK] o In the "General Information" window,

Installation Successful, click on [OK]. 2. Run the Setup.exe again

o Click on [OK] 3. What product do you wish to install?

o Enable the radio-button for "Oracle Forms Server" o Click on [OK]

4. Enable the radio-button for "Typical", click on [OK] 5. Enable the radio-button for "Forms Server for Web deployment"

o click on [OK] 6. Enable the radio-button for "Single machine configuration"

o Click on [OK] 7. Create and Start Services now?

o Click on [Yes] 8. Forms Server Port: 9000

o Protocol: Enable the radio-button for "HTTP" Click on [OK]

9. In the "Configuration instructions for Forms & reports Server" with the message "... A file has been generated giving details. C:\oracle\des6i\orainst\forms6iconfig.txt"

o View instructions now?, click on [Yes] o Click on [OK].

10. Installation Successful, click on [OK] 11. Run setup.exe again.

o Enable the radio-button for "Oracle Reports Developer", click on [OK] o Enable the radio-button for "Typical", click on [OK] o Do you want to install Reports Server for testing? o Enable the radio-button for "Yes" o Click on [OK] o Create and start services now? o Click on [No] o Reports Server TNS Name: Rep60_ICT-NB08-Des6i

where ICT-NB08 is your Computer Name o Port: 1949 o Click on [OK] o Installing... o In the "Configuration instrcutions for Forms & Reports Server" with the message "... A file has

been generated giving details. c:\oracle\des6i\orainst\reports6iconfig.txt"

Page 5: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

5

o View instructions now?, click on [Yes] o The content of "reports6iconfig.txt" is as follows:

Configuration Steps for Oracle Reports installation of 02:28:21 2002/05/23 __________________________________________________________________

This file gives details of the configuration steps done for you by the installation process (marked '[INFO]') and of any actions you need to do manually (marked '[ACTION]'). Please read this file and perform the requested actions.

[ACTION] If you are installing in a new Oracle Home, please reboot the machine after the installation.

[ACTION] Please configure the following virtual path with your web listener: /dev60html for physical directory C:\oracle\des6i\tools\web60\html.

[ACTION] Please configure the following virtual path with your web listener: /dev60cgi for physical directory C:\oracle\des6i\tools\web60\cgi.

[ACTION] Oracle Reports Web CGI and cartridge: in order to run reports on other machines, you must add entries to your Net8 'tnsnames.ora' file to identify the Reports Servers running on those machines.

[INFO] An internet shortcut to run a standard test report, or any report of your choice, has been created for you in the Oracle Reports program group.

Click on [OK] o In the "General Information" window with the message "Installation Successful", click on [OK].

2. Run setup.exe again o Click on [OK] o Enable the radio-button for "Oracle Reports Server" o Click on [OK]

3. Enable the radio-button for "Typical", click on [OK]. 4. Create and start services now? Click on [No].

o Reports Server TNS Name: Rep60_ICT-NB08-des6i o Port: 1949 o Click on [OK] o Installation Successful, click on [OK].

Part 5: Setup Apache's configuration file "httpd.conf" Why you have to do this?

• If you want to test run Oracle Forms and Reports on the Internet.

1. Use an editor (e.g. Notepad) to modify the content of the file "httpd.conf" in "C:\oracle\ora81\Apache\Apache\conf\httpd.conf"

Page 6: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

6

1. Add the following statements:

Alias /forms60java/ "c:\oracle\des6i\FORM60\java/" Alias /dev60html/ "c:\oracle\des6i\tools\web60\html/" Alias /dev60cgi/ "c:\oracle\des6i\tools\web60\cgi/" Alias /dev60temp/ "c:\oracle\des6i\tools\web60\temp/" Alias /jinitiator/ "c:\oracle\des6i\JINIT/"

1. The contents of the httpd.conf becomes (the added contents are shown in red):

## ## httpd.conf -- Apache HTTP server configuration file ##

# etc.......

ServerSignature On

# # Aliases: Add here as many aliases as you need (with no limit). The format is # Alias fakename realname # # Note that if you include a trailing / on fakename then the server will # require it to be present in the URL. So "/icons" isn't aliased in this # example, only "/icons/".. # Alias /icons/ "C:\oracle\ora81\Apache\Apache\icons/" Alias /jservdocs/ "C:\oracle\ora81\Apache\Jserv\docs/" Alias /forms60java/ "c:\oracle\des6i\FORM60\java/" Alias /dev60html/ "c:\oracle\des6i\tools\web60\html/" Alias /dev60cgi/ "c:\oracle\des6i\tools\web60\cgi/" Alias /dev60temp/ "c:\oracle\des6i\tools\web60\temp/" Alias /jinitiator/ "c:\oracle\des6i\JINIT/"

<Directory "icons"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory>

# etc........

# Include the Oracle configuration file for custom settings include "C:\oracle\ora81\Apache\Apache\conf\oracle_apache.conf"

Part 6: Setup Designer 6i

Page 7: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

7

Note:

1. The following steps works for the installation of Oracle8i Enterprise and Designer 6i R3 on Windows 2000 Professional with an existing Oracle8 Enterprise and Designer R6.

2. Assume you have already installed Oracle 8i Enterprise on the PC with a Database Global Name called "oracle8i".

3. This document is best printed in Landscape mode.

Summary of steps of Installation

1. Build tablespace and user accounts using SQL Plus 2. Shut down Oracle Instance 3. Modify the init.ora Parameter File 4. Startup Oracle Instance 5. Select Oracle Home 6. Set Net8 Connection String using Net8 Assistant 7. Build Oracle Repository 6i Repository 8. Run Designer6i for the first time

Setup Designer 6i in Oracle8i Enterprise Edition

Build tablespace and user accounts using SQL Plus Run SQL Plus, Login as "SYS" using default password "change_on_install"

• Assume you create a Global Database Name called "Ora8i" • Assume Designer 6i is installed under sub-directory "c:\oracle\des6i" • Unzip des6i_for_ora8i_sql.zip to C:\ • Run SQL Plus:

o Click on [Start], Programs, Oracle - OraHome81, Application Development, SQL Plus o Enter User Name: sys o Enter Password: change_on_install o Enter Host String: ora8i o Click on [OK]

• Run the following SQL script file to build tablespace and user accounts: please type:

SQL>@C:\des6i_for_ora8i.sql Please wait, it may take about 10 minutes to complete. The content of "des6i_for_ora8i.sql" is as follows:

rem des6i_for_ora8i.sql rem To start this SQL script rem Copy the file to c:\ rem Run SQL Plus, login as SYS rem SQL>@C:\des6i_ora8i.sql rem For Oracle9i with Designer 6i rem Assume Global Database Name is ora8i

Page 8: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

8

rem Assume Designer R6i is installed in c:\oracle\des6i rem revised by Freddy Wong 4/12/2001 rem ---------------------------------------------------------------------------------- set echo on spool C:\d2k6iins_local.txt @c:\oracle\ora81\rdbms\admin\catproc.sql rem ---------------------------------------------------------------------- rem No need to increase the SYSTEM tablespace if you already increased it rem Assume the Global Database Name: ora8i rem alter tablespace SYSTEM rem add datafile 'c:\oracle\oradata\ora8i\system02.dbf' rem size 60M; rem --------------------------------------------------------------------------------- rem REM cre_des6i_tblsp.sql REM Use this script to build tablespaces for the repository REM Create tablespaces for repository tables prompt Creating tablespace for repository tables (DES6i) create tablespace DES6i datafile 'c:\oracle\oradata\ora8i\D6D1ORCL.DBF' size 400m autoextend on next 10m maxsize unlimited default storage (maxextents unlimited) /

REM Create Index tablespace for repository indexes

prompt Creating tablespace for repository indexes (DES6i_I)

create tablespace DES6i_I datafile 'c:\oracle\oradata\ora8i\D6I1ORCL.DBF' size 300m autoextend on next 10m maxsize unlimited default storage (maxextents unlimited) / @c:\oracle\des6i\repadm61\utl\ckrorole.sql REM cre_repos_owner.sql REM Logon to svrmgrl.exe as INTERNAL/ORACLE@<SID> create user REPOS_OWNER identified by REPOS_OWNER default tablespace DES6i quota unlimited on des6i quota unlimited on des6i_i temporary tablespace temp; grant alter session to repos_owner; grant create database link to repos_owner; grant create type to repos_owner; GRANT EXECUTE ON DBMS LOCK TO REPOS OWNER;

Page 9: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

9

GRANT EXECUTE ON DBMS_PIPE TO REPOS_OWNER; grant connect, resource,CK_ORACLE_REPOS_OWNER to REPOS_OWNER; grant create table to REPOS_OWNER; grant create view to REPOS_OWNER; grant create any trigger to REPOS_OWNER; grant create procedure to REPOS_OWNER; grant create any index to REPOS_OWNER; grant create any sequence to REPOS_OWNER; grant create synonym to REPOS_OWNER; grant create any synonym to REPOS_OWNER; grant select any sequence to REPOS_OWNER; grant select any table to REPOS_OWNER; grant create role to REPOS_OWNER; grant create public synonym to REPOS_OWNER; grant create session to REPOS_OWNER; GRANT DROP PUBLIC SYNONYM TO REPOS_OWNER; grant drop any synonym to REPOS_OWNER; GRANT SELECT ON sys.v_$nls_parameters TO REPOS_OWNER WITH GRANT OPTION; GRANT SELECT on V_$PARAMETER TO REPOS_OWNER; GRANT SELECT ON dba_rollback_segs TO REPOS_OWNER; GRANT SELECT ON dba_segments TO REPOS_OWNER; grant dba to REPOS_OWNER; grant connect,resource,CK_ORACLE_REPOS_OWNER to REPOS_OWNER; grant execute on sys.dbms_pipe to REPOS_OWNER; grant execute on sys.dbms_lock to REPOS_OWNER; spool off

• Increase the SYSTEM tablespace by 60M o Type the following in SQL>

alter tablespace SYSTEM add datafile 'c:\oracle\oradata\ora8i\system02.dbf' size 60M;

• Exit SQL Plus o SQL>exit

Shut down Oracle Instance Why you have to do this:

• You will modify the init.ora Parameter File and Oracle Database must be shut down before you modify the content of the file

1. Click on [Start], Programs, Oracle - OraHome81, Application Development, Oracle Administration, Assistant for Windows NT

2. Click on [+] Databases 3. Right-click on "ORA8I" under "Databases", Stop Service, [OK].

Page 10: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

10

Modify the init.ora Parameter File

For Global Database Name called "ora8i"

• Copy the original file "init.ora" under the sub-directory "C:\oracle\admin\ora8i\pfile" to a new file called "init.ora.original"

Download Changed init.ora for SID "ora8i" # # Copyright (c) 1991, 2000 by Oracle Corporation # ############################################################################## # Example INIT.ORA file # # This file is provided by Oracle Corporation to help you customize # your RDBMS installation for your site. Important system parameters # are discussed, and example settings given. # # Some parameter settings are generic to any size installation. # For parameters that require different values in different size # installations, three scenarios have been provided: SMALL, MEDIUM # and LARGE. Any parameter that needs to be tuned according to # installation size will have three settings, each one commented # according to installation size. # # Use the following table to approximate the SGA size needed for the # three scenarious provided in this file: # # -------Installation/Database Size------ # SMALL MEDIUM LARGE # Block 2K 4500K 6800K 17000K # Size 4K 5500K 8800K 21000K # # To set up a database that multiple instances will be using, place # all instance-specific parameters in one file, and then have all # of these files point to a master file using the IFILE command. # This way, when you change a public # parameter, it will automatically change on all instances. This is # necessary, since all instances must run with the same value for many # parameters. For example, if you choose to use private rollback segments, # these must be specified in different files, but since all gc_* # parameters must be the same on all instances, they should be in one file. # # INSTRUCTIONS: Edit this file and the other INIT files it calls for # your site, either by using the values provided here or by providing # your own. Then place an IFILE= line into each instance-specific # INIT file that points at this file. # # NOTE: Parameter values suggested in this file are based on conservative

Page 11: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

11

# estimates for computer memory availability. You should adjust values upward # for modern machines. # ###############################################################################

db_name = "ora8i"

instance_name = ora8i

service_names = ora8i

db_files = 1024

control_files = ("C:\oracle\oradata\ora8i\control01.ctl", "C:\oracle\oradata\ora8i\control02.ctl", "C:\oracle\oradata\ora8i\control03.ctl")

#open_cursors = 300 # original open_cursors = 1000 # changed max_enabled_roles = 50 # changed #max_enabled_roles = 30 # original

db_file_multiblock_read_count = 8

db_block_buffers = 2048

#shared_pool_size = 31457280 # original shared_pool_size = 50000000 # changed

#large_pool_size = 614400 # original large_pool_size = 1228800 java_pool_size = 20971520

log_checkpoint_interval = 10000 log_checkpoint_timeout = 1800

# processes = 150 # default processes = 200 # new setting (append)

parallel_max_servers = 5

log_buffer = 32768

#audit_trail = true # if you want auditing #timed_statistics = true # if you want timed statistics max_dump_file_size = 10240 # limit trace file size to 5M each

# Uncommenting the line below will cause automatic archiving if archiving has # been enabled using ALTER DATABASE ARCHIVELOG. # log_archive_start = true # log archive dest 1 = "location=C:\oracle\oradata\ora8i\archive"

Page 12: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

12

# log_archive_format = %%ORACLE_SID%%T%TS%S.ARC

# If using private rollback segments, place lines of the following # form in each of your instance-specific init.ora files: #rollback_segments = ( RBS0, RBS1, RBS2, RBS3, RBS4, RBS5, RBS6 )

# Global Naming -- enforce that a dblink has same name as the db it connects to #global_names = true #original global_names = false

# Uncomment the following line if you wish to enable the Oracle Trace product # to trace server activity. This enables scheduling of server collections # from the Oracle Enterprise Manager Console. # Also, if the oracle_trace_collection_name parameter is non-null, # every session will write to the named collection, as well as enabling you # to schedule future collections from the console. # oracle_trace_enable = true

oracle_trace_collection_name = "" # define directories to store trace and alert files background_dump_dest = C:\oracle\admin\ora8i\bdump #Uncomment this parameter to enable resource management for your database. #The SYSTEM_PLAN is provided by default with the database. #Change the plan name if you have created your own resource plan.# resource_manager_plan = system_plan user_dump_dest = C:\oracle\admin\ora8i\udump

db_block_size = 8192

remote_login_passwordfile = exclusive

os_authent_prefix = ""

# The following parameters are needed for the Advanced Replication Option job_queue_processes = 4 job_queue_interval = 60 open_links = 4

distributed_transactions = 10 mts_dispatchers = "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)" # Uncomment the following line when your listener is configured for SSL # (listener.ora and sqlnet.ora) # mts_dispatchers = "(PROTOCOL=TCPS)(PRE=oracle.aurora.server.SGiopServer)"

compatible = 8.1.0 # original

#sort_area_size = 65536 # original sort_area_size = 262144 # changed sort_area_retained_size = 65536 # original same as new setting hash_area_size = 104857 # new setting (append) optimizer index caching = 50 # new setting (append)

Page 13: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

13

optimizer_index_cost_adj = 25 # new setting (append)

Startup Oracle Instance

1. Click on [Start], Programs, Oracle - OraHome81, Application Development, Oracle Administration, Assistant for Windows NT

2. Click on [+] Databases 3. Right-click on "ORA8I" under "Databases", Start Service, [OK].

Select Oracle Home

1. Click on [Start], Programs, Oracle Installation Products, Home Selector 2. Select Name: OraHome81(The default was Des6i)

Click on [OK], [Yes], [OK].

Set Net8 Connection String using Net8 Assistant Copy TNSNAMES,ORA from Oracle 8i to Designer 6i

• Every time you have modify the settings in Oracle 8i using Net 8 Assistant, you must copy the file from

o "C:\oracle\ora81\network\admin\TNSNAMES.ORA" o to "C:\oracle\des6i\net80\admin\TNSNAMES.ORA"

• Warning: If you DO NOT COPY this file, you may be able to connect to the Oracle8i database using SQL Plus but NOT Designer R6i.

Build Oracle Repository 6i Repository

1. Click on [Start], Programs, Oracle Repository 6i - Designer 6i, Repository Administration Utility 2. Enter Username: repos_owner 3. Enter Password: repos_owner 4. Enter Connect String: ora8i 5. Click on [OK] 6. Click on [Install], [OK]. 7. For 10 or more subordinate users, we recommend giving access using Public Synonyms. Do you want

to use Public Synonyms?, click on [Yes] 8. Select ALL the 7 Index Tablespaces (on the left hand side of the table) to "DES6I_I" (the default was

"DES6I"). You have to use the drop-down-list-box to select one-by-one as follows:

Page 14: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

14

9. Repository Size: Enable the radio-button for (o) Medium

1. Click on [Start], [Yes] 2. Then, the setup of repository will take about 30 minutes, depending on the speed of your machine. 3. When you see the message "Operation Complete", click on [OK], [Cancel] 4. To compute repository statistics:

o Click on Repository Maintenance's "Compute Statistics" icon o Click on [Compute...] o When you see the message "Operation Complete", click on [OK]

5. Click on File, Exit. 6. Well done. Setup of Repository is complete.

Part 7: Use DBA Studio to re-compile the JIS$ROLE_TRIGGER$ Why you have to do this?

• If you do not do this, you will not be able to Export/Import the repository as dmp file. • The following error will occur during Export/Import of Repository if you have NOT re-compile the

JIS$ROLE_TRIGGER$

RME-02105: Oracle error occurred ORA-04098: trigger 'SYS.JIS$ROLE_TRIGGER$' is invalid and failed re-validation.

Steps:

Page 15: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

15

1. Click on [Start], Oracle - OraHome81, Database Administration, DBA Studio 2. Enable the radio-button for "Launch DBA Studio standalone" 3. Click on [OK] 4. Click on [+] ORA8I

o Enter Username: sys o Enter Password: change_on_install o Select Connect as: SYSDBA o Click on [OK].

5. Click on [+] Schema 6. Click on [+] Trigger under the tree of "Schema" 7. Click on [+] SYS under the tree of "Schema\Trigger" 8. Click on "JIS$ROLE_TRIGGER$" as follows:

• Please note that the Status: Invalid which means that you need to re-compile the Trigger. • Click the [Compile] button. You will notice that the Status becomes Valid as follows:

Page 16: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

16

• To exit, click on File, Exit.

Part 8: Run Designer6i for the first time

1. Click on [Start], Programs, Oracle Designer 6i, Oracle Designer o Enter Username: repos_owner o Enter Password: repos_owner o Enter Connect String: ora8i o Click on [OK]

2. Click on "Repository Object Navigator" icon in the Oracle Designer main window o Right-click on "GLOBAL_SHARED_WORKAREA", Create Child... o Select Type: Application Systems, click on [OK] o Enter: MYAPP1 to the right of the yellow folder o Click on the [+] to the left of the child called "MYAPP1" o Click on File, Exit.

3. To draw a new ERD: o Click on "Entity Relationship Diagrammer" icon on the main window o Click on File, New o Click on the [=] to the right of the Down-arrow o Select "MYAPP1"

Page 17: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

17

o Click on [OK]

o Click on [OK]. o You can now start drawing Entities and relationships in the ERD. o Draw the following ERD of a MAC mode Course Registration System of a College:

Page 18: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

18

1. To save the diagram, click on File, Save o Keep the default diagram name: ERD1, click on [OK]

2. To exit Entity Relationship Diagrammer, click on File, Exit. 3. To backup the repository to a dmp file called "mac_course.dmp"

o In the Oracle Designer 6i main window, click on the "Repository Object Navigator" icon. o Click on Utilities, Export... o Enable the radio-button for "Export data to ORACLE database export file" o Click on [Next>] o Enable the radio-button for "Export Selected container from a specified workarea" o Select container to export, click on [Browse...] o Select Name: MYAPP1 o Click on [OK] o Click on [Next>] o Enter Specify Export File: c:\mac_course.dmp o Click on [Finish] o Close the "errlog.err - Notepad"

Click on File, Exit o To exit RON, click on File, Exit.

Page 19: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

19

o To exit Oracle Designer 6i, click on File, Exit.

Understand Designer 6i's Tablespace Usage Note: You do not have to do the following. This is for you to understand how tablespaces are organised in Oracle 8i. Check Tablespaces Details The following results was captured before the creation of tablespaces for Designer 6i.

List all Tablespaces in your Database:

SQL> desc dba_tablespaces; Name Null? Type ----------------------------------------- -------- ---------------- TABLESPACE_NAME NOT NULL VARCHAR2(30) INITIAL_EXTENT NUMBER NEXT_EXTENT NUMBER MIN_EXTENTS NOT NULL NUMBER MAX_EXTENTS NUMBER PCT_INCREASE NUMBER MIN_EXTLEN NUMBER STATUS VARCHAR2(9) CONTENTS VARCHAR2(9) LOGGING VARCHAR2(9) EXTENT_MANAGEMENT VARCHAR2(10) ALLOCATION_TYPE VARCHAR2(9) PLUGGED_IN VARCHAR2(3)

SQL> select tablespace_name from dba_tablespaces order by tablespace_name;

TABLESPACE_NAME ------------------------------ DRSYS INDX RBS SYSTEM TEMP TOOLS USERS

7 rows selected.

To check Tablespace and Physical Files:

Page 20: Installation of Oracle 8i, Designer 6i and Developer 6i on ... · Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional 3 1. Insert Forms & Reports

Installation of Oracle 8i, Designer 6i and Developer 6i on Windows 2000 Professional

20

SQL> desc dba_data_files Name Null? Type ----------------------------------------- -------- ---------------- FILE_NAME VARCHAR2(513) FILE_ID NUMBER TABLESPACE_NAME VARCHAR2(30) BYTES NUMBER BLOCKS NUMBER STATUS VARCHAR2(9) RELATIVE_FNO NUMBER AUTOEXTENSIBLE VARCHAR2(3) MAXBYTES NUMBER MAXBLOCKS NUMBER INCREMENT_BY NUMBER USER_BYTES NUMBER USER_BLOCKS NUMBER

select tablespace_name,file_name,bytes/1024/1024 from dba_data_files order by tablespace_name /