이 콘텐츠는 선택한 언어로 제공되지 않습니다.

15.6. Allowing the Oracle User to Change the Mapped Base Address for Shared Libraries


As shown at Section 15.4, “Lowering the Mapped Base Address for Shared Libraries in Red Hat Enterprise Linux 2.1” only root can change the mapped_base for shared libraries. Using sudo we can give the "oracle" user the privilege to change the mapped base for shared libraries for the shell terminal session without providing full root access to the system.
The procedure is as follows:
Create a script called "/usr/local/bin/ChangeMappedBase" which changes the mapped_base for shared libraries for for its own shell:
# cat /usr/local/bin/ChangeMappedBase
#/bin/sh
echo 268435456 > /proc/$PPID/mapped_base
Copy to Clipboard Toggle word wrap
Make the script executable:
# chown root.root /usr/local/bin/ChangeMappedBase
# chmod 755 /usr/local/bin/ChangeMappedBase
Copy to Clipboard Toggle word wrap
Allow the oracle user to execute /usr/local/bin/ChangeMappedBase via sudo without password:
# echo "oracle   ALL=NOPASSWD: /usr/local/bin/ChangeMappedBase" >> \
	/etc/sudoers
Copy to Clipboard Toggle word wrap
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$
Copy to Clipboard Toggle word wrap
To change the mapping for shared libraries automatically during the Oracle log in process, execute:
# echo "sudo /usr/local/bin/ChangeMappedBase" >> ~/.bash_profile
Copy to Clipboard Toggle word wrap
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$
Copy to Clipboard Toggle word wrap

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>
Copy to Clipboard Toggle word wrap
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2026 Red Hat
맨 위로 이동