Install Oracle(Four) - Oracle XE in Debian[zz]

本文详细介绍了如何在Debian系统上安装并配置Oracle数据库,包括修改sources.list文件、使用APT进行安装、设置实例和数据库系统用户、创建数据库连接、安装客户端及远程登录等步骤。
Steps


* Change the file /etc/apt/sources.list and add the following line to it. The line describes the repository position for debian from oracle.


deb http://oss.oracle.com/debian unstable main non-free

* When I use the command mode to install the oracle-xe and oracle-xe-client, it says it will remove a lot of package. I don't know why.

aptitude install oracle-xe oracle-xe-client

Then I abort the procedures. And resort to the Synaptic Package Manager . At last, in the GUI Package Manager I installed the 2 packages successfully, oracle-xe and oracle- xe-client.


* Then config the instance and database sys/system users.

/etc/init.d/oracle-xe configure
In this steps, you will need to specify the ports and pasword. The details for my installation are as follows,
Webconsole Http Port: 1158
Database Listener: 1521
Database Password: *******


* At this point we must say, we have installed two programs. One is oracle server and another is oracle client. In the bin directory in their root path, they all have a sqlplus client to use. Actually, the one in server side connects the database with local protocol, it don't need the network(for OS user login, it login directly, for the other user, it login with /app/oracle/product/10.2.0/server/network/admin/tnsnames.ora ). So it has more rights. Then one in client need the file /etc/tnsnames.ora to connect to db. Oracle and Oracle client ships with a shell to set the environment. We can source them like this,

source /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh
source /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin/oracle_env.sh

* Firstly, we need setup some users. So I login with sqlplus in server site. Before doing this, make sure the oracle user(automatically added by installer) belongs to the dba group. Only the oracle can be used to login dba with OS user, root can't. (Because I login after I login with sys and password I specified during installation, I can't login, it says Invalide Username or password . So I need this step to specify password again)


su oracle
source /usr/lib/oracle/xe/app/oracle/product/10.2.0/ server /bin/oracle_env.sh
sqlplus / as sysdba
alter user sys identified by *******
alter user system identified by *******

create user robert identifed by **********
default tablespace users
temporary tablespace temp
quota unlimited on users

grant create session,create table, create view, create procedure, create synonym to robert


* Now the user sys/system/robert can be used to login database. You can use the command to login,

sqlplus sys/*******@xe as sysdba
sqlplus system/*******@xe
sqlplus robert/**********@xe

Until now, you are using the sqlplus from server site, you can login with OS user - oracle, you also can login with the sys/system users and your own user - robert.


* Now we start to investigate how to login oracle with remote sqlplus - the on in client site.



* Login web manager console, because oracle install the oracle server based on the loopback network adaptor, that is to say, you only can access web console by the loopback adaptor currently.


See my /etc/host s file,
127.0.0.1 localhost
127.0.1.1 debianlaptop

See my ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:1e:37:8a:71:c3
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21e:37ff:fe8a:71c3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1348 errors:0 dropped:0 overruns:0 frame:0
TX packets:1596 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1021169 (997.2 KiB) TX bytes:371191 (362.4 KiB)
Base address:0x1840 Memory:fe200000-fe220000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4002 errors:0 dropped:0 overruns:0 frame:0
TX packets:4002 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1433549 (1.3 MiB) TX bytes:1433549 (1.3 MiB)

That is to say, the 127.0.0.1(localhost) is an alias of the loopback adaptor while the 127.0.0.1(debianlaptop, 192.168.0.100) is an alias of my real network adaptor.

For the first time, oracle only bind itself with the loopback one. So you only can access it by

http://127.0.0.1:1158/apex/
http://localhost:1158/apex/


* Now you can login web console with sys/*******, go to Administratoin item. In the right sidebar Task , click the link. Then enable the item Available from local server and remote clients .


Then you can login with the following address to console. This is the ip address of my real network adaptor.
http://127.0.1.1:1158/apex/
http://debianlaptop:1158/apex/
http://192.168.0.100:1158/apex/


* After enable the remote clients, you must make a TNS file in /et c . So you can login remotely with sqlplus.


cp /app/oracle/product/10.2.0/server/network/admin/tnsnames.ora /etc/


* Now you can login with client sqlplus.

source /app/oracle/product/10.2.0/client/bin/oracle_env.sh

sqlplus sys/*******@xe as sysdba
sqlplus system/*******@xe
sqlplus robert/youarebest@xe

Please note, this time, the sqlplus is from client site, you can run which sqlplus to see,

/usr/lib/oracle/xe/app/oracle/product/10.2.0/ client /bin/sqlplus

That is to say, it use the tnsnames.ora from /etc diretory. Without last step and the right one before last step, you can't login in the client sqlplus.

Reference

http://www.davidpashley.com/articles/oracle-install.html

http://www.debianhelp.co.uk/oracle.htm

http://sysop.com.cn/system5504,1.html
基于数据驱动的 Koopman 算子的递归神经网络模型线性化,用于纳米定位系统的预测控制研究(Matlab代码实现)内容概要:本文围绕“基于数据驱动的Koopman算子的递归神经网络模型线性化”展开,旨在研究纳米定位系统的预测控制问题,并提供完整的Matlab代码实现。文章结合数据驱动方法与Koopman算子理论,利用递归神经网络(RNN)对非线性系统进行建模与线性化处理,从而提升纳米级定位系统的精度与动态响应性能。该方法通过提取系统隐含动态特征,构建近似线性模型,便于后续模型预测控制(MPC)的设计与优化,适用于高精度自动化控制场景。文中还展示了相关实验验证与仿真结果,证明了该方法的有效性和先进性。; 适合人群:具备一定控制理论基础和Matlab编程能力,从事精密控制、智能制造、自动化或相关领域研究的研究生、科研人员及工程技术人员。; 使用场景及目标:①应用于纳米级精密定位系统(如原子力显微镜、半导体制造设备)中的高性能控制设计;②为非线性系统建模与线性化提供一种结合深度学习与现代控制理论的新思路;③帮助读者掌握Koopman算子、RNN建模与模型预测控制的综合应用。; 阅读建议:建议读者结合提供的Matlab代码逐段理解算法实现流程,重点关注数据预处理、RNN结构设计、Koopman观测矩阵构建及MPC控制器集成等关键环节,并可通过更换实际系统数据进行迁移验证,深化对方法泛化能力的理解。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值