亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Home php教程 php手冊 Linux下Oracle8i的安裝(轉(zhuǎn))

Linux下Oracle8i的安裝(轉(zhuǎn))

Jun 21, 2016 am 09:12 AM
home listener nbsp oracle sqlplus

oracle

oracle 8.05 的簡明安裝和操作說明
oralce 支持Linux 給了我們一個(gè)免費(fèi)解除她的好機(jī)會,但有好多網(wǎng)友并非此中專業(yè)人士(就象我一樣),我就把我的一些操作程序?qū)懗鰜?,希望對大家會有所幫助?br>一。安裝前的準(zhǔn)備工作
???1 ,建立一個(gè)oracle 的安裝用戶,因?yàn)閛racle 不能用root來安裝,若強(qiáng)行用root她會報(bào)錯(cuò),然后罷工。
???????#useradd oracle(當(dāng)然可以是任何名字,但推薦用oracle 做用戶名)
???????#passwd oracle
?????進(jìn)入/etc/group??找到oracle組,把組名改為dba (并非必須,但推薦)
????#cd /etc
????#vi group
注意:一定要保證oracle用戶只在一個(gè)組里,否則當(dāng)oracle installer 建立數(shù)據(jù)庫時(shí)無法建立正確的控制文件。
?????2 ,建立oracle的安裝目錄和數(shù)據(jù)庫的mount point 。For example ,我是在根目錄下建立一個(gè) /oracle 目錄作為oracle 8.05 的安裝點(diǎn)。
???????#cd /
????#mkdir /oracle
????#chown oracle /oracle(改變目錄的屬主為oracle用戶)
????#chgro dba /oracle(改變目錄的屬組為dba組)
????#cd /oracle
????#su oracle(切換為oracle用戶)
????$mkdir home(oracle的home)
????$mkdir db1(oracle數(shù)據(jù)庫的三個(gè)存放點(diǎn)《mount point》)
????$mkdir db2
????$mkdir db3
????3,在oracle 用戶的登陸目錄下,修改???.proflie 文件,加入必須的環(huán)境變量:
????$cd ~oracle
????$vi .profile??加入以下內(nèi)容:
????ORACLE_OWNER=oracle
????export ORACLE_OWNER
????ORACLE_HOME=/oracle/home
????export ORACLE_HOME
????ORACLE_SID=mytable?????????????
????export ORACLE_SID
????LD_LIBRARY_PATH=/oracle/home/lib/
????export LD_LIBRARY_PATH
????ORACLE_BASE=/oracle
????export ORACLE_BASE
????PATH="$PATH:/oracle/home/bin:usr/local/bin"
#the end
????使剛才的設(shè)定生效:
?????$source .profile

??4,用root身份將oralce 8.05 的壓縮文件解壓:
????$su root??????
????#tar xzvf filename(應(yīng)該是一個(gè) .tar.gz 文件)(為以下的說明方便,假設(shè)解壓在/download/目錄下)
????
???????進(jìn)入/download/orainst/運(yùn)行oratab.sh
?????#cd /download/orainst
????#./oratab.sh
設(shè)定成功后,就可開始安裝。
二,安裝
????安裝很簡單,只要運(yùn)行oarinst 按提示操作即可,偶爾有報(bào)錯(cuò)說文件或目錄不存在,可能是她的bug,只要切換一個(gè)控制臺手動建立目錄即可,或者重新運(yùn)行安裝程序,已安裝的部分會提示略過。
????????$cd /download/orainst
????$./orainst
????需要輸入的參數(shù):
????若.profile 文件已生效,安裝期間要輸入的OARCLE_HOME,ORACLE_BASE ,ORACLE_SID均會自動填寫,唯一要手動填寫的三個(gè)數(shù)據(jù)庫的mount point.(/oracle/db1,/oracle/db2 ,/oracle/db3)
三,后期配置與基本操作
1。啟動和關(guān)閉oracle server
若安裝正常,應(yīng)該就可以啟動了,進(jìn)入server manager 啟動oracle server
??????$svrmgrl
????sml>connect internal
????sml>startup
????sml>exit
這樣oracle 就啟動了。
若要關(guān)閉:
????$svrmgrl
????sml>connect internal
????sml>shutdown
????sml>exit
若無法啟動,查看你的/oracle/home/dbs 目錄下是否有 initmytable.ora文件,確認(rèn)其中的table_name=mytable已設(shè)定,否則手動該過來。其他可以不動。
若沒有這個(gè)文件,可以將這個(gè)目錄下的init.ora拷貝,改名為initmytable.ora ,并把table_name改過來。(未改前是table_name=default)
這樣應(yīng)該就可以了。
2.用sqlplus來查詢
啟動server以后,就可以通過sqlplus聯(lián)上server,爽一爽。(oracle默認(rèn)已建立兩個(gè)有dba 權(quán)限的用戶:system/manager??和sys/change_on_install)
????$sqlplus system/manager
????sql>select * from user_tables
????哇,好大一串東西呀?。?br>????唉,sqlplus的操作我這里就不管羅。
3,sqlplus的遠(yuǎn)程連接
我測試的是用oarcle 8.0 for NT 的 sqlplus 8.0 來進(jìn)行遠(yuǎn)程連接
若是默認(rèn)完全安裝,Net 8??應(yīng)該已經(jīng)配好了。
啟動監(jiān)聽器:
????$lsnrctl
????lsn>start
????lsn>exit
這樣監(jiān)聽器就起來了,可以用其他機(jī)器上的sqlplus 試一試,挺好玩的。
如果起不來,
A.看你的適配器是否裝了
????$adapters
若沒有安裝則要運(yùn)行 /download/orainst/下的 oarinst 把適配器裝上來。
B.到oacle_home/network/admin下找一下lintener.ora與我文件對一下,沒有的話就拷過去。

# This file is locate in :~oracle_home/network/admin
#
# Installation Generated Net8 Configuration
# Version Date: Jun-17-97
# Filename: Listener.ora
#
LISTENER =????????????????????
??(ADDRESS_LIST =
????(ADDRESS= (PROTOCOL= IPC)(KEY= mytable))
????????(ADDRESS= (PROTOCOL= IPC)(KEY= PNPKEY))
????????(ADDRESS= (PROTOCOL= TCP)(Host= yourhonst.yourdoman)(Port= 1521))
??)
SID_LIST_LISTENER =
??(SID_LIST =
????(SID_DESC =
??????(GLOBAL_DBNAME= yourhost.yourdoman.)
??????(ORACLE_HOME= /oracle/home)
??????(SID_NAME = rsb)
????)
????(SID_DESC =
??????(SID_NAME = extproc)
??????(ORACLE_HOME = /oracle/home)
??????(PROGRAM = extproc)
????)
??)
STARTUP_WAIT_TIME_LISTENER = 0
CONNECT_TIMEOUT_LISTENER = 10
TRACE_LEVEL_LISTENER = OFF
#The end.

C.到/etc下查看services文件,看是否有類似的一行
????listener?????????????1521??#oracle tcp listener
如果沒有就加上去。
reboot ,應(yīng)該就可以拉
好拉,就到這里,就到這里吧。
Auther:charcoal
E-mail:charcoal@mail.hn.cninfo.net
1998/12/26 于長沙
------------------------------------------------------------------------ZZZXXXZZZ
E-group home: http://www.eGroups.com/list/njlug
Free Web-based e-mail groups by eGroups.com



Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to uninstall MySQL and clean residual files How to uninstall MySQL and clean residual files Apr 29, 2025 pm 04:03 PM

To safely and thoroughly uninstall MySQL and clean all residual files, follow the following steps: 1. Stop MySQL service; 2. Uninstall MySQL packages; 3. Clean configuration files and data directories; 4. Verify that the uninstallation is thorough.

