搜索""的结果
 
0
Shell脚本编程的常识七种文件类型正则表达式字符类描述shell的引号类型变量设置时的不同模式:条件测试命令执行顺序脚本调试一些常用的小trick打印一些头信息创建一个长度为0的空文件一些常用的shell变量$0的使用Shift的运用用head或tail指令指定查阅的行数awk使用规则第一个 awk多个字段外部脚本BEGIN 和 END 块规则表达式和块条件语句数值变量字符串化变量众多运算符字段分隔符字段数量记录号多行记录OFS 和 ORS将多行转换成用 tab 分隔的格式循环结构for 循环break 和 continue数组下标字符串化数组工具格式化输出字符串函数一些更耐人寻味的函数字符串替换特殊字符串形式sed使用规则sed 示例另一个 sed 示例地址范围带规则表达式的地址有关地址的更多内容替换规则表达式混乱更多字符匹配高级替换功能组合使用一个地址的多个命令附加、插入和更改行使用 sed 的几个示例linux常用脚本和函数linux常用命令关于文件/目录处理的指令:关于 Process 处理的指令:关于字符串处理的指令:联机查询的指令:网络运用指令:Vi常用技巧 Shell脚本编程的常识(这些往往是经常用到,但是各种网络上的材料都语焉不详的东西,个人认为比较有用)七种文件类型d    &nb...
服务器跑一个应用,但是日志没有分割,导致日志文件很大,这里使用系统自带的logrotate来处理日志分割,分丢失部分信息。[root@cwtbs2 check]# cat /etc/logrotate.d/cwtserver /home/cwt/BS/cwtserver.log{    weekly    missingok    notifempty    copytruncate    size 500M    create 0640 cwt cwt    dateext     rotate 32}
您所在的组无权查看该日志
 
0

ORACLE导出到EXCEL

