Вы находитесь на странице: 1из 14

Installing an Oracle Designer 10g Repository (9.0.

4) on Windows

Author: James L. Colestock

Install the Oracle Developer Suite Software

Download the Oracle Developer Suite software:


http://www.oracle.com/technology/software/products/ids/htdocs/904winsoft.html

Save both file segments listed under Oracle Developer Suite10g (9.0.4.0.0) --
OracleDeveloperSuite10g90401_Disk1.exe and OracleDeveloperSuite10g90401_Disk2.exe, in my case -- to
the directory of your choosing.

Unzip the previously downloaded files to a directory of your choosing; make sure to use the ‘Use folder names’
option of WinZip. (Right-click; WinZip > Extract to..; specify <your directory>)

Install the software via <your directory>\Disk1\setup.exe (Right-click; Open)

The Universal Installer will appear. Click ‘Next’ at the Welcome screen.

Specify the file location and name for your %ORACLE_HOME%. Ensure that the path is pointing to the
appropriate products.jar; click ‘Next’:

Page 1 of 14
Select the ‘Installation Type’ of ‘Complete’ and click ‘Next’:

Leave the field blank and click ‘Next’ on the ‘Provide Outgoing Mail Server Information’ screen

Click ‘Install’ to begin the installation on the ‘Summary’ screen

Click ‘Exit’ on the ‘End of Installation’ screen

Patch the Oracle Developer Software

Download the Designer software:


http://www.oracle.com/technology/software/products/designer/index.html

When prompted save the file -- 10g_designer_scm_9046.zip, in my case -- to the directory of your choosing.

Unzip the previously downloaded file to a directory of your choosing; make sure to use the ‘Use folder names’
option of WinZip. (Right-click; WinZip > Extract to..; specify <your directory>)

Install the software via <your directory>\Disk1\setup.exe (Right-click; Open)

The Universal Installer will appear. Click ‘Next’ at the Welcome screen.

Page 2 of 14
Specify the file location and name for your Oracle Developer Suite10g %ORACLE_HOME%. Ensure that the
path is pointing to the appropriate products.jar; click ‘Next’:

Select the ‘Product to Install’ of ‘Oracle Designer 9.0.4.6 (Patchset to Developer Suite)’ and click ‘Next’:

Click ‘Install’ to begin the installation on the ‘Summary’ screen

Click ‘Exit’ on the ‘End of Installation’ screen

Page 3 of 14
Install the Oracle 9i Database Software

Download the Oracle 9i Release 2 Suite software (9.2.0.1):


http://www.oracle.com/technology/software/products/oracle9i/index.html

Save all three file segments listed under Oracle9i Database Release 2 Enterprise/Standard/Personal Edition for
Windows NT/2000/XP – 92010NT_Disk1.zip, 92010NT_Disk2.zip, and 92010NT_Disk3.zip, in my case -- to the
directory of your choosing.

Create the Disk1, Disk2, and Disk3 directories in your extraction directory (i.e. mkdir <your directory>/Diskn)

Unzip the previously downloaded files to their corresponding extraction directory; make sure to use the ‘Use
folder names’ option of WinZip. (Right-click; WinZip > Extract to..; specify <your directory>/Diskn)

Install the software via <your directory>\Disk1\setup.exe (Right-click; Open)

The Universal Installer will appear. Click ‘Next’ at the Welcome screen.

Specify the file location and name for your Oracle 9i Release 2 Database %ORACLE_HOME%. Ensure that the
path is pointing to the appropriate products.jar; click ‘Next’:

Page 4 of 14
Select the ‘Product to Install’ of ‘Oracle 9i Database 9.2.0.1.0’ and click ‘Next’:

Select the ‘Enterprise Edition’ installation type and click ‘Next’:

Page 5 of 14
Select the ‘Software Only’ installation type and click ‘Next’:

Click ‘Install’ to begin the installation on the ‘Summary’ screen

When it appears, cancel out of the Oracle Net Configuration

Click ‘Exit’ on the ‘End of Installation’ screen

Patch the Oracle 9i Database Software to 9.2.0.6

Download patch 3948480 from Metalink:


https://metalink.oracle.com

Save the file – p3948480_9206_WINNT.zip, in my case, to the directory of your choosing.

