双击xstarttest.如果网络好的话,很快就会出现期待已久的远程桌面。如下图:
现在我们就可以在上面做操作了。
==================================================
法二:开启一个登录窗口,下面的方法是在远程机器上开启XDMCP,然后再用Xstart连接上去。
服务器:redhat as 5.0
终端:Xmanager enterprise 3.0
服务器配置:(Gnome)
------------------------
1. Change runlevel to 5
修改 /etc/inittab,将运行级别设置为5,即:
id:5:initdefault:
2. Enable XDMCP
打开/etc/gdm/custom.conf,然后把Enable改为1,即:
[xdmcp]
Enable=1
3.KDM:
打/usr/share/config/kdm/Xaccess,然后把下面两行的“#”去掉。
#* #any host can get a login window ==>
* #any host can get a login window
打开/user/share/config/kdm/kdmrc,然后把Enable设成:true.即如下:
[xdmcp]
Enable=true
4.配置防火墙:即允许TCP/UPD通过。如下:
Open UDP port 177 from the PC to the remote host direction.
Open incoming TCP ports 6000~6010 from the remote host to your PC.
5.重起远程的机器。开始使用XMANGER enterprise 3.0
# init 3; init 5-------------------------
2、回到 Xbrowser 窗口,这时能看到你增加的服务器图标。
右击服务器图标,选择“Save As”,创建一个新的 session,
然后右击这个 session,选择“Properties”。
在 “Proxy”部分打勾,Host为 “0.0.0.0”,
Port Number 为“6020”
(注:这个值应该与Xshell配置中第三步的“Listen Port”相同)
3、点击“X Server”,把
“Allocate display number automatically”前面的勾去掉,
在“Display Number box”中输入 “20”
(这个数字应等于上一步中的Port Number减去6000)
保存设置
4、双击该服务器图标即可开启一个登录窗口
方法三:
xmanager secureCRT结合使用
环境:在xp中安装虚拟机vmware ,host-only方式虚拟Linux系统。xp的ip为192.168.0.1,虚拟机Linux为192.168.0.88
在xp中安装xmanager和secureCRT ,默认情况下CRT不能显示图形界面,通过以下配置可以实现在Windows下的CRT里显示Linux中的oracle图形界面:
以oracle用户登陆Linux,修改.bash_profile
$ vi .bash_profile
在最后加上以下内容:
DISPLAY=192.168.0.1:0.0
export DISPLAY
然后 $source .bash_profile
就大功告成。
最后一步、上面的条件都具备了,下面就是来安装数据库软件与建立数据库。下面安装数据库软件全是按照官方文档来的。下面我就不细细的讲。稍稍讲一下要做的步聚:
解压文件。
unzip 10201_database_linux32.zip
You should now have a single directory containing installation files. Depending on the age of the download this may either be named "db/Disk1" or "database".
设置内核参数:
为/etc/sysctl.conf文件加上如下的内容。
Add the following lines to the /etc/sysctl.conf file:
#kernel.shmall = 2097152
#kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
#fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
运行下面的命令,来改变当的的内核参数。
Run the following command to change the current kernel parameters:
/sbin/sysctl -p
在/etc/security/limits.conf加上如下的内容。
Add the following lines to the /etc/security/limits.conf file:
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
在/etc/pam.d/login文件加上如下的内容。
Add the following line to the /etc/pam.d/login file, if it does not already exist:
session required /lib/security/pam_limits.so
关闭防火墙:
Disable secure linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set as follows:
SELINUX=disabled
Alternatively, this alteration can be done using the GUI tool (System > Administration > Security Level and Firewall). Click on the SELinux tab and disable the feature.
安装需要的包:
Install the following packages:
# From RedHat AS5 Disk 1
cd /media/cdrom/Server
rpm -Uvh setarch-2*
rpm -Uvh make-3*
rpm -Uvh glibc-2*
rpm -Uvh libaio-0*
cd /
eject
# From RedHat AS5 Disk 2
cd /media/cdrom/Server
rpm -Uvh compat-libstdc++-33-3*
rpm -Uvh compat-gcc-34-3*
rpm -Uvh compat-gcc-34-c++-3*
rpm -Uvh gcc-4*
rpm -Uvh libXp-1*
cd /
eject
# From RedHat AS5 Disk 3
cd /media/cdrom/Server
rpm -Uvh openmotif-2*
rpm -Uvh compat-db-4*
cd /
eject
创建用户名与用户组:
Create the new groups and users:
groupadd oinstall
groupadd dba
groupadd oper
useradd -g oinstall -G dba oracle
passwd oracle
为数据库软件创建目录。
Create the directories in which the Oracle software will be installed:
mkdir -p /u01/app/oracle/product/10.2.0/db_1
chown -R oracle.oinstall /u01
修改/etc/redhat-releas文件,这样做的目的是为了在安装时能通过。因为oracle 10G 检查文件里对操作系统有要求。所要把它改成redhat-4。
Edit the /etc/redhat-release file replacing the current release information (Red Hat Enterprise Linux Server release 5 (Tikanga)) with the following:
redhat-4
设置环境变量:编辑:.bash_profile,在里面填上如下的内容。
Login as the oracle user and add the following lines at the end of the .bash_profile file:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:
DISPLAY=本机的IP地址:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory:
./runInstaller
安装完以后,要把/etc/redhat-release这个文件的内容改过来。
Edit the /etc/redhat-release file restoring the original release information:
Red Hat Enterprise Linux Server release 5 (Tikanga)
Edit the /etc/oratab file setting the restart flag for each instance to 'Y':
TSH1:/u01/app/oracle/product/10.2.0/db_1:Y
注:在安装完数据库后的总结。我首先是把数据库软件安装以后,再运行DBCA的。
在运行DBCA时。我把内存分高了。提示:ORA-27123:unable to attach to shared memory segment。后来我把内存分低一点。就通过了。
在操作系统下看:共享内存:
[iyunv@oracleERP ~]# cat /proc/sys/kernel/shmmax
2999999999
只有2999999999
而我把它分了:7294967295,
临时给shmmax分内存。
Echo 7294967295 > /proc/sys/kernel/shmmax.。这样临时给shmmax分好了。
如果想永久的分shmmax,。就要编辑:/etc/sysctl.conf
设置:
kernel.shmmax = 7294967295
就可以了。