转至繁体中文版     | 网站首页 | 图文教程 | 资源下载 | 站长博客 | 图片素材 | 武汉seo | 武汉网站优化 | 
最新公告:     敏韬网|教学资源学习资料永久免费分享站!  [mintao  2008年9月2日]        
您现在的位置: 学习笔记 >> 图文教程 >> 数据库 >> SyBase >> 正文
谁有关于startserver实用程序的资料         ★★★★

谁有关于startserver实用程序的资料

作者:闵涛 文章来源:闵涛的学习笔记 点击数:1595 更新时间:2009/4/22 23:09:48

要详细的,谢谢!  

 freebob 回复于:2002-12-05 09:50:00

startserver
Description 
Starts an Adaptive Server or a Backup Server. startserver is located in $SYBASE/ASE-12_5/bin.

This utility is not available for Windows NT.

Syntax 
startserver [[-f runserverfile] [-m]] ...
Parameters 
-f runserverfile

specifies the relative path name of a runserver file, which is used as a reference each time you start an Adaptive Server or Backup Server. By default, the runserver file is in the current directory and is named RUN_servername. If you start a second Adaptive Server on the same machine, startserver creates a new runserver file named RUN_servername.

-m

starts Adaptive Server in single-user mode, allowing only one System Administrator to log in, and turns the allow updates to system tables configuration parameter on. Use this mode to restore the master database. The System Administrator can use the dbo use only parameter of sp_dboption for system administration activities that require more than one process, such as bulk copying or using the data dictionary. startserver normally starts up only one server per node.

The -m parameter creates an m_RUNSERVER file and overwrites any existing m_RUNSERVER file.

Examples 
Example 1

Starts an Adaptive Server named SYBASE from the runserver file named RUN_servername in the current directory:


startserver

Example 2

Starts an Adaptive Server named MYSERVER and a Backup Server named SYB_BACKUP:


startserver -f RUN_MYSERVER -f RUN_SYB_BACKUP

Example 3

Starts only the Backup Server SYB_BACKUP:


startserver -f RUN_SYB_BACKUP

Usage 

startserver uses the information in the runserver file to start an Adaptive Server or Backup Server. The master device must be writable by the user who starts Adaptive Server.

The startserver command creates the Adaptive Server error log file (named errorlog) in the directory where the server is started, and adds this information as part of the -e parameter in the Adaptive Server executable line in the runserver file. If a second Adaptive Server is started on the same machine, a new error log named errorlog_servername is created; this information is added to that server's runserver file. The user must have execute permission on the specified runserver file.

You can start multiple servers by specifying more than one runserver file, as shown in example 2. You can specify -m after each -f runserverfile.

Adaptive Server derives its running environment from values in the config file. Run sp_configure or edit the config file to see or change configuration parameters.

To ensure the integrity of your Adaptive Server, it is important that you apply appropriate operating-system protections to the startserver executable and the runserver file.


The runserver file

The runserver file, which is created by srvbuild during installation, contains the dataserver command to start Adaptive Server or the backupserver command to start Backup Server. By default, the runserver file is in the current directory and is named RUN_servername. You can edit the runserver file to correct the options and parameters for the commands. The following example shows two sample runserver files.

Runserver file for server MYSERVER: 

#!/bin/sh##
 Adaptive Server Information:#
  name:                          /MYSERVER#
  master device:                 /remote/Masters/myserver_dat#
  master device size:                    10752#
  errorlog:                      /remote/serverdev/install/errorlog#
  interfaces:                    /remote/serverdev/interfaces##

/remote/serverdev/bin/dataserver -d/remote/Masters/myserver_dat \ 
-sMYSERVER -e/remote/serverdev/install/MYSERVER_errorlog \
-i/remote/serverdev &

Runserver file for backup server SYB_BACKUP: 

#!/bin/sh##
 Backup Server Information:#
  name:                          SYB_BACKUP#
  errorlog:                      /remote/serverdev/install/backup.log#
  interfaces:                    /remote/serverdev/interfaces#
  location of multibuf:          /remote/serverdev/bin/sybmultbuf#
  language:                      us_english#
  character set:                 iso_1#
  tape configuration file:       /remote/serverdev/backup_tape.cfg##

/remote/serverdev/bin/backupserver -SSYB_BACKUP \
-e/remote/serverdev/install/backup.log \
-I/remote/serverdev/interfaces \
-M/remote/serverdev/bin/sybmultbuf -Lus_english -Jiso_1 \
-c/remote/serverdev/backup_tape.cfg




 杉菜 回复于:2002-12-05 09:59:47 谢谢,不过好象还有参数-T,怎么没有详细说明,比如-T3604是不检查日志启动,我想要这方面的资料  

 freebob 回复于:2002-12-05 10:32:20
Trace flags

我可以贴出来,不过这些都是unsupported functionility,
如果因为这出问题了,sybase是不会帮你的

一定要小心使用!!!!!!!!!!!!!!!!!!!!!!!!!!

Trace flags can be set through dbcc traceon/traceoff or added to the
RUN_SERVER file (i.e. "-T292", depending on their function and the desired effect.

292 - reduces network traffic by suppressing server-to-client "done-in-proc" network
packets in combination with dbcc tune(“doneinproc”,0). (Note: in previous
versions of this QuickRef, trace flag 260 was mistakenly mentioned he

[1] [2]  下一页


没有相关教程
教程录入:mintao    责任编辑:mintao 
  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      注:本站部分文章源于互联网,版权归原作者所有!如有侵权,请原作者与本站联系,本站将立即删除! 本站文章除特别注明外均可转载,但需注明出处! [MinTao学以致用网]
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)

    同类栏目
    · Sql Server  · MySql
    · Access  · ORACLE
    · SyBase  · 其他
    更多内容
    热门推荐 更多内容
  • 没有教程
  • 赞助链接
    更多内容
    闵涛博文 更多关于武汉SEO的内容
    500 - 内部服务器错误。

    500 - 内部服务器错误。

    您查找的资源存在问题,因而无法显示。

    | 设为首页 |加入收藏 | 联系站长 | 友情链接 | 版权申明 | 广告服务
    MinTao学以致用网

    Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved.
    闵涛 投放广告、内容合作请Q我! E_mail:admin@mintao.net(欢迎提供学习资源)

    站长:MinTao ICP备案号:鄂ICP备11006601号-18

    闵涛站盟:医药大全-武穴网A打造BCD……
    咸宁网络警察报警平台