Rebuild ldap index

The following is a procedure for backing up and/or recovering an Aphelion LDAP server. It is necessary that an LDAP export be performed (simultaneously with Oracle, to keep their data in sync) as part of a regular Windchill backup program.

We strongly recommend NOT using the BT LDAP Browser to perform. an import/export. Using the BT LDAP browser will almost guarantee problems.

其他资讯
Section on exporting (taking a backup):

The following command line utility is the most recommended way to perform. the export. Alternatively, the Aphelion Web Admin Interface may be used. We strongly recommend NOT using the BT LDAP Browser to perform. an import/export.

 

    Unix:   /usr/sbin/lde/export -f /var/lde/PTCLdap/PTCLdap_lde.conf -l
    Windows:
                 1) cd to your virtual drive of Aphelion. Default is R:
                 2) cd to \usr\sbin\lde (This is where you will find the export command)
                 3) R:\usr\sbin\lde>   \usr\sbin\lde\export -f R:\usr\var\lde\PTCLdap\PTCLdap_lde.conf -l


    Important: On Windows, the command will not run properly unless the command prompt is set to the R: drive (type "R:", without quotes, and press enter)


    Now examine the contents of /var/lde/PTCLdap/PTCLdap_database/root.ldif, to ensure that it is
    complete.
  
Section on importing (recovery):

1. Back up all of the directory containing the LDAP database.


    For unix this is /var/lde/PTCLdap
    For windows it is R:\usr\var\lde\PTCLdap. In this example R is the "virtual drive" used by Aphelion. 


    These are the default locations; they can and vary among sites.

2. Stop the server (if running).

  
    Unix:
    /etc/rc2.d/S77cdsDaemon stop
  
    Windows:
    net stop "Aphelion Administration"
    net stop "Aphelion Services"


    NOTE: For windows servers, ensure that the Aphelion Services are started at least once before continuing; this will ensure that the virtual drive (R: generally) has been mapped.

3. Locate the backup LDIF file, and place it in to the following location :


    Unix: /var/lde/PTCLdap/PTCLdap_database/root.ldif
    Windows: R:\usr\var\lde\PTCLdap\PTCLdap_database\root.ldif


    Ensure the file name is all in lower case.

4. Import the data into the database:


    Unix: /usr/sbin/lde/import -f /var/lde/PTCLdap/PTCLdap_lde.conf
    Windows:
                 1) cd to your virtual drive of Aphelion. Default is R:
                 2) cd to \usr\sbin\lde
                 3) R:\usr\sbin\lde> \usr\sbin\lde\import -f R:\usr\var\lde\PTCLdap\PTCLdap_lde.conf


   Important: On Windows, the command will not run properly unless the command prompt is set to the R: drive (type "R:", without quotes, and press enter)

5. Check the output for any errors.

6. Start the Aphelion servers:


    Unix: /etc/rc2.d/S77cdsDaemon start
    Windows: net start "Aphelion Services"
                  net start "Aphelion Administration"

7. Now check the database connection by connecting using an LDAP browser.

备注:不能正常导出,可用带参数的命令
R:\usr\sbin\lde> \usr\sbin\lde\export -f R:\usr\var\lde\PTCLdap\PTCLdap_lde.conf -l add -R

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24106960/viewspace-668703/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/24106960/viewspace-668703/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值