欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

[转]在Fedora上安装Oracle 11g XE

发布时间:2025/3/20 编程问答 34 豆豆
生活随笔 收集整理的这篇文章主要介绍了 [转]在Fedora上安装Oracle 11g XE 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

在某处看到一篇介绍关于oracle- 11g xe在fedora上安装的文章,转载过来。


原文地址:http://blog.mclaughlinsoftware.com/2011/09/27/oracle-11g-xe-on-fedora/


前5步是解压,省略...

  • You need to drop down into a Terminal session, which you can launch by clicking onApplications,System Tools, and Terminal in the menu.
  • [plain] view plaincopy
  • sudo rpm -iv oracle-xe-11.2.0-1.0.x86_64.rpm  


  • This command will install the packages in verbose syntax and display the following messages:

    [sudo] password for mclaughlinm: Preparing packages for installation... oracle-xe-11.2.0-1.0 Executing post-install steps... You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.

  • This step requires that you assume the role of the root user, which can be done with this syntax:
  • [plain] view plaincopy
  • sudo sh  

  • In this root shell, you run the Oracle 11g XE configuration with this command:

    [plain] view plaincopy
  • /etc/init.d/oracle-xe configure  


  • The following are the text prompts that you accept to configure Oracle 11g XE:

    [text] view plaincopy
  • <textarea readonly="" name="code" class="plain">Oracle Database 11g Express Edition Configuration  
  • -------------------------------------------------  
  • This will configure on-boot properties of Oracle Database 11g Express   
  • Edition.  The following questions will determine whether the database should   
  • be starting upon system boot, the ports it will use, and the passwords that   
  • will be used for database accounts.  Press <Enter> to accept the defaults.   
  • Ctrl-C will abort.  
  •    
  • Specify the HTTP port that will be used for Oracle Application Express [8080]:  
  •    
  • Specify a port that will be used for the database listener [1521]:  
  •    
  • Specify a password to be used for database accounts.  Note that the same  
  • password will be used for SYS and SYSTEM.  Oracle recommends the use of   
  • different passwords for each database account.  This can be done after   
  • initial configuration:  
  • Confirm the password:  
  •    
  • Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]:  
  •    
  • Starting Oracle Net Listener...Done  
  • Configuring database...  
  • Starting Oracle Database 11g Express Edition instance...Done  
  • Installation completed successfully.</textarea><br><br>  
  • After completing the configuration, you need to do two things. First, you need to modify the.bash_profilefile for your user (covered in the next step). Second, you need to reboot your system.

  • This step requires that you exit the root shell by typing the exit command. This should put you back into your administration account withsudoer privileges. You use vi to edit and add the following to the.bash_profile file.
  • [plain] view plaincopy
  • # Oracle Settings  
  • TMP=/tmp; export TMP  
  • TMPDIR=$TMP; export TMPDIR  
  •    
  • ORACLE_HOSTNAME=localhost.localdomain; export ORACLE_HOSTNAME  
  • ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME  
  • ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE  
  • ORACLE_HOME=$ORACLE_BASE/product/11.2.0/xe; export ORACLE_HOME  
  • ORACLE_SID=XE; export ORACLE_SID  
  • NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`; export NLS_LANG  
  • ORACLE_TERM=xterm; export ORACLE_TERM  
  • PATH=/usr/sbin:$PATH; export PATH  
  • PATH=$ORACLE_HOME/bin:$PATH; export PATH  
  •    
  • LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH  
  • CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH  
  •    
  • if [ $USER = "oracle" ]; then  
  •   if [ $SHELL = "/bin/ksh" ]; then  
  •     ulimit -p 16384  
  •     ulimit -n 65536  
  •   else  
  •     ulimit -u 16384 -n 65536  
  •   fi  
  • fi  


  • You can now log in to the Oracle database with the following syntax from the command line. You’ll be prompted for thesystem password that you entered during the configuration steps. I’ll add another post on SQL Developer later this week.

    [sql] view plaincopy
  • <textarea readonly="" name="code" class="plain">sqlplus system</textarea><br><br>  

  • 总结

    以上是生活随笔为你收集整理的[转]在Fedora上安装Oracle 11g XE的全部内容,希望文章能够帮你解决所遇到的问题。

    如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。