Oracle's Role in the Business World Oracle's Role in the Business World Apr 23, 2025 am 12:01 AM

Oracle is not only a database company, but also a leader in cloud computing and ERP systems. 1. Oracle provides comprehensive solutions from database to cloud services and ERP systems. 2. OracleCloud challenges AWS and Azure, providing IaaS, PaaS and SaaS services. 3. Oracle's ERP systems such as E-BusinessSuite and FusionApplications help enterprises optimize operations.

MongoDB vs. Oracle: Choosing the Right Database for Your Needs MongoDB vs. Oracle: Choosing the Right Database for Your Needs Apr 22, 2025 am 12:10 AM

MongoDB is suitable for unstructured data and high scalability requirements, while Oracle is suitable for scenarios that require strict data consistency. 1.MongoDB flexibly stores data in different structures, suitable for social media and the Internet of Things. 2. Oracle structured data model ensures data integrity and is suitable for financial transactions. 3.MongoDB scales horizontally through shards, and Oracle scales vertically through RAC. 4.MongoDB has low maintenance costs, while Oracle has high maintenance costs but is fully supported.

What software is better for yi framework? Recommended software for yi framework What software is better for yi framework? Recommended software for yi framework Apr 18, 2025 pm 11:03 PM

Abstract of the first paragraph of the article: When choosing software to develop Yi framework applications, multiple factors need to be considered. While native mobile application development tools such as XCode and Android Studio can provide strong control and flexibility, cross-platform frameworks such as React Native and Flutter are becoming increasingly popular with the benefits of being able to deploy to multiple platforms at once. For developers new to mobile development, low-code or no-code platforms such as AppSheet and Glide can quickly and easily build applications. Additionally, cloud service providers such as AWS Amplify and Firebase provide comprehensive tools

MySQL vs. Oracle: Licensing, Features, and Benefits MySQL vs. Oracle: Licensing, Features, and Benefits May 08, 2025 am 12:05 AM

The main difference between MySQL and Oracle is licenses, features, and advantages. 1. License: MySQL provides a GPL license for free use, and Oracle adopts a proprietary license, which is expensive. 2. Function: MySQL has simple functions and is suitable for web applications and small and medium-sized enterprises. Oracle has powerful functions and is suitable for large-scale data and complex businesses. 3. Advantages: MySQL is open source free, suitable for startups, and Oracle is reliable in performance, suitable for large enterprises.

MySQL and Oracle: Exploring Performance and Scalability MySQL and Oracle: Exploring Performance and Scalability Apr 29, 2025 am 12:12 AM

The difference between MySQL and Oracle in performance and scalability is: 1. MySQL performs better on small to medium-sized data sets, suitable for fast scaling and efficient reading and writing; 2. Oracle has more advantages in handling large data sets and complex queries, suitable for high availability and complex business logic. MySQL extends through master-slave replication and sharding technologies, while Oracle achieves high availability and scalability through RAC.

MySQL vs. Oracle: Understanding Licensing and Cost MySQL vs. Oracle: Understanding Licensing and Cost May 03, 2025 am 12:19 AM

MySQL uses GPL and commercial licenses for small and open source projects; Oracle uses commercial licenses for enterprises that require high performance. MySQL's GPL license is free, and commercial licenses require payment; Oracle license fees are calculated based on processors or users, and the cost is relatively high.

How to learn Java without taking detours. Share methods and techniques for efficiently learning Java How to learn Java without taking detours. Share methods and techniques for efficiently learning Java May 20, 2025 pm 08:24 PM

The key to learning Java without taking detours is: 1. Understand core concepts and grammar; 2. Practice more; 3. Understand memory management and garbage collection; 4. Join online communities; 5. Read other people’s code; 6. Understand common libraries and frameworks; 7. Learn to deal with common mistakes; 8. Make a learning plan and proceed step by step. These methods can help you master Java programming efficiently.

See all articles