QUESTION NO: 261
When performing a full database disaster recovery with RMAN, in what order would you execute these
steps?
a. Restore the control file from autobackups.
b. Run the RMAN restore an...
分类:
其他好文 时间:
2015-10-10 10:39:26
阅读次数:
182
# -*- coding: utf-8 -*-#python 27#xiaodeng#面向对象编程案例02--显示地调用父类的__init__()'''继承是面向对象的重要特征之一,继承是2个类或多个类之间的父子关系,子类继承父类的所有共有实例变量和方法。继承实现了代码的重用,减少代码的编写量pyt...
分类:
其他好文 时间:
2015-10-10 10:23:12
阅读次数:
151
主要是针对嵌套列表问题。列表套列表,究竟子列表那个更深。。。这个问题想着就烦。假设嵌套10000万个列表是不是要统计10000个数再排序呢?最后想了想用 list的extend功能 加上递归函数尝试了一下,代码例如以下:l1=[1,'a',[1],[2,3,[4,5,[6,7,[7]]]],[2,5...
分类:
编程语言 时间:
2015-10-10 09:06:03
阅读次数:
304
参考资料: 1. 《Python基础教程》 2.http://www.runoob.com/python/python-functions.html 3.http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103...
分类:
编程语言 时间:
2015-10-10 09:03:24
阅读次数:
222
[root@saltstack-uitmp]#catbackup.py
#!/usr/bin/envpython
importos
importtime
importsys
defcreate_backup_dir(target_dir):
today_dir=target_dir+time.strftime(‘%Y-%m-%d‘)
ifnotos.path.exists(today_dir):
os.mkdir(today_dir)
returntoday_dir
defis_exists_dir(so..
分类:
编程语言 时间:
2015-10-10 06:51:30
阅读次数:
317
The API:int read4(char *buf)reads 4 characters at a time from a file.The return value is the actual number of characters read. For example, it returns...
分类:
其他好文 时间:
2015-10-10 01:42:08
阅读次数:
225
分享一个下载python扩展库的地址和方法:https://pypi.python.org/pypi/library名称例如,要下载email模块,就输入:https://pypi.python.org/pypi/email下载xlrd模块,输入https://pypi.python.org/pyp...
分类:
编程语言 时间:
2015-10-10 00:27:25
阅读次数:
397
Python:1.经历了CNRI、Beopen、DC(digital creations)时期,其中DC最出名的插件是ZOPE2.特征:高阶动态编程语言,简单易学,解释性&编译性,面向对象,可移植性搭建Python环境:1.Linux中安装好,命令python可查看版本,显示>>>可编辑脚本2.运行...
分类:
编程语言 时间:
2015-10-10 00:24:52
阅读次数:
188
背景:dataMatrix是(100,3)的列表,labelMat是(1,100)的列表,weights是(3,1)的数组,属性如下代码所示:>>> import types>>> type(dataMatrix)>>> type(labelMat)>>> type(weights)我的代码:>>>...
分类:
编程语言 时间:
2015-10-10 00:21:34
阅读次数:
8404
在Python中有多种运行外部程序的方法,比如,运行操作系统命令或另外的Python脚本,或执行一个磁盘上的文件,或通过网络来运行文件。这完全取决于想要干什么。特定的环境包括: 在当前脚本继续运行 创建和管理子进程 执行外部命令或程序 执行需要输入的命令 通过网络来调用命令 ...
分类:
编程语言 时间:
2015-10-10 00:16:23
阅读次数:
177