NPSX Unix&Oracle

You might also like

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 10

Oracle Administration

NOKIA

Oracle_admin.PPT/ 11Feb2000 / Noraseh Singholka

Objectives
This chapter is not intended to give deep details for Oracle Administration but to help in normal Oracle Administration work, more detials can be found from the NPS/X Administration Manual. After this chapter you will be able to do

Oracle users admisistration Tablespace monitor and administration

NOKIA

Oracle_admin.PPT/ 11Feb2000 / Noraseh Singholka

Creating Oracle users (1)


When NPS/X needs to connect to Oracle to get or put data from/to the database, a user name and password is needed to connect to Oracle. The users in Oracle are internal, system, npsx. When NPS/X connects to Oracle it sends it's user name to Oracle, if the user is not found in Oracle then Oracle will prompt to login. User "npsx" is the owner of all NPS/X related tables with a default password "npsx" can be used to login New users created into UNIX can have their own Oracle user names which in such a way to helps the administor to monitor which user has modified what, control access levels,

NOKIA

Oracle_admin.PPT/ 11Feb2000 / Noraseh Singholka

Creating Oracle users (2)


The user "npsx" has a role given to it which has full privilege on all needed NPS/X tables, this role is NPSX_USER. Other roles can be granted to new users to have different access privilege such as NPSX_READ_ONLY which will be able to open plans for view purpose only.

NOKIA

Oracle_admin.PPT/ 11Feb2000 / Noraseh Singholka

Creating Oracle users (3)


Create the user in UNIX first then create the user in Oracle. Login as oracle and run the command /users/npsxadm/npsx_oracle/cr_npsx_user then you will see

Creation of NPS/X user 1. Create user with password 2. Create externally identified user (ops$) 0. Exit Enter your choice:

NOKIA

Oracle_admin.PPT/ 11Feb2000 / Noraseh Singholka

Creating Oracle users (4)


There are two options the first requires a user name and password everytime the user connects to Oracle (higher security) the second option gets the information automatically from UNIX (lower security) For an example we will add the user "brown" by using option 2 (option 1 is almost the same) The password for the user system is required 2 times (manager) Then it will show Then it will ask

Enter ops$ username for new user: which we will enter "ops$brown"

Enter default tablespace for new user (e.g. users): which you type "users"

NOKIA

Oracle_admin.PPT/ 11Feb2000 / Noraseh Singholka

Creating Oracle users (5)


Then it will ask you to choose a role for this user

These are the roles defined in NPS/X NPSX_PLANNER NPSX_REMOTE_COPY NPSX_READ_ONLY NPSX_LINK_PLANNER NPSX_ADMINISTRATOR NPSX_LINK_PLAN_READ_ONLY NPSX_USER
For an example if you want "brown" to have full privilege then type NPSX_USER, but if you want "brown" to be able to read only then type NPSX_READ_ONLY (supported starting in NPS/X 3.2).
7 NOKIA Oracle_admin.PPT/ 11Feb2000 / Noraseh Singholka

Modifying role privileges (1)


The need of modifying the roles is needed when you want to control privileges of each user on each type of data As oracle run the command /users/npsxadm/bin/roles will open a window asking the user name (npsx) and password as follows

NOKIA

Oracle_admin.PPT/ 11Feb2000 / Noraseh Singholka

Modifying role privileges (2)


To view or modify the privilege of a role simply retrieve the role from the menu "Role>Retrieve", then there will be a window for you to select which role you wish to view or modify the privileges. Since the role NPSX_READ_ONLY has not been correctly modified to serve the user using this role as the name is meant to, we will use this as an example. Select the role NPSX_READ_ONLY and click OK.

NOKIA

Oracle_admin.PPT/ 11Feb2000 / Noraseh Singholka

Modifying role privileges (3)


Then you will see the privileges granted for the selected role for each table, you just need to know which object is needed to be control to serve your needs (study the NPS/X objects in the Database description for more details) For this example NPSX_READ_ONLY needs to have insert, update and delete privileges on the object NPSX_INFO (and WORKAREA in NPS/X 3.3), so by selecting this object and then making a mark in the boxes below (insert, update, delet) will grant these rights to the selected object. Click Role->Update and then Role->Execute will run the scripts to grant the privilege on the selected objects to the role NPSX_READ_ONLY.

10

NOKIA

Oracle_admin.PPT/ 11Feb2000 / Noraseh Singholka

You might also like