Currently, only Oracle Database 10G Express - otherwise known as Oracle 10G XE - can be used freely by developers. If you do not have an Oracle installation on your computer, then you should install Oracle database 10G Express so that you can follow along and practice these commands. This tutorial is using Ubuntu 10.04 LTS- the Lucid Lynx - as the operating system. The Oracle version used in this tutorial is “Oracle Database 10g Release 2 (10.2.0.1) Express Edition for Linux x86”. a.) In SQLplus, you connect as SYSTEM then you get this error:
ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist Linux Error: 2: No such file or directory
Could not connect to 127.0.0.1:8080
1.) Go to System – Administration – Users and Groups. 2.) Click (null)Oracle - you should enable this account. 3.) When you enable it, it will ask what password you want to assign to that account. Make sure you write down the password. It will also ask for your Ubuntu root password for verification as well. 4.) Launch the terminal. Login as root:
codex-m@codex-m-desktop:~$ sudo -s -H
[sudo] password for codex-m:
root@codex-m-desktop:/home/codex-m# cd /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/
root@codex-m-desktop:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin# pico nls_lang.sh Change the following from (found in the first line of nls.lang.sh): #!/bin/sh to: #!/bin/bash
codex-m@codex-m-desktop:~$ su - oracle Password: oracle@codex-m-desktop:~$
oracle@codex-m-desktop:~$ source /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh
oracle@codex-m-desktop:~$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Mar 16 02:29:42 2011 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to an idle instance.
SQL>
SQL> startup
ORACLE instance started.
Total System Global Area 603979776 bytes
SQL>
SQL> exit
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
oracle@codex-m-desktop:~$ sqlplus / as sysdba
SQL> shutdown immediate
Database closed.
blog comments powered by Disqus |
|
|
|
|
|
|
|