发表者:分类:数据库2014-11-10 16:08:09 阅读[2522]
ORACLE导出到EXCEL     示例是每1000条记录spool 到一个 excel 文件中测试数据创建代码: SQL> CREATE TABLE EXP_EXCEL (ID NUMBER, COL VARCHAR2(10)); Table created SQL> INSERT INTO EXP_EXCEL SELECT LEVEL, 'COL_'||TO_CHAR(LEVEL,'FM000000') FROM DUAL CONNECT BY LEVEL<=3000; 3000 rows inserted SQL> COMMIT; Commit complete --------------------------- 创建一个脚本, 比如 名称为spool_xls.sql脚本内容如下:代码: set echo off set linesize 1000 set term off set verify off set feedback off set pagesize 50000 set heading off set trimspool on spool exp_xls.sql select 'SPOOL C:EXP_EXCEL_'||LEVEL||'.XLS'||CHR(10)||        'SELECT * FROM (SELECT t.*, row_number() over(order by ID) as rn FROM exp_excel t) WHERE rn BETWEEN 1000 * ('||level||' -1) + 1 AND 1000 * '||level||';'||chr(10)||     &nb...
hMailServer 邮件系统安装配置篇  此篇进入正题,详细的说一下安装和配置过程。得先说一下,hMailServer是真正的邮件服务端,而Roundcube Webmail仅仅是为hMailServer提供Webmail应用的,可以让你通过Web方式收发邮件,如果你不用Web方式收发邮件,只安装hMailServer就可以了,通过邮件客户端就能收发邮件,比如Outlook或者Foxmail等。  不要被上一篇的系统要求吓到,碰到问题再去看看哪里需要解决,先把hMailServer安装了,下载回来的是可执行文件,Windows下安装问题不大,hMailServer本身还带有Web方式管理邮件系统,也是PHP的,所以要想用Web方式管理邮件系统,你的PHP环境也得先搭建好,而且Roundcube WebMail也是需要PHP的,还有就是数据库的问题,hMailServer可以使用自带的简化本版的MSSQL,或者用Mysql也行,看你喜好。所以安装hMailServer和Roundcube WebMail之前,请先把PHP+Mysql搞定,起码要求的版本要满足需要,至于是Apache还是IIS也看你的需要了。还有就是要先把你的域名解析到服务器的IP地址上,比如abc.com/mail.abc.com,域名的MX记录不要忘了添加。有时间的话,再把域名的TXT记录也加上,提前用工具把域名的DKIM和SPF记录做好,以免发...
Windows ADSL PPPOE下openVPN安装配置单网卡共享上网 OPENVPN 简介:OpenVPN是一款功能强大,可跨平台(支持Win 2000/XP/2003, Linux, Mac OS X, Solaris, FreeBSD, NetBSD, 和 OpenBSD)使用的SSL VPN服务器软件(具体说明见官方主页官方主页)。 第一步:安装openvpn这一部分是服务端跟客户端都要做的工作,操作完全相同双击 openvpn-2.1_beta16-install.exe进行安装,点击NEXT,I Agree,NEXT之后开始选择安装路径,我手动修改为C:\Program Files\OpenVPN 。点击 Install 开始安装,安装过程中,弹出 硬件安装窗口,点击仍然继续,安装虚拟网卡。点击 next,Finish 完成安装。OPENVPN安装服务器配置:说明: 架设OPENVPN服务器,服务器方面做的工作比较多,客户端相对来说就比较简单。服务器采用RSA证书和密钥验证方式对客户端进行验证,默认情况下证书和用户是一对一的,多个用户使用同一证书会被踢出。所以首先要做的工作就是证书的制作。在进行操作之前,首先进行初始化工作:修改C:\Program Files\OPENVPN\easy-rsa\vars.bat.sample的以下部分set HOME=%ProgramFiles%\OpenVPN\easy-rsaset KEY_COUNTRY=USset KEY_PROVINCE=CAset KEY_CITY=SanFranciscoset KEY...
Ubuntu上启用X11VNC  并使用web访问VNC   计算中心节点,没有远程控制不能活,就得装个VNC。 启动Ubuntu的软件中心,选择“X11VNC服务器”,进行安装。当然也可以用sudo apt-get install命令安装。 接下来创建登陆密码sudo x11vnc -storepasswd 输入和确认之后,密码被保存到了用户的密码目录下:  再设置X11VNC的密码文件:sudo x11vnc -storepasswd in /etc/x11vnc.pass 将密码文件复制过去:sudo cp /root/.vnc/passwd /etc/x11vnc.pass打开/etc/init/x11vnc.conf文件,粘贴以下内容。如果没有这个文件,就用文本工具创建一个。端口:5900,自己可以定义。要打开web 访问VNC,并加参数: -shared  -httpstart on login-session-start script x11vnc -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared -http end script   保存后重启Ubuntu。 在别的操作系统里启动VNC Viewer,这里用的是Windows 7下安装的Real VN...
Automating Database Startup and Shutdown on LinuxIf you are using Oracle Clusterware 10gR2 or above for RAC or just for a single instance using ASM, the Clusterware automatically starts and stops the Oracle database instances and listeners, so the following procedures are not necessary. Where the Clusterware is not being used, these methods allow you to automate the startup and shutdown of databases on Linux.The "su" CommandThe "rsh" CommandKnown IssuesOracle 11gR2+ UpdateNote. These methods work on all RHEL and Oracle Linux versions.The "su" CommandThe following represents the Oracle recommended method for automating database startup and shutdown of Oracle 9i instances on Linux, but it works equally well for Oracle 10g, 11G and 12c also. It can be used on any RHEL-style distribution, including Oracle Linux, up to an including RHEL6.Once the instance is created, edit the "/etc/oratab" file setting the restart flag for each instance to 'Y'.TSH1:/...
ASM using ASMLib and Raw DevicesIntroductionPartition the DisksASMLib InstallationRaw Device SetupASM CreationDatabase CreationSwitching from Raw Devices to ASMLibSwitching from ASMLib to Raw DevicesPerformance ComparisonRelated articles.Automatic Storage Management (ASM) in Oracle Database 10gUsing NFS with ASMAutomatic Storage Manager (ASM) Enhancements in Oracle Database 11g Release 1UDEV SCSI Rules Configuration for ASM in Oracle Linux 5 and 6IntroductionAutomatic Storage Management (ASM) simplifies administration of Oracle related files by allowing the administrator to reference disk groups rather than individual disks and files, which ASM manages internally. On Linux, ASM is capable of referencing disks as raw devices or by using the ASMLib software. This article presents the setup details for using either raw devices or ASMLib, as well as the procedures for converting between both methods.The article assumes the operating system installation is complete, along with an Oracle so...
 
0
VLC media player for UbuntuUbuntu 13.10 “Saucy Salamander”Ubuntu 13.04 “Raring Ringtail”Ubuntu 12.10 “Quantal Quetzal”Ubuntu 12.04 LTS “Precise Pangolin”Quick installThis is the recommended way for installing VLC.Graphical wayOpen Synaptic application (click on System -> Administration -> Synaptic Package Manager).Search for vlc and install it.You may also want to install browser-plugin-vlc.If you are interested in streaming or transcoding,you should additionnally install libavcodec-extra-53.Command line way% sudo apt-get update % sudo apt-get install vlc browser-plugin-vlc Nota BeneUbuntu includes whichever VLC version was the latestat the time the Ubuntu release was frozen(typically about two months before the official Ubuntu upgrade).Afterward, you can still get security and critical bug fixes,but no further major VLC version updates until the next Ubuntu release.If you need a more recent version, please consider upgrading Ubuntu.
    总共270页,当前第162页 | 页数:
  1. 152
  2. 153
  3. 154
  4. 155
  5. 156
  6. 157
  7. 158
  8. 159
  9. 160
  10. 161
  11. 162
  12. 163
  13. 164
  14. 165
  15. 166
  16. 167
  17. 168
  18. 169
  19. 170
  20. 171
  21. 172