Sybase IQ-15_1 local login problem of interfaces file configuration and data file permissions

    Environment description:
    Operating system: rhel 5.4
    Database version: Sybase IQ-15_1
    Problem description: A customer in Shanghai restarts the Sybase IQ-15_1 database host, and the Sybase IQ-15_1 database starts abnormally. Because the database administrator Sybase IQ-15_1 is
inexperienced, he cannot log in Local Sybase IQ-15_1 console.
    Problem handling process:
    1. First, solve the login problem of the iqdemo library.
    1. Find the iqdemo database process through ps -ef|grep sybase.
    2. Temporarily configure the local LANG parameters of the operating system. The export does
    not configure the operating system LANG parameters. The login error is as follows:
Your sybase home directory is /opt/sybase. Check the environment variable BYBASE if it is not the one you want!
Using local name "zh_cn.DGB" definied in environment variable  LANG locale name "zh_CN.GBK" doesn't exist  in your
/ opt/sybase/locales/locales.dat file
An error occurred when attempting to allocate localization-related structures.
The error message indicates the character setzh_CN.GBK atdoes not exist in /opt/sybase/locales/locales.dat
    3. Enter the sybase iq installation directory /opt/sybase/, find the interfaces file, and execute more interfaces without content. The
    interfaces configuration is as follows ( IQ is the host name, 2368 is the network port number in the demo library control file iqdemo.cfg file, pay attention to the interfaces configuration format ):
iqdemo
    master tcp ether IQ 2638
    query tcp ether IQ  2638
    --When interfaces are not configured, the login error is as follows:
CT-LIBRARY error: ct_connect():directory service layer:internal directory control layer error:Requested server name not found.
    

--When     the DNS resolution of the hostname configured by interfaces is incorrect (here refers to the tab space in front of the master query), the login error is reported:
CT-LIBRARY error: ct_connect():directory service layer:internal directory control layer error:Invalid syntax found in interfaces file.     --When the interface configuration format is incorrect, the login error: CT-LIBRARY error:
    


    ct_connect():network packet layer:internal net library error:Protocol driver call to parse connection information failed
--When     the interface configuration network port is not correct, login error:
CT-LIBRARY error:
    ct_connect():directory service layer:internal directory control layer error: Net-Lib protocol driver call to connect two endpoints failed
    4. After the interfaces file is configured correctly, use the sybase user to log in to the sybase iq console
$iqsql -UDBA -Psql -Siqdemo
>
    2. Deal with the user's business database startup permission problem
    1. The sybase user tries to start the tpaic library: start_iq @/opt/sybase/tpaic/tpaic.cfg /opt/sybase/tpaic/tpaic.db, an error is reported:

    2. The root user executes ls -l: ls -l /opt/sybase /tpaic/DSMSYS01.iq, found that the file is a soft link, linked to /dev/raw/raw10
    3. The root user executes ls -l /dev/raw/raw*, and found that /dev/raw/raw* are all root: root authority
    4. After communicating with the administrator, the customer accepts the temporary modification of the raw device authority. The modification command is as follows:
chown sybase:sybase /dev/raw/raw10
chown sybase:sybase /dev/raw/raw9
chown sybase:sybase /dev/raw/raw8
chown sybase:sybase /dev/raw/raw7
chown sybase:sybase /dev/raw/raw6
chown sybase:sybase /dev/raw/raw5
chown sybase:sybase /dev/raw/raw4
chown sybase:sybase /dev/raw/raw3
chown sybase:sybase /dev/raw/raw2

chmod 0660 /dev/raw/raw2
chmod 0660 /dev/raw/raw3
chmod 0660 /dev/raw/raw4
chmod 0660 /dev/raw/raw5
chmod 0660 /dev/raw/raw6
chmod 0660 /dev/raw/raw7
chmod 0660 /dev/raw/raw8
chmod 0660 /dev /raw/raw9
chmod 0660 /dev/raw/raw10
    5. Try to use the sybase user to start the sybase iq database again


    6. Log in to the tpaic library

    and the problem is solved!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325212692&siteId=291194637