Try   HackMD

Day 21: Informix(2)

環境設定

查詢自己帳號預設的登入 shell 設定

對於 Informix DB 而言,是ksh

  • 顯示目前正在執行的 shell 名稱

    ​​​​echo $0
    
  • 終端介面輸入:

.profile

  • (A) .profile file

  • (B) Automate startup and shutdown on UNIX

    • environment variable
      • INFORMIXDIR

        the full path name of the directory in which the database server is installed

      • INFORMIXSERVER

        the sysmaster database can be updated (or created, if necessary)

        The sysmaster Database

      • INFORMIXSQLHOSTS

        If you store the information in another location, you must set the INFORMIXSQLHOSTS environment variable.

        The sqlhosts file and the SQLHOSTS registry key

  • (A+B) What's in .profile?

    ​​​​export INFORMIXDIR=/usr/ifx_instance/informix_X
    ​​​​export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/sqlhost_X
    ​​​​export INFORMIXSERVER=[主機]