⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 200604040934365.html

📁 软件工程的红包书
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<html>
<head><title>SYBASE</title></head>
<center><h1>SYBASE</h1></center>
<div><P align=right><FONT face=Verdana><FONT color=#f70938><FONT face=黑体><a href="200604112229525.html" tppabs="http://www.itisedu.com/phrase/200604112229525.html" target="_new">中科永联</a>高级技术培训中心(</FONT><FONT face=黑体>www.itisedu.com</FONT><FONT face=黑体>)<IMG src="20064493434351.jpg" tppabs="http://www.itisedu.com/manage/Upload/image/20064493434351.jpg" border=0></FONT></FONT></FONT></P>
<P><FONT face=Verdana>  <a href="200604040934365.html" tppabs="http://www.itisedu.com/phrase/200604040934365.html" target="_new">SYBASE</a>是美国SYBASE公司在80年代中推出的客户机/服务器结构的关系<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200603011056245.html  \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon.  \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200603011056245.html'" tppabs="http://www.itisedu.com/phrase/200603011056245.html" target="_new">数据库系统</a>,也是世界上第一个真正的基于<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200604291147015.html  \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon.  \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200604291147015.html'" tppabs="http://www.itisedu.com/phrase/200604291147015.html" target="_new">client/server结构</a>的RDBMS产品。</FONT></P>
<P><FONT face=Verdana>  SYBASE中按权限由高到低,可将用户分为四种不同的<a href="200603051002565.html" tppabs="http://www.itisedu.com/phrase/200603051002565.html" target="_new">类型</a>,由高到低分别为:<a href="200604022111095.html" tppabs="http://www.itisedu.com/phrase/200604022111095.html" target="_new">系统管理</a>员、<a href="200602271218062.html" tppabs="http://www.itisedu.com/phrase/200602271218062.html" target="_new">数据库</a>属主、数据库<a href="200603090845215.html" tppabs="http://www.itisedu.com/phrase/200603090845215.html" target="_new">对象</a>属主和其它一般用户。当第一次安装SYBASE <a href="200604040933575.html" tppabs="http://www.itisedu.com/phrase/200604040933575.html" target="_new">SQL Server</a>时,自动建立系统管理员帐户。系统管理员具有整个系统的最高权利,同时被赋予系统管理角色、系统安全员角色和操作员角色,有权执行所有<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200604022014515.html  \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon.  \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200604022014515.html'" tppabs="http://www.itisedu.com/phrase/200604022014515.html" target="_new">SQL</a>命令,也是系统数据库master的属主,可访问所有数据库和数据库对象。</FONT></P>
<P><FONT face=Verdana><BR>第一讲 Sybase基础知识</FONT></P>
<P><FONT face=Verdana>一、客户/服务器<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200603122156385.html  \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon.  \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200603122156385.html'" tppabs="http://www.itisedu.com/phrase/200603122156385.html" target="_new">体系结构</a></FONT></P>
<P><FONT face=Verdana>Sybase是一种建立在客户/服务器体系结构上的<a href="200603011033425.html" tppabs="http://www.itisedu.com/phrase/200603011033425.html" target="_new">数据库管理系统</a>。</FONT></P>
<P><FONT face=Verdana>●什么是客户/服务器体系结构?</FONT></P>
<P><FONT face=Verdana>从硬件角度看,客户/服务器体系结构是指将某项任务在两台或多台机器之间进行分配,其中客户机(<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200604231337375.html  \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon.  \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200604231337375.html'" tppabs="http://www.itisedu.com/phrase/200604231337375.html" target="_new">Client</a>)用来运行提供用户接口和前端处理的应用<a href="200604232224305.html" tppabs="http://www.itisedu.com/phrase/200604232224305.html" target="_new">程序</a>,服务器机(Server)提供客户机使用的各种资源和服务。</FONT></P>
<P><FONT face=Verdana>从<a href="200604232134205.html" tppabs="http://www.itisedu.com/phrase/200604232134205.html" target="_new">软件</a>角度看,客户/服务器体系结构是把某项应用或<a href="200602281706245.html" tppabs="http://www.itisedu.com/phrase/200602281706245.html" target="_new">软件系统</a>按逻辑功能划分为客户软件部分和服务器软件部分。客户软件部分一般负责数据的表示和应用,处理用户界面,用以接收用户的数据处理请求并将之转换为对服务器的请求,要求服务器为其提供数据的存储和检索服务;服务器端软件负责接收<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200603082208195.html  \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon.  \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200603082208195.html'" tppabs="http://www.itisedu.com/phrase/200603082208195.html" target="_new">客户端</a>软件发来的请求并提供相应服务。</FONT></P>
<P><FONT face=Verdana>客户/服务器融合了大型机的强大功能和中央控制以及PC机的低成本和较好的处理平衡。客户/服务器为任务的集中/局部分布提供了一种新的方法,这种体系能够使用户对数据完整性、管理和安全性进行集中控制。在缓解网络交通和主机负荷以及满足用户需要方面,客户/服务器体系提供了良好的解决方案。</FONT></P>
<P><FONT face=Verdana>总之,客户/服务器的工作<a href="200603061709535.html" tppabs="http://www.itisedu.com/phrase/200603061709535.html" target="_new">模式</a>是:客户与服务器之间采用网络协议(如TCP/IP、IPX/SPX)进行连接和通讯,由客户端向服务器发出请求,服务器端响应请求,并进行相应服务。</FONT></P>
<P><FONT face=Verdana>数据库应用的客户/服务器模式如下图所示:</FONT></P>
<P><FONT face=Verdana>二、访问Sybase服务器的基本过程</FONT></P>
<P><FONT face=Verdana>1.建立客户与服务器之间的连接,包括网络连接、客户进程与服务器进程之间的连接;</FONT></P>
<P><FONT face=Verdana>2.客户端通过网络发送SQL语句给服务器,用来查询或操作服务器中的数据或数据库对象;</FONT></P>
<P><FONT face=Verdana>3.服务器接收到SQL语句后,对其进行语法分析、优化和编译后执行;</FONT></P>
<P><FONT face=Verdana>4.如果执行的语句产生一个结果集,服务器通过网络把结果集返回给客户;</FONT></P>
<P><FONT face=Verdana>5.客户端对收到的结果作相应的处理。</FONT></P>
<P><FONT face=Verdana>在客户/服务器体系,有两种数据库引擎结构,即多进程数据库引擎和单进程、多<a href="200603091754305.html" tppabs="http://www.itisedu.com/phrase/200603091754305.html" target="_new">线程</a>引擎结构。</FONT></P>
<P><FONT face=Verdana>多进程结构即多个可执行程序同时运行。每当用户登录到数据库系统时实际上都启动了数据库引擎的一个独立实例。存在起协调作用的进程协调进行之间的通讯以保证当多用户访问相同数据时数据的完整性。多进程数据库引擎一般用在大型机数据库上。</FONT></P>
<P><FONT face=Verdana>单进程多线程数据库引擎在原理上和多进程数据库引擎<a href="200603090857555.html" tppabs="http://www.itisedu.com/phrase/200603090857555.html" target="_new">类</a>似,不同的是多线程数据库引擎自己负责调度各应用程序占用CPU的时间,而不依赖于<a href="200602281634075.html" tppabs="http://www.itisedu.com/phrase/200602281634075.html" target="_new">操作系统</a>。这样,多线程数据库引擎自我保护的能力更强。</FONT></P>
<P><FONT face=Verdana><a href="200604040935115.html" tppabs="http://www.itisedu.com/phrase/200604040935115.html" target="_new">Oracle</a> Server是一个真正的多进程数据库引擎,Sybase数据库管理系统采用的是单进程多线程的引擎结构。</FONT></P>
<P><FONT face=Verdana>三、Sybase产品概述</FONT></P>
<P><FONT face=Verdana>1.Sybase软件的组成</FONT></P>
<P><FONT face=Verdana>Sybase软件可划分为三个部分:一是进行数据管理与维护的联机关系数据库管理系统Sybase SQL Server;二是支持数据库应用系统的建立和开发的一组前端工具软件Sybase SQL Tools;三是可把异构环境下其他厂商的应用软件和任何类型的数据连接在一起的接口软件Open Client/Open Server。</FONT></P>
<P><FONT face=Verdana>SQL Server是个可编程的数据库管理系统(<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200604221337185.html  \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon.  \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200604221337185.html'" tppabs="http://www.itisedu.com/phrase/200604221337185.html" target="_new">DBMS</a>),它是整个Sybase产品的核心软件,起着数据管理、高速缓冲区管理、事务管理的作用。</FONT></P>
<P><FONT face=Verdana>2.SQL Server的基本特征</FONT></P>
<P><FONT face=Verdana>SQL Server是个关系数据库管理系统,它具有如下一些基本特征:</FONT></P>
<P><FONT face=Verdana>a.SQL Server可以放在若干个磁盘设备上,初始安装时所需的磁盘空间至少要17MB。</FONT></P>
<P><FONT face=Verdana>b.SQL Server支持多库结构,也就是说Sybase系统中可以有多个数据库。Sybase可以管理多个数据库。</FONT></P>
<P><FONT face=Verdana>c.SQL Server可以编译和运行<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200604022118155.html  \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon.  \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200604022118155.html'" tppabs="http://www.itisedu.com/phrase/200604022118155.html" target="_new">T-SQL</a>语句,并可返回客户程序所要求的结果。T-SQL语句是标准SQL的扩充,它除了有数据定义语句、数据操纵语句和数据控制语句之外,主要增加了流程控制语句。</FONT></P>
<P><FONT face=Verdana>d.SQL Server可以管理多个用户并具有较高的事务吞吐量和较低的事务响应时间。</FONT></P>
<P><FONT face=Verdana>客户的应用程序可以存取Server中某一个或几个数据库的数据。</FONT></P>
<P><FONT face=Verdana>四、SQL Server的主要内容</FONT></P>
<P><FONT face=Verdana>Sybase SQL Server是一个多库结构的RDBMS,体系结构大致如下: <BR>&nbsp;<BR>1.数据库</FONT></P>
<P><FONT face=Verdana>服务器自身所使用的数据库,也可以说是管理服务器和用户数据库的数据库。Sybase在安装时,自动创建了四个系统数据库:</FONT></P>
<P><FONT face=Verdana>master、model、tempdb、sybsystemprocs</FONT></P>
<P><FONT face=Verdana>(1) master数据库</FONT></P>
<P><FONT face=Verdana>它是管理和控制用户数据库以及维护服务器正常运行的核心数据库,它保存了大量的系统信息,如服务器配置、用户、设备等。</FONT></P>
<P><FONT face=Verdana>在master数据库中不允许普通用户在其中创建数据库对象,否则会使得master数据库的事务日志很快变满。如果事务日志用尽,就无法使用dump transaction命令释放master数据库中的空间。</FONT></P>
<P><FONT face=Verdana>(2)model数据库</FONT></P>
<P><FONT face=Verdana>它是为创建用户数据库而提供的模板。每当创建新的数据库时,SQL Server自动建立model数据库的一份拷贝,并把它扩充到用户所要求的大小,以此作为新用户数据库。</FONT></P>
<P><FONT face=Verdana>Model数据库中包含每个用户数据库所要求的系统表。Model数据库可以被修改以便定制新创建的。</FONT></P>
<P><FONT face=Verdana>(3)tempdb数据库</FONT></P>
<P><FONT face=Verdana>它是个临时数据库,为服务器运行与处理提供一个共享的存储区域,如group by和order by的中间结果就存放在这里。Tempdb的空间为服务器中所有数据库的所有用户所共享。</FONT></P>
<P><FONT face=Verdana>每次重启SQL Server,服务器的一个自动进程都拷贝model数据库到tempdb数据库,并清除tempdb中原来的内容。因此tempdb中的用户表都是临时的。临时表分为两类:可共享的和不可共享的。不可共享的临时表在由create table中将符号#置于表名之前创立;可共享的临时表通过create table中指定表名前缀tempdb..而创立。不可共享的临时表SQL Server自动为其添加数字后缀名,且它只存在于当前会话中。</FONT></P>
<P><FONT face=Verdana>(4)sybsystemprocs数据库master数据库</FONT></P>
<P><FONT face=Verdana>它是专门用来保存系统命令(存储过程)的数据库,如sp_help、sp_configure、sp_helpdevice等。当任一数据库用户运行以sp_开头的存储过程时,SQL Server按照以下顺序查找:当前数据库、sybsystemprocs数据库、master数据库。</FONT></P>
<P><FONT face=Verdana>2.用户数据库</FONT></P>
<P><FONT face=Verdana>用户数据库是我们使用Sybase服务器的真正目的。要管理用户数据,必须在Sybase中创建自己的数据库,它是指用create <a href="javascript:if(confirm('http://www.itisedu.com/phrase/200604231244235.html  \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon.  \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200604231244235.html'" tppabs="http://www.itisedu.com/phrase/200604231244235.html" target="_new">database</a>命令创建的数据库。不能存取master数据库的用户是无权创建新的数据库的。</FONT></P>
<P><FONT face=Verdana>数据库中的主要内容——数据库对象:</FONT></P>
<P><FONT face=Verdana>表、<a href="200603141659315.html" tppabs="http://www.itisedu.com/phrase/200603141659315.html" target="_new">视图</a>、临时表</FONT></P>
<P><FONT face=Verdana>索引、主键、外键</FONT></P>
<P><FONT face=Verdana>缺省值、规则</FONT></P>
<P><FONT face=Verdana>存储过程、触发器等</FONT></P>
<P><FONT face=Verdana>五、Sybase的安装与配置</FONT></P>
<P><FONT face=Verdana>1.服务器端的安装</FONT></P>
<P><FONT face=Verdana>安装建立SQL Server以后,要建立放置数据库、日志和索引的逻辑磁盘设备。数据库、日志和索引的配置应注意以下原则;</FONT></P>
<P><FONT face=Verdana>a.不要把任何用户对象安装在master数据库中。</FONT></P>
<P><FONT face=Verdana>b.日志应该保存在与数据库分离的磁盘上。</FONT></P>
<P><FONT face=Verdana>c.可以通过跨越多个设备分配工作优化I/O性能。</FONT></P>
<P><FONT face=Verdana>2.客户端的安装</FONT></P>
<P><FONT face=Verdana>3.需要立即更改的内容</FONT></P>
<P><FONT face=Verdana>(1)更改<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200604240907255.html  \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon.  \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200604240907255.html'" tppabs="http://www.itisedu.com/phrase/200604240907255.html" target="_new">sa</a>的登录口令;(2)命名服务器;(3)修改<a href="200602282323195.html" tppabs="http://www.itisedu.com/phrase/200602282323195.html" target="_new">文件</a>名(保证Sybase Central正常启动);(4)更改缺省设备;(5)增加tempdb的空间。</FONT></P>
<P><FONT face=Verdana>4.创建用户数据库</FONT></P>
<P><FONT face=Verdana>以下通过一个建立数据库的脚本说明建立数据库的过程:</FONT></P>
<P><FONT face=Verdana>//创建数据库设备,设备大小以页(2K)为单位</FONT></P>
<P><FONT face=Verdana>disk init</FONT></P>
<P><FONT face=Verdana>name=”test_dbdev”,</FONT></P>
<P><FONT face=Verdana>physname=”c:\test\test_dbdev.dat”,</FONT></P>
<P><FONT face=Verdana>vdevno=10,</FONT></P>
<P><FONT face=Verdana>size=10240</FONT></P>
<P><FONT face=Verdana>go</FONT></P>
<P><FONT face=Verdana>disk init</FONT></P>
<P><FONT face=Verdana>name=”test_logdev”,</FONT></P>
<P><FONT face=Verdana>phyname=”c:\test\test_logdev.dat”,</FONT></P>
<P><FONT face=Verdana>vdevno=11,</FONT></P>
<P><FONT face=Verdana>size=5120</FONT></P>
<P><FONT face=Verdana>go</FONT></P>
<P><FONT face=Verdana>//创建数据库TEST_<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200604231245475.html  \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon.  \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200604231245475.html'" tppabs="http://www.itisedu.com/phrase/200604231245475.html" target="_new">DB</a>,其大小为20M,日志大小为10M</FONT></P>
<P><FONT face=Verdana>create database TEST_DB</FONT></P>
<P><FONT face=Verdana>on test_dbdev=20</FONT></P>
<P><FONT face=Verdana>log on test_logdev=10</FONT></P>
<P><FONT face=Verdana>go</FONT></P>
<P><FONT face=Verdana>//打开数据库</FONT></P>
<P><FONT face=Verdana>use TEST_DB</FONT></P>
<P><FONT face=Verdana>go</FONT></P>
<P><FONT face=Verdana>5.系统管理的主要内容</FONT></P>
<P><FONT face=Verdana>a.物理资源的管理</FONT></P>
<P><FONT face=Verdana>b.用户及其权限管理</FONT></P>
<P><FONT face=Verdana>c.数据库的备份与恢复</FONT></P>
<P><FONT face=Verdana>6.SQL Server的配置参数</FONT></P>
<P><FONT face=Verdana>服务器配置是系统管理员的职责,正确的配置对系统性能有重大的影响。有两个系统表存储配置信息:sysconfigures和syscurconfigs;sysconfigures是永久性的,一旦系统运行,sysconfigures的信息就拷贝到syscurconfigs中。显示配置和改变配置使用系统过程sp_configure。</FONT></P>
<P><FONT face=Verdana>有两种配置值:动态的和静态的,动态值一旦改变立即生效,静态值要在系统重启动后才起作用。 </FONT></P><FONT face=Verdana>
<P><BR>第二讲 数据库设备与存储空间管理</P>
<P>一、概述</P>
<P>1.安装初始化</P>
<P>初始安装SQL Server时,安装程序和脚本初始化主设备,并建立master、model、tempdb和sybsystemprocs数据库。系统数据库、预定义设备和段按下列默认方式组织:</P>
<P>a.master、model、tempdb数据库安装在主设备master上;</P>
<P>b.sybsystemprocs数据库安装在安装时选择的设备上(sysprocsdev);</P>
<P>c.为每个数据库创建三个预定义段:system、default和logsegment;</P>
<P>d.所有用户创建数据库的默认设备是master设备;</P>
<P>e.如果选择安装了审计数据库sybsecurity,它位于自己的设备上。</P>
<P>2.设备与存储管理考虑的主要问题</P>
<P>(1)恢复</P>
<P>物理磁盘崩溃时,磁盘镜像或在单独的物理设备上保存日志为数据库恢复提供了两种机制。</P>
<P>(2)性能</P>
<P>磁盘读写速度是I/O操作的瓶颈,正确地把数据库对象放置到物理设备上有利于改进性能;</P>
<P>把日志和数据库对象置于单独的设备上可以提高系统性能;</P>
<P>把表放在一个硬盘上而把索引放在另一个硬盘上,由于把工作分置于两个硬盘驱动器上,所以可以确保物理读写速度加快;</P>
<P>磁盘镜像会降低磁盘写的速度。</P>
<P>二、设备(Device)</P>
<P>Sybase将数据库中的所有数据存放在设备上。</P>
<P>1.设备的概念</P>
<P>设备是Sybase预先配置的专门存放数据库的一块连续的磁盘空间,并且它被映射到一操作系统文件或一原始磁盘分区上。它有两个对应的名称:逻辑名和物理名。NT仅支持设备映射到文件。</P>
<P>设备与数据库之间的关系:多对多关系。一个数据库可以被创建或扩充到多个设备上,一个设备也可以被用来存放多个数据库。不同的设备操作系统可以对其并行地读写,因此我们可以人为地将一个数据库放置到多个数据库设备上。</P>
<P>设备的分类:Database Device和Dump Device。数据库设备存放数据库和事务日志,转储设备用来存放数据库或日志的备份。</P>
<P>2.设备的创建</P>
<P>命令语法:</P>
<P>DISK INIT</P>
<P>Name=’device_name’,</P>
<P>Physname=’physical_name’,</P>
<P>Vdevno=virtual_device_number</P>
<P>Size=number_of_pages</P>
<P>[…….]</P>
<P>举例说明:</P>
<P>DISK INIT</P>
<P>Name=’My_Device’,</P>
<P>Physname=’D:\database\My_device.dat’,</P>
<P>Vdevno=3</P>
<P>Size=5000</P>
<P>注释:逻辑名、物理名、设备虚拟号、设备大小</P>
<P>创建转储设备:</P>
<P>sp_addumpdevice{‘disk’|’tape’}</P>
<P>Logical_Name,</P>
<P>Physical_Name,</P>
<P>TapeSize</P>
<P>3.默认设备</P>
<P>在没有指定设备的情况下,用户创建的任何数据对象自动存放在默认设备上。</P>
<P>初始安装后,系统的主设备master被预指定为默认设备,因此要尽快创建自己的默认设备。确保以下设备不是默认设备:系统主设备、指定仅被日志使用的设备。</P>
<P>Sp_diskdefault 设备名[,DefaultOn|DefaultOff]</P>
<P>4.磁盘镜像</P>
<P>磁盘镜像是出于数据库安全性的考虑,当介质失败时,磁盘镜像能提供不间断恢复。磁盘镜像是磁盘上的数据的绝对拷贝。如果某一硬盘事故发生,则该被损坏的拷贝就自动变成离线状态,因而所有的读写都被引向未被损坏的拷贝。</P>
<P>Sybase的磁盘镜像是在设备级上进行的,因此磁盘镜像实质上是设备镜像。当对某一设备进行镜像操作时,Sybase自动创建一个附加设备,由镜像处理程序将原设备上的所有数据拷贝到镜像设备上。</P>
<P>如果要使某一数据库成为镜像,被分配给该数据库的每一设备都必须成镜像。Master设备在服务器中地位特殊,如果它损坏了,SQL Server将崩溃。因此,如果有可能总是要镜像Master设备(在另一磁盘上)。</P>
<P>镜像命令语法:</P>
<P>Disk Mirror</P>
<P>Name=’device_name’,//被镜像的设备</P>
<P>Mirror=’physical_name’</P>
<P>[,writes=serial|noserial]</P>
<P>5.删除设备</P>
<P>sp_dropdevice logical_name[,delfile]</P>
<P>含有数据库的设备不允许删除。</P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -