ORACLE8I FOR SUN SOLARIS2.7 安装说明
说明:准备工作主要是增加ORACLE 的用户及组,改变一些系统参数文件。
1、 #vi /etc/passwd 最后一行加 oracle::9722:643:oracle:/ORACLE_HOME:/bin/csh
(增加oracle用户/或者用useradd)
2、 #vi /etc/group 最后一行后加 dba::643:oracle
(增加oracle的组/或者用groupadd)
3、#passwd oracle 敲两次口令,给oracle用户标明密码
4、 在根 / 下 #chown oracle oracle #chgrp dba oracle
5、 #cp .cshrc /oracle 把根下的这两个文件拷贝到 /oracle 路径下
6、 #cd oracle #chown oracle .* 把拷贝过来的隐含文件变成oracle属组 #chgrp dba .*
7、 #vi /etc/services 最后增加两行 orasrv 1525/tcp oracle listener 1521/tcp
8、 #vi /etc/system 在set后增加一段
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
set semsys:seminfo_semmns=200
set semsys:seminfo_semmni=70
9、 #su - oracle
10、 %vi .cshrc 增加一段
set path=( /oracle/bin /usr/sbin /usr/bin /usr/openwin/bin /oracle /etc /usr/ccs/bin . )
setenv ORACLE_HOME /oracle
setenv ORACLE_SID oracle8
#setenv DISPLAY 10.1.1.110:0.0
setenv NLS_LANG AMERICAN_AMERICA.ZHS16CGB231280
#setenv NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
说明:加#为可选的参数, 10.1.1.110是用PC机运行EXTRAX登录服务器所配置的。
11、#sync;sync;reboot Sun OS重启,使参数生效
二、安装 ORACLE
1 、插入ORACLE 安装光盘
#/etc/init.d/volmgt stop
#/etc/init.d/volmgt start
%volcheck
%df -k 检查有无cdrom的设备
2、 %cd /cdrom/cdrom0 %./runInstaller 出现 ORACLE Universal Installer的安装窗口,按Next键继续
3、Destination框输入将要安装oracle的目录,接着出现弹出窗口要求用root运行/tmp/orainstRoot.sh (它创建oraInventory的安装目录) 接着选择要安装的产品ORACLE8I 8.1.5
4、选typical或custom安装,注意屏幕上端Language按钮,选Chinese语言。
5、接着出现将要安装ORACLE产品的全部信息,如果有不对的地方可以按Perious按钮返回修改。如果确认无误,按Next,ORACLE开始安装。
6、安装成功100%后又回到开始的选项菜单。/oracle/orainst/install.log 安装日志文件最后提示OK
7、弹出Setup Privileges窗口,要求用root运行 #/oracle/root.sh
Are these setting correct (y/n):敲 y Enter the full pathname of the local bin directory (y/n): 敲/bin (此shell 程序在/var/opt/oracle路径下生成一个文件oratab ,并做系统检测)
8、 #vi /var/opt/oracle/oratab 最后一行改 oracle8:/oracle:Y
9、#vi /var/opt/oracle/listener.ora 改 host= (host_name) oraclehome= (/oracle)
例子: listener=(address_list=
(address=(protocol=tcp)
(port=1521)
(host=joe)))
sid_list_listener=(sid_list=
(sid_desc=(sid_name=oracle8)
(oracle_home=/oracle)))
trace_level+listener=admin
startup_wait_time_listener=0
connect_timeout_listener=5
10、#vi /var/opt/oracle/tnsnames.ora 一些连接字符串,分布式通讯时有用
11、#su - oracle %env 看环境变量改变了没有
12、%svrmgrl 唤醒SVRMGR状态
SVRMGR>connect internal
连接打开数据库 SVRMGR>shutdown immediate 先关闭 instances, 数据库
SVRMGR>startup 再打开数据库,当看到 instances startup, database mount, database open的时候,oracle安装成功
SVRMGR>exit
14、 %lsnrctl start 启动listener 如果出错检查环境变量是否设好,及lsnrctl文件的内容和执行属性

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Solutions to Oracle cannot be opened include: 1. Start the database service; 2. Start the listener; 3. Check port conflicts; 4. Set environment variables correctly; 5. Make sure the firewall or antivirus software does not block the connection; 6. Check whether the server is closed; 7. Use RMAN to recover corrupt files; 8. Check whether the TNS service name is correct; 9. Check network connection; 10. Reinstall Oracle software.

The method to solve the Oracle cursor closure problem includes: explicitly closing the cursor using the CLOSE statement. Declare the cursor in the FOR UPDATE clause so that it automatically closes after the scope is ended. Declare the cursor in the USING clause so that it automatically closes when the associated PL/SQL variable is closed. Use exception handling to ensure that the cursor is closed in any exception situation. Use the connection pool to automatically close the cursor. Disable automatic submission and delay cursor closing.

In Oracle, the FOR LOOP loop can create cursors dynamically. The steps are: 1. Define the cursor type; 2. Create the loop; 3. Create the cursor dynamically; 4. Execute the cursor; 5. Close the cursor. Example: A cursor can be created cycle-by-circuit to display the names and salaries of the top 10 employees.

Oracle database paging uses ROWNUM pseudo-columns or FETCH statements to implement: ROWNUM pseudo-columns are used to filter results by row numbers and are suitable for complex queries. The FETCH statement is used to get the specified number of first rows and is suitable for simple queries.

To stop an Oracle database, perform the following steps: 1. Connect to the database; 2. Shutdown immediately; 3. Shutdown abort completely.

Building a Hadoop Distributed File System (HDFS) on a CentOS system requires multiple steps. This article provides a brief configuration guide. 1. Prepare to install JDK in the early stage: Install JavaDevelopmentKit (JDK) on all nodes, and the version must be compatible with Hadoop. The installation package can be downloaded from the Oracle official website. Environment variable configuration: Edit /etc/profile file, set Java and Hadoop environment variables, so that the system can find the installation path of JDK and Hadoop. 2. Security configuration: SSH password-free login to generate SSH key: Use the ssh-keygen command on each node

SQL statements can be created and executed based on runtime input by using Oracle's dynamic SQL. The steps include: preparing an empty string variable to store dynamically generated SQL statements. Use the EXECUTE IMMEDIATE or PREPARE statement to compile and execute dynamic SQL statements. Use bind variable to pass user input or other dynamic values to dynamic SQL. Use EXECUTE IMMEDIATE or EXECUTE to execute dynamic SQL statements.

Oracle garbled problems can be solved by checking the database character set to ensure they match the data. Set the client character set to match the database. Convert data or modify column character sets to match database character sets. Use Unicode character sets and avoid multibyte character sets. Check that the language settings of the database and client are correct.
