鉄's profileautoupdatePhotosBlogListsMore ![]() | Help |
autoupdateautoupdate |
|||||||
|
巧用SecureCRT提起SecureCRT,也许大家都不陌生。兼有SSH和telnet,ftp,记录会话,端口转发等功能。
一、先说说她的异步命令模式,即聊天功能。
最近有朋友问到,同时管理若干台配置相同的服务器,有没有简便方法呢。答案是肯定的。
具体设置方法如下:
1.进入“全局选项”,终端,勾选“显示交谈窗口”。然后你会看到窗口最下端出现了异步窗口。
2.登录多个窗口,然后右键单击异步窗口(窗口下部),选中“将交谈发送到所有标签”。
3.注意,修改配置前一定要作备份,因为这样的操作是有一定风险性的。
其实还有其它的一些工具也可以达到这样的功效,如Xmanager。
二、用SecureCRT上传和下载文件
1.设定上传下载文件保存路径,即选项里面的Xmodem/Zmodem。
2.确认一下系统中是否有rz,sz这两个命令(不同系统会有少许区别,lrz,lsz等),若没有的话需要安装。
3.使用比较简单。就不敖述了。
ASM数据库数据库创建详细步骤文档(一)一:安装linux系统,关闭防火墙和selinux。 Oracle Enterprise Linux 4.5 必须组件安装: GNOME Desktop Environment Editors Graphical Internet Text-based Internet Development Libraries Development Tools Server Configuration Tools Administration Tools Base System Tools X Window System 二:配置oracle数据库安装环境 1. 创建用户和用户组(以root用户创建) groupadd -g 1001 dba id nobody groupadd -g 1002 oinstall useradd -u 1002 -g oinstall -G dba oracle passwd oracle 2. 检查所需软件:(以root用户进行) rpm -qa setarch make glibc libaio compat-libstdc++- compat-gcc-34- compat-gcc-34-c++- gcc libXp openmotif compat-db 以下为所需软件包 setarch-2.0-1.1.i386.rpm make-3.81-1.1.i386.rpm glibc-2.5-12.i686.rpm libaio-0.3.106-3.2.i386.rpm compat-libstdc++-33-3.2.3-61.i386.rpm compat-gcc-34-3.4.6-4.i386.rpm compat-gcc-34-c++-3.4.6-4.i386.rpm gcc-4.1.1-52.el5.i386.rpm libXp-1.0.0-8.i386.rpm openmotif-2.3.0-0.3.el5.i386.rpm compat-db-4.2.52-5.1.i386.rpm
3. 配置内核参数(以root用户) # vi /etc/sysctl.conf kernel.shmall = 268435456 kernel.shmmax = 4294967295 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 4194304 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 262144 使参数输出#/sbin/sysctl -p 4. # vi /etc/security/limits.conf 添加以下内容: oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 # vi /etc/pam.d/login 添加以下内容: session required /lib/security/pam_limits.so 5. 创建安装目录(root身份) mkdir -p /orac/orahome/app/oracle/product/10.2.0/db_1 chown -R oracle.oinstall /orac/orahome mkdir -p /orac/oradata chown -R oracle.oinstall /orac/oradata chown -R oracle.oinstall /orac 注意:/app/oracle/product/10.2.0/db_1此目录不管放置在那个目录下,都必须存在。orac/orahome为用户创建的存放目录。 6. 设置shell对oracle用户的限制(以oracle用户登陆修改) vi .bash_profile if [ \$USER = "oracle" ]; then if [ \$SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi umask 022 fi ORACLE_BASE=/orac/orahome/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME ORACLE_SID=orcl;export ORACLE_SID PATH=$PATH:$HOME/bin;export PATH PATH=$ORACLE_HOME/bin:$PATH;export PATH 三:创建磁盘 [root@node2 etc]# fdisk /dev/sdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable.
The number of cylinders for this disk is set to 1305. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-1305, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-1305, default 1305): Using default value 1305
Command (m for help): w The partition table has been altered!
Calling ioctl() to re-read partition table. Syncing disks. [root@node2 etc]# fdisk /dev/sdc Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable.
The number of cylinders for this disk is set to 1305. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-1305, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-1305, default 1305): Using default value 1305
Command (m for help): w The partition table has been altered!
Calling ioctl() to re-read partition table. Syncing disks. [root@node2 etc]# 四:安装ASM包并配置 每个 Linux 发行版本都有其自己的一套 ASMLib 程序包,并且在每个发行版本中,每个内核版本都有一个相应的 oracleasm 程序包。以下部分介绍如何确定您需要哪套程序包。 确定适用于您环境的正确 oracleasmlib 模块。 以 root 用户身份登录并运行以下命令来确定您正在使用的内核: [root@node2 etc]# uname -rm 2.6.9-55.0.0.0.2.ELhugemem i686 使用此信息在 OTN 上查找相应的 ASMLib 程序包:
通过以 root 用户身份执行以下命令,在主机上安装这些程序包: oracleasm-2.6.9-55.0.0.0.2.ELhugemem-2.0.3-2 oracleasm-support-2.0.3-2 oracleasm-2.6.9-55.0.0.0.2.EL-2.0.3-2 1. 配置 ASMLib (root用户) 使用 ASMLib 之前,必须运行配置脚本来准备驱动程序。 以 root 用户身份在主机上运行以下命令并回应提示,如下例所示。 这将配置 Oracle ASM 库驱动程序的启动时属性。以下问题将确定在启动时是否加载驱动程序以及它将拥有的权限。当前值将显示在方括号(“[]”)中。按 <ENTER> 而不键入回应将保留该当前值。按 Ctrl-C 将终止。 [root@node2 etc]# /etc/init.d/oracleasm configure Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library driver. The following questions will determine whether the driver is loaded on boot and what permissions it will have. The current values will be shown in brackets ('[]'). Hitting <ENTER> without typing an answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle Default group to own the driver interface []: dba Start Oracle ASM library driver on boot (y/n) [n]: y Fix permissions of Oracle ASM disks on boot (y/n) [y]: y Writing Oracle ASM library driver configuration: [ OK ] Creating /dev/oracleasm mount point: [ OK ] Loading module "oracleasm": [ OK ] Mounting ASMlib driver filesystem: [ OK ] Scanning system for ASM disks: [ OK ] [root@node2 etc]# /etc/init.d/oracleasm enable Writing Oracle ASM library driver configuration: [ OK ] Scanning system for ASM disks: [ OK ] 现在,如下所示启用 ASMLib 驱动程序。 [root@node2 etc]# /etc/init.d/oracleasm enable Writing Oracle ASM library driver configuration: [ OK ] Scanning system for ASM disks: [ OK ] 2. 为 ASM 配置磁盘 接下来告诉 ASMLib 驱动程序要使用哪些磁盘。通过以 root 用户身份运行以下命令来标记由 ASMLib 使用的磁盘。在主机上执行此操作。 /etc/init.d/oracleasm createdisk DISK_NAME device_name 提示: 以大写字母输入 DISK_NAME。当前版本中有一个错误,即如果使用小写字母,ASM 实例将无法识别磁盘。 [root@node2 etc]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdb1 Marking disk "/dev/sdb1" as an ASM disk: [ OK ] [root@node2 etc]# /etc/init.d/oracleasm createdisk VOL2 /dev/sdc1 Marking disk "/dev/sdc1" as an ASM disk: [ OK ] 以下示例演示了如何列出标记为由 ASMLib 使用的所有磁盘。 # /etc/init.d/oracleasm listdisks VOL1 VOL2 3. 链接磁盘组文件(oracle用户) [oracle@node2 ~]$ ln -s /dev/oracleasm/disks/VOL1 /orac/oradata/asmdisk1 [oracle@node2 ~]$ ln -s /dev/oracleasm/disks/VOL2 /orac/oradata/asmdisk2 五:安装数据库软件(oracle用户执行) 将oracle数据包10201_database_linux32拷入系统内,进行解压。 命令如下:unzip 10201_database_linux32 解压完成之后进入database目录执行[oracle@node2 database]$ ./runInstaller 安装数据库软件。 六:创建ASM数据库实例并创建数据库 以oracle用户登陆系统执行[oracle@node2 ~]$ dbca出现如下界面:
点击next 按照提示操作到如下界面选中第二项。
点击next出下图 UnixWare7.1.x作業系統下的硬碟管理(4) 5. 用edvtoc命令增加slice 系統自動增加了s0到sf共16個 slice,如果我們繼續增加只能通過編輯vtoc檔。 UnixWare7.1.x作業系統下的硬碟管理(6) 2.4 刪除硬碟 在SCO UNIX上利用CD/DVD做資料備份由於現今各個應用程式的複雜度日與劇增, 處理的資料量也都相當龐大, 客戶常常遇到的問題就是 : 感谢访问!
|
||||||
|
|