Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Oracle DB

Datenbank starten

Zunächst den Listener starten:

Codeblock
# /etc/init.d/oracledb start

Manchmal reicht das nicht. Der nächste Schritt ist nun die Verbindung zum Listener mittels sqlplus:

Info

# sqlplus 'sys/sys as sysdba'

SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 15 12:00:23 2014

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to an idle instance.

In diesem Beispiel ist die Datenbank noch nicht gestartet, und die Meldung 'Connected to an idle instance' ein Hinweis darauf. Innerhalb von sqlplus geht es jetzt weiter mit:

Codeblock
SQL> startup
ORACLE instance started.
Total System Global Area  966709248 bytes
Fixed Size                  1340608 bytes
Variable Size             721423168 bytes
Database Buffers          239075328 bytes
Redo Buffers                4870144 bytes
Database mounted.
Database opened.
SQL> quit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

Quelle , Quelle2

Für weitere Untersuchungen in sqlplus bietet sich z.B. an:

Codeblock
SQL> select status from v$instance;
STATUS
------------
OPEN

SQL> select status from dba_tablespaces;

STATUS
---------
ONLINE
[...]

SQL> select status from user_tablespaces;

STATUS
---------
ONLINE
[...]

Quelle , Quelle2

Constraints

Weitere Infomationen zu einem Constraint

...