Create Warehouse Linux Infrastructure
Introduction:
This procedure is to create some Linux accounts and directories that will be used for managing and running the warehouse.
Set up Linux-side maintenance accounts:
- dwmgr - Data Warehouse Manager:
- This account holds the Linux-side code library and is used to manage the Warehouse.
- dwoper - Data Warehouse Operator:
- This account carries out day-to-day Warehouse maintenance.
- /u01
- dw
- code
- ctl - Control schema scripts.
- ods - ODS schema scripts.
- sta - Staging schema scripts.
- val - Validation schema scripts.
- whs - Warehouse schema scripts.
- lib - Library scripts.
- data
- landing - Where files first arrive.
- staging - Where files are loaded to.
- processed - Where files are stored after processing - the file archive.
- log - File processing logs.
- ctl - SQL*LOADER control logs.
- bad - SQL*LOADER bad files.
- dsc - SQL*LOADER discard files.
- log - General logs.
Linux is installed and configured.
Procedure:
- On the Linux desktop:
- -Desktop-
- -System Settings-
- -Users and Groups-
- Query:
- Password for root: *********
- User Manager:
- [Add Group]
- Create New Group:
- Group Name: dw
- [OK]
- [Add User]
- User Name: dwmgr
- Full Name: Data Warehouse Manager
- Password: *********
- Confirm Password: *********
- Create home directory
- Home Directory: /home/dwmgr
- [OK]
- -dwmgr-
- [Properties]
- User Properties:
- [Groups]
- dw
- dwmgr
- Primary Group: dw
- [OK]
- [Add User]
- User Name: dwoper
- Full Name: Data Warehouse Operator
- Password: *********
- Confirm Password: *********
- Create home directory
- Home Directory: /home/dwoper
- [OK]
- -dwoper-
- [Properties]
- User Properties:
- [Groups]
- dw
- dwoper
- Primary Group: dw
- [OK]
- Open Terminal.
- $ su - root
- Password: *********
- # cd /u01
- # mkdir dw
- # cd dw
- # mkdir -p code/ctl
- # mkdir -p code/ods
- # mkdir -p code/sta
- # mkdir -p code/val
- # mkdir -p code/whs
- # mkdir -p code/lib
- # mkdir -p data/landing
- # mkdir -p data/staging
- # mkdir -p data/processed
- # mkdir -p data/log/log
- # mkdir -p data/log/ctl
- # mkdir -p data/log/bad
- # mkdir -p data/log/dsc
- # cd ..
- # chown -R dwmgr.dw dw
- Edit both of the new user's .bash_profile file:
- Open Terminal and log in as [new user].
- $ vi .bash_profile
- Add the following just below the line 'export PATH':
# Warehouse paths: |
- Install chora.
0 Comments:
Post a Comment
<< Home