- oracle 指令 sysdba,sqlplus命令行登录方法 as sysdba
凯尔卡
oracle指令sysdba
sqlplus命令行登录方法assysdba2016年02月26日09:57:39weiling_shen阅读数:23739更多个人分类:数据库sqlplus有几种登陆方式比如:1.C:>sqlplus"/assysdba"--以操作系统权限认证的oraclesys管理员登陆2.C:>sqlplus/nolog--不在cmd或者terminal当中暴露密码的登陆方式SQL>conn/assysdb
- Oracle常用命令
看到代码头都是大的
oracle数据库
1.基础命令1、以oracle身份登录数据库,命令:su-oracle2、进入Sqlplus控制台,命令:sqlplus/nolog3、以系统管理员登录,命令:connect/assysdba可以合并为:sqlplussys/密码assysdba4、启动数据库,命令:startup5、如果是关闭数据库,命令:shutdownimmediate(shutdownabort)6、退出sqlplus控制
- oracle 常用命令 desc,ORACLE常用命令
维林兄弟
oracle常用命令desc
1如何查看数据库中都有什么表?select*fromsys.user_tables;2如何链接数据库sqlplus/nolog;connsys/oracleassysdba;3如何启动数据库startup;4查看ORACLE实例结构descV$instance;5查看用户默认表空间、临时表空间信息selectdistinctusername,DEFAULT_TABLESPACE,TEMPORARY
- centos7 oracle常用命令,Linux环境Oracle常用命令
谈国平
centos7oracle常用命令
Linux环境Oracle常用命令1、启动oracle数据库://切换至Oracle用户:[root@server36~]#su-oracle//进入sqlplus环境,nolog参数表示不登录:[oracle@server36~]$sqlplus/nolog//以管理员模式登录:[oracle@server36~]$sqlplus/assysdbaSQL*Plus:Release11.2.0.3
- 使用Oracle数据泵将dmp文件导入数据库
G_Aoei
oracle数据库dba
一、Windows环境下运行cmd,依次执行以下语句1、sqlplus/nolog2、connsys/assysdba登录到Oracle数据库3、createdirectoryimp_dumpas‘C:\Users\XXX\Desktop\XXX’;创建目录imp_dump,地址为保存dmp文件的文件夹路径。可以用select*fromdba_directories;语句查看当前已经存在的目录。4
- 【异常处理】解决ORA-01034和ORA-27101
雪顶猫的鳄
oracleoracle数据库
现象Linux启动sqlplus连接数据库时报错:ORA-01034、ORA-27101,具体如下图。解决方法不登陆服务器先启动数据库,即执行以下命令:1.sqlplus/nolog2.conn/assysdba3.startup可以看到数据库已正常装载开启。补充1.虚拟机关闭时未正常关闭数据库、内存分配、长期未登录问题等都可能导致该报错。2.如上述未解决可lsnrctlstatus查看监听是否正
- 解决oracle用scott用户登录时被锁的问题
喜羊羊love红太狼
数据库
第一次安装oracle数据库,踩了许多坑,网上也看了许多小伙伴解决这个问题的办法但是没卵用测了好多都没有将问题解决,下面是我的解决方法亲测有效!!!!问题:scott用户登录提示账户被锁解决步骤:第一步:进入命令行输入sqlPlus/nolog第二步:输入connsys/chang_on_installassysdba注意:change_on_install是在安装配置口令管理中为sys用户设置的
- Oracle创建表空间/创建用户/修改用户名和密码/删除用户
zhangzeyuaaa
数据库
创建表空间一、打开命令行窗口,输入以下命令:sqlplus/nolog回车后,将出现提示符SQL>,这时输入conn/assysdba一般即可登录,如果失败的话,可以试一下用connsys/sys用户的密码assysdba来重试一下。二、查看当前的数据库文件一般都是放在哪里的:输入:selectnamefromv$datafile;NAME-----------------------------
- 解决Oracle 提示ORA-01033:ORACLE initialization or shutdown in process 问题
超Carry的十二
Oracleoracle数据库
1.sqlplus/NOLOG2.SQL>connectsys/change_on_installassysdba提示:已成功3.SQL>shutdownnormal;提示:数据库已经关闭已经卸载数据库ORACLE例程已经关闭4.SQL>startupmount;5.SQL>alterdatabaseopen;第1行出现错误:ORA-01157:无法标识/锁定数据文件19-请参阅DBWR跟踪文件O
- ORA-01033:ORACLE initialization or shutdown in progress
Halo丶3
数据库oracle
使用plsql连接Oracle数据库报这个错然后在cmd窗口中执行以下命令:C:\Users\86135>sqlplus/nolog#使用SQLplus连接SQL*Plus:Release11.2.0.1.0ProductiononSunSep2713:50:132020Copyright(c)1982,2010,Oracle.Allrightsreserved.SQL>connectsys/ch
- Oracle常用故障操作手册
逐光而往
数据库资料oracle数据库
A调整归档日志大小-->SETORACLE_SID=orcl-->sqlplus/nolog-->conn/assysdba-->showparameterdb_recovery_file_dest_size;-->altersystemsetdb_recovery_file_dest_size=500G;然后重启数据库后,系统可以正常使用了B删除过期日志首先删除部分归档日志物理文件,归档日志一般
- oracle重启数据库lsnrctl重启监听
solly793755670
oracle数据库
oracle重启数据库lsnrctl重启监听su到oracle用户下,命令su-oracle切换需要启动的数据库实例:exportORACLE_SID=orcl进入Sqlplus控制台,命令:sqlplus/nolog以系统管理员登录,命令:connect/assysdba如果是关闭数据库,命令:(备注:必须关闭数据库,重启监听才起效果)shutdownabort退出sqlplus控制台,命令:e
- oracle某个用户解锁
yunwei_ls
#进入控制台不需要账号密码进入>sqlplus/nolog>conn/assysdba#解锁saas_user用户>alterusersaas_useraccountunlock;
- Oracle 基础知识
"*smile*"
oracle数据库database
思路流程--进入环境C:\Users\Administrator>sqlplus/nolog--使用指定账号/密码进入环境C:\Users\Administrator>sqlpluskaifamiao/kaifamiao--指定用户以指定的角色连接数据库SQL>connectsys/Oracle2021assysdba--创建新用户并指定密码SQL>createuserkfmidentifie
- 数据库dmp文件的导入导出
天边的风筝1
数据库数据库dmp文件的导入导出
数据库dmp文件的导入导出步骤:启动oracle数据库:首先使用oracle用户登录Linux,然后在shell命令行中执行下面的命令:第一步:打开oracle监听lsnrctlstart第二步:进入sqlplussqlplus/nolog第三步:使用sysdba角色登录sqlplusconn/assysdba第四步:启动数据库startup(shutdown–等待事物结束后才会关闭,强制关闭用s
- orcal centos 监听启动和查看oracle启动状态
STIVEN11
oracle
一、查看启动状态1.su-oracle进入oracle用户2.sqlplus/nolog3.conn/assysdba4.selectstatusfromv$instance;实例二、查看和启动监听1.su-oracle2.查看监听状态lsnrctlstatus3.停止监听lsnrctlstop4.启动监听,查看状态lsnrctlstart
- Oracle 11g常用管理命令(用户、表空间、权限)总结
泡菜爱上WaSabi
启动oracle数据库:从root切换到oracle用户进入:su-oracle进入sqlplus环境,nolog参数表示不登录:sqlplus/nolog以管理员模式登录:sqlplus/assysdba启动数据库:startup;停止数据库:shutdownimmediate强制停止数据库:shutdownabort远程连接数据库:sqlplus/nolog也可以直接运行:connsys/sy
- st.pp.normalize_total(data) # NOTE: no log1p
生信小博士
stlearn
这段代码在使用stlearn包中的st.pp.normalize_total函数对数据进行总体计数标准化。标准化后,每个细胞的总计数都将等于median(total_counts)。NOTE:nolog1p这行注释表示在标准化后,数据不会进行log1p转换。log1p转换将每个计数值增加1,然后对其进行log转换。这可以帮助减少计数值的偏差,并使数据更加符合正态分布。因此,这段代码的完整含义是:使
- CentOS7.6.1810下修改Oracle字符集
Kaldi
前几天在CentOS7.6.1810下安装Oracle忘记了修改字符集,结果导入数据后发现中文乱码(DMP是从Windows上的Oracle导出的,字符集为ZHS16GBK),于是在网上搜了一下,整理并亲身尝试过程如下:1、启动sqlplussqlplus/nolog2、以sysdba的角色进行连接SQL>conn/assysdba3、查看当前字符集selectuserenv('language'
- Linux链接oracle数据库启动——操作步骤
南极找南
oracle数据治理数据库oraclelinux
一、在Linux下启动Oracle1.登录到Linux服务器,切换到oracle用户权限(命令是:#su–loracle)[oracle@localhost~]$sqlplus/assysdba--进入sqlplus界面2.进入sqlplus界面(命令是:$sqlplus/nolog或sqlplus/assysdba)原本的画面会变为SQL>接着请输入SQL>conn/assysdba;输入SQL
- 如何重启oracle数据库及监听
烟草皱叶蛤蟆皮
oracle数据库database
(1)以oracle身份登录数据库,命令:su-oracle(2)进入Sqlplus控制台,命令:sqlplus/nolog(3)以系统管理员登录,命令:connect/assysdba(4)启动数据库,命令:startup(5)如果是关闭数据库,命令:shutdownimmediate(6)退出sqlplus控制台,命令:exit(7)进入监听器控制台,命令:lsnrctl(8)停止监听器,命令
- Linux下Oracle的数据库和监听启动关闭命令
the_coco
oracle数据库linux
文章目录Linux下Oracle的数据库和监听启动关闭命令1)连接sqlplus2)登陆数据库3)启动数据库4)关闭数据库5)查看当前用户6)退出sqlplus7)查看监听器状态8)启动监听器9)停止监听器Linux下Oracle的数据库和监听启动关闭命令1)连接sqlplussqlplus/nolog2)登陆数据库conn/assysdbaconnectsys/123456assysdba;(1
- ORA-01578、ORA-01110:数据块被损坏,此时无法读取文件
zbqice007
oracle数据库dba
查看问题:1.使用oracle用户登录linux服务器,并进入sql模式#sqlplus/nolog2.超级管理员的权限操作数据库#conn/assysdba;3.查询不在线的数据selectname,statusfromv$datafileorderbyfile#;4.恢复数据#recoverdatafile5.再次查询文件数据文件为脱机状态#selectstatusfromv$datafile
- Oracle Naming method configuration
web_gus
Oracleoraclekillsessionwindowssystem任务
1、easyconnectnaming:connectusername/password@host:port/service_name/server/instance(windows下cmd直接sqlplususer/pass在任务管理器中容易泄漏信息,可以sqlplus/nolog后进行conn..)2、localnaming:tnsnames.ora3、directorynaming:4、ex
- oracle初步学习
我爱敲代码……
oracle数据库
先了解几个登录的方式1.直接在cmd输入sqlplusscott/tiger//登陆普通用户scott2.输入sqlplussysassysdba之后紧接着让你输入口令,直接输入sys就行了3.先输入sqlplus/nolog在输入connsystem/manager@orcl先在cmd窗口输入sqlplus/nolog,在连接你的数据库connsys/managerassysdba查询我们的实例
- 黑窗口,模式下登录oracle
weixin_38313970
oracle
第一步,cmd模式下进入黑窗口:第二步,输入sqlplus/nolog,按回车;出现以上信息,即证明本机以正确安装oracle;第三步,输入conn,回车,依次输入,账户信息,记密码;第四步,测试一下数据库自带的数据表;输入select*fromtab;OK.
- 登录docker oralce命令行
fusugongzi
docker容器运维
1.登进docker容器dockerexec-itcontainerIdsh2.设置环境变量exportORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2exportORACLE_SID=helowin3.登录sqlplus/nolog后connsys/assysdba;输入密码即可
- C#,数值计算——分类与推理,基座向量机高斯核(Svmgausskernel)的计算方法与源程序
Trufferover
C#数值计算NumericalRecipesc#分类人工智能开发语言算法数值计算
Nological,notanAI.你现在能阅读到的大量AI都是假AI,包括。。。GPT在内,没有任何鸟用。凡为...GPT发声者均为假学者。Nolog,noAI.1文本格式usingSystem;namespaceLegalsoft.Truffer{publicclassSvmgausskernel:Svmgenkernel{privateintn{get;set;}privatedoubles
- Oracle数据库设置归档模式(超级简单)
不会编程的猫星人
数据库运维运维oracle数据库linux
1、打开监听查看监听的状态,如果没打开监听需要打开监听,如果打开直接下一步lsnrctlstatus打开监听lsnrctlstart2、启动数据库首先进入数据库sqlplus/nolog然后连接管理员conn/assysdba3、查看当前模式archiveloglist可以看到我当前的归档模式,好啦结束。4、关闭数据库,并重启到MOUNT模式下关闭数据库shutdownimmediate启动到mo
- OracleRAC 安装配置过程中的问题
小小哭包
数据库OracleRACRAC常见问题RAC安装配置
OSRHAS3.2DB9204在RAC的安装配置过程中,虽然是严格仔细按照文档来实施,但还是出现不少问题,现整理出来。现象一:在节点一安装数据库的时候出现以下错误[oracle@rac1dbs]$sqlplus"/nolog"SQL*Plus:Release9.2.0.4.0-ProductiononThuFeb2314:09:082006Copyright(c)1982,2002,OracleC
- VMware Workstation 11 或者 VMware Player 7安装MAC OS X 10.10 Yosemite
iwindyforest
vmwaremac os10.10workstationplayer
最近尝试了下VMware下安装MacOS 系统,
安装过程中发现网上可供参考的文章都是VMware Workstation 10以下, MacOS X 10.9以下的文章,
只能提供大概的思路, 但是实际安装起来由于版本问题, 走了不少弯路, 所以我尝试写以下总结, 希望能给有兴趣安装OSX的人提供一点帮助。
写在前面的话:
其实安装好后发现, 由于我的th
- 关于《基于模型驱动的B/S在线开发平台》源代码开源的疑虑?
deathwknight
JavaScriptjava框架
本人从学习Java开发到现在已有10年整,从一个要自学 java买成javascript的小菜鸟,成长为只会java和javascript语言的老菜鸟(个人邮箱:
[email protected])
一路走来,跌跌撞撞。用自己的三年多业余时间,瞎搞一个小东西(基于模型驱动的B/S在线开发平台,非MVC框架、非代码生成)。希望与大家一起分享,同时有许些疑虑,希望有人可以交流下
平台
- 如何把maven项目转成web项目
Kai_Ge
mavenMyEclipse
创建Web工程,使用eclipse ee创建maven web工程 1.右键项目,选择Project Facets,点击Convert to faceted from 2.更改Dynamic Web Module的Version为2.5.(3.0为Java7的,Tomcat6不支持). 如果提示错误,可能需要在Java Compiler设置Compiler compl
- 主管???
Array_06
工作
转载:http://www.blogjava.net/fastzch/archive/2010/11/25/339054.html
很久以前跟同事参加的培训,同事整理得很详细,必须得转!
前段时间,公司有组织中高阶主管及其培养干部进行了为期三天的管理训练培训。三天的课程下来,虽然内容较多,因对老师三天来的课程内容深有感触,故借着整理学习心得的机会,将三天来的培训课程做了一个
- python内置函数大全
2002wmj
python
最近一直在看python的document,打算在基础方面重点看一下python的keyword、Build-in Function、Build-in Constants、Build-in Types、Build-in Exception这四个方面,其实在看的时候发现整个《The Python Standard Library》章节都是很不错的,其中描述了很多不错的主题。先把Build-in Fu
- JSP页面通过JQUERY合并行
357029540
JavaScriptjquery
在写程序的过程中我们难免会遇到在页面上合并单元行的情况,如图所示
如果对于会的同学可能很简单,但是对没有思路的同学来说还是比较麻烦的,提供一下用JQUERY实现的参考代码
function mergeCell(){
var trs = $("#table tr");
&nb
- Java基础
冰天百华
java基础
学习函数式编程
package base;
import java.text.DecimalFormat;
public class Main {
public static void main(String[] args) {
// Integer a = 4;
// Double aa = (double)a / 100000;
// Decimal
- unix时间戳相互转换
adminjun
转换unix时间戳
如何在不同编程语言中获取现在的Unix时间戳(Unix timestamp)? Java time JavaScript Math.round(new Date().getTime()/1000)
getTime()返回数值的单位是毫秒 Microsoft .NET / C# epoch = (DateTime.Now.ToUniversalTime().Ticks - 62135
- 作为一个合格程序员该做的事
aijuans
程序员
作为一个合格程序员每天该做的事 1、总结自己一天任务的完成情况 最好的方式是写工作日志,把自己今天完成了什么事情,遇见了什么问题都记录下来,日后翻看好处多多
2、考虑自己明天应该做的主要工作 把明天要做的事情列出来,并按照优先级排列,第二天应该把自己效率最高的时间分配给最重要的工作
3、考虑自己一天工作中失误的地方,并想出避免下一次再犯的方法 出错不要紧,最重
- 由html5视频播放引发的总结
ayaoxinchao
html5视频video
前言
项目中存在视频播放的功能,前期设计是以flash播放器播放视频的。但是现在由于需要兼容苹果的设备,必须采用html5的方式来播放视频。我就出于兴趣对html5播放视频做了简单的了解,不了解不知道,水真是很深。本文所记录的知识一些浅尝辄止的知识,说起来很惭愧。
视频结构
本该直接介绍html5的<video>的,但鉴于本人对视频
- 解决httpclient访问自签名https报javax.net.ssl.SSLHandshakeException: sun.security.validat
bewithme
httpclient
如果你构建了一个https协议的站点,而此站点的安全证书并不是合法的第三方证书颁发机构所签发,那么你用httpclient去访问此站点会报如下错误
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path bu
- Jedis连接池的入门级使用
bijian1013
redisredis数据库jedis
Jedis连接池操作步骤如下:
a.获取Jedis实例需要从JedisPool中获取;
b.用完Jedis实例需要返还给JedisPool;
c.如果Jedis在使用过程中出错,则也需要还给JedisPool;
packag
- 变与不变
bingyingao
不变变亲情永恒
变与不变
周末骑车转到了五年前租住的小区,曾经最爱吃的西北面馆、江西水饺、手工拉面早已不在,
各种店铺都换了好几茬,这些是变的。
三年前还很流行的一款手机在今天看起来已经落后的不像样子。
三年前还运行的好好的一家公司,今天也已经不复存在。
一座座高楼拔地而起,
- 【Scala十】Scala核心四:集合框架之List
bit1129
scala
Spark的RDD作为一个分布式不可变的数据集合,它提供的转换操作,很多是借鉴于Scala的集合框架提供的一些函数,因此,有必要对Scala的集合进行详细的了解
1. 泛型集合都是协变的,对于List而言,如果B是A的子类,那么List[B]也是List[A]的子类,即可以把List[B]的实例赋值给List[A]变量
2. 给变量赋值(注意val关键字,a,b
- Nested Functions in C
bookjovi
cclosure
Nested Functions 又称closure,属于functional language中的概念,一直以为C中是不支持closure的,现在看来我错了,不过C标准中是不支持的,而GCC支持。
既然GCC支持了closure,那么 lexical scoping自然也支持了,同时在C中label也是可以在nested functions中自由跳转的
- Java-Collections Framework学习与总结-WeakHashMap
BrokenDreams
Collections
总结这个类之前,首先看一下Java引用的相关知识。Java的引用分为四种:强引用、软引用、弱引用和虚引用。
强引用:就是常见的代码中的引用,如Object o = new Object();存在强引用的对象不会被垃圾收集
- 读《研磨设计模式》-代码笔记-解释器模式-Interpret
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
package design.pattern;
/*
* 解释器(Interpreter)模式的意图是可以按照自己定义的组合规则集合来组合可执行对象
*
* 代码示例实现XML里面1.读取单个元素的值 2.读取单个属性的值
* 多
- After Effects操作&快捷键
cherishLC
After Effects
1、快捷键官方文档
中文版:https://helpx.adobe.com/cn/after-effects/using/keyboard-shortcuts-reference.html
英文版:https://helpx.adobe.com/after-effects/using/keyboard-shortcuts-reference.html
2、常用快捷键
- Maven 常用命令
crabdave
maven
Maven 常用命令
mvn archetype:generate
mvn install
mvn clean
mvn clean complie
mvn clean test
mvn clean install
mvn clean package
mvn test
mvn package
mvn site
mvn dependency:res
- shell bad substitution
daizj
shell脚本
#!/bin/sh
/data/script/common/run_cmd.exp 192.168.13.168 "impala-shell -islave4 -q 'insert OVERWRITE table imeis.${tableName} select ${selectFields}, ds, fnv_hash(concat(cast(ds as string), im
- Java SE 第二讲(原生数据类型 Primitive Data Type)
dcj3sjt126com
java
Java SE 第二讲:
1. Windows: notepad, editplus, ultraedit, gvim
Linux: vi, vim, gedit
2. Java 中的数据类型分为两大类:
1)原生数据类型 (Primitive Data Type)
2)引用类型(对象类型) (R
- CGridView中实现批量删除
dcj3sjt126com
PHPyii
1,CGridView中的columns添加
array(
'selectableRows' => 2,
'footer' => '<button type="button" onclick="GetCheckbox();" style=&
- Java中泛型的各种使用
dyy_gusi
java泛型
Java中的泛型的使用:1.普通的泛型使用
在使用类的时候后面的<>中的类型就是我们确定的类型。
public class MyClass1<T> {//此处定义的泛型是T
private T var;
public T getVar() {
return var;
}
public void setVa
- Web开发技术十年发展历程
gcq511120594
Web浏览器数据挖掘
回顾web开发技术这十年发展历程:
Ajax
03年的时候我上六年级,那时候网吧刚在小县城的角落萌生。传奇,大话西游第一代网游一时风靡。我抱着试一试的心态给了网吧老板两块钱想申请个号玩玩,然后接下来的一个小时我一直在,注,册,账,号。
彼时网吧用的512k的带宽,注册的时候,填了一堆信息,提交,页面跳转,嘣,”您填写的信息有误,请重填”。然后跳转回注册页面,以此循环。我现在时常想,如果当时a
- openSession()与getCurrentSession()区别:
hetongfei
javaDAOHibernate
来自 http://blog.csdn.net/dy511/article/details/6166134
1.getCurrentSession创建的session会和绑定到当前线程,而openSession不会。
2. getCurrentSession创建的线程会在事务回滚或事物提交后自动关闭,而openSession必须手动关闭。
这里getCurrentSession本地事务(本地
- 第一章 安装Nginx+Lua开发环境
jinnianshilongnian
nginxluaopenresty
首先我们选择使用OpenResty,其是由Nginx核心加很多第三方模块组成,其最大的亮点是默认集成了Lua开发环境,使得Nginx可以作为一个Web Server使用。借助于Nginx的事件驱动模型和非阻塞IO,可以实现高性能的Web应用程序。而且OpenResty提供了大量组件如Mysql、Redis、Memcached等等,使在Nginx上开发Web应用更方便更简单。目前在京东如实时价格、秒
- HSQLDB In-Process方式访问内存数据库
liyonghui160com
HSQLDB一大特色就是能够在内存中建立数据库,当然它也能将这些内存数据库保存到文件中以便实现真正的持久化。
先睹为快!
下面是一个In-Process方式访问内存数据库的代码示例:
下面代码需要引入hsqldb.jar包 (hsqldb-2.2.8)
import java.s
- Java线程的5个使用技巧
pda158
java数据结构
Java线程有哪些不太为人所知的技巧与用法? 萝卜白菜各有所爱。像我就喜欢Java。学无止境,这也是我喜欢它的一个原因。日常
工作中你所用到的工具,通常都有些你从来没有了解过的东西,比方说某个方法或者是一些有趣的用法。比如说线程。没错,就是线程。或者确切说是Thread这个类。当我们在构建高可扩展性系统的时候,通常会面临各种各样的并发编程的问题,不过我们现在所要讲的可能会略有不同。
- 开发资源大整合:编程语言篇——JavaScript(1)
shoothao
JavaScript
概述:本系列的资源整合来自于github中各个领域的大牛,来收藏你感兴趣的东西吧。
程序包管理器
管理javascript库并提供对这些库的快速使用与打包的服务。
Bower - 用于web的程序包管理。
component - 用于客户端的程序包管理,构建更好的web应用程序。
spm - 全新的静态的文件包管
- 避免使用终结函数
vahoa.ma
javajvmC++
终结函数(finalizer)通常是不可预测的,常常也是很危险的,一般情况下不是必要的。使用终结函数会导致不稳定的行为、更差的性能,以及带来移植性问题。不要把终结函数当做C++中的析构函数(destructors)的对应物。
我自己总结了一下这一条的综合性结论是这样的:
1)在涉及使用资源,使用完毕后要释放资源的情形下,首先要用一个显示的方