NPSX Unix&Oracle

Embed Size (px)

Citation preview

  • 7/27/2019 NPSX Unix&Oracle

    1/10

    1 NOKIA Oracle_admin.PPT/ 11Feb2000 / Noraseh Singholka

    Oracle Administration

  • 7/27/2019 NPSX Unix&Oracle

    2/10

    2 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 AdministrationManual.

    After this chapter you will be able to do

    Oracle users admisistration

    Tablespace monitor and administration

  • 7/27/2019 NPSX Unix&Oracle

    3/10

    3 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 beused 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,

  • 7/27/2019 NPSX Unix&Oracle

    4/10

    4 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 privilegesuch as NPSX_READ_ONLY which will be able to open plans for view purpose only.

  • 7/27/2019 NPSX Unix&Oracle

    5/105 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:

  • 7/27/2019 NPSX Unix&Oracle

    6/106 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 (highersecurity)

    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

    Enter ops$ username for new user:

    which we will enter "ops$brown"

    Then it will ask

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

  • 7/27/2019 NPSX Unix&Oracle

    7/10

    7 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_PLANNERNPSX_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 youwant "brown" to be able to read only then type NPSX_READ_ONLY (supported starting inNPS/X 3.2).

  • 7/27/2019 NPSX Unix&Oracle

    8/10

    8 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

  • 7/27/2019 NPSX Unix&Oracle

    9/10

    9 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 modifythe privileges.

    Since the role NPSX_READ_ONLYhas 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_ONLYand click OK.

  • 7/27/2019 NPSX Unix&Oracle

    10/10

    10 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 becontrol to serve your needs (study the NPS/X objects in theDatabase description for more details)

    For this example NPSX_READ_ONLY needs to have insert,update and delete privileges on the object NPSX_INFO (andWORKAREA in NPS/X 3.3), so by selecting this object and thenmaking 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 togrant the privilege on the selected objects to the role

    NPSX_READ_ONLY.