Unzip the previously downloaded files to their corresponding extraction directory; make sure to use the ‘Use
folder names’ option of WinZip. (Right-click; WinZip > Extract to..; specify <your directory>)

Install the software via <your directory>\Disk1\setup.exe (Right-click; Open)

The Universal Installer will appear. Click ‘Next’ at the Welcome screen.

Page 6 of 14
Specify the file location and name for your Oracle 9i Release 2 Database %ORACLE_HOME%. Ensure that the
path is pointing to the appropriate products.jar; click ‘Next’:

Click ‘Install’ to begin the installation on the ‘Summary’ screen

Click ‘Exit’ on the ‘End of Installation’ screen

Create the 9i Database for the Designer Repository

1. Create directories on the file system for the database; example:

mkdir C:\oracle\
mkdir C:\oracle\admin
mkdir C:\oracle\oradata
mkdir C:\oracle\admin\repo
mkdir C:\oracle\oradata\repo
mkdir C:\oracle\admin\bdump
mkdir C:\oracle\admin\cdump
mkdir C:\oracle\admin\create
mkdir C:\oracle\admin\pfile
mkdir C:\oracle\admin\scripts
mkdir C:\oracle\admin\udump

2. Create the parameter file for the instance -- C:\oracle\admin\repo\pfile\initrepo.ora, in my case –


and edit the values to be appropriate for your instance (see Appendix A). Link to the parameter file you created
by creating a new file, %ORACLE_HOME%\database\init%ORACLE_SID%.ora, and editing it to include an IFILE
directive to the actual parameter file for the instance; example:

IFILE=C:\oracle\admin\repo\pfile\initrepo.ora

Page 7 of 14
3. Ensure that your user is part of the ORA_DBA group:

Start > Control Panel > Administrative Tools > Computer Management > Local Users and Groups
Click on Groups
Click on ORA_DBA
Add any user to the group that should be able to connect to oracle on the machine as a DBA without a password

4. Edit the %ORACLE_HOME%\network\admin\sqlnet.ora networking file to include the following entries;


example:

SQLNET.AUTHENTICATION_SERVICES=(NTS)
NAMES.DEFAULT_DOMAIN=colestock.com

5. Start the Listener (we will use the default listener and port)

set ORACLE_HOME=C:\apps\oracle\9.2.0.6
set PATH=%ORACLE_HOME%\bin; %PATH%
set ORACLE_SID=repo
lsrnctl start
lsnrctl> status

6. Create the Windows Service for the database instance in question; example:

oradim -NEW –SID %ORACLE_SID% -STARTMODE manual

7. Create the Database after editing the script in Appendix B; example:

sqlplus "/ as sysdba";


sqlplus>startup nomount;
sqlplus> @c:\oracle\admin\repo\create\create_database.sql
sqlplus> @%ORACLE_HOME%\rdbms\admin\catalog.sql
sqlplus> @%ORACLE_HOME%\rdbms\admin\catproc.sql
sqlplus> @%ORACLE_HOME%\rdbms\admin\utlrp.sql

8. Create the repository owner and all dependent objects and grants by editing as appropriate and then running
Appendix C; example:

sqlplus> @c:\oracle\admin\repo\create\create_repo.sql

9. Add the repository’s database service to the Oracle Developer Suite10g’s


%ORACLE_HOME%\network\admin\tnsnames.ora file and test connectivity; example:

REPO.COLESTOCK.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = repo.colestock.com)
)
)

set ORACLE_HOME=C:\apps\oracle\DEVSUITE904
set PATH=%ORACLE_HOME%\bin; %PATH%
tnsping %ORACLE_SID%

The aforementioned should resolve, resulting in an ‘OK’

Page 8 of 14
Create the Designer Repository

Source the Oracle Developer Suite10g’s environment and then


start the RAU (Repository Administrator Utility); example:

set ORACLE_HOME=C:\apps\oracle\DEVSUITE904
set PATH=%ORACLE_HOME%\bin; %PATH%
c:\apps\oracle\DEVSUITE904\bin\ckrau61.exe

Connect as the repository owner – repo, in my case -- on your repository database:

Click 'Check Requirements'; ensure that all requirements have been satisfied and then clink 'Install':

