How to clear some Oracle log history which shell
费话不多说,直接上代码。代码有风险,执行须谨慎。以下代码可随意取用,造成任何损失,本人概不负责。#!/bin/bashecho -e "\033[32;49m## ####################################################### ##\033[0m"echo -e "\033[32;49m## File Name: oracle_log_auto_maitainer.sh ...
厚积,而后薄发
沉寂以自修。待我从头,收拾旧山河! ...
Linux HugePages / HugeTLB Configuration
#!/bin/bash## hugepages_settings.sh## Linux bash script to compute values for the# recommended HugePages/HugeTLB configuration# on Oracle Linux## Note: This script does calculation for all shared memory...
Last login: Wed Aug 24 17:23:14 2016 from wr702n.mshome.net
今天,为了测试 RHEL 7(使用systemctl) 下双网卡绑定相关问题,在 Oracle VirtualBox 最小安装了centos 7。半天使用下来使用 ssh 连接,突然看到了一行:Last login: Wed Aug 24 17:23:14 2016 from wr702n.mshome.net惊出一身冷汗,我的所有机器如下MyBSD, Jackson's macbook pro, thinkpad-pc, localhost.lo...
*nix 系统间无 ftp scp 实现文件互传
废话不说了,直接看命令Send file with SSH:Mac OS X: tar -cvf- ./*.iso | ssh -p 18707 jackson@192.168.137.1 "tar -xv -C ~/Data/Images/"Linux: tar -cvO ./*.iso | ssh -p 18707 jackson@192.168.137.1 "tar ...
How to change IP of machine running Oracle GI
#@# Check the config of crs and disable itdb-ora1:/#/oracrs/product/11gR2/grid/bin/crsctl config crs; -- Run with Root on One NodesCRS-4622: Oracle High Availability Services autostart is enabled.db-ora1:/#/oracrs/product/11gR2/grid/bin/crsctl disable crs; -- Run w...
快速批量替换文件内容(perl版)
背景: 经过漫长的源代码下载及编译,终于把apache2.4成功地安装在了Freebsd之上。# 编辑 httpd.confvim /usr/local/etc/apache24/httpd.conf# 启动 apacheservice apache24 start;# 访问自建网站http://192.168.137.103# 显示 “It works”,成功了,基本配置没有问题。# ...
FreeBSD 无法启动一例
背景: 常规地 Rebuild the World 之后重启系统无法正常出现 Login: 提示。异常显示大意如下:zfs mount failed/etc/rc.conf: Syntax error: Unterminated quoted stringEnter the full path of shell: [/bin/sh] &nb...
安装Oracle所需要的zfs命令(solaris 11)
# 设置硬盘format -e > 输入开头序号 -- 提示输入需要设置的磁盘序号 > 输入 no -- 提示是否设置分区表格式 > 输入 lable &nb...
How to use portsnap
FreeBSD的 Ports 是该系统的软件代码管理仓库,使用它可以方便地获取,存放,管理你的所有软件的代码。并且可以在本地 \随心所欲地编译安装各版本的软件。然后,有时你会发现在 make 的过程中 fetch 到的代码包会出现大小不一致的错误。这说明 \你是时候更新Ports tree了。1. # portsnap fetch; &...
How to REBUILD THE WORLD
写在开头 使用FreeBSD的同学一定都会想做一件事,手动编译软件。然后,这在安装系统的时候就直接使用本地编译安装系统 \所有软件显然是不明智。一来这多数人对这个系统了解得并不那么深入,编译过程中难免遇到问题而导致系统安装中断。二来时间太长了,你都没有办法离开(你可能会强迫自己盯着,确认没...
如何在Linux中使用rawdevice(裸设备)---入门级
声明: 此文仅仅只是为了方便初学者理解rawdevice的使用过程,请勿用于生产环境。// 查看当前lv的配置情况[root@projectm rules.d]# lvs LV VG Attr LSize Origin Snap% Move Log Copy...
How to purge recycle bin
If you decide that you are never going to restore an item from the recycle bin, you canuse the PURGE statement to remove the items and their associated objects from therecycle bin and release their storage space. You need the same privileges as if you weredro...
Oracle 12c GI v$asm_diskgroup returns no row
The Problem: After Oracle 12c GI and DB having been installed, I execute dbca with oracle user. When I try to choose ASM DG, it returned an empty diskgroups list. All the status of \CRS resource is online.Diagnostic:Check status of diskgroupSQL> selec...
How to use JDBC to connect to Oracle DB
Example of Using OCI: import java.sql.*; import oracle.jdbc.*;import oracle.jdbc.pool.OracleDataSource;// We import java.io to be able to read from the command line import java.io.*;class JdbcCheckup { &nb...
手工建库所需要执行的脚本
SQL> conn / as sysdbaSQL> @?/rdbms/admin/catalog.sql ; -- 数据字典视图SQL> @?/rdbms/admin/catproc.sql ; -- 存储过程包)SQL> @?/rdbms/admin/catblock.sql ; -- 锁相关的视图SQL> @?/rdbms/admin/catoctk.sql ; ...
诫子书 -- 曾囯藩
余通籍三十余年,官至极品,而学业一无所成,德行一无许可,老大徒伤,不胜悚惶惭赧。今将永别,特将四条教汝兄弟。 一曰慎独而心安。自修之道,莫难于养心;养心之难,又在慎独。能慎独,册内省不疚,可以对天地质鬼神。人无一内愧之事,则天君泰然。此心常快足宽平,是...
诫子书 -- 诸葛亮
夫君子之行 靜以修身 儉以養德 非澹泊無以明志 非寧靜無以致遠 夫學須靜也 才需學也 非學無以廣才 非志無以成學 淫慢則不能勵精 險躁則不能冶性 年與時馳 意與日去 遂成枯落 多不接世 終守窮廬 將得何及 夫君子之行 靜以修身 儉以養德 非澹泊無以明志 非寧靜無以致遠 ...
ORA-01555: Snapshot too old
Ahh, the infamous "Snapshot too old - Rooback segment too small" error. While this problem cannot be elimated, it's occurrence can be minimized. You have to remember that Oracle is designed to present a 'read-consistent' view of the data as it existed at the time a query was issued. Sce...
Oracle 数据库监控案例(PL/SQL开发处女秀)
即日起,正式踏上PL/SQL语言的征程。在此,留贴为证!create or replace package xplan_monitor as procedure init_tabs; procedure comp_proc; procedure update_last_tab; procedure cle...