Dependencias:
libaio
libaio1
Para instalar Oracle lo mas practico es descargarnos el paquete oracle-xe...i386.deb puesto que como es un archivo Debian es sumamente sencillo instalarlo.libaio
libaio1
El archivo lo puedes encontrar aqui:
recuerda que para tener derecho a descargarlo debes tener una cuenta registrada, si no la tienes creala, es muy facil y gratuito.
Una vez termines de descargar el paquete, dale clic derecho y escoje la opcion para instalar paquetes Debian
Ahora vamos a configurarlo:
Para ello ejecutamos el siguiente comando:
sudo /etc/init.d/oracle-xe configure
Oracle Database 10g Express Edition Configuration
————————————————-
This will configure on-boot properties of Oracle Database 10g 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. Pressto accept the defaults.
Ctrl-C will abort.
Specify the HTTP port that will be used for Oracle Application Express [8080]:8080
Specify a port that will be used for the database listener [1521]: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 10g Express Edition to be started on boot (y/n) [y]:y
Starting Oracle Net Listener…Done
Configuring Database…Done
Starting Oracle Database 10g Express Edition Instance…Done
Installation Completed Successfully.
To access the Database Home Page go to “http://127.0.0.1:8080/apex”
http://127.0.0.1:8080/apex
Cuando ingresamos a la pagina, ingresamos nuestro usuario, este puede ser SYS o SYSTEM, y la contrasena es la que definimos cuando configuramos oracle. Una vez ingresado podemos administrar la base de datos, agregar usuarios, tablas, table spaces, etc.
- sqlplus
- sqlplus sys as sysba
- startup
- shutdown immediate
Ahora vamos a configurar las variables de entorno:
Limpiamos la consola mediante:
- clear
- gedit /home/ces/.bashrc
# variables para ORACLE
ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_HOME
export ORACLE_SID=XE
export PATH
. .bashrc
Si escogimos la opcion no iniciar al encender el Pc, debemos de iniciar el Listener sino queremos usar la consola, para ello:
- cd $ORACLE_HOME
- lsnrctl
ces@debian:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server$ lsnrctl
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 11-MAY-2008 20:50:50
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Welcome to LSNRCTL, type “help” for information.
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
————————
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 11-MAY-2008 18:47:25
Uptime 0 days 2 hr. 3 min. 27 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
Listener Log File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
Listening Endpoints Summary…
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=soledad)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
Services Summary…
Service “PLSExtProc” has 1 instance(s).
Instance “PLSExtProc”, status UNKNOWN, has 1 handler(s) for this service…
Service “XE” has 1 instance(s).
Instance “XE”, status READY, has 1 handler(s) for this service…
Service “XEXDB” has 1 instance(s).
Instance “XE”, status READY, has 1 handler(s) for this service…
Service “XE_XPT” has 1 instance(s).
Instance “XE”, status READY, has 1 handler(s) for this service…
The command completed successfully
LSNRCTL>
- stop / start
clic en "gestionar grupos", buscamos y seleccionamos el grupo DBA y agregamos nuestro usuario.
0 comentarios:
Publicar un comentario