In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
A brief installment of Oracle
Installation preparation package
Linuxredhat5.8 operating system
Oracle11g (following is the package name)
Linux.x64_11gR2_database_1of2.zip
Linux.x64_11gR2_database_2of2.zip
Installation preparation
Configure IP,hosts, hostname.
Note the hosts file must correspond to the hostname. (below)
127.0.0.1 localhost.localdomain localhost::1 localhost6.localdomain6 localhost6192.168.66.249 dbserver.cjl.com
Configure the oracle environment script
#! / bin/bash# View memory size echo "Mem Check:swap > 2G" grep-I memtotal / proc/meminfogrep-I swaptotal / proc/meminfo# configuration yum local source cat show user;USER is "SYS" SQL >
Graphical interface to add database
If reboot requires web access, you can re-obtain the URL with the following command
[oracle@dbserver] $emctl start dbconsoleOracle Enterprise Manager 11g Database Control Release 11.2.0.1.0 Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. https://dbserver.cjl.com:1158/em/console/aboutApplicationStarting Oracle Enterprise Manager 11g Database Control. Started. -Logs are generated in directory / opt/oracle/product/11.2/db_1/dbserver.cjl.com_orcl/sysman/log
Try it if you find that you can't use the dbca command
[oracle@dbserver ~] $/ opt/oracle/product/11.2/db_1/bin/dbca Xlib: connection to ": 0.0" refused by serverXlib: No protocol specified [root@dbserver ~] # xhost + access control disabled, clients can connect from any host
Start the database and start listening first.
[oracle@dbserver] $lsnrctlLSNRCTL for Linux: Version 11.2.0.1.0-Production on 18-SEP-2015 05:07:44Copyright (c) 1991, 2009, Oracle. All rights reserved.Welcome to LSNRCTL Type "help" for information.LSNRCTL > startStarting / opt/oracle/product/11.2/db_1/bin/tnslsnr: please wait...TNSLSNR for Linux: Version 11.2.0.1.0-ProductionSystem parameter file is / opt/oracle/product/11.2/db_1/network/admin/listener.oraLog messages written to / opt/oracle/diag/tnslsnr/dbserver/listener/alert/log.xmlListening on: (DESCRIPTION= (ADDRESS= (PROTOCOL=ipc) (KEY=EXTPROC1521)) Listening on: (DESCRIPTION= (ADDRESS= (PROTOCOL=tcp)) ) (HOST=dbserver.cjl.com) (PORT=1521)) Connecting to (DESCRIPTION= (ADDRESS= (PROTOCOL=IPC) (KEY=EXTPROC1521)) STATUS of the LISTENER----Alias LISTENERVersion TNSLSNR for Linux: Version 11.2.0.1.0-ProductionStart Date 18-SEP-2015 05:07:50Uptime 0 days 0 hr. 0 min. 0 secTrace Level offSecurity ON: Local OS AuthenticationSNMP OFFListener Parameter File / opt/oracle/product/11.2/db_1/network/admin/listener.oraListener Log File / opt/oracle/diag/tnslsnr/dbserver/listener/alert/log.xmlListening Endpoints Summary... (DESCRIPTION= (ADDRESS= (PROTOCOL=ipc) (KEY=EXTPROC1521)) (DESCRIPTION= (ADDRESS= (PROTOCOL=tcp) (HOST=dbserver.cjl.com) (PORT=1521)) The listener supports no servicesThe command completed successfullyLSNRCTL > quit [oracle@dbserver] $sqlplus sys as sysdbaSQL*Plus: Release 11.2.0.1.0 Production on Fri Sep 18 05:08:12 2015Copyright (c) 1982, 2009, Oracle. All rights reserved.Enter password: Connected to an idle instance.SQL > startupORACLE instance started.Total System Global Area 839282688 bytesFixed Size 2217992 bytesVariable Size 541067256 bytesDatabase Buffers 289406976 bytesRedo Buffers 6590464 bytesDatabase mounted.Database opened.SQL > show user;USER is "SYS" SQL > alter database open;alter database open*ERROR at line 1:ORA-01531: a database already open by the instanceSQL > quitDisconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing options
Shut down the database
Shutdown immediate
Shutdown abort (if the previous shutdown cannot be performed, then perform this forced shutdown)
Turn off snooping
Lsnrctl stop
If there are any errors in this article, please leave a message!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.