Ubuntu安装Oracle XE

php中文网
发布: 2016-06-07 17:17:42
原创
1385人浏览过

Ubuntu不支持Oracle,网上教程太复杂,总是出错.后来找到个能装XE的就装了,Oracle Database 10g Express Edition requires 1006 M

Ubuntu不支持Oracle,网上教程太复杂,总是出错.后来找到个能装XE的就装了,Oracle Database 10g Express Edition requires 1006 MB of swap space

You can always disable Oracle XE startup in boot time with (no update-rc.d method here ;-) ):

chmod -x /etc/init.d/oracle-xe  

The alernative way to the same is to edit /etc/default/oracle-xe and change:

  • Web console management
    - If you have installed OracleXE database on remote *nix server, you can easily setup a ssh tunnel in order to gain access to a web administration console (since web console is bound to loopback device and therefore unavailable outside to the network):

    $ ssh oracle-xe-server -L 8081:localhost:8080

    While keeping this proces running (or keep it on background via `screen` or `nohup`), you may now login to Oracle XE web administrations console on your local computer: :8081/apex/. Please notice that your ssh daemon on your local computer should allow TCP forwarding: AllowTcpForwarding yes in your sshd configuration file.
    SQL Remote connection management
    - By default OracleXe installation does not allow sql network connections to your XE database. To enable it, logon to web management console and enable "Remote connections": "Administration->enable "Available from local server and remote clients"-> press "Apply Changes". The same procedure can also be done from the commandline:

    $ sqlplus -S system/password@//localhost/XE EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
    EXIT;
    /
    !

    If your SQL client uses a Oracle Instant client installation, the SQL connection can be obtained by entering:

    [atrakic@adm2-43 ~]$ sqlplus username/password@//oraclexe.hostname.or.ip//XE

    帮衣帮-AI服装设计
    帮衣帮-AI服装设计

    AI服装设计神器,AI生成印花、虚拟试衣、面料替换

    帮衣帮-AI服装设计 106
    查看详情 帮衣帮-AI服装设计

    If somewhat connection is refused (due to firewall restrictions) you can use same ssh trick as done previously:

    where your sql connection should be like this:

    atrakic

    User management
    Add user
    - In order to add single sql user with non-dba privilages to OracleXE execute following commands:

    You can run this SQL script with:

    Alternatively use web managment console to add new Oracle XE users accordingly.
    Delete user
    - For deleting a sql users from OracleXE use web management console or execute following commands from the commandline:

    ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/
    可在命令行创建表空间。

    linux

  • 最佳 Windows 性能的顶级免费优化软件
    最佳 Windows 性能的顶级免费优化软件

    每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

    下载
    来源:php中文网
    本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
    最新问题
    开源免费商场系统广告
    热门教程
    更多>
    最新下载
    更多>
    网站特效
    网站源码
    网站素材
    前端模板
    关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
    php中文网:公益在线php培训,帮助PHP学习者快速成长!
    关注服务号 技术交流群
    PHP中文网订阅号
    每天精选资源文章推送
    PHP中文网APP
    随时随地碎片化学习

    Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号