Allowing the Oracle User to Change the Mapped Base Address for Shared Libraries
53
Allow the oracle user to execute
/usr/local/bin/ChangeMappedBase
via
sudo
without
password:
# echo "oracle ALL=NOPASSWD: /usr/local/bin/ChangeMappedBase" >> \
/etc/sudoers
Now the Oracle user can run
/usr/local/bin/ChangeMappedBase
to change the mapped_base
for its own shell:
$ su - oracle
$ cat /proc/$$/mapped_base; echo
1073741824
$ sudo /usr/local/bin/ChangeMappedBase
$ cat /proc/$$/mapped_base; echo
268435456$
To change the mapping for shared libraries automatically during the Oracle log in process, execute:
# echo "sudo /usr/local/bin/ChangeMappedBase" >> ~/.bash_profile
Now log in as
oracle
:
$ ssh oracle@localhost
oracle@localhost's password:
Last login: Sun Jan 7 13:59:22 2003 from localhost
$ cat /proc/$$/mapped_base; echo
268435456$
Note
If the mapped base address for shared libraries for the Oracle processes was changed,
then every Linux shell that spawns Oracle processes (for example,
listener
,
sqlplus
,
etc.) must have the same mapped base address as well. If you execute
sqlplus
to
connect to the local database, then you will get the following error message, seen in the
screen below, if the
mapped_base
for this shell is not the same as for the running Oracle
processes.
SQL> connect scott/tiger
ERROR:
ORA-01034: ORACLE not available
ORA-27102: out of memory
Linux Error: 12: Cannot allocate memory
Additional information: 1
Additional information: 491524
SQL>
Содержание CLUSTER SUITE FOR ENTERPRISE LINUX 5.1
Страница 7: ...Part I Tuning and Optimizing Red Hat Enterprise Linux for Oracle Database 9i and 10g ...
Страница 8: ......
Страница 10: ...4 ...
Страница 16: ...10 ...
Страница 28: ...22 ...
Страница 30: ...24 ...
Страница 36: ...30 ...
Страница 42: ...36 ...
Страница 54: ...48 ...
Страница 60: ...54 ...
Страница 68: ...62 ...
Страница 72: ...66 ...
Страница 88: ...82 ...
Страница 90: ...84 ...
Страница 92: ...86 ...
Страница 94: ...88 ...
Страница 98: ...92 ...
Страница 108: ...102 ...
Страница 112: ...106 ...
Страница 120: ...114 ...
Страница 122: ......
Страница 128: ...122 ...
Страница 132: ...126 ...
Страница 134: ...128 ...
Страница 142: ...136 ...
Страница 146: ...140 ...
Страница 156: ...150 ...
Страница 160: ...154 ...