Page 9 of 14
Select ‘Support for Oracle Designer Objects’ and then 'OK':

Select 'No' for the public synonym prompt:

Specify the Index and Table Tablespaces and the repository size then click ‘Start’:

Page 10 of 14
Click 'OK' to the warning:

When the Repository is done, you should see a pop-up designating the 'Operation Complete':

Page 11 of 14
Sample Parameter File for Designer Repository Database (Appendix A)

db_block_size=8192
db_cache_size=50331648
open_cursors=300
background_dump_dest=C:\oracle\admin\repo\bdump
core_dump_dest=C:\oracle\admin\repo\cdump
user_dump_dest=C:\oracle\admin\repo\udump
timed_statistics=TRUE
control_files=("C:\oracle\oradata\repo\control01.ctl","C:\oracle\oradata\repo\control02.ctl
")
job_queue_processes=4
aq_tm_processes=1
compatible=9.2.0
db_name=repo
instance_name=repo
db_domain=colestock.com
remote_login_passwordfile=NONE
java_pool_size=41943040
shared_pool_size=103554432
processes=150
fast_start_mttr_target=300
pga_aggregate_target=33554432
sort_area_size=524288
sort_area_retained_size = 65536
undo_management=AUTO
undo_tablespace=UNDOTBS
hash_area_size = 1048576
optimizer_index_caching = 50
optimizer_index_cost_adj = 25
service_names='repo.colestock.com'
local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))'

Page 12 of 14
Sample Create Database Script for Designer Repository Database (Appendix B)

CREATE DATABASE repo


CONTROLFILE REUSE
USER SYS IDENTIFIED BY change_on_install
USER SYSTEM IDENTIFIED BY manager
LOGFILE
GROUP 1 ('C:\oracle\oradata\repo\redo0101.log', 'C:\oracle\oradata\repo\redo0102.log') SIZE
100M REUSE,
GROUP 2 ('C:\oracle\oradata\repo\redo0201.log','C:\oracle\oradata\repo\redo0202.log') SIZE
100M REUSE
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 1000
MAXDATAFILES 10000
MAXINSTANCES 1
CHARACTER SET US7ASCII NATIONAL CHARACTER SET AL16UTF16
DATAFILE 'c:\oracle\oradata\repo\system01.dbf' SIZE 500M REUSE EXTENT MANAGEMENT LOCAL
DEFAULT TEMPORARY TABLESPACE temptbs TEMPFILE 'c:\oracle\oradata\repo\temptbs01.dbf' SIZE
500M REUSE
UNDO TABLESPACE undotbs DATAFILE 'c:\oracle\oradata\repo\undotbs01.dbf' SIZE 500M REUSE
AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED;

Page 13 of 14
Sample Create Repository Owner Script (Appendix C)

create tablespace repodata


datafile 'c:\oracle\oradata\repo\repodata01.dbf' size 500M reuse,
'c:\oracle\oradata\repo\repodata02.dbf' size 500M reuse
extent management local uniform size 128K segment space management auto;

create tablespace repoidx


datafile 'c:\oracle\oradata\repo\repoidx01.dbf' size 500M reuse,
'c:\oracle\oradata\repo\repoidx02.dbf' size 500M reuse
extent management local uniform size 128K segment space management auto;

@c:\apps\oracle\DEVSUITE904\repadm61\utl\ckrorole.sql;

create user repo identified by password


default tablespace repodata temporary tablespace temptbs;

alter user repo quota unlimited on repodata;


alter user repo quota unlimited on repoidx;
grant execute on dbms_lock to repo;
grant execute on dbms_pipe to repo;
grant execute on dbms_rls to repo;
grant create table to repo;
grant create view to repo;
grant create procedure to repo;
grant create synonym to repo;
grant create sequence to repo;
grant select on sys.v_$nls_parameters to repo with grant option;
grant select on sys.v_$parameter to repo;
grant select on dba_rollback_segs to repo;
grant select on dba_segments to repo;
grant create any synonym to repo;
grant drop any synonym to repo;
grant create public synonym to repo;
grant drop public synonym to repo;
grant ck_oracle_repos_owner to repo;
grant connect, resource to repo;

Page 14 of 14