1. From the Finder's Go menu, choose Utilities.
2. Open Directory Utility.
3. Click the lock in the Directory Utility window.
4. Enter an administrator account name and password, then click OK.
5. Choose Enable Root User from the Edit menu.
6. Enter the root password you wish to use in both the Password and Verify fields, then click OK.しかしUtilityディレクトリを探してもDirectoryUtilityが見つかりません。
Increase system parameters (sysctl.conf)
Open /etc/sysctl.conf (or create it if it doesn't already exist) and insert the following settings. These settings increase
some settings for shared memory and user limits that DB2 needs in order to work on Mac.
Add the following to /etc/sysctl.conf
Save the file and reboot your computer. You don't need to reboot after you install DB2, only after you increase the
System Parameters.
kern.sysv.shmmax=1073741824
kern.sysv.shmmin=1
kern.sysv.shmmni=4096
kern.sysv.shmseg=32
kern.sysv.shmall=1179648
kern.maxfilesperproc=65536
kern.maxfiles=65536
• Graphical install, standard user - double click on db2setup in the finder.
• Script install, standard user - double click on db2_install in the finder.
• Graphical install, root user - open a terminal, run sudo ./db2setup,
• Script install, root user - open a terminal, run sudo ./db2_install, then run sudo /instance/db2icrt -u最初にダウンロードしたtar.gzが展開されているディレクトリ ./exp/db2配下のdb2setupを sudo ./db2setup のようにrootで起動します。GUI画面が立ち上がり、そのままウィザードに従いインストールをすすめれば完了です。
DBI1272I To start using the DB2 instance rchase, you must set up the
DB2 instance environment by sourcing db2profile or db2cshrc in the
sqllib directory, or you can open a new login window of the DB2 instance
user.
Explanation:
The DB2 instance cannot be used before db2profile (for Bourne or Korn
shell users) or db2cshrc (for C shell users) is sourced.
User response:
To set up the DB2 instance environment, you can open a new login window
under the ID that owns the DB2 instance, or source the DB2 instance environment
by running the appropriate following command under the ID that
owns the DB2 instance:
. $HOME/sqllib/db2profile
source $HOME/sqllib/db2cshrc
where $HOME represents the home directory of the user ID that owns the
DB2 instance.インストール時に指定したDB2のユーザーでシェルを